/* ============================================================
   IGBEN EMMANUEL — PORTFOLIO
   Design system: "systems status board"
   ============================================================ */

:root {
  /* Color */
  --ink: #0E1420;
  --ink-soft: #16202F;
  --ink-line: #26334A;
  --paper: #EEF0EA;
  --paper-soft: #E4E7DE;
  --signal: #E8992C;
  --signal-dim: #B9791F;
  --online: #3FA66B;
  --charcoal: #171A1F;
  --grey-on-light: #5B6169;
  --grey-on-dark: #9AA3AE;
  --line-on-light: #D3D6CC;

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

/* ---- Status dot ---- */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 0 rgba(63,166,107,0.6);
  animation: pulse 2.4s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63,166,107,0.45); }
  70% { box-shadow: 0 0 0 7px rgba(63,166,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,166,107,0); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 13px 22px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--signal);
  color: var(--ink);
  font-weight: 600;
}
.btn-primary:hover { background: #f0a53f; }
.btn-ghost-dark {
  border-color: var(--ink-line);
  color: var(--paper);
}
.btn-ghost-dark:hover { border-color: var(--signal); color: var(--signal); }
.btn-ghost-light {
  border-color: var(--line-on-light);
  color: var(--charcoal);
}
.btn-ghost-light:hover { border-color: var(--signal-dim); color: var(--signal-dim); }

/* ============================================================
   HEADER
   ============================================================ */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238,240,234,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-on-light);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--grey-on-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
nav.links {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav.links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding-bottom: 2px;
}
nav.links a:hover { color: var(--signal-dim); }
nav.links a.current { color: var(--signal-dim); }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 9px 16px;
  border: 1px solid var(--charcoal);
  border-radius: 3px;
}
.nav-cta:hover { background: var(--charcoal); color: var(--paper); }
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--charcoal);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0 0 20px;
  gap: 4px;
}
.mobile-menu a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-on-light);
  font-size: 15px;
}
.mobile-menu.open { display: flex; }

@media (max-width: 860px) {
  nav.links { display: none; }
  .menu-btn { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.18;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 30%, transparent 75%);
}
.hero .wrap { position: relative; }
.hero-eyebrow { color: var(--signal); margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.06;
  max-width: 15ch;
  margin-bottom: 22px;
}
.hero-sub {
  max-width: 54ch;
  font-size: 17.5px;
  color: var(--grey-on-dark);
  margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

/* status panel — signature element */
.status-panel {
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  overflow: hidden;
}
.status-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ink-line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-on-dark);
}
.status-panel-head span.tag {
  color: var(--online);
}
.status-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ink-line);
  transition: background 0.15s ease;
}
.status-row:last-child { border-bottom: none; }
a.status-row:hover { background: rgba(232,153,44,0.06); }
.status-row .status-name {
  font-weight: 600;
  font-size: 15px;
  min-width: 190px;
}
.status-row .status-desc {
  color: var(--grey-on-dark);
  font-size: 13.5px;
  flex: 1;
  min-width: 180px;
}
.status-row .status-url {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--signal);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .status-row { flex-wrap: wrap; }
  .status-row .status-name { min-width: 0; }
}

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
section { padding: 88px 0; }
.section-light { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-alt { background: var(--paper-soft); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-eyebrow { color: var(--signal-dim); margin-bottom: 14px; }
.section-dark .section-eyebrow { color: var(--signal); }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.section-head p { color: var(--grey-on-light); font-size: 16.5px; }
.section-dark .section-head p { color: var(--grey-on-dark); }

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.about-copy p { margin-bottom: 18px; color: var(--charcoal); font-size: 16px; }
.about-copy p.lede { font-size: 19px; font-weight: 500; }
.credential-list { list-style: none; padding: 0; margin: 28px 0 0; }
.credential-list li {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line-on-light);
  font-size: 14.5px;
}
.credential-list li:last-child { border-bottom: 1px solid var(--line-on-light); }
.credential-list .cred-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey-on-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-width: 110px;
  padding-top: 2px;
}

.mark-panel {
  background: var(--ink);
  border-radius: 12px;
  padding: 40px;
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.mark-panel svg { width: 100%; height: auto; }
.mark-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--grey-on-dark);
  margin-top: 20px;
  line-height: 1.6;
}

/* ---- Services ---- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  overflow: hidden;
}
.service-card {
  background: var(--ink);
  padding: 32px 28px;
}
.service-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--signal);
  margin-bottom: 18px;
  display: block;
}
.service-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--grey-on-dark);
  font-size: 14.5px;
  margin-bottom: 16px;
}
.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.stack-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey-on-dark);
  border: 1px solid var(--ink-line);
  padding: 4px 9px;
  border-radius: 3px;
}
@media (max-width: 860px) {
  .service-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

/* ---- Work preview / grid ---- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.work-card {
  background: var(--paper);
  border: 1px solid var(--line-on-light);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.section-dark .work-card {
  background: var(--ink-soft);
  border-color: var(--ink-line);
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}
.work-thumb { position: relative; aspect-ratio: 1200/847; overflow: hidden; background: var(--ink-soft); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s ease; }
.work-card:hover .work-thumb img { transform: scale(1.035); }
.work-live-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(14,20,32,0.85);
  color: var(--online);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding: 5px 9px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.work-body { padding: 22px 24px 26px; }
.work-body h3 { font-size: 18.5px; margin-bottom: 8px; }
.work-body .work-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--signal-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.section-dark .work-body .work-role { color: var(--signal); }
.work-body p.desc {
  color: var(--grey-on-light);
  font-size: 14.5px;
  margin-bottom: 16px;
}
.section-dark .work-body p.desc { color: var(--grey-on-dark); }
.work-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line-on-light);
  padding-top: 16px;
}
.section-dark .work-foot { border-color: var(--ink-line); }
.work-foot .work-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.work-foot .work-tags span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--grey-on-light);
}
.section-dark .work-foot .work-tags span { color: var(--grey-on-dark); }
.work-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--signal-dim);
  white-space: nowrap;
}
.section-dark .work-link { color: var(--signal); }
.work-link:hover { text-decoration: underline; }

@media (max-width: 780px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ---- Process (real sequence, used only on work page) ---- */
.process-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-list li {
  border-top: 2px solid var(--ink-line);
  padding-top: 18px;
}
.process-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--signal);
  display: block;
  margin-bottom: 10px;
}
.process-list h4 { font-size: 15.5px; margin-bottom: 8px; }
.process-list p { color: var(--grey-on-dark); font-size: 13.5px; }
@media (max-width: 780px) {
  .process-list { grid-template-columns: 1fr 1fr; }
}

/* ---- Contact / CTA ---- */
.cta-band {
  background: var(--signal);
  color: var(--ink);
  padding: 64px 0;
}
.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(24px, 3.2vw, 34px); max-width: 20ch; }
.cta-band .btn-primary { background: var(--ink); color: var(--paper); }
.cta-band .btn-primary:hover { background: #1b2436; }

footer.site {
  background: var(--ink);
  color: var(--grey-on-dark);
  padding: 48px 0 32px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ink-line);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: var(--grey-on-dark);
  margin-bottom: 9px;
}
.footer-col a:hover { color: var(--signal); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---- Page hero (work.html) ---- */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 60px 0 56px;
}
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); max-width: 18ch; margin-bottom: 16px; }
.page-hero p { color: var(--grey-on-dark); max-width: 56ch; font-size: 16.5px; }
.page-hero .hero-eyebrow { margin-bottom: 18px; }
