/* =========================================================
   Toby Bailey-Pearce — Private Investigator
   Matte black, sodium-lamp light, condensed type.
   ========================================================= */

:root {
  /* Palette */
  --matte: #0c0c0b;      /* base: matte black, not pure #000 */
  --coal: #141413;       /* raised surfaces */
  --line: #2a2a27;       /* hairlines */
  --ash: #8f8c84;        /* secondary text (AA on matte) */
  --bone: #ebe7dd;       /* primary text */
  --sodium: #e0a346;     /* streetlight accent, used sparingly */
  --rec: #d6402e;        /* camera record dot only */

  /* Type */
  --font: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  --step-3: clamp(2.5rem, 1.8rem + 3.5vw, 5rem);
  /* capped at 14vw so "Bailey-Pearce" always fits on one line */
  --step-hero: min(clamp(2.6rem, 1rem + 12.5vw, 13.5rem), 14vw);

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max: 1400px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cine: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--matte);
  color: var(--bone);
  font-family: var(--font);
  font-size: var(--step-0);
  font-variation-settings: "wdth" 100;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, svg, canvas { display: block; }
a { color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, p { margin: 0; }

::selection { background: var(--sodium); color: var(--matte); }

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

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--bone); color: var(--matte);
  padding: 0.6rem 1rem; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---------- Cinematic letterbox (load only) ---------- */
.letterbox { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.letterbox__bar {
  position: absolute; left: 0; right: 0; height: 50.5vh;
  background: #000;
  transition: transform 1.6s var(--ease-cine);
}
.letterbox__bar--top { top: 0; }
.letterbox__bar--bottom { bottom: 0; }
body.is-open .letterbox__bar--top { transform: translateY(-100%); }
body.is-open .letterbox__bar--bottom { transform: translateY(100%); }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none;
  opacity: 0.045;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.1rem var(--gutter);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, opacity 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(12, 12, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__mark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
  font-weight: 800; font-variation-settings: "wdth" 70;
  font-size: 1.2rem; letter-spacing: 0.01em; text-transform: uppercase;
}
.nav__dot {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--sodium); box-shadow: 0 0 14px var(--sodium);
}
.nav__links { display: flex; gap: clamp(1rem, 2.5vw, 2.5rem); }
.nav__links a {
  text-decoration: none; color: var(--ash); font-size: var(--step--1);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--bone); }
.nav__call {
  text-decoration: none; font-size: var(--step--1); font-weight: 600;
  padding: 0.55rem 1rem; border: 1px solid var(--line);
  transition: border-color 0.2s, color 0.2s;
}
.nav__call:hover { border-color: var(--sodium); color: var(--sodium); }

@media (max-width: 760px) {
  .nav__links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: 0 1.5rem;
  font: 600 var(--step--1)/1 var(--font);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn--solid { background: var(--bone); color: var(--matte); }
.btn--solid:hover { background: var(--sodium); }
.btn--ghost { border-color: var(--line); color: var(--bone); background: transparent; }
.btn--ghost:hover { border-color: var(--bone); }

/* =========================================================
   HERO — a torch in the dark
   ========================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  padding: 7rem var(--gutter) clamp(2.5rem, 7vh, 5rem);
  overflow: hidden; isolation: isolate;
  --x: 70%; --y: 40%; --r: 26vmax;
}
.hero__fog {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3;
  opacity: 0.9;
}
/* The evidence map sits in total darkness; only the torch reveals it */
.hero__evidence {
  position: absolute; inset: 0; z-index: -2;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0,0,0,0.55) 35%, transparent 70%);
          mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, rgba(0,0,0,0.55) 35%, transparent 70%);
}
.hero__map { width: 100%; height: 100%; }
/* Warm light pool from the torch */
.hero__torch {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle calc(var(--r) * 0.9) at var(--x) var(--y),
    rgba(224, 163, 70, 0.13), rgba(224, 163, 70, 0.04) 45%, transparent 70%);
  mix-blend-mode: screen;
}

.hero__hud {
  position: absolute; top: 5.5rem; left: var(--gutter); right: var(--gutter);
  display: flex; gap: 1.5rem; align-items: center;
  font-size: var(--step--1); color: var(--ash);
  font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity 1s 1.6s;
}
body.is-open .hero__hud { opacity: 1; }
.hud__rec { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--bone); }
.hud__rec-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--rec);
  animation: blink 1.2s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }
.hud__coords { margin-left: auto; }

.hero__content { max-width: var(--max); width: 100%; margin: 0 auto; }
.hero__role {
  color: var(--sodium); font-size: var(--step-0); font-weight: 500;
  margin-bottom: 0.75rem;
}
.hero__title {
  font-size: var(--step-hero);
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  line-height: 0.82;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-left: -0.04em;
}
.hero__line { display: block; white-space: nowrap; }
/* Letters are split by JS for the focus-pull entrance */
.hero__title .ch {
  display: inline-block;
  filter: blur(18px);
  opacity: 0;
  transform: scale(1.35) translateY(0.08em);
  transition:
    filter 1.4s var(--ease-out),
    opacity 1.4s var(--ease-out),
    transform 1.8s var(--ease-out);
  transition-delay: calc(0.9s + var(--i) * 0.045s);
}
body.is-open .hero__title .ch { filter: blur(0); opacity: 1; transform: none; }

.hero__lede {
  max-width: 34rem; margin-top: clamp(1.25rem, 3vh, 2rem);
  color: var(--ash); font-size: var(--step-1); line-height: 1.45;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__role, .hero__lede, .hero__actions {
  opacity: 0; transform: translateY(14px);
  transition: opacity 1s var(--ease-out) 2s, transform 1s var(--ease-out) 2s;
}
body.is-open .hero__role,
body.is-open .hero__lede,
body.is-open .hero__actions { opacity: 1; transform: none; }

.hero__hint {
  position: absolute; right: var(--gutter); bottom: clamp(2.5rem, 7vh, 5rem);
  font-size: var(--step--1); color: var(--ash);
  writing-mode: vertical-rl;
  opacity: 0; transition: opacity 1s 3s;
}
body.is-open .hero__hint { opacity: 0.8; }
@media (max-width: 760px) {
  .hero__hint, .hud__coords { display: none; }
}

/* Map styling (SVG drawn by JS) */
.map-street { stroke: #4a4842; stroke-width: 1; fill: none; }
.map-major { stroke: #6e6b62; stroke-width: 2.2; fill: none; }
.map-river { stroke: #2f3b3d; stroke-width: 26; fill: none; stroke-linecap: round; }
.map-route { stroke: var(--sodium); stroke-width: 2; fill: none; stroke-dasharray: 6 7; }
.map-pin { fill: var(--sodium); }
.map-ring { fill: none; stroke: var(--sodium); stroke-width: 1; }
.map-note { fill: var(--bone); font: 500 13px var(--font); }
.map-note--dim { fill: var(--ash); }
.map-frame { fill: rgba(235, 231, 221, 0.04); stroke: #6b685f; stroke-width: 1; }

/* =========================================================
   IRIS — scroll opens a circle of light over the statement.
   JS sets --p (0..1). Only clip-path, transform, opacity move.
   ========================================================= */
.iris { position: relative; height: 220vh; }
.iris__stage {
  --p: 0;
  /* iris opens between p 0.1 and 0.75 */
  --open: clamp(0, (var(--p) - 0.1) / 0.65, 1);
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; place-items: center; align-content: center; gap: 2.5rem;
  padding: 0 var(--gutter);
  contain: layout paint;
}
.iris__frame {
  display: grid; place-items: center;
  /* slow dolly back: starts close, settles at 1 */
  transform: scale(calc(1.12 - var(--open) * 0.12));
}
.iris__text {
  grid-area: 1 / 1;
  font-size: clamp(2.6rem, 13vw, 11rem);
  font-weight: 900; font-variation-settings: "wdth" 62;
  text-transform: uppercase; line-height: 0.9; text-align: center;
  max-width: 14ch;
}
.iris__text--dark { color: #1f1f1d; }
.iris__text--lit {
  color: var(--bone);
  clip-path: circle(calc(var(--open) * 75%) at 50% 50%);
}
.iris__o { color: var(--sodium); }
.iris__tag {
  color: var(--ash); font-size: var(--step-1); text-align: center;
  opacity: clamp(0, (var(--p) - 0.7) * 4, 1);
  transform: translateY(calc((1 - clamp(0, (var(--p) - 0.7) * 4, 1)) * 12px));
}

/* =========================================================
   WATCH — CCTV monitor wall
   ========================================================= */
.watch { padding: clamp(5rem, 12vw, 10rem) var(--gutter) clamp(3rem, 8vw, 6rem); }
.watch__wall {
  max-width: var(--max); margin: 0 auto;
  display: grid; gap: 1rem;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  grid-template-areas: "main log" "thumbs log";
}
.feed {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000; border: 1px solid var(--line);
}
.feed canvas { display: block; width: 100%; height: 100%; }
/* scanlines + lens vignette over every feed */
.feed::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
}
.feed--main { grid-area: main; }

.feed__hud {
  position: absolute; inset: 0; z-index: 1;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto;
  padding: clamp(0.75rem, 1.6vw, 1.25rem);
  font-size: var(--step--1); color: var(--bone);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
}
.feed__id { grid-column: 1; grid-row: 1; }
.feed__cam { font-weight: 700; margin-right: 0.4rem; }
.feed__rec { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; gap: 0.45rem; }
.feed__motion { grid-column: 1; grid-row: 3; align-self: end; color: var(--ash); transition: color 0.2s; }
.feed__motion.is-on { color: var(--sodium); }
.feed__res { grid-column: 2; grid-row: 3; align-self: end; color: var(--ash); }

/* viewfinder: frame corners + centre cross */
.feed__reticle {
  position: absolute; inset: 9%; z-index: 1; pointer-events: none;
  --c: rgba(235, 231, 221, 0.45);
  background:
    linear-gradient(var(--c), var(--c)) top left / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) center / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) center / 1px 14px no-repeat;
}

.watch__thumbs { grid-area: thumbs; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feed--thumb {
  padding: 0; margin: 0; cursor: pointer; font: inherit; color: inherit;
  transition: border-color 0.25s;
}
.feed--thumb:hover { border-color: var(--ash); }
.feed--thumb:focus-visible { outline: 2px solid var(--sodium); outline-offset: 3px; }
.feed__label {
  position: absolute; left: 0.6rem; bottom: 0.5rem; z-index: 1;
  font-size: 0.75rem; color: var(--bone); white-space: pre;
  text-shadow: 0 0 6px #000;
  max-width: calc(100% - 2rem); overflow: hidden; text-overflow: ellipsis;
}
.feed__dot {
  position: absolute; right: 0.6rem; top: 0.6rem; z-index: 1;
  width: 0.45rem; height: 0.45rem; border-radius: 50%;
  background: var(--line); transition: background 0.2s, box-shadow 0.2s;
}
.feed--thumb.is-motion .feed__dot { background: var(--sodium); box-shadow: 0 0 10px var(--sodium); }

.watch__log {
  grid-area: log;
  display: flex; flex-direction: column; min-height: 0;
  padding: 1.25rem; background: var(--coal); border: 1px solid var(--line);
  overflow: hidden;
  contain: size; /* never grows the wall; it fills the two rows beside the feeds */
}
.watch__log-title {
  font-weight: 800; font-variation-settings: "wdth" 70; text-transform: uppercase;
  font-size: var(--step-0); padding-bottom: 0.9rem; margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.log { flex: 1; overflow: hidden; }
.log li {
  display: grid; gap: 0.15rem; padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--step--1); line-height: 1.35;
}
.log__time { color: var(--sodium); font-variant-numeric: tabular-nums; }
.log__msg { color: var(--bone); white-space: pre-wrap; }
.log li:not(:first-child) .log__msg { color: var(--ash); }
.log li.is-new { animation: log-in 0.6s var(--ease-out); }
@keyframes log-in {
  from { opacity: 0; transform: translateY(-8px); background: rgba(224, 163, 70, 0.12); }
  to { opacity: 1; transform: none; background: transparent; }
}
.watch__note { max-width: var(--max); margin: 1rem auto 0; color: var(--ash); font-size: var(--step--1); }

@media (max-width: 900px) {
  .watch__wall { grid-template-columns: 1fr; grid-template-areas: "main" "thumbs" "log"; }
  .watch__log { max-height: 17rem; contain: none; }
}
@media (max-width: 520px) {
  .watch__thumbs { gap: 0.5rem; }
  .feed__label { font-size: 0.62rem; left: 0.35rem; bottom: 0.3rem; }
  .feed__res { display: none; }
}

/* =========================================================
   Autofocus cursor (desktop only, added by focus-cursor.js)
   ========================================================= */
.has-af, .has-af a, .has-af button, .has-af label, .has-af summary { cursor: none; }
.has-af input, .has-af textarea { cursor: text; }
.has-af select { cursor: default; }
.af {
  position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
  width: 26px; height: 26px;
  opacity: 0; transition: opacity 0.25s;
  will-change: transform;
  --af: var(--bone);
}
.af.is-visible { opacity: 1; }
.af.is-visible.is-field { opacity: 0; }
.af.is-locked { --af: var(--sodium); }
.af__c {
  position: absolute; width: 9px; height: 9px;
  border: 0 solid var(--af);
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}
.af__c--tl { left: 0; top: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.af__c--tr { right: 0; top: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.af__c--bl { left: 0; bottom: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.af__c--br { right: 0; bottom: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.af.is-press .af__c--tl { transform: translate(3px, 3px); }
.af.is-press .af__c--tr { transform: translate(-3px, 3px); }
.af.is-press .af__c--bl { transform: translate(3px, -3px); }
.af.is-press .af__c--br { transform: translate(-3px, -3px); }
.af__dot {
  position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px;
  border-radius: 50%; background: var(--af);
  transition: opacity 0.2s;
}
.af.is-locked .af__dot { opacity: 0; }
/* Focus confirmed: corners snap in and back once, like a lens locking.
   No text, so it can never cover the page. */
.af.is-settled .af__c { animation: af-lock 0.32s var(--ease-out); }
.af.is-settled .af__c--tl { --dx: 3px; --dy: 3px; }
.af.is-settled .af__c--tr { --dx: -3px; --dy: 3px; }
.af.is-settled .af__c--bl { --dx: 3px; --dy: -3px; }
.af.is-settled .af__c--br { --dx: -3px; --dy: -3px; }
@keyframes af-lock {
  50% { transform: translate(var(--dx), var(--dy)); }
}

/* =========================================================
   Shared section heading
   ========================================================= */
.section-head {
  max-width: var(--max); margin: 0 auto clamp(2.5rem, 6vw, 5rem);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: end;
}
.section-title {
  font-size: var(--step-3); font-weight: 850;
  font-variation-settings: "wdth" 66;
  text-transform: uppercase; line-height: 0.92; letter-spacing: -0.005em;
}
.section-sub { color: var(--ash); max-width: 30rem; font-size: var(--step-1); line-height: 1.45; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; }
}

/* =========================================================
   SERVICES — case list
   ========================================================= */
.services { padding: clamp(5rem, 12vw, 10rem) var(--gutter); }
.case-list { max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--line); }
.case { border-bottom: 1px solid var(--line); position: relative; }
.case::before {
  /* sodium light sweeps under the active row */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 100%;
  background: linear-gradient(90deg, rgba(224,163,70,0.09), transparent 60%);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease-out);
  pointer-events: none;
}
.case:hover::before, .case.is-open::before { transform: scaleX(1); }

.case__head {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 2.5rem;
  align-items: center; gap: 1.5rem; width: 100%;
  padding: clamp(1.1rem, 2.4vw, 1.8rem) 0.25rem;
}
.case__head:focus-visible { outline: 2px solid var(--sodium); outline-offset: -2px; }
.case__name {
  font-size: var(--step-2); font-weight: 800; font-variation-settings: "wdth" 66;
  text-transform: uppercase; line-height: 1;
  transition: color 0.3s, transform 0.5s var(--ease-out);
}
.case:hover .case__name, .case.is-open .case__name { color: var(--sodium); transform: translateX(0.4rem); }
.case__line { color: var(--ash); }
.case__toggle { position: relative; width: 1.1rem; height: 1.1rem; justify-self: end; }
.case__toggle::before, .case__toggle::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px;
  background: var(--bone); transition: transform 0.4s var(--ease-out);
}
.case__toggle::after { transform: rotate(90deg); }
.case.is-open .case__toggle::after { transform: rotate(0deg); }

.case__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}
.case.is-open .case__body { grid-template-rows: 1fr; }
.case__inner {
  overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 2.5rem; gap: 1.5rem;
  padding: 0 0.25rem;
}
.case__inner ul { grid-column: 2; padding-bottom: 0.5rem; }
.case__inner li { padding: 0.35rem 0 0.35rem 1.1rem; position: relative; }
.case__inner li::before {
  content: ""; position: absolute; left: 0; top: 0.95em; width: 0.45rem; height: 1px; background: var(--sodium);
}
.case__use { grid-column: 2; color: var(--ash); font-size: var(--step--1); padding-bottom: 1.75rem; }
@media (max-width: 760px) {
  .case__head { grid-template-columns: 1fr 1.5rem; gap: 0.35rem 1rem; }
  .case__name { grid-column: 1; }
  .case__line { grid-column: 1; grid-row: 2; font-size: var(--step--1); }
  .case__toggle { grid-column: 2; grid-row: 1 / span 2; }
  .case__inner { grid-template-columns: 1fr; }
  .case__inner ul, .case__use { grid-column: 1; }
}

/* =========================================================
   METHOD
   ========================================================= */
.method {
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
  background: var(--coal);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.steps {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: step;
  position: relative;
}
/* A single surveillance line runs through the steps */
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 2.1rem; height: 1px;
  background: linear-gradient(90deg, var(--sodium) var(--progress, 0%), var(--line) var(--progress, 0%));
}
.step { padding: 0 1.5rem 0 0; position: relative; }
.step__n {
  display: grid; place-items: center;
  width: 4.2rem; height: 4.2rem; border-radius: 50%;
  background: var(--coal); border: 1px solid var(--line);
  font-size: var(--step-1); font-weight: 700; font-variant-numeric: tabular-nums;
  position: relative; z-index: 1;
  transition: border-color 0.5s, color 0.5s;
}
.step.is-lit .step__n { border-color: var(--sodium); color: var(--sodium); }
.step__title {
  margin: 1.75rem 0 0.6rem;
  font-size: var(--step-2); font-weight: 800; font-variation-settings: "wdth" 66;
  text-transform: uppercase; line-height: 1;
}
.step p { color: var(--ash); max-width: 22rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 3rem 0; }
  .steps::before { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* =========================================================
   ABOUT — redacted file
   ========================================================= */
.about {
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(3rem, 7vw, 7rem);
}
.about__ref { color: var(--ash); font-size: var(--step--1); margin-bottom: 1.25rem; font-variant-numeric: tabular-nums; }
.about__text {
  margin-top: 2rem; max-width: 40rem;
  font-size: var(--step-1); line-height: 1.6; color: var(--bone);
}
.redact {
  position: relative; white-space: normal;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background-image: linear-gradient(var(--bone), var(--bone));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: right center;
  color: transparent;
  transition: background-size 0.9s var(--ease-cine), color 0.3s 0.6s;
  transition-delay: calc(var(--d, 0) * 0.35s);
}
.about.is-read .redact { background-size: 0% 100%; color: var(--sodium); }
.principles { display: grid; gap: 0; align-content: end; border-top: 1px solid var(--line); }
.principle { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.principle dt {
  font-size: var(--step-1); font-weight: 800; font-variation-settings: "wdth" 70;
  text-transform: uppercase; margin-bottom: 0.35rem;
}
.principle dd { color: var(--ash); }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
  border-top: 1px solid var(--line);
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(3rem, 7vw, 7rem);
}
.contact__intro .section-sub { margin-top: 1.5rem; }
.contact__direct { margin-top: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; }
.contact__direct dt { color: var(--ash); font-size: var(--step--1); margin-bottom: 0.25rem; }
.contact__direct dd { font-size: var(--step-0); font-weight: 600; }
.contact__direct a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color 0.2s, color 0.2s; }
.contact__direct a:hover { color: var(--sodium); border-color: var(--sodium); }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  align-content: start;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--coal); border: 1px solid var(--line);
}
.field { display: grid; gap: 0.45rem; }
.field--wide, .form__foot { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); color: var(--ash); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; color: var(--bone);
  background: var(--matte);
  border: 1px solid var(--line); border-radius: 0;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ash) 50%), linear-gradient(135deg, var(--ash) 50%, transparent 50%); background-position: calc(100% - 1.2rem) 55%, calc(100% - 0.85rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.field textarea { resize: vertical; min-height: 8rem; }
.field input::placeholder, .field textarea::placeholder { color: #6f6c65; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sodium); }
.field input[aria-invalid="true"] { border-color: var(--rec); }
.field__error { color: #f07a68; font-size: var(--step--1); }
.form__foot { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.form__status { color: var(--ash); font-size: var(--step--1); }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .form, .contact__direct { grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding: 0 var(--gutter) 2rem; overflow: hidden; }
.footer__name {
  font-size: clamp(3rem, 15.5vw, 17rem); font-weight: 900; font-variation-settings: "wdth" 62;
  text-transform: uppercase; line-height: 0.8; letter-spacing: -0.01em;
  color: transparent; -webkit-text-stroke: 1px var(--line);
  white-space: nowrap; text-align: center; margin: 0 -0.05em;
}
.footer__row {
  max-width: var(--max); margin: 2rem auto 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--ash); font-size: var(--step--1);
}
.footer__row a { text-decoration: none; }
.footer__row a:hover { color: var(--bone); }

/* =========================================================
   Reduced motion: show everything, still
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .letterbox, .grain, .hero__fog { display: none; }
  .hero__title .ch, .hero__role, .hero__lede, .hero__actions, .hero__hud, .hero__hint {
    transition: none !important; filter: none !important; opacity: 1 !important; transform: none !important;
  }
  .hero { --r: 70vmax; }
  .iris { height: auto; }
  .iris__stage { position: relative; height: 80vh; --p: 1; }
  .redact { transition: none; }
  .case::before, .case__body, .case__name { transition: none; }
  .hud__rec-dot { animation: none; }
}
