/* ==========================================================================
   Syed Nabil Kabir — "Lamplight & Signal"
   ========================================================================== */

:root {
  /* Color tokens */
  --ink: #07090C;
  --midnight: #0C141B;
  --surface: #121C25;
  --line: rgba(236, 231, 223, .12);
  --line-strong: rgba(236, 231, 223, .24);
  --bone: #ECE7DF;
  --mist: #8B97A3;
  --teal: #2F8FB5;
  --teal-glow: #5CC6E8;
  --amber: #F2B35B;
  --amber-deep: #C9822F;
  --foliage: #0F2A26;

  /* Type */
  --f-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-accent: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --fs-mega: clamp(3rem, 13vw, 14rem);
  --fs-xl: clamp(2.6rem, 7vw, 7rem);
  --fs-lg: clamp(1.8rem, 3.5vw, 3.2rem);
  --fs-md: clamp(1.15rem, 1.6vw, 1.5rem);
  --fs-body: clamp(1rem, 1.1vw, 1.1875rem);
  --fs-label: .75rem;

  /* Layout */
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --r-chip: 4px;
  --r-card: 20px;
  --header-h: 76px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--amber); color: var(--ink); }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--amber); color: var(--ink); padding: .6rem 1rem; border-radius: 999px;
  font-weight: 600; transition: top .3s var(--ease-out);
}
.skip:focus { top: 16px; }

.container { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Shared type ---------- */
.label, .eyebrow {
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-glow);
  font-weight: 400;
}
.title {
  font-size: var(--fs-xl);
  line-height: .92;
  --ls: -.045em;
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 1.2rem;
}

/* Accent voice: Inter Tight Light Italic (contrast by weight, not by typeface) */
.title em, .accent, .hero__line--signal, .mission__statement em, .cta__title em,
.pillar__lead, .tl__role, .story__quote p, .case__metric, .marquee__track span:nth-of-type(3n+2) {
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  --ls: -.03em;
  --ws-adj: -.062em; /* the light italic space glyph is wider than the 800-weight one */
}
.title em, .mission__statement em, .cta__title em { color: var(--amber); }

/* Display tracking: letter-spacing comes from --ls, and the word gap is derived
   from it so every headline has the same visual space between words. */
.header__logo, .menu__nav a, .title, .title em, .accent, .hero__title, .hero__line--signal, .hero__line--signal em,
.mission__statement, .mission__statement em, .marquee__track span, .pillar__title, .pillar__lead,
.tl__title, .tl__role, .story__quote p, .story__quote em, .cap__title, .case__title, .case__metric,
.cta__title, .cta__title em, .footer__word, .stat__num, .preloader__count, .pillar__index, .story__year-num {
  letter-spacing: var(--ls, -.04em);
  word-spacing: calc(.16em - var(--ls, -.04em) + var(--ws-adj, 0em));
}

/* Split text */
.split-word { display: inline-block; white-space: nowrap; }
.split-mask { overflow: hidden; padding: .06em .08em .12em 0; margin: -.06em -.08em -.12em 0; vertical-align: top; }
.split-char { display: inline-block; will-change: transform; }
.hero__title.is-free .split-mask { overflow: visible; }

/* Links & buttons */
.link {
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px;
  transition: background-size .5s var(--ease-out), color .3s;
  padding-bottom: 2px;
}
.link:hover, .link:focus-visible { background-size: 100% 1px; background-position: 0 100%; }

.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .8rem;
  min-height: 48px;
  padding: 1rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -.01em;
  transition: background-color .35s, color .35s, border-color .35s, box-shadow .35s;
  will-change: transform;
}
.btn i { font-style: normal; display: inline-block; transition: transform .4s var(--ease-out); }
.btn:hover i { transform: translateX(4px); }
.btn--amber { background: var(--amber); color: var(--ink); box-shadow: 0 0 0 0 rgba(242,179,91,.0); }
.btn--amber:hover { background: #ffc676; box-shadow: 0 0 60px 0 rgba(242,179,91,.35); }
.btn--amber:active { background: var(--amber-deep); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--bone); backdrop-filter: blur(10px); background: rgba(7,9,12,.3); }
.btn--ghost:hover { border-color: var(--teal-glow); color: var(--teal-glow); }
.btn--pill { padding: .7rem 1.25rem; min-height: 42px; font-size: .9rem; background: var(--amber); color: var(--ink); }
.btn--pill:hover { background: #ffc676; }

.chip {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(242,179,91,.4);
  background: rgba(242,179,91,.07);
  padding: .45rem .7rem;
  border-radius: var(--r-chip);
}

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: .07;
  background-image: var(--grain-img, none);
  animation: grain 1s steps(8) infinite;
  will-change: transform;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  12% { transform: translate(-3%, 2%); }
  25% { transform: translate(2%, -4%); }
  37% { transform: translate(-5%, -1%); }
  50% { transform: translate(4%, 3%); }
  62% { transform: translate(-1%, 5%); }
  75% { transform: translate(3%, -2%); }
  87% { transform: translate(-4%, 4%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--amber)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js .preloader {
  display: block;
  position: fixed; inset: 0; z-index: 150;
  pointer-events: all;
}
.preloader__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); }
.preloader__panel--top { top: 0; }
.preloader__panel--bottom { bottom: 0; }
.preloader__inner {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 1.2rem;
}
.preloader__label { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.preloader__count { font-size: clamp(4rem, 14vw, 11rem); font-weight: 800; --ls: -.06em; line-height: .85; font-variant-numeric: tabular-nums; }
.preloader__bar { width: min(260px, 60vw); height: 1px; background: var(--line); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; background: var(--amber); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor { display: block; }
  .cursor__dot, .cursor__ring {
    position: fixed; top: 0; left: 0; z-index: 120; pointer-events: none;
    border-radius: 50%;
  }
  .cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--amber); }
  .cursor__ring {
    width: 36px; height: 36px; margin: -18px 0 0 -18px;
    border: 1px solid rgba(92,198,232,.6);
    display: grid; place-items: center;
    transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .45s, border-color .45s;
  }
  .cursor__label { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .3s; }
  .cursor.is-label .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--amber); border-color: var(--amber); }
  .cursor.is-label .cursor__label { opacity: 1; }
  .cursor.is-label .cursor__dot { opacity: 0; }
  .cursor.is-hover .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--amber); }
  .cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  height: var(--header-h);
  display: flex; align-items: center; gap: 2rem;
  padding: 0 var(--gutter);
  transition: transform .6s var(--ease-out), background-color .4s;
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(7,9,12,.75), rgba(7,9,12,0));
  pointer-events: none;
}
.header.is-hidden { transform: translateY(-110%); }
.header__logo { font-weight: 800; font-size: 1.3rem; --ls: -.03em; margin-right: auto; white-space: nowrap; }
.header__logo span { color: var(--amber); }
.header__nav { display: flex; gap: 2rem; font-size: .92rem; color: rgba(236,231,223,.8); }
.header__nav a:hover { color: var(--bone); }
.header__burger { display: none; width: 44px; height: 44px; position: relative; }
.header__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--bone); transition: transform .5s var(--ease-out); }
.header__burger span:nth-child(1) { top: 18px; }
.header__burger span:nth-child(2) { top: 25px; }
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 65;
  background: var(--ink);
  padding: calc(var(--header-h) + 4vh) var(--gutter) var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between;
  visibility: hidden; opacity: 0;
  transition: opacity .5s var(--ease-out), visibility 0s .5s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .5s var(--ease-out); }
.menu__nav { display: grid; gap: .4rem; }
.menu__nav a { font-size: clamp(3rem, 15vw, 5.5rem); font-weight: 800; --ls: -.05em; line-height: 1; text-transform: uppercase; display: flex; align-items: baseline; gap: 1rem; }
.menu__nav a span { font-family: var(--f-mono); font-size: .75rem; font-weight: 400; letter-spacing: .1em; color: var(--amber); }
.menu__foot { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; color: var(--mist); }

/* ---------- Media layers ---------- */
.media { position: absolute; inset: 0; overflow: hidden; background: var(--midnight); }
.media > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.media img, .media video { object-fit: cover; }
.media picture img { width: 100%; height: 100%; }
.pillars__fallback img { object-position: 72% 35%; }
.cta__fallback { transform-origin: 50% 72%; }
.cta__fallback img { object-position: 50% 40%; }
/* Light that blooms out of the laptop screen (centred on the laptop, ~72% down the frame) */
.media .cta__bloom {
  inset: auto; left: 50%; top: 72%;
  width: 130vmax; height: 130vmax; margin: -65vmax 0 0 -65vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,228,176,.95) 0%, rgba(242,179,91,.75) 12%, rgba(242,179,91,.3) 30%, rgba(242,179,91,0) 58%);
  mix-blend-mode: screen;
  opacity: 0; transform: scale(.12);
  pointer-events: none;
}
/* With the clip, the light blooms from where the laptop screen ends up (just below centre) */
.cta.has-video .media .cta__bloom {
  top: 57%;
  /* The clip's screen is now dark (matching the display), so the light spills AROUND it as a
     warm halo with a clear centre, instead of washing over the screen */
  background: radial-gradient(circle, rgba(242,179,91,0) 0%, rgba(242,179,91,0) 33%, rgba(242,179,91,.42) 41%, rgba(242,179,91,.16) 52%, rgba(242,179,91,0) 64%);
}
/* Warm dark veil that settles over the glow so the headline and buttons stay readable */
.cta__veil { background: radial-gradient(90% 75% at 50% 62%, rgba(40,22,6,.45), rgba(7,9,12,.88)); opacity: 0; pointer-events: none; }
/* ---------- Closing text shown ON the laptop screen (wide screens, clip loaded) ----------
   script.js measures where the laptop's lit display lands in the viewport and sets
   --sx/--sy/--sw/--sh, then adds .on-screen. Sizes use container units, so the text
   scales with the laptop screen at any window size. */
.cta__display { display: none; }
.cta.on-screen .media .cta__display {
  display: block; inset: auto;
  left: var(--ux); top: var(--uy); width: var(--uw); height: var(--uh);
  border-radius: 4px;
  /* Matches the laptop's own screen in the clip: warm peach with a thin near-white top bar */
  background:
    linear-gradient(180deg, #fcfcf9 0, #fcfcf9 3.2%, rgba(0,0,0,.06) 3.2%, rgba(0,0,0,0) 3.6%),
    linear-gradient(118deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 40%),
    linear-gradient(180deg, #fee6c1 0%, #fee5c0 60%, #fdebce 100%);
  box-shadow: 0 0 calc(var(--uw) * .12) calc(var(--uw) * .02) rgba(242,179,91,.22);
  opacity: 0;
}
/* Camera zooms further into the laptop as the clip ends (--zp goes 0 to 1 with scroll) */
.cta.on-screen .cta__media {
  transform-origin: 0 0;
  transform: translate(calc(var(--zx, 0px) * var(--zp, 0)), calc(var(--zy, 0px) * var(--zp, 0))) scale(calc(1 + (var(--z, 1) - 1) * var(--zp, 0)));
}
.cta.has-video.on-screen .cta__veil { background: radial-gradient(90% 75% at 50% 58%, rgba(36,20,6,.12), rgba(7,9,12,.72)); }
.cta.on-screen .cta__content {
  position: absolute; z-index: 2; margin: 0;
  left: var(--sx); top: var(--sy); width: var(--sw); height: var(--sh);
  container-type: size;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3cqh 4cqw; text-align: center;
}
.cta.on-screen .cta__content .label { font-size: max(9px, 2.1cqw); color: #1d6a88; }
.cta.on-screen .cta__title { color: #10161b; }
.cta.on-screen .cta__title em { color: #b8651a; }
.cta.on-screen .cta__title { margin-top: 2.4cqh; font-size: 9.1cqw; white-space: nowrap; }
.cta.on-screen .cta__sub { margin-top: 3.8cqh; font-size: max(11px, 3cqw); max-width: 88%; }
.cta.on-screen .cta__actions { margin-top: 5cqh; gap: 2cqw; }
.cta.on-screen .cta__actions .btn { font-size: max(11px, 2.7cqw); min-height: 0; padding: .75em 1.35em; }
.cta.on-screen .cta__meta { margin-top: 3.8cqh; gap: 3cqw; font-size: max(10px, 2cqw); }
.cta.on-screen .cta__email, .cta.on-screen .cta__resume { min-height: 0; font-size: max(10px, 2cqw); }

/* The clip ends on a bright laptop screen right behind the headline, so settle deeper there */
.cta.has-video .cta__veil { background: radial-gradient(90% 75% at 50% 58%, rgba(36,20,6,.78), rgba(7,9,12,.97)); }
.media video, .media .scrub-seq { opacity: 0; transition: opacity 1s; }
.has-video .media video, .has-video .media .scrub-seq { opacity: 1; }
.has-video .media .fallback, .has-video .media .field { opacity: 0; }
/* Hero with the intro clip: the camera dives into the laptop, then the clip dims as the
   coded dashboard below crossfades in (--reveal and --dash are driven from script.js).
   Without the clip, the boardroom photo + particle chart are shown instead. */
.hero__media { z-index: 0; } /* own stacking layer, so nothing inside rises above the headline */
.hero.has-video .media .scrub-seq { opacity: calc(1 - var(--reveal, 0) * .93); transition: none; }

/* ---------- Hero dashboard ---------- */
/* Particle area chart left of the dashboard (desktop, with the intro clip only) */
.hero__trend { display: none; }
.hero.has-video .hero__trend {
  display: block; position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  opacity: var(--reveal, 0);
}
@media (max-width: 767px) { .hero.has-video .hero__trend { display: none; } }
.hero__dash { display: none; }
.hero.has-video .hero__dash {
  display: grid; gap: clamp(8px, 1.2vh, 14px); align-content: start;
  position: absolute; z-index: 1;
  top: calc(var(--header-h) + 2vh); right: var(--gutter);
  width: min(56vw, 880px);
  opacity: var(--reveal, 0);
  transform: scale(calc(1.06 - var(--reveal, 0) * .06));
  transform-origin: 70% 30%;
  pointer-events: none;
  font-family: var(--f-sans);
}
.dash__head {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist);
}
.dash__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-glow); box-shadow: 0 0 10px var(--teal-glow); }
.dash__live { margin-left: auto; color: var(--amber); border: 1px solid rgba(242,179,91,.4); padding: .15rem .45rem; border-radius: var(--r-chip); }
.dash__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1vw, 12px); }
.dash__kpi, .dash__card {
  background: linear-gradient(160deg, rgba(18,34,44,.9), rgba(9,16,22,.88));
  border: 1px solid rgba(92,198,232,.22);
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(47,143,181,.12) inset;
}
.dash__kpi { padding: clamp(.55rem, 1.2vh, .85rem) .8rem; display: grid; gap: .2rem; }
.dash__kpi span { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mist); line-height: 1.3; }
.dash__kpi b { font-size: clamp(1.4rem, 2.4vw, 2.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--bone); font-variant-numeric: tabular-nums; }
.dash__kpi--amber b { color: var(--amber); }
.dash__charts { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(8px, 1vw, 12px); height: clamp(150px, 24vh, 250px); }
.dash__card { margin: 0; padding: .7rem .8rem .55rem; display: grid; grid-template-rows: auto 1fr auto; min-height: 0; }
.dash__card figcaption { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
.dash__card svg { width: 100%; height: 100%; min-height: 0; overflow: visible; margin-top: .4rem; }
.dash__axis { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .58rem; color: var(--mist); margin-top: .3rem; }
.dash__axis span:last-child { color: var(--amber); }
.dash__axis--legend span:last-child { color: var(--mist); }
.dash__grid { stroke: rgba(236,231,223,.07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dash__zero { stroke: rgba(236,231,223,.28); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.dash__trend { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(242,179,91,.5)); }
.dash__end { fill: var(--amber); }
.dash__bar { fill: rgba(92,198,232,.6); transform-box: fill-box; transform-origin: 50% 100%; }
.dash__bar--hot { fill: var(--amber); }
.dash__ring { fill: none; stroke: rgba(236,231,223,.08); stroke-width: 12; }
.dash__seg { fill: none; stroke: var(--teal-glow); stroke-width: 12; opacity: .8; transform: rotate(-90deg); transform-origin: 60px 60px; }
.dash__seg:nth-of-type(odd) { stroke: var(--teal); }
.dash__seg--hot { stroke: var(--amber) !important; opacity: 1; }
.dash__donut-num { font-family: var(--f-sans); font-weight: 800; font-size: 26px; fill: var(--bone); }
.field { pointer-events: none; }
.shade { pointer-events: none; }

/* ==========================================================================
   01 HERO
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; }
.hero__stage {
  position: relative; height: 100%; overflow: hidden;
  transform-origin: 50% 0;
}
.hero__fallback { transform-origin: 52% 25%; }
.hero__fallback img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 22%; }
.hero__dim { position: absolute; inset: 0; z-index: 3; background: var(--ink); opacity: 0; pointer-events: none; }
.shade--hero {
  background:
    linear-gradient(180deg, rgba(7,9,12,.6) 0%, rgba(7,9,12,.1) 22%, rgba(7,9,12,.15) 40%, rgba(7,9,12,.88) 78%, var(--ink) 100%),
    linear-gradient(90deg, rgba(7,9,12,.7), rgba(7,9,12,.25) 45%, rgba(7,9,12,0) 60%),
    radial-gradient(120% 90% at 50% 40%, rgba(15,42,38,0) 50%, rgba(7,9,12,.55) 100%);
}
.hero__content {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 5vh, 56px);
  z-index: 2;
}
.hero__eyebrow { display: flex; align-items: center; gap: .8rem; margin-bottom: clamp(1rem, 2.5vh, 2rem); }
.hero__title { font-size: clamp(3rem, min(11.5vw, 19vh), 12rem); line-height: .84; --ls: -.055em; font-weight: 800; }
.hero__line { display: block; }
.hero__line--noise { text-transform: uppercase; }
.hero__line--signal {
  padding-left: .9em; transform-origin: 0 100%;
}
.hero__line--signal em { color: var(--amber); }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-top: clamp(1.2rem, 3vh, 2.4rem); }
.hero__lede { max-width: 34ch; font-size: var(--fs-md); line-height: 1.45; color: rgba(236,231,223,.86); }
.hero__cue { display: flex; align-items: center; gap: .9rem; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); white-space: nowrap; }
.hero__cue i { position: relative; width: 1px; height: 46px; background: var(--line-strong); overflow: hidden; }
.hero__cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--amber); animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { to { top: 110%; } }

/* ==========================================================================
   02 STATS
   ========================================================================== */
.stats { position: relative; z-index: 3; background: var(--ink); padding: clamp(5rem, 12vh, 9rem) 0 0; }
.stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 2rem 1.4rem 2.4rem 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 1.4rem; }
.stat:last-child { border-right: 0; }
.stat__num {
  font-size: clamp(3rem, 5.4vw, 6rem); font-weight: 800; --ls: -.06em; line-height: .9;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stat__num sup { font-size: .45em; vertical-align: top; position: relative; top: .12em; letter-spacing: -.02em; margin-left: .04em; }
.stat__num small { font-size: .32em; font-family: var(--f-mono); font-weight: 400; letter-spacing: 0; color: var(--mist); margin-right: .25em; vertical-align: middle; }
.stat--amber .stat__num { color: var(--amber); }
.stat__label { margin-top: 1.1rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); line-height: 1.5; max-width: 22ch; }

.marquee { margin-top: clamp(4rem, 10vh, 7rem); border-block: 1px solid var(--line); padding: 1.4rem 0; overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; will-change: transform; }
.marquee__track span { font-size: clamp(1.6rem, 3.4vw, 3rem); font-weight: 600; --ls: -.035em; text-transform: uppercase; padding: 0 1.6rem; }
.marquee__track span:nth-of-type(3n+2) { color: var(--teal-glow); }
.marquee__track b { color: var(--amber); font-size: 1rem; font-weight: 400; }

/* ==========================================================================
   03 MISSION
   ========================================================================== */
.mission { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 16vh 0; background: var(--ink); }
.mission__statement {
  margin-top: 2rem;
  font-size: clamp(2.4rem, 6.4vw, 7rem);
  font-weight: 600; line-height: 1; --ls: -.05em; --ws-adj: -.023em;
  max-width: 16ch;
}

.mission__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.mission__inner { position: relative; z-index: 1; }
.mission__body { margin-top: 3rem; margin-left: auto; max-width: 46ch; color: var(--mist); font-size: var(--fs-md); line-height: 1.55; }

/* ==========================================================================
   04 PILLARS
   ========================================================================== */
.pillars { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--midnight); }
.shade--pillars {
  background:
    linear-gradient(90deg, rgba(7,9,12,.85) 0%, rgba(7,9,12,.35) 50%, rgba(7,9,12,.6) 100%),
    linear-gradient(180deg, var(--ink) 0%, rgba(7,9,12,0) 18%, rgba(7,9,12,0) 82%, var(--ink) 100%);
}
.pillars__track {
  position: relative; z-index: 2; height: 100%;
  display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem);
  padding: 0 var(--gutter);
  width: max-content;
  will-change: transform;
}
.pillars__intro { width: min(38vw, 560px); flex: none; padding-right: 2vw; }
.pillars__sub { margin-top: 1.6rem; color: var(--mist); font-size: var(--fs-md); max-width: 28ch; line-height: 1.5; }
.pillars__count { margin-top: 2.6rem; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .12em; color: var(--mist); }
.pillars__count b { color: var(--amber); font-weight: 500; }
.pillar {
  position: relative; flex: none;
  width: clamp(320px, 32vw, 500px);
  min-height: min(68vh, 560px);
  display: flex; flex-direction: column;
  padding: clamp(1.6rem, 2.4vw, 2.6rem);
  border-radius: var(--r-card);
  background: linear-gradient(160deg, rgba(22,34,45,.82), rgba(12,20,27,.78));
  border: 1px solid var(--line);
  transition: border-color .4s;
}
.pillar:last-child { margin-right: 10vw; }
.pillar:hover { border-color: rgba(92,198,232,.35); }
.pillar__index {
  position: absolute; top: 1rem; right: 1.4rem;
  font-size: clamp(5rem, 9vw, 8.5rem); font-weight: 800; --ls: -.06em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(236,231,223,.18);
}
.pillar__icon { width: 52px; height: 52px; fill: none; stroke: var(--teal-glow); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pillar__title { margin-top: auto; padding-top: 3rem; font-size: clamp(1.7rem, 2.4vw, 2.3rem); font-weight: 800; --ls: -.04em; line-height: 1; text-transform: uppercase; }
.pillar__lead { margin-top: .8rem; font-size: clamp(1.35rem, 1.8vw, 1.7rem); color: var(--amber); line-height: 1.2; }
.pillar__body { margin-top: 1rem; color: rgba(236,231,223,.75); font-size: 1rem; line-height: 1.6; }
.pillar .chip { margin-top: 1.6rem; align-self: flex-start; }

/* ==========================================================================
   05 STORY
   ========================================================================== */
.story { position: relative; padding: clamp(7rem, 16vh, 12rem) 0; background: var(--ink); }
.story__head { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; }
.story__head .title { max-width: 14ch; }
.story__portrait { width: clamp(140px, 16vw, 240px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-strong); position: relative; }
.story__portrait img { width: 100%; height: 115%; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.story__portrait::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 20%, rgba(242,179,91,.25), transparent 55%); mix-blend-mode: screen; }

.story__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4vw; margin-top: clamp(4rem, 10vh, 7rem); }
.story__year { position: relative; }
.story__year-num {
  position: sticky; top: 30vh; display: block;
  font-size: clamp(5rem, 13vw, 13rem); font-weight: 800; --ls: -.07em; line-height: .8;
  font-variant-numeric: tabular-nums;
  color: transparent; -webkit-text-stroke: 1px rgba(92,198,232,.55);
}
.story__timeline { position: relative; padding-left: 2.4rem; }
.timeline__line { position: absolute; left: 0; top: .6rem; bottom: 0; width: 1px; background: var(--line); }
.timeline__line i { position: absolute; inset: 0; background: linear-gradient(var(--teal-glow), var(--amber)); transform-origin: 50% 0; transform: scaleY(0); }
.timeline { display: grid; gap: clamp(3rem, 8vh, 5rem); }
.tl { position: relative; }
.tl::before {
  content: ""; position: absolute; left: calc(-2.4rem - 4px); top: .55rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--teal-glow);
  transition: background-color .4s, box-shadow .4s;
}
.tl.is-active::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 18px rgba(242,179,91,.7); }
.tl__when { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .12em; color: var(--teal-glow); text-transform: uppercase; }
.tl__title { margin-top: .5rem; font-size: clamp(1.5rem, 2.6vw, 2.4rem); font-weight: 800; --ls: -.035em; line-height: 1.05; }
.tl__role { margin-top: .35rem; font-size: 1.3rem; color: var(--amber); }
.tl__text { margin-top: .8rem; color: rgba(236,231,223,.72); max-width: 52ch; }
.tl__text strong { color: var(--bone); font-weight: 600; }
.tl--now .tl__title { color: var(--bone); }

.story__quote { margin-top: clamp(6rem, 14vh, 10rem); text-align: center; }
.story__quote p { max-width: 17em; margin-inline: auto; font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1.08; }
.story__quote em { color: var(--amber); }

/* ==========================================================================
   06 CAPABILITIES
   ========================================================================== */
.caps { padding: clamp(6rem, 12vh, 9rem) 0 clamp(7rem, 16vh, 12rem); background: linear-gradient(var(--ink), var(--midnight)); }
.section-head { margin-bottom: clamp(3rem, 8vh, 5rem); }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.caps__stack { display: grid; gap: 2rem; }
.cap {
  position: sticky;
  top: calc(var(--header-h) + 3vh);
  display: grid; grid-template-columns: auto 1fr minmax(0, 360px); gap: clamp(1.5rem, 4vw, 4rem); align-items: start;
  min-height: 46vh;
  padding: clamp(1.8rem, 4vw, 3.6rem);
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  transform-origin: 50% 0;
  box-shadow: 0 -30px 60px -20px rgba(0,0,0,.5);
  --dim: 0;
}
.cap::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(7,9,12, var(--dim)); pointer-events: none; }
.cap:nth-child(2) { top: calc(var(--header-h) + 3vh + 1.6rem); background: #14212c; }
.cap:nth-child(3) { top: calc(var(--header-h) + 3vh + 3.2rem); background: #172633; }
.cap__num { font-family: var(--f-mono); font-size: .85rem; letter-spacing: .12em; color: var(--amber); padding-top: .8rem; }
.cap__title { font-size: clamp(2.2rem, 5vw, 4.6rem); font-weight: 800; --ls: -.05em; line-height: .95; text-transform: uppercase; }
.cap__text { margin-top: 1.4rem; color: rgba(236,231,223,.75); font-size: var(--fs-md); line-height: 1.5; max-width: 40ch; }
.cap__tags { display: flex; flex-wrap: wrap; gap: .5rem; align-content: flex-start; padding-top: .6rem; }
.cap__tags li { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .5rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; color: rgba(236,231,223,.85); }

.certs { margin-top: clamp(5rem, 11vh, 8rem); }
.certs__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.certs__note { color: var(--mist); max-width: 46ch; }
.certs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.certs__grid:has(.cert__more[open]) { align-items: start; }
.cert {
  display: flex; flex-direction: column; gap: .55rem;
  padding: 1.4rem 1.4rem 1.3rem;
  border-radius: 14px;
  background: rgba(18, 28, 37, .7);
  border: 1px solid var(--line);
  transition: border-color .4s var(--ease-out), transform .4s var(--ease-out);
}
.cert:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.cert--ai { border-color: rgba(242,179,91,.35); }
.cert__meta { display: flex; justify-content: space-between; gap: .8rem; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-glow); }
.cert--ai .cert__meta { color: var(--amber); }
.cert__meta span + span { color: var(--mist); }
.cert__title { font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; color: var(--bone); }
.cert__info { font-size: .88rem; color: var(--mist); }
.cert__link, .cert__more summary {
  margin-top: auto; padding-top: .7rem;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--amber); cursor: pointer;
}
.cert__link:hover, .cert__more summary:hover { color: var(--bone); }
.cert__actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; margin-top: auto; padding-top: .7rem; }
.cert__actions .cert__link { margin-top: 0; padding-top: 0; }
.cert__link--pdf { color: var(--mist); }
.cert__more li { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
.cert__pdf { flex: none; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .08em; color: var(--mist); padding: .15rem .45rem; border: 1px solid var(--line-strong); border-radius: 999px; }
.cert__pdf:hover { color: var(--amber); border-color: var(--amber); }
.cert__more { margin-top: auto; }
.cert__more summary { list-style: none; }
.cert__more summary::-webkit-details-marker { display: none; }
.cert__more summary::after { content: " +"; }
.cert__more[open] summary::after { content: " ×"; }
.cert__more ul { display: grid; gap: .45rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.cert__more a, .cert__course { font-size: .86rem; color: rgba(236,231,223,.8); }
.cert__more a:hover { color: var(--amber); }

/* ==========================================================================
   07 WORK
   ========================================================================== */
.work { position: relative; padding: clamp(7rem, 16vh, 12rem) 0; background: var(--midnight); }
.work__note { max-width: 32ch; color: var(--mist); }
.cases { border-top: 1px solid var(--line-strong); }
.case { border-bottom: 1px solid var(--line-strong); }
.case__row {
  width: 100%;
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto 2.5rem; align-items: center; gap: 1.5rem;
  padding: clamp(1.6rem, 3.6vh, 2.6rem) 0;
  text-align: left;
}
.case__idx { font-family: var(--f-mono); font-size: .85rem; letter-spacing: .1em; color: var(--mist); transition: color .4s; }
.case__title {
  font-size: clamp(1.7rem, 4.4vw, 4.2rem); font-weight: 800; --ls: -.05em; line-height: 1; text-transform: uppercase;
  transition: transform .6s var(--ease-out), color .4s;
}
.case__metric { font-size: clamp(1.2rem, 2vw, 1.9rem); color: var(--teal-glow); white-space: nowrap; transition: color .4s; }
.case__toggle { position: relative; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line-strong); border-radius: 50%; transition: transform .6s var(--ease-out), border-color .4s; }
.case__toggle::before, .case__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
.case__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.case__row:hover .case__title, .case__row:focus-visible .case__title { transform: translateX(24px); }
.case__row:hover .case__idx, .case.is-open .case__idx { color: var(--amber); }
.case__row:hover .case__metric { color: var(--amber); }
.case.is-open .case__toggle { transform: rotate(45deg); border-color: var(--amber); }

.case__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease-out); }
.case.is-open .case__detail { grid-template-rows: 1fr; }
.case__inner { overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); }
.case.is-open .case__inner { padding-bottom: 2.6rem; }
.case__chart { background: var(--ink); border: 1px solid var(--line); border-radius: 14px; aspect-ratio: 16 / 10; padding: 1rem; }
.case__chart svg, .case-preview svg { width: 100%; height: 100%; overflow: visible; }
.case__dl { display: grid; gap: 1.4rem; align-content: start; }
.case__dl dt { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-glow); }
.case__dl dd { margin-top: .3rem; font-size: var(--fs-md); line-height: 1.45; color: rgba(236,231,223,.85); }
.case__dl div:last-child dd { color: var(--amber); }

.case-preview { display: none; }
@media (hover: hover) and (pointer: fine) {
  .case-preview {
    display: block; position: fixed; top: 0; left: 0; z-index: 60; pointer-events: none;
    width: 320px; height: 210px; margin: -105px 0 0 40px;
    border-radius: 16px; overflow: hidden;
    background: rgba(12,20,27,.85); border: 1px solid rgba(92,198,232,.25);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 1rem;
    opacity: 0; transform: scale(.6);
  }
  .case-preview__inner { width: 100%; height: 100%; }
}

/* Mini chart styling */
.mc-grid { stroke: rgba(236,231,223,.08); stroke-width: 1; }
.mc-axis { stroke: rgba(236,231,223,.3); stroke-width: 1; stroke-dasharray: 3 4; }
.mc-bar { fill: rgba(92,198,232,.5); }
.mc-bar--hot { fill: var(--amber); }
.mc-line { fill: none; stroke: var(--teal-glow); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mc-line--amber { stroke: var(--amber); }
.mc-area { fill: url(#mcGrad); opacity: .5; }
.mc-dot { fill: var(--amber); }
.mc-node { fill: var(--ink); stroke: var(--teal-glow); stroke-width: 1.5; }
.mc-hub { fill: var(--amber); }
.mc-text { font-family: var(--f-mono); font-size: 10px; fill: var(--mist); letter-spacing: .08em; }
.mc-text--amber { fill: var(--amber); }

/* Case file that links to a live project */
.case__live {
  display: inline-block; vertical-align: middle; margin-left: .8rem; transform: translateY(-.35em);
  font-family: var(--f-mono); font-size: .62rem; font-weight: 500; letter-spacing: .12em; line-height: 1;
  color: var(--ink); background: var(--teal-glow); padding: .35rem .55rem; border-radius: var(--r-chip);
}
.case__chart--shot { display: block; align-self: start; padding: 0; aspect-ratio: 16 / 9; overflow: hidden; border-color: var(--line-strong); }
.case__chart--shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.case__chart--shot:hover img { transform: scale(1.02); }
.case__body { display: grid; gap: 2rem; align-content: start; }
.case__links { display: flex; flex-wrap: wrap; gap: .8rem; }
.case-preview__inner img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 8px; }

/* At a glance (for recruiters) */
.glance { position: relative; z-index: 3; background: var(--ink); padding: clamp(4rem, 10vh, 7rem) 0 clamp(2rem, 6vh, 4rem); }
.glance__card { padding: clamp(1.6rem, 4vw, 3.4rem); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.glance__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; }
.glance__title { margin-top: .8rem; font-size: clamp(2rem, 4.2vw, 3.6rem); font-weight: 800; line-height: .95; --ls: -.05em; letter-spacing: var(--ls); text-transform: uppercase; }
.glance__title em { font-family: var(--f-accent); font-style: italic; font-weight: 300; text-transform: none; color: var(--amber); }
.glance__status {
  display: inline-flex; align-items: center; gap: .6rem; padding: .55rem .95rem; border-radius: 999px;
  border: 1px solid rgba(92,198,232,.4); background: rgba(92,198,232,.08);
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-glow);
}
.glance__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-glow); box-shadow: 0 0 0 0 rgba(92,198,232,.6); animation: glancePulse 2.2s infinite; }
@keyframes glancePulse { 0% { box-shadow: 0 0 0 0 rgba(92,198,232,.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(92,198,232,0); } }
.glance__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; margin-top: clamp(1.8rem, 4vh, 2.6rem); border-top: 1px solid var(--line-strong); }
.glance__grid > div { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.glance__grid .glance__wide { grid-column: 1 / -1; }
.glance__grid dt { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-glow); }
.glance__grid dd { margin-top: .35rem; font-size: 1.02rem; line-height: 1.45; color: rgba(236,231,223,.88); }
.glance__chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .2rem; }
.glance__chips li { padding: .4rem .75rem; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .88rem; color: rgba(236,231,223,.88); }
.glance__chips--tools li { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.glance__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(1.8rem, 4vh, 2.4rem); }
@media (max-width: 900px) { .glance__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .glance__grid { grid-template-columns: minmax(0, 1fr); }
  .glance__actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .glance__status i { animation: none; } }

/* Recommendation */
.voices { position: relative; padding: clamp(7rem, 16vh, 12rem) 0; background: var(--ink); border-top: 1px solid var(--line); }
.voices__note { max-width: 32ch; color: var(--mist); }
.voice__quote p {
  font-family: var(--f-accent); font-style: italic; font-weight: 300;
  font-size: clamp(1.9rem, 4.2vw, 3.8rem); line-height: 1.08; letter-spacing: -.03em;
  color: var(--bone); max-width: 24ch; text-indent: -.42em;
}
.voice__quote p::before { content: "\201C"; color: var(--amber); }
.voice__quote p::after { content: "\201D"; color: var(--amber); }
.voice__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 3rem;
  margin-top: clamp(2.2rem, 5vh, 3.2rem); padding-top: 1.6rem; border-top: 1px solid var(--line-strong);
}
.voice__by { display: flex; align-items: center; gap: 1rem; }
.voice__avatar {
  flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(92,198,232,.45); background: rgba(92,198,232,.08);
  font-family: var(--f-mono); font-size: .85rem; letter-spacing: .08em; color: var(--teal-glow);
}
.voice__who { display: grid; gap: .15rem; }
.voice__who strong { font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
.voice__who span { font-size: .92rem; color: rgba(236,231,223,.75); }
.voice__who .voice__meta { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
.voice__src { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-glow); }
.voice__full { margin-top: 1.8rem; }
.voice__full summary {
  display: inline-flex; gap: .5rem; cursor: pointer; list-style: none;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mist);
  transition: color .3s;
}
.voice__full summary::-webkit-details-marker { display: none; }
.voice__full summary::after { content: "+"; }
.voice__full[open] summary::after { content: "\00D7"; }
.voice__full summary:hover { color: var(--bone); }
.voice__text { display: grid; gap: 1rem; margin-top: 1.4rem; max-width: 68ch; font-size: var(--fs-md); line-height: 1.6; color: rgba(236,231,223,.82); }

/* ==========================================================================
   08 CTA
   ========================================================================== */
.cta { position: relative; height: 100vh; height: 100svh; }
.cta__stage { position: relative; height: 100%; overflow: hidden; display: grid; align-items: end; padding-bottom: clamp(2.5rem, 7vh, 5rem); }
.shade--cta { background: linear-gradient(180deg, rgba(7,9,12,.55) 0%, rgba(7,9,12,.08) 22%, rgba(7,9,12,.12) 60%, rgba(7,9,12,.72) 88%, var(--ink) 100%), radial-gradient(85% 80% at 50% 50%, rgba(7,9,12,0) 55%, rgba(7,9,12,.6) 100%); }
.cta__content { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; }
.cta__title { margin-top: 1.4rem; font-size: clamp(2.6rem, min(6.6vw, 11vh), 7.5rem); line-height: .88; --ls: -.055em; font-weight: 800; text-transform: uppercase; }
.cta__line { display: block; }

.cta__sub { margin-top: 2rem; max-width: 46ch; color: rgba(236,231,223,.8); font-size: var(--fs-md); line-height: 1.5; }
.cta__actions { margin-top: 2.6rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.cta__meta { margin-top: 2rem; display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; justify-content: center; font-size: .92rem; color: var(--mist); }
.cta__email { font-family: var(--f-mono); font-size: .82rem; letter-spacing: .04em; color: var(--mist); display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; transition: color .3s; }
.cta__email span { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; padding: .25rem .5rem; border: 1px solid var(--line-strong); border-radius: var(--r-chip); }
.cta__email:hover { color: var(--bone); }
.cta__resume { min-height: 44px; display: inline-flex; align-items: center; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; background: var(--ink); padding: clamp(4rem, 10vh, 7rem) 0 1.6rem; overflow: hidden; border-top: 1px solid var(--line); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; font-size: .98rem; }
.footer__cols .label { margin-bottom: .8rem; }
.footer__cols p + p { margin-top: .25rem; }
.footer__clock { color: var(--mist); font-family: var(--f-mono); font-size: .8rem; }
.footer__time { color: var(--amber); }
.footer__top { justify-self: end; align-self: end; }
.footer__word {
  margin-top: clamp(3rem, 8vh, 6rem);
  font-size: 8.8vw; font-weight: 800; --ls: -.06em; line-height: .8;
  text-transform: uppercase; text-align: center; white-space: nowrap;
  padding-bottom: .06em;
}
.footer__fine { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 130;
  transform: translate(-50%, calc(100% + 40px));
  padding: .8rem 1.3rem; border-radius: 999px;
  background: var(--amber); color: var(--ink); font-weight: 600; font-size: .92rem;
  visibility: hidden;
  transition: transform .6s var(--ease-out), visibility 0s .6s;
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease-out); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(4) { padding-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .cap { grid-template-columns: auto 1fr; }
  .cap__tags { grid-column: 2; }
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .certs__grid { grid-template-columns: 1fr; }
  :root { --header-h: 64px; }
  .header__nav, .header .btn--pill { display: none; }
  .header__burger { display: block; }

  .hero__fallback img { object-position: 51% 22%; }
  .pillars__fallback img { object-position: 70% 30%; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .hero__cue i { height: 30px; }
  .hero__line--signal { padding-left: .5em; }
  .hero.has-video .hero__dash { left: var(--gutter); right: var(--gutter); width: auto; top: calc(var(--header-h) + 1.5vh); transform-origin: 50% 0; }
  .dash__kpis { grid-template-columns: 1fr 1fr; }
  .dash__charts { grid-template-columns: 1fr; height: clamp(120px, 19vh, 170px); }
  .dash__card--bars, .dash__card--donut { display: none; }
  .hero__eyebrow { font-size: .64rem; }

  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 1.6rem 1rem 1.8rem 0; border-right: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
  .stat:first-child, .stat:nth-child(2) { border-top: 0; }
  .stat:last-child { grid-column: 1 / -1; }

  .mission { min-height: auto; padding: 8rem 0; }
  .mission.has-chart .mission__body { margin-top: max(15rem, 62vw); } /* room for the bar chart between statement and paragraph */

  .pillars { height: auto; }
  .pillars__media { position: absolute; }
  .pillars__track { flex-direction: column; align-items: stretch; width: auto; padding: 6rem var(--gutter); gap: 1.4rem; }
  .pillars__intro { width: auto; padding: 0 0 1rem; }
  .pillars__count { display: none; }
  .pillar { width: auto; min-height: 0; }
  .pillar:last-child { margin-right: 0; }

  .story__head { grid-template-columns: 1fr; }
  .story__portrait { order: -1; }
  .story__body { grid-template-columns: 1fr; }
  .story__year { display: none; }
  .story__timeline { padding-left: 1.8rem; }
  .tl::before { left: calc(-1.8rem - 4px); }

  .cap { position: relative; top: auto !important; grid-template-columns: 1fr; min-height: 0; }
  .cap__tags { grid-column: auto; }

  .case__row { grid-template-columns: 2.4rem minmax(0, 1fr) 2.5rem; gap: .9rem; }
  .case__metric { grid-column: 2; grid-row: 2; font-size: 1.15rem; }
  .case__toggle { grid-column: 3; grid-row: 1 / span 2; }
  .case__row:hover .case__title { transform: none; }
  .case__inner { grid-template-columns: 1fr; }

  .cta { height: auto; min-height: 100svh; }
  .cta__stage { min-height: 100svh; padding: 7rem 0; }
  .cta__actions { flex-direction: column; width: 100%; }
  .cta__actions .btn { justify-content: center; }

  .footer__cols { grid-template-columns: 1fr; }
  .footer__top { justify-self: start; }
  .footer__fine { flex-direction: column; gap: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hero__cue i::after { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* On-screen layout sits on the light peach display: dark text, buttons tuned for a light background */
.cta.on-screen .cta__sub { color: #3b3f44; }
.cta.on-screen .btn--amber { background: #10161b; color: #fee6c1; box-shadow: none; }
.cta.on-screen .btn--amber:hover { background: #24313b; }
.cta.on-screen .btn--ghost { background: rgba(255,255,255,.35); border-color: rgba(16,22,27,.35); color: #10161b; backdrop-filter: none; }
.cta.on-screen .btn--ghost:hover { border-color: #10161b; color: #10161b; background: rgba(255,255,255,.6); }
.cta.on-screen .cta__email { color: #23282d; }
.cta.on-screen .cta__email span { border-color: rgba(16,22,27,.45); }
.cta.on-screen .cta__email:hover { color: #10161b; }
.cta.on-screen .cta__resume { color: #23282d; }

/* ==========================================================================
   Project pages (projects/*.html)
   ========================================================================== */
.pp-bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem var(--gutter);
  background: rgba(7,9,12,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.pp-bar__logo { font-weight: 800; font-size: 1.05rem; letter-spacing: -.03em; }
.pp-bar__logo span { color: var(--amber); }
.pp-bar__back { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); transition: color .3s; }
.pp-bar__back:hover { color: var(--amber); }

.pp-hero { padding: clamp(4rem, 10vh, 7rem) 0 clamp(2.5rem, 6vh, 4rem); }
.pp-hero .title { font-size: clamp(2.6rem, 6.5vw, 6.2rem); max-width: 14ch; }
.pp-lede { margin-top: 1.8rem; font-size: var(--fs-md); line-height: 1.5; color: rgba(236,231,223,.8); max-width: 54ch; }
.pp-hero .kpis { margin-top: 2.6rem; max-width: 920px; }
.pp-hero .ctas { margin-top: 2.4rem; }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.kpis div { padding: 1.2rem 1.2rem 0 0; }
.kpis div + div { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.kpis dt { font-size: clamp(1.6rem, 2.8vw, 2.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--bone); }
.kpis dt em { font-family: var(--f-accent); font-style: italic; font-weight: 300; color: var(--amber); }
.kpis dd { margin-top: .5rem; font-size: .9rem; line-height: 1.4; color: var(--mist); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .45rem .75rem; border: 1px solid var(--line-strong); border-radius: 999px; color: rgba(236,231,223,.85);
}
.ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn__meta { font-family: var(--f-mono); font-size: .68rem; font-weight: 400; letter-spacing: .04em; color: var(--mist); }
.fineprint { font-size: .85rem; color: var(--mist); }

/* Browser style frame that rotates through dashboard pages */
.frame {
  border-radius: 14px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(92,198,232,.06);
}
.frame__bar { display: flex; align-items: center; gap: .45rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: #0f1820; }
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(236,231,223,.18); }
.frame__bar span { margin-left: .8rem; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame__screen { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--ink); }
.frame__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease-io); }
.frame__screen img.is-on { opacity: 1; }
.pp-tour { padding-bottom: clamp(4rem, 10vh, 7rem); }
.pp-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.pp-tabs button {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--mist);
  transition: color .3s, border-color .3s, background-color .3s;
}
.pp-tabs button:hover { color: var(--bone); }
.pp-tabs button[aria-selected="true"] { color: var(--ink); background: var(--teal-glow); border-color: var(--teal-glow); }
.pp-caption { margin-top: .9rem; color: var(--mist); min-height: 3em; max-width: 70ch; }

.pp-sec { padding: clamp(4.5rem, 11vh, 8rem) 0; border-top: 1px solid var(--line); }
.pp-sec--alt { background: var(--midnight); }
.pp-two { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 5rem); }
.pp-h { font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 800; letter-spacing: -.045em; line-height: .98; text-transform: uppercase; margin-top: .8rem; }
.pp-h em { font-family: var(--f-accent); font-style: italic; font-weight: 300; text-transform: none; color: var(--amber); }
.pp-body p { font-size: var(--fs-md); line-height: 1.55; color: rgba(236,231,223,.82); max-width: 60ch; }
.pp-body p + p { margin-top: 1.1rem; }

.pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.4rem; counter-reset: step; }
.pipe li { position: relative; padding: 1.4rem; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); }
.pipe li::before { counter-increment: step; content: "0" counter(step); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; color: var(--amber); }
.pipe li:not(:last-child)::after { content: "\2192"; position: absolute; right: -.95rem; top: 50%; transform: translateY(-50%); color: var(--teal-glow); font-size: 1.1rem; z-index: 1; }
.pipe h3 { margin-top: .6rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.pipe p { margin-top: .4rem; font-size: .9rem; line-height: 1.45; color: var(--mist); }

/* Interactive markdown planner */
.planner-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-top: clamp(2.5rem, 6vh, 4rem); }
.planner { padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line-strong); }
.planner__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.planner__head .label { color: var(--mist); }
.planner__md { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--bone); }
.planner__md small { font-size: .35em; font-weight: 400; letter-spacing: .02em; color: var(--mist); margin-left: .4rem; }
.planner__range { width: 100%; margin: 1.4rem 0 .4rem; accent-color: var(--amber); height: 28px; cursor: pointer; }
.planner__ticks { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .66rem; color: var(--mist); }
.planner__bars { display: grid; gap: 1.1rem; margin-top: 2rem; }
.planner__row { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; color: rgba(236,231,223,.85); }
.planner__row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.planner__bar { height: 14px; margin-top: .45rem; border-radius: 999px; background: rgba(236,231,223,.06); overflow: hidden; }
.planner__bar i { display: block; height: 100%; border-radius: inherit; transition: width .6s var(--ease-out); }
.planner__bar--wait i { background: var(--amber); width: 100%; }
.planner__bar--act i { background: var(--teal-glow); }
.planner__saved { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line-strong); }
.planner__num { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--amber); font-variant-numeric: tabular-nums; }
.planner__lbl { color: var(--mist); font-size: .92rem; }
.planner__note { margin-top: 1.2rem; font-size: .82rem; line-height: 1.5; color: var(--mist); }
.planner__note button { color: var(--teal-glow); text-decoration: underline; text-underline-offset: 3px; }

.code {
  margin-top: 2rem; padding: 1.4rem 1.6rem; overflow-x: auto;
  background: #0b1117; border: 1px solid var(--line-strong); border-radius: 14px;
  font-family: var(--f-mono); font-size: .82rem; line-height: 1.65; color: rgba(236,231,223,.85); white-space: pre;
}
.code b { color: var(--teal-glow); font-weight: 500; }
.code u { text-decoration: none; color: var(--amber); }
.finds { border-top: 1px solid var(--line-strong); }
.finds li { display: grid; grid-template-columns: 7rem 1fr; gap: 1.5rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.finds strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; color: var(--amber); }
.finds span { color: rgba(236,231,223,.82); line-height: 1.5; }
.pp-end { padding: clamp(5rem, 12vh, 8rem) 0; text-align: center; border-top: 1px solid var(--line); }
.pp-end .tags, .pp-end .ctas { justify-content: center; }
.pp-end .tags { margin-top: 1.2rem; }
.pp-end .ctas { margin-top: 2rem; }
.pp-foot { padding: 2rem var(--gutter); border-top: 1px solid var(--line); font-size: .85rem; color: var(--mist); text-align: center; }

@media (max-width: 900px) {
  .pp-two, .planner-wrap { grid-template-columns: minmax(0, 1fr); }
  .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe li::after { display: none; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr; }
  .kpis div, .kpis div + div { padding: 1rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .pipe { grid-template-columns: 1fr; }
  .finds li { grid-template-columns: 1fr; gap: .3rem; }
}
