/* ==========================================================================
   Simon Parker — personal brand site
   Tokens → base → components → sections → motion/responsive
   ========================================================================== */

:root {
  /* Colour */
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --ink: #101828;
  --navy: #0B1220;
  --navy-2: #121B2E;
  --ink-soft: #6B7280;
  --line: #E5E7EB;
  --accent: #3E8FFF;
  --accent-soft: rgba(62, 143, 255, .14);
  --on-dark: #F7F8FA;
  --on-dark-soft: rgba(247, 248, 250, .64);
  --line-dark: rgba(255, 255, 255, .1);

  /* Type */
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(48px, 8vw, 140px);
  --fs-h2: clamp(36px, 5.4vw, 88px);
  --fs-body: clamp(16px, 1.1vw, 18px);

  /* Space — 8px base */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px;
  --section-y: clamp(80px, 12vw, 160px);
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1320px;

  --radius: 4px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 1080px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 10px 16px; background: var(--ink); color: #fff; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: var(--on-dark); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: .95;
  letter-spacing: -.035em;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -.03em;
  max-width: 16ch;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--light { color: var(--on-dark-soft); }
.muted { color: var(--ink-soft); }
.accent { color: var(--accent); }
.section-head { margin-bottom: clamp(48px, 7vw, 96px); display: grid; gap: var(--s3); }

/* Split-text internals (built by script.js) */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word > span { display: inline-block; will-change: transform; }

/* ---------- Grain + cursor ---------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 100; pointer-events: none;
  opacity: .045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
  .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 150; }
  .cursor__dot, .cursor__ring {
    position: fixed; top: 0; left: 0; border-radius: 50%;
    transform: translate3d(-100px, -100px, 0);
    mix-blend-mode: difference;
  }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
  .cursor__ring {
    width: 36px; height: 36px; margin: -18px 0 0 -18px;
    border: 1px solid rgba(255, 255, 255, .8);
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s var(--ease);
  }
  .cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, .08); }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Link + buttons ---------- */
.link-draw { position: relative; }
.link-draw::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.link-draw:hover::after, .link-draw:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.btn {
  --btn-bg: transparent;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 0 32px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 16px; letter-spacing: -.005em;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover, .btn--light:focus-visible { color: #fff; }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .4); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(255, 255, 255, .06); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--accent); }

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: var(--radius);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  padding: 14px var(--gutter);
  opacity: 0; transform: translateY(-100%);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.nav.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.nav__inner {
  max-width: calc(var(--maxw) - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 12px 0 20px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(16, 24, 40, .08);
  border-radius: var(--radius);
}
.nav__inner, .nav__logo, .nav__links { transition: background-color .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease); }
.nav.is-dark .nav__inner { background: rgba(11, 18, 32, .62); border-color: var(--line-dark); color: #fff; }
.nav.is-dark .nav__bars, .nav.is-dark .nav__bars::before, .nav.is-dark .nav__bars::after { background: #fff; }
.nav__logo { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.04em; }
.nav__logo span { color: var(--accent); }
.nav__links { display: flex; gap: 36px; font-size: 14px; font-weight: 500; padding-right: 12px; }
.nav__toggle { display: none; }

.mobile-menu { display: none; }

/* ---------- Media (video + fallback) ---------- */
.media { position: relative; overflow: hidden; }
.media__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.media.is-ready .media__video { opacity: 1; }
.media.is-poster .media__video { opacity: 1; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--navy); color: #fff; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 70% 42%, rgba(62, 143, 255, .22), transparent 70%),
    radial-gradient(40% 40% at 20% 80%, rgba(62, 143, 255, .08), transparent 70%),
    linear-gradient(180deg, #0E1729 0%, var(--navy) 100%);
}
.hero__fallback::after { /* hairline grid */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(70% 60% at 60% 45%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 60% at 60% 45%, #000, transparent);
}
.orbit {
  position: absolute; width: min(95vw, 1100px); height: auto;
  right: -8vw; top: 50%; transform: translateY(-55%);
}
.orbit__rings { stroke-width: 1; }
.orbit__rings, .orbit__sats { transform-origin: 400px 400px; }
.orbit__sats { animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 18, 32, .72) 0%, rgba(11, 18, 32, .2) 55%, transparent 100%),
    linear-gradient(0deg, rgba(11, 18, 32, .85) 0%, transparent 45%);
}
.hero__top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; font-size: 14px; font-weight: 500; z-index: 2;
}
.hero__mark { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; font-size: 16px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
  background: rgba(255, 255, 255, .06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13px; color: rgba(255, 255, 255, .86);
}
.status-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.hero__content { position: relative; z-index: 2; padding-bottom: clamp(96px, 14vh, 160px); display: grid; gap: var(--s4); }
.hero__title { line-height: 1.04; }
.hero__title .line { display: block; }
.hero__title .line + .line { margin-top: .06em; }
.hero__title .line--accent { color: rgba(255, 255, 255, .5); }
.hero__sub { max-width: 44ch; font-size: clamp(17px, 1.35vw, 21px); color: rgba(255, 255, 255, .78); line-height: 1.55; }

.scroll-cue {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
}
.scroll-cue__label { writing-mode: vertical-rl; }
.scroll-cue__line { width: 1px; height: 64px; background: rgba(255, 255, 255, .2); position: relative; overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%;
  background: var(--accent); animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ---------- 2. Stats ---------- */
.stats { padding-block: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.stats__list { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat {
  position: relative; padding: 8px clamp(16px, 3vw, 48px);
  display: grid; gap: 12px; align-content: start;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 4.6vw, 76px); line-height: 1; letter-spacing: -.04em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.5; max-width: 22ch; }

/* ---------- 3. Mission ---------- */
.mission .eyebrow { margin-bottom: var(--s5); }
.mission__quote {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 3.9vw, 60px); line-height: 1.12; letter-spacing: -.025em;
}
.mission__quote .w { transition: none; }

/* ---------- 4. Pillars ---------- */
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg); position: relative; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.pillar { padding: clamp(28px, 3vw, 48px); display: flex; flex-direction: column; gap: var(--s2); min-height: 460px; }
.pillar__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--s5); }
.pillar__icon { width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s var(--ease); }
.pillar__index { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.pillar__title { font-family: var(--font-display); font-size: clamp(24px, 2.1vw, 32px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.pillar__platforms { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--accent); }
.pillar__desc { color: var(--ink-soft); }
.proofs { margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; }
.proofs strong { font-family: var(--font-display); color: var(--ink); margin-right: 6px; }

/* ---------- 5. Work ---------- */
.work { overflow: hidden; }
.work::before { /* soft navy glow */
  content: ""; position: absolute; width: 900px; height: 900px; left: -300px; top: 10%;
  background: radial-gradient(closest-side, rgba(62, 143, 255, .16), transparent);
  pointer-events: none;
}
.section-head--light .section-title { color: #fff; }
.work > .container { position: relative; z-index: 1; }
.work__bg { position: absolute; inset: 0; pointer-events: none; }
.work__bg .media__video { filter: saturate(.8); }
.work__bg.is-ready .media__video { opacity: .22; }
.work__layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; position: relative; }
.work__sub { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: var(--s4); }
.work__sub--cases { margin-top: clamp(80px, 10vw, 140px); }

.process { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: var(--s6); border: 1px solid var(--line-dark); border-radius: var(--radius); }
.process li {
  flex: 1 1 auto; text-align: center; padding: 14px 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #fff;
  position: relative;
}
.process li + li { border-left: 1px solid var(--line-dark); }
.process li::before { content: counter(step, decimal-leading-zero); counter-increment: step; display: block; font-size: 10px; color: var(--accent); margin-bottom: 2px; }
.process { counter-reset: step; }

.principles { display: grid; gap: var(--s4); }
.principles li { padding-top: var(--s4); border-top: 1px solid var(--line-dark); color: var(--on-dark-soft); font-size: 17px; }
.principles strong { display: block; color: #fff; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 6px; }

/* Cases */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.case { padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; gap: var(--s2); transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease); }
.case__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-soft); }
.case__meta span:first-child { color: var(--accent); }
.case__title { font-family: var(--font-display); font-size: clamp(22px, 1.9vw, 28px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.case__body { color: var(--on-dark-soft); font-size: 16px; }
.case__results { margin-top: auto; padding-top: var(--s3); border-top: 1px solid var(--line-dark); display: flex; gap: var(--s5); }
.case__results dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-soft); }
.case__results dd { font-family: var(--font-display); font-size: clamp(32px, 3vw, 44px); font-weight: 700; letter-spacing: -.04em; color: #fff; line-height: 1.1; }

/* ---------- 6. Story ---------- */
.story__layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 8vw, 128px); align-items: start; }
.story__head { position: sticky; top: 120px; display: grid; gap: var(--s3); }
.story__intro { color: var(--ink-soft); max-width: 34ch; }
.timeline { position: relative; padding-left: 40px; display: grid; gap: clamp(48px, 6vw, 80px); }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline__progress { position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; }
.timeline__progress span { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 1)); }
.tl { position: relative; display: grid; gap: 8px; }
.tl::before {
  content: ""; position: absolute; left: -40px; top: 6px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--ink-soft);
}
.tl--now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.tl__when { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tl__title { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 36px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.tl p { color: var(--ink-soft); max-width: 48ch; }
.story__bridge {
  margin-top: clamp(80px, 10vw, 140px);
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  font-size: clamp(24px, 3vw, 44px); letter-spacing: -.02em; color: var(--ink);
}

/* ---------- 7. CTA ---------- */
.cta {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: var(--navy); color: #fff; overflow: hidden;
}
.cta__media { position: absolute; inset: 0; }
.corridor {
  position: absolute; inset: 0; perspective: 600px; overflow: hidden;
  background: radial-gradient(50% 60% at 50% 55%, rgba(62, 143, 255, .18), transparent 70%), linear-gradient(180deg, #0F1A2F, var(--navy));
}
.corridor__floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 70%;
  transform: rotateX(72deg); transform-origin: bottom;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 100% 60px, 80px 100%;
  animation: floor 3.2s linear infinite;
  mask-image: linear-gradient(0deg, #000 10%, transparent 90%);
  -webkit-mask-image: linear-gradient(0deg, #000 10%, transparent 90%);
}
@keyframes floor { to { background-position: 0 60px, 0 0; } }
.corridor__strip { position: absolute; top: 12%; bottom: 12%; width: 2px; background: linear-gradient(180deg, transparent, var(--accent), transparent); opacity: .6; }
.corridor__strip--l { left: 56%; transform: skewY(-8deg); opacity: .35; }
.corridor__strip--r { right: 10%; transform: skewY(8deg); }
.corridor__glow { position: absolute; left: 72%; top: 50%; width: 22vw; height: 40vh; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 255, 255, .16), transparent); }
.cta__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 18, 32, .85) 0%, rgba(11, 18, 32, .45) 60%, rgba(11, 18, 32, .2) 100%); }
.cta__content { position: relative; z-index: 2; padding-block: var(--section-y); display: grid; gap: var(--s4); }
.cta__title { font-size: clamp(40px, 6.2vw, 108px); max-width: 15ch; }
.cta__sub { font-size: clamp(17px, 1.4vw, 21px); color: rgba(255, 255, 255, .78); max-width: 46ch; }
.cta__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: var(--s2); margin-top: var(--s2); }

/* ---------- 8. Footer ---------- */
.footer { background: var(--navy); color: var(--on-dark-soft); border-top: 1px solid var(--line-dark); padding-block: var(--s10) var(--s5); font-size: 15px; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: var(--s6); }
.footer__name { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.footer__tag { margin-top: 4px; }
.footer__links { display: grid; gap: 10px; justify-items: end; color: #fff; }
.footer__base { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; padding-top: var(--s4); border-top: 1px solid var(--line-dark); font-size: 13px; }
.back-top { color: #fff; }
.back-top span { display: inline-block; transition: transform .4s var(--ease); }
.back-top:hover span { transform: translateY(-4px); }

/* ---------- Hover: lift + border-glow (desktop only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .pillar:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--accent), 0 24px 60px -24px rgba(62, 143, 255, .45); z-index: 1; }
  .pillar:hover .pillar__icon { stroke: var(--accent); }
  .case:hover { transform: translateY(-6px); border-color: rgba(62, 143, 255, .6); box-shadow: 0 24px 60px -30px rgba(62, 143, 255, .6); }
}

/* ---------- Pre-animation states (only when JS + GSAP are running) ---------- */
html.js.anim [data-split] { visibility: hidden; }
html.js.anim.split-ready [data-split] { visibility: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .work__layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav { opacity: 1; transform: none; pointer-events: auto; padding: 10px 12px; }
  .nav:not(.is-visible) .nav__inner { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav:not(.is-visible) .nav__logo { opacity: 0; }
  .nav:not(.is-visible) .nav__bars, .nav:not(.is-visible) .nav__bars::before, .nav:not(.is-visible) .nav__bars::after { background: #fff; }
  .nav__inner { height: 52px; padding: 0 6px 0 16px; }
  .nav__links { display: none; }
  .nav__toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 0; padding: 0; color: inherit; cursor: pointer;
  }
  .nav__bars, .nav__bars::before, .nav__bars::after {
    display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative;
    transition: transform .4s var(--ease), background-color .3s;
  }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
  .nav__bars::before { top: -6px; } .nav__bars::after { top: 6px; }
  .nav.menu-open .nav__bars { background: transparent !important; }
  .nav.menu-open .nav__bars::before { transform: translateY(6px) rotate(45deg); background: #fff; }
  .nav.menu-open .nav__bars::after { transform: translateY(-6px) rotate(-45deg); background: #fff; }
  .nav.menu-open .nav__inner { background: transparent; border-color: transparent; }
  .nav.menu-open .nav__logo { color: #fff; opacity: 1; }

  .hero__top .hero__mark { visibility: hidden; }
  .hero__top { justify-content: flex-start; padding-top: 18px; }

  .mobile-menu {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; inset: 0; z-index: 85;
    background: var(--navy); color: #fff;
    padding: 120px var(--gutter) 40px;
    transform: translateX(100%); transition: transform .6s var(--ease);
  }
  .mobile-menu[hidden] { display: flex; visibility: hidden; }
  .mobile-menu.is-open { transform: none; visibility: visible; }
  .mobile-menu nav { display: grid; gap: 8px; }
  .mobile-menu nav a { font-family: var(--font-display); font-size: 48px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
  .mobile-menu__foot { color: var(--on-dark-soft); font-size: 14px; }

  .scroll-cue { display: none; }

  /* Stats → horizontal scroll-snap cards */
  .stats .container { padding-inline: 0; }
  .stats__list {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .stats__list::-webkit-scrollbar { display: none; }
  .stat, .stat:first-child {
    flex: 0 0 72%; align-content: start; scroll-snap-align: start; padding: 24px;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt);
  }
  .stat + .stat { border-left: 1px solid var(--line); }

  .pillars__grid { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
  .cases { grid-template-columns: 1fr; }
  .process li { flex: 1 1 33%; }
  .process li:nth-child(4) { border-left: 0; }
  .process li:nth-child(n+4) { border-top: 1px solid var(--line-dark); }

  .story__layout { grid-template-columns: 1fr; }
  .story__head { position: relative; top: 0; }

  .cta { align-items: flex-end; }
  .cta__actions { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-items: start; }
  .footer__base { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  .grain { animation: none; }
  html.js.anim [data-split] { visibility: visible; }
}
