@charset "UTF-8";
/* ==========================================================================
   leoliebenberg.com — v3
   One point cloud, six chapters. Dark, Trevern teal, zero dependencies.

   Structure:
     01 fonts · 02 tokens · 03 reset · 04 type · 05 layout · 06 canvas/stage
     07 nav · 08 hero · 09 reveal · 10 components · 11 footer
     12 reduced-motion · 13 print

   Rules that are load-bearing, not taste:
   - Section surfaces stay TRANSLUCENT. An opaque panel walls off the WebGL
     field and reads as a dead black slab. (v2 gotcha 3 — do not "fix" this.)
   - Only transform and opacity animate. Never `transition: all`.
   - Canvas is 100lvh, never dvh (dvh re-resolves on every URL-bar collapse).
   - Every cursor effect is gated on (hover:hover) and (pointer:fine) in JS,
     not just here — CSS media queries do not govern rAF code.
   ========================================================================== */

/* ── 01 · FONTS ─────────────────────────────────────────────────────────── */
/* Self-hosted variable woff2. Never load these from a CDN: a third-party font
   host is a render-blocking dependency and a privacy leak on a personal site. */
@font-face {
  font-family: 'Clash Display';
  src: url('/fonts/clash-display-var.woff2') format('woff2-variations');
  font-weight: 200 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/satoshi-var.woff2') format('woff2-variations');
  font-weight: 300 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-var.woff2') format('woff2-variations');
  font-weight: 100 800; font-style: normal; font-display: swap;
}

/* ── 02 · TOKENS ────────────────────────────────────────────────────────── */
:root {
  /* Primitives. Never referenced directly outside this block. */
  --c-ink:        #05070A;
  --c-ink-lift:   #080B10;
  --c-bone:       #E6EDEB;
  --c-dim:        #8A9995;
  --c-faint:      #6E7D78;
  --c-teal:       #19B194;
  --c-mint:       #5FD8C1;
  --c-on-teal:    #04241E;

  /* Semantic. Everything below uses these.
     Measured contrast on --c-ink: bone 17.0:1 · mint 11.6:1 · teal 7.5:1 ·
     dim 6.8:1 · faint 4.7:1 · on-teal against teal 6.1:1.
     --c-faint was #56635F (3.2:1) and carried real text — the footer headings,
     the copyright line and the scroll hint — so it failed AA on a page that
     lists accessibility as a discipline. Nothing here may drop below 4.5:1. */
  --bg:           var(--c-ink);
  --fg:           var(--c-bone);
  --fg-dim:       var(--c-dim);
  --fg-faint:     var(--c-faint);
  --accent:       var(--c-teal);
  --accent-hi:    var(--c-mint);
  --on-accent:    var(--c-on-teal);
  --hairline:     rgb(230 237 235 / .12);
  --hairline-hi:  rgb(25 177 148 / .34);
  /* Translucent so the field reads through. See header note. */
  /* Card surfaces. Raised from .58/.72 on 2026-08-16: the background is now a
     sequence of scenes, and the circuit-trace one puts bright teal lines
     directly behind card copy. At .58 the small dim text measured 4.1:1 over a
     lit trace — under AA, and visibly hard to read. At .86 it is back above 6:1
     on any scene.
     The "surfaces stay translucent" rule still holds: motion is clearly visible
     through these, just muted. That rule exists to stop a panel reading as a
     dead black slab — it was never a licence to put body copy on 4:1. */
  --surface:      rgb(6 10 12 / .86);
  --surface-hi:   rgb(12 20 22 / .93);

  /* Type */
  --f-display: 'Clash Display', ui-sans-serif, system-ui, sans-serif;
  --f-body:    'Satoshi', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Fluid scale. rem + vw so browser zoom still works (bare vw fails WCAG 1.4.4).
     Headings cap at ≤2× their min. */
  --t-hero:  clamp(3rem,   min(2.1rem + 5.6vw, 13svh), 6.5rem);
  --t-h2:    clamp(2rem,   1.55rem + 2.25vw, 3.75rem);
  --t-h3:    clamp(1.25rem, 1.13rem + 0.6vw, 1.75rem);
  --t-lead:  clamp(1.125rem, 1.04rem + 0.42vw, 1.4375rem);
  --t-body:  clamp(1rem,   0.96rem + 0.18vw, 1.125rem);
  --t-small: clamp(0.875rem, 0.86rem + 0.08vw, 0.9375rem);
  --t-mono:  clamp(0.6875rem, 0.67rem + 0.09vw, 0.75rem);

  /* Space */
  --sp-3xs: .25rem; --sp-2xs: .5rem;  --sp-xs: .75rem; --sp-s: 1rem;
  --sp-m: 1.5rem;   --sp-l: 2.25rem;  --sp-xl: 3.5rem;
  --sp-2xl: clamp(4rem, 2.6rem + 7vw, 9rem);
  --sp-3xl: clamp(6rem, 3.5rem + 11vw, 14rem);
  --shell: 72rem;
  --measure: 68ch;

  /* Motion. Entrances ease-out, exits ease-in, linear only for scrubbed motion. */
  --e-expo:   cubic-bezier(.16, 1, .3, 1);
  --e-quint:  cubic-bezier(.22, 1, .36, 1);
  --e-soft:   cubic-bezier(.65, 0, .35, 1);
  --e-spring: cubic-bezier(.34, 1.56, .64, 1);
  --d-fast: 150ms; --d-mid: 250ms; --d-slow: 400ms; --d-reveal: 640ms;

  --radius: 14px;
  --z-canvas: 0; --z-content: 2; --z-nav: 60; --z-cursor: 90;
  color-scheme: dark;
}

/* ── 03 · RESET ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--t-body)/1.65 var(--f-body);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection { background: var(--accent); color: var(--on-accent); }

/* Grain. Functional on a dark site — it kills gradient banding. Never animated
   (battery), never above .06 opacity (reads as a dirty screen). */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 50; pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}

.skip {
  position: absolute; left: var(--sp-s); top: -100%;
  z-index: 200; padding: var(--sp-xs) var(--sp-s);
  background: var(--accent); color: var(--on-accent);
  border-radius: 8px; font: 600 var(--t-small)/1 var(--f-body);
  transition: top var(--d-fast) var(--e-quint);
}
.skip:focus { top: var(--sp-s); }

.vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ── 04 · TYPE ──────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: var(--t-hero); font-weight: 400; letter-spacing: -.045em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -.02em; line-height: 1.18; }

p { text-wrap: pretty; }
p + p { margin-top: var(--sp-s); }

.lead  { font-size: var(--t-lead); line-height: 1.5; color: var(--fg); }
.dim   { color: var(--fg-dim); }
.measure { max-width: var(--measure); }

.kick {
  display: flex; align-items: center; gap: var(--sp-2xs);
  font: 500 var(--t-mono)/1 var(--f-mono);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-hi);
}
.kick::before {
  content: ''; width: 1.75rem; height: 1px;
  background: currentColor; opacity: .55; flex: none;
}

.mono { font: 400 var(--t-mono)/1.6 var(--f-mono); letter-spacing: .08em; color: var(--fg-dim); }
.num  { font-variant-numeric: tabular-nums; }

/* Inline links: underline grows from the left, exits to the right, so the line
   sweeps through rather than retracting. Works across line breaks — a
   pseudo-element underline does not. */
.prose a, .lnk {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 1px;
  transition: background-size var(--d-mid) var(--e-quint), color var(--d-fast) linear;
  color: var(--accent-hi);
  padding-bottom: 1px;
}
.prose a:hover, .lnk:hover { background-size: 100% 1px; }
.prose a:not(:hover), .lnk:not(:hover) { background-position: right bottom; }

/* ── 05 · LAYOUT ────────────────────────────────────────────────────────── */
.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
  /* Grid and flex items default to min-width:auto, which means they refuse to
     shrink below their min-content width. One unbreakable heading then widens
     the whole column past the viewport and every child overflows with it.
     This guard is why that cannot happen again. */
  min-width: 0;
}
@media (min-width: 60rem) { .shell { width: min(100% - 6rem, var(--shell)); } }

.chapter {
  position: relative;
  z-index: var(--z-content);
  padding-block: var(--sp-3xl);
}
.chapter > .shell { position: relative; }

/* Two-column chapter head: label rail + content. Collapses at 60rem.
   Children MUST carry .col-rail / .col-body — an untagged child auto-places
   into one column and shatters. (v2 gotcha 2, guarded below.) */
.split { display: grid; gap: var(--sp-l); }
.split > * { min-width: 0; }
/* Long unbroken strings (an email address, a url) must break rather than
   widen the column. */
.hero__name, h1, h2 { overflow-wrap: break-word; }
@media (min-width: 60rem) {
  .split { grid-template-columns: 12rem minmax(0, 1fr); gap: var(--sp-2xl); align-items: start; }
  .col-rail { grid-column: 1; position: sticky; top: 7rem; }
  .col-body { grid-column: 2; }
  /* Guard: anything untagged spans the full row rather than collapsing to 1/12. */
  .split > *:not(.col-rail):not(.col-body) { grid-column: 1 / -1; }
}

.stack-s  > * + * { margin-top: var(--sp-s); }
.stack-m  > * + * { margin-top: var(--sp-m); }
.stack-l  > * + * { margin-top: var(--sp-l); }
.stack-xl > * + * { margin-top: var(--sp-xl); }

/* ── 06 · CANVAS / STAGE ────────────────────────────────────────────────── */
/* The field is fixed behind everything. 100lvh — with bare vh or dvh this
   rebuilds on every mobile URL-bar collapse and janks the whole page. */
#field {
  position: fixed; inset: 0;
  width: 100%; height: 100lvh;
  z-index: var(--z-canvas);
  pointer-events: none;
  /* Reserve the box before the renderer initialises so CLS stays 0. */
  background: radial-gradient(120% 90% at 50% 30%, #071012 0%, var(--bg) 62%);
  opacity: 0;
  transition: opacity 900ms var(--e-quint);
}
#field.lit { opacity: 1; }

/* One canvas per live scene, stacked and crossfaded by the director. Opacity
   and z-index are set inline per frame; the transition is deliberately NOT a
   CSS one — the director already eases the blend against scroll position, and
   a CSS transition on top of that fights it and lags the seam. */
.field__c {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  will-change: opacity;
}

/* Static fallback: painted when WebGL is unavailable or the device probes slow.
   Never a spinner — a personal site that could load instantly should. */
#field.static {
  background:
    radial-gradient(38% 30% at 28% 30%, rgb(25 177 148 / .18) 0%, transparent 62%),
    radial-gradient(34% 28% at 70% 46%, rgb(95 216 193 / .12) 0%, transparent 62%),
    radial-gradient(120% 90% at 50% 30%, #071012 0%, var(--bg) 62%);
  opacity: 1;
}

/* Vignette, floor wash, and — the load-bearing one — a directional scrim that
   darkens the field behind the text column while leaving it vivid on the
   right. Without this the copy sits on a bed of moving points and the contrast
   ratio is whatever the particles happen to be doing. The field is the
   backdrop; the words are the site. */
.stage-veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    /* Rebalanced for Silk Current (2026-08-16). The old values were tuned for
       a point cloud, where isolated points sat directly behind the copy and
       needed heavy suppression. The silk carries its own left-column dim ramp
       in field.js, so this can be lighter — at the old weights the flow was
       almost entirely smothered on desktop. The left end stays strong: that
       is what keeps the paragraph above AA over a moving background. */
    linear-gradient(90deg, rgb(2 3 5 / .88) 0%, rgb(2 3 5 / .68) 26%, rgb(2 3 5 / .18) 54%, transparent 76%),
    radial-gradient(84% 70% at 50% 42%, transparent 52%, rgb(2 3 5 / .46) 100%),
    linear-gradient(0deg, rgb(2 3 5 / .45) 0%, transparent 24%);
}
/* Narrow screens: text spans the full width, so a left-to-right scrim protects
   nothing. Flatten it to an even wash instead. */
@media (max-width: 60rem) {
  .stage-veil {
    background:
      linear-gradient(180deg, rgb(2 3 5 / .74) 0%, rgb(2 3 5 / .60) 46%, rgb(2 3 5 / .80) 100%),
      radial-gradient(90% 60% at 50% 40%, transparent 30%, rgb(2 3 5 / .55) 100%);
  }
}

/* Surfaces that sit over the field. Translucent, always. */
.panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* backdrop-filter is the one genuinely expensive effect here. Drop it where
   there is no hover pointer — that correlates well enough with mobile GPUs. */
@media (pointer: coarse) {
  .panel { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface-hi); }
}

/* ── 07 · NAV ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding-block: var(--sp-s);
  transition: transform var(--d-slow) var(--e-quint), background-color var(--d-slow) linear, border-color var(--d-slow) linear;
  border-bottom: 1px solid transparent;
}
.nav[data-stuck] {
  background: rgb(5 7 10 / .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--hairline);
}
.nav[data-hidden] { transform: translateY(-100%); }

.nav__in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-m); }
.nav__mark { display: flex; align-items: center; gap: var(--sp-2xs); color: var(--fg); flex: none; }
.nav__mark svg { width: 26px; height: 26px; color: var(--accent); transition: color var(--d-mid) var(--e-quint); }
.nav__mark:hover svg { color: var(--accent-hi); }
.nav__mark span { font: 500 var(--t-small)/1 var(--f-display); letter-spacing: -.01em; }

/* Below 56rem this was display:none with no hamburger behind it, which left a
   phone with a logo and no way to reach seven sections. It is a scroll strip
   instead: same markup, no menu state, no focus trap, nothing to get wrong. */
.nav__links {
  display: flex; gap: var(--sp-m); align-items: center;
  min-width: 0; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 1.5rem), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 1.5rem), transparent);
}
.nav__links::-webkit-scrollbar { display: none; }
/* Without these the flex children shrink and wrap their own text into two
   lines rather than overflowing, and a scroll container with nothing
   overflowing it does not scroll. */
.nav__links > a { flex: none; white-space: nowrap; }
/* Touch targets. The nav strip's links were ~19px tall — fine to click with a
   mouse, well under the 44px a thumb needs. Padding rather than height so the
   text stays optically centred against the logo. Coarse-pointer only: on
   desktop the extra height would push the header out of proportion. */
@media (pointer: coarse) {
  .nav__links > a { padding-block: .8rem; }
  .dock .btn { min-height: 44px; display: inline-flex; align-items: center; }
  .faq summary { min-height: 44px; }

  /* backdrop-filter over a CONTINUOUSLY repainting canvas re-blurs every
     frame. .panel already opted out on coarse pointers; .nav[data-stuck] and
     .dock are both fixed, full-width, and sit directly over the field — and
     the dock is coarse-pointer-exclusive, so its blur only ever ran on the
     devices least able to afford it. Solid surfaces instead. */
  .nav[data-stuck] { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(5 7 10 / .94); }
  .dock { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(5 7 10 / .96); }
}
/* The indicator is absolute against .nav, not against the strip, so it drifts
   the moment the strip scrolls. It is a desktop affordance — keep it there. */
@media (max-width: 55.99rem) { .nav__ind { display: none; } }
@media (min-width: 56rem) {
  .nav__links { overflow-x: visible; -webkit-mask-image: none; mask-image: none; }
}
.nav__links a {
  position: relative;
  font: 400 var(--t-mono)/1 var(--f-mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-dim);
  padding-block: var(--sp-3xs);
  transition: color var(--d-fast) linear;
}
.nav__links a:hover { color: var(--fg); }
.nav__links a[aria-current='true'] { color: var(--accent-hi); }
/* One travelling indicator rather than per-link colour swaps — the premium tell. */
.nav__ind {
  position: absolute; bottom: -2px; height: 1px;
  background: var(--accent-hi);
  transition: transform var(--d-slow) var(--e-soft), width var(--d-slow) var(--e-soft), opacity var(--d-mid) linear;
  opacity: 0; left: 0; width: 0;
  box-shadow: 0 0 10px var(--accent-hi);
}
.nav__ind.on { opacity: 1; }

/* Scroll progress. 2px, compositor-only. */
.prog {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: calc(var(--z-nav) + 1);
  background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform;
}
@supports (animation-timeline: scroll(root)) {
  @media (prefers-reduced-motion: no-preference) {
    .prog { animation: prog linear both; animation-timeline: scroll(root); }
    @keyframes prog { to { transform: scaleX(1); } }
  }
}

/* ── 08 · HERO ──────────────────────────────────────────────────────────── */
.hero {
  position: relative; z-index: var(--z-content);
  min-height: min(100svh, 54rem);
  display: grid; align-content: center;
  padding-block: clamp(7rem, 16vh, 11rem) var(--sp-2xl);
}
.hero__name {
  font-size: var(--t-hero);
  font-weight: 300;
  letter-spacing: -.05em;
  line-height: .94;
}
.hero__name b { font-weight: 600; color: var(--fg); }
.hero__role {
  margin-top: var(--sp-m);
  font: 400 var(--t-mono)/1.7 var(--f-mono);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-hi);
}
.hero__claim { margin-top: var(--sp-l); max-width: 46ch; }
.hero__cta { margin-top: var(--sp-xl); display: flex; flex-wrap: wrap; gap: var(--sp-s) var(--sp-m); align-items: center; }

/* Scroll hint. Stops after 5s of ambient motion — WCAG 2.2.2 applies to
   ambient drift too, and this one just ends rather than needing a control. */
.hero__hint {
  margin-top: var(--sp-2xl);
  display: flex; align-items: center; gap: var(--sp-2xs);
  font: 400 var(--t-mono)/1 var(--f-mono);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--fg-faint);
}
.hero__hint i {
  display: block; width: 1px; height: 2rem;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: hint 2.2s var(--e-soft) 3;
}
@keyframes hint { 0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .5 } 50% { transform: scaleY(1); opacity: 1 } }

/* ── 09 · REVEAL ────────────────────────────────────────────────────────── */
/* Everything defaults VISIBLE. The hidden state is applied only when JS has
   confirmed it can animate — no-JS and reduced-motion users see real content. */
.js [data-rise] { opacity: 0; transform: translateY(20px); }
.js [data-rise].in {
  opacity: 1; transform: none;
  transition: opacity var(--d-reveal) var(--e-expo), transform var(--d-reveal) var(--e-expo);
  transition-delay: calc(var(--i, 0) * var(--stagger, 90ms));
}

/* Per-line masked reveal for headings. Lines are wrapped by JS; the real text
   stays in an aria-label and the split spans are hidden from AT. */
.js .lines { }
.lines__l { display: block; overflow: hidden; }
.lines__i { display: block; }
/* will-change ONLY while the reveal is pending. Left on permanently it holds
   GPU memory for the life of the page across ~20 line boxes, for a one-shot
   transition that finishes in the first seconds. */
.js .lines:not(.in) .lines__i { will-change: transform; }
.js .lines .lines__i { transform: translateY(110%); }
.js .lines.in .lines__i {
  transform: none;
  transition: transform 820ms var(--e-expo);
  transition-delay: calc(var(--l, 0) * 95ms);
}

/* ── 10 · COMPONENTS ────────────────────────────────────────────────────── */

/* Buttons ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  display: inline-flex; align-items: center; gap: var(--sp-2xs);
  padding: .85rem 1.4rem;
  border: 0; border-radius: 100px;
  background: var(--btn-bg); color: var(--on-accent);
  font: 600 var(--t-small)/1 var(--f-body);
  letter-spacing: .01em;
  cursor: pointer;
  position: relative; isolation: isolate;
  transition: transform var(--d-fast) var(--e-quint), background-color var(--d-fast) linear;
  will-change: transform;
}
/* Glow via a pre-rendered pseudo-element opacity — transitioning box-shadow
   repaints on every frame. Reserved for the primary CTA only; if everything
   glows, nothing does. */
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  box-shadow: 0 0 14px rgb(25 177 148 / .5), 0 0 46px -10px rgb(25 177 148 / .4);
  opacity: 0; transition: opacity var(--d-mid) linear;
}
.btn:hover { --btn-bg: var(--accent-hi); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(.98); }
.btn i { transition: transform var(--d-mid) var(--e-quint); }
.btn:hover i { transform: translateX(3px); }

.btn--ghost {
  background: transparent; color: var(--fg);
  border: 1px solid var(--hairline);
  transition: transform var(--d-fast) var(--e-quint), border-color var(--d-mid) linear, background-color var(--d-mid) linear;
}
.btn--ghost::after { display: none; }
.btn--ghost:hover { border-color: var(--hairline-hi); background: rgb(25 177 148 / .07); }

/* Ticker ----------------------------------------------------------------- */
/* Two identical copies translating to -50% — that pairing is what makes the
   loop seamless. Animating to -100% shows the jump. */
.ticker {
  position: relative; z-index: var(--z-content);
  overflow: hidden;
  border-block: 1px solid var(--hairline);
  padding-block: var(--sp-s);
  background: rgb(5 7 10 / .4);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: tick var(--tick-dur, 42s) linear infinite; }
.ticker__track > * { display: flex; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker li {
  display: flex; align-items: center; gap: var(--sp-s);
  padding-inline: var(--sp-m);
  font: 400 var(--t-mono)/1 var(--f-mono);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-dim); white-space: nowrap;
}
.ticker li::after { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); opacity: .7; }

/* Rule cards ------------------------------------------------------------- */
.cards { display: grid; gap: var(--sp-s); }
@media (min-width: 44rem) { .cards { grid-template-columns: repeat(2, 1fr); gap: var(--sp-m); } }

.card {
  position: relative; isolation: isolate; overflow: hidden;
  padding: var(--sp-m);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface);
  /* Layered hover: three properties at three speeds. One property reads flat,
     all at the same speed reads cheap. Leave is slower than enter. */
  transition:
    transform var(--d-slow) var(--e-quint),
    border-color var(--d-slow) linear,
    background-color var(--d-slow) linear;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-4px);
    border-color: var(--hairline-hi);
    background: var(--surface-hi);
    transition-duration: var(--d-fast), var(--d-fast), var(--d-mid);
  }
  /* Sheen sweep. Pure transform, one layer, no repaint. */
  .card::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(105deg, transparent 38%, rgb(95 216 193 / .10) 50%, transparent 62%);
    transform: translateX(-120%);
    transition: transform 900ms var(--e-quint);
  }
  .card:hover::before { transform: translateX(120%); }
}
.card__ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: var(--sp-s); }
.card h3 { margin-bottom: var(--sp-2xs); }
.card p { color: var(--fg-dim); font-size: var(--t-small); }

/* Scrim for bare text on the field --------------------------------------- */
/* Cards have a surface to sit on; prose, data rows and the pull quote do not,
   so a bright trace or a passing pulse runs straight through the words. The
   veil only protects the LEFT column, and these blocks extend well to the
   right of it.
   A radial wash rather than a panel: opaque enough under the text to hold
   contrast, feathered to nothing at the edges so it never reads as a box and
   the scene still moves visibly around it. -1 z-index keeps it behind the
   text without needing a wrapper element. */
.prose, .pull, .faq { position: relative; isolation: isolate; }
.prose::before, .pull::before, .faq::before {
  content: '';
  position: absolute;
  inset: -1.1rem -1.6rem;
  z-index: -1;
  border-radius: 20px;
  background: radial-gradient(115% 100% at 45% 50%, rgb(5 7 10 / .86) 48%, rgb(5 7 10 / .55) 74%, transparent 100%);
}

/* Jobs ------------------------------------------------------------------- */
/* The four jobs were one 60-word paragraph. As prose a reader skims all four;
   as four objects they stop on the one that is theirs. Numbered because the
   order is the sequence of a job going wrong, not a ranking. */
.jobs { list-style: none; display: grid; gap: var(--sp-xs); counter-reset: none; }
@media (min-width: 44rem) { .jobs { grid-template-columns: repeat(2, 1fr); gap: var(--sp-s); } }

.job {
  position: relative; isolation: isolate; overflow: hidden;
  min-width: 0;
  padding: var(--sp-s) var(--sp-m);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface);
  transition:
    transform var(--d-slow) var(--e-quint),
    border-color var(--d-slow) linear,
    background-color var(--d-slow) linear;
}
/* A hairline that runs the left edge and fills on hover — the cheapest way to
   make four cards feel like a system rather than four boxes. */
.job::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-hi));
  transform: scaleY(0); transform-origin: 50% 0;
  transition: transform var(--d-slow) var(--e-quint);
}
.job__n {
  display: block;
  font: 500 var(--t-mono)/1 var(--f-mono);
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: var(--sp-2xs);
}
.job h3 { font-size: var(--t-h3); margin-bottom: var(--sp-3xs); }
.job p  { color: var(--fg-dim); font-size: var(--t-small); }

@media (hover: hover) and (pointer: fine) {
  .job:hover { border-color: rgb(230 237 235 / .22); background: var(--surface-hi, var(--surface)); }
  .job:hover::before { transform: scaleY(1); }
}

/* Stats ------------------------------------------------------------------ */
/* Carries the scale claim that used to sit mid-paragraph where it was skipped.
   Every value is one already stated in the copy — no invented precision, and
   deliberately no counting-up number, because there is no exact figure this
   page is allowed to stand behind. */
.stats { display: grid; gap: var(--sp-xs); }
@media (min-width: 50rem) { .stats { grid-template-columns: repeat(3, 1fr); gap: var(--sp-s); } }

.stat {
  min-width: 0;
  padding: var(--sp-m) var(--sp-s);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface);
  transition: transform var(--d-slow) var(--e-quint), border-color var(--d-slow) linear;
}
.stat dt {
  font: 400 var(--t-h3)/1.1 var(--f-display);
  letter-spacing: -.02em;
  color: var(--accent-hi);
  margin-bottom: var(--sp-2xs);
}
.stat dd { margin: 0; color: var(--fg-dim); font-size: var(--t-small); line-height: 1.5; }

/* Assertion -------------------------------------------------------------- */
.assert {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2xs) var(--sp-s);
  padding: var(--sp-s) var(--sp-m);
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgb(25 177 148 / .07), transparent 70%);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.assert span { font-size: var(--t-small); }
.assert em {
  font-style: normal;
  font: 400 var(--t-mono)/1.4 var(--f-mono);
  color: var(--fg-dim);
}

/* Pull quote ------------------------------------------------------------- */
.pull {
  max-width: 34rem;
  font: 400 var(--t-lead)/1.5 var(--f-body);
  color: var(--fg-dim);
  padding-left: var(--sp-m);
  border-left: 1px solid var(--hairline);
}
.pull b { color: var(--fg); font-weight: 500; }

/* Portrait --------------------------------------------------------------- */
/* Closing two-up: prose and portrait share the last row of the section. The
   portrait is the narrower column — it is a sign-off, not the subject. Below
   60rem it stacks and the image caps its height so a 4:5 portrait cannot eat
   a whole phone screen on the way past. */
.close { display: grid; gap: var(--sp-l); align-items: start; }
@media (min-width: 60rem) {
  .close {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: var(--sp-xl);
    align-items: center;
  }
}

.plate {
  position: relative;
  max-width: 22rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.plate img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(.35) contrast(1.03); }
@media (max-width: 60rem) {
  /* On a phone the portrait is a landscape-ish crop rather than a full 4:5
     column — the tall version pushed the next section a full screen away.
     Must come AFTER the base rule: same specificity, so source order decides. */
  .plate { max-width: 100%; }
  .plate img { aspect-ratio: 4/3; object-position: 50% 30%; }
}
.plate::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgb(5 7 10 / .55), transparent 46%),
              radial-gradient(90% 70% at 70% 10%, rgb(25 177 148 / .14), transparent 62%);
}

/* FAQ -------------------------------------------------------------------- */
/* Real <details>, and every answer is in the HTML whether open or not.
   Marking up an answer that only exists after a click is a structured-data
   violation — and AI crawlers do not run JS to open it. */
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-m);
  padding-block: var(--sp-m);
  cursor: pointer; list-style: none;
  font: 500 var(--t-h3)/1.25 var(--f-display);
  letter-spacing: -.02em;
  transition: color var(--d-fast) linear;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-hi); }
.faq summary i {
  flex: none; width: 1rem; height: 1rem; margin-top: .35rem;
  position: relative;
}
.faq summary i::before, .faq summary i::after {
  content: ''; position: absolute; inset: 50% 0 auto 0;
  height: 1px; background: var(--accent);
  transition: transform var(--d-mid) var(--e-soft);
}
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details > div { padding-bottom: var(--sp-m); color: var(--fg-dim); max-width: var(--measure); }

/* Contact ---------------------------------------------------------------- */
.mailto {
  display: inline-block;
  font-family: var(--f-display);
  /* The floor was 1.5rem, which is wider than a 320px screen can hold: the
     address broke mid-word as "…icloud.co / m", which reads as a bug rather
     than a wrap. Clash Display is a wide face — 24 characters need roughly
     12x the font size in width, so the floor has to clear that at 320px. */
  font-size: clamp(0.95rem, 0.55rem + 3.2vw, 3rem);
  /* If it ever does have to wrap, break at the @ rather than mid-domain. */
  word-break: break-word;
  font-weight: 400; letter-spacing: -.035em;
  line-height: 1.1;
  color: var(--fg);
  overflow-wrap: anywhere;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-position: left bottom;
  background-size: 0% 2px;
  transition: background-size var(--d-slow) var(--e-quint), color var(--d-mid) linear;
}
.mailto:hover { color: var(--accent-hi); background-size: 100% 2px; }

/* Sticky mobile CTA — the single highest-evidence conversion pattern
   available (+31% across 58M sessions). Revealed after the hero, hidden at
   the real CTA so it never competes with it. */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: calc(var(--z-nav) - 1);
  padding: var(--sp-2xs) var(--sp-s) calc(var(--sp-2xs) + env(safe-area-inset-bottom, 0px));
  background: rgb(5 7 10 / .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-s);
  transform: translateY(110%);
  transition: transform var(--d-slow) var(--e-quint);
}
.dock.on { transform: none; }
.dock p { font: 500 var(--t-small)/1.3 var(--f-body); color: var(--fg-dim); }
.dock .btn { padding: .7rem 1.1rem; flex: none; }
@media (min-width: 56rem) { .dock { display: none; } }

/* Custom cursor. Desktop garnish — attached by JS only under
   (hover:hover) and (pointer:fine), and never replaces the native cursor. */
.cur {
  position: fixed; top: 0; left: 0;
  z-index: var(--z-cursor); pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--d-mid) linear, width var(--d-mid) var(--e-spring), height var(--d-mid) var(--e-spring), margin var(--d-mid) var(--e-spring), background-color var(--d-mid) linear;
  will-change: transform;
}
.cur.on { opacity: .8; }
.cur.hot { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgb(25 177 148 / .12); }

/* ── 11 · FOOTER ────────────────────────────────────────────────────────── */
.foot {
  position: relative; z-index: var(--z-content);
  border-top: 1px solid var(--hairline);
  padding-block: var(--sp-2xl) var(--sp-xl);
  background: rgb(3 5 7 / .7);
}
.foot__grid { display: grid; gap: var(--sp-l); }
@media (min-width: 44rem) { .foot__grid { grid-template-columns: repeat(3, 1fr); } }
.foot h2 { font: 500 var(--t-mono)/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: var(--sp-s); }
.foot li + li { margin-top: var(--sp-2xs); }
/* Re-asserted against .foot a — a bare descendant selector loses to it and the
   sign-off silently renders as a tiny mono link. (v2 gotcha 4.) */
.foot a { color: var(--fg-dim); font-size: var(--t-small); transition: color var(--d-fast) linear; }
.foot a:hover { color: var(--accent-hi); }
.foot__base {
  margin-top: var(--sp-2xl); padding-top: var(--sp-m);
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: var(--sp-s) var(--sp-m); justify-content: space-between;
  font: 400 var(--t-mono)/1.6 var(--f-mono); color: var(--fg-faint);
}

/* ── 12 · REDUCED MOTION ────────────────────────────────────────────────── */
/* Reduce, do not remove. Opacity fades and colour shifts stay; parallax,
   scrubbing, drift and large slide-ins go. The engine reads the same flag in
   JS — a CSS media query does not govern rAF code. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-rise] { opacity: 1; transform: none; }
  .js .lines .lines__i { transform: none; }
  .card:hover { transform: none; }
  .cur { display: none; }
  .ticker__track { animation: none; }
  .hero__hint i { animation: none; }
  /* Fades are still fine at ≤200ms and keep the page from feeling broken. */
  .js [data-rise] { transition: opacity 180ms linear !important; }
}

/* ── 13 · PRINT ─────────────────────────────────────────────────────────── */
@media print {
  #field, .stage-veil, .nav, .dock, .cur, .prog, body::after { display: none !important; }
  body { background: #fff; color: #000; }
  .chapter { padding-block: 1.5rem; }
  a::after { content: ' (' attr(href) ')'; font-size: .8em; }
}
