/* ============================================================
   AYA CORP — website prototype · Bounded Release
   Tokens transcribed from Aya Brand Book v0.1 (25 July 2026)
   ============================================================ */

:root {
  /* product palette — 14 values */
  --graphite-900: #14161A;
  --graphite-800: #1A1D22;
  --graphite-700: #23272E;
  --graphite-600: #2A2F36;
  --graphite-500: #3A4048;
  --graphite-400: #4A515A;
  --zinc-200: #8A9099;
  --chalk-100: #C4CAD2;
  --chalk-50: #E8EAED;
  --oxide: #C2571E;
  --oxide-deep: #A8420F;
  --positive: #3D8A5F;
  --caution: #C79A2A;
  --negative: #C4453A;

  /* expressive palette — 6 values · public surfaces only */
  --ember-800: #6E2A10;
  --ember-200: #E5A47C;
  --plum-800: #2E2233;
  --plum-600: #5A3F63;
  --bone-100: #EDE7DE;
  --sand-200: #D6CFC4;

  /* type */
  --f-display: 'Archivo', sans-serif;
  --f-mono: 'DM Mono', monospace;

  /* tick system */
  --tick: 4px;
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  /* motion tokens — never overshoot */
  --m-instant: 90ms linear;
  --m-step: 120ms linear;
  --m-transition: 200ms ease-out;
  --m-expressive: 400ms cubic-bezier(.2, 0, 0, 1);
  --ease-x: cubic-bezier(.2, 0, 0, 1);

  --wrap: 1240px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--graphite-900);
  color: var(--chalk-50);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--oxide-deep); color: var(--chalk-50); }

:focus-visible {
  outline: 2px solid var(--chalk-50);
  outline-offset: 3px;
}
.principles :focus-visible { outline-color: var(--graphite-900); }

.mono { font-family: var(--f-mono); }

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

.section { padding: 140px 0; position: relative; }

/* ---------- shared type ---------- */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-200);
  margin-bottom: var(--s4);
}

.display {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-transform: uppercase;
  max-width: 26ch;
}

.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--chalk-100);
  max-width: 640px;
  margin-top: var(--s5);
}

.ox { color: var(--ember-200); }
.ox-deep { color: var(--oxide-deep); }
.chalk { color: var(--chalk-50); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--m-transition), color var(--m-transition), border-color var(--m-transition);
  cursor: pointer;
}
.btn-primary { background: var(--oxide-deep); color: var(--chalk-50); }
.btn-primary:hover { background: var(--chalk-50); color: var(--graphite-900); }
.btn-ghost { border: 1px solid var(--graphite-400); color: var(--chalk-50); }
.btn-ghost:hover { border-color: var(--chalk-50); }
.btn-chalk { background: var(--chalk-50); color: var(--graphite-900); }
.btn-chalk:hover { background: var(--graphite-900); color: var(--chalk-50); }

/* ---------- bracket mark ---------- */
.head-mark, .foot-mark { display: flex; align-items: stretch; gap: 5px; }
.mk { width: 6px; }
.mk-l { border-left: 2px solid var(--oxide); border-top: 2px solid var(--oxide); border-bottom: 2px solid var(--oxide); }
.mk-r { border-right: 2px solid var(--oxide); border-top: 2px solid var(--oxide); border-bottom: 2px solid var(--oxide); }
.mk-word {
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 700;
  padding: 2px 0;
  color: var(--chalk-50);
}

/* ---------- cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 42px; height: 42px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity var(--m-transition);
}
.cursor.is-on { opacity: 1; }
.cursor-b { position: absolute; top: 0; bottom: 0; width: 8px; transition: none; }
.cursor-l { left: 0; border-left: 2px solid var(--oxide); border-top: 2px solid var(--oxide); border-bottom: 2px solid var(--oxide); }
.cursor-r { right: 0; border-right: 2px solid var(--oxide); border-top: 2px solid var(--oxide); border-bottom: 2px solid var(--oxide); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- header ---------- */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--s6);
  padding: 18px var(--s7);
  transition: background var(--m-transition), border-color var(--m-transition);
  border-bottom: 1px solid transparent;
}
.site-head.is-solid {
  background: color-mix(in srgb, var(--graphite-900) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--graphite-600);
}
.head-nav { display: flex; gap: var(--s5); margin-left: auto; }
.head-nav a {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zinc-200);
  padding: 12px 2px;
  transition: color var(--m-step);
}
.head-nav a:hover { color: var(--chalk-50); }
.head-state {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zinc-200);
  border: 1px dashed var(--graphite-400);
  padding: 7px 10px;
  white-space: nowrap;
}

/* ---------- hero ---------- */
.hero { height: 260vh; position: relative; }
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
#field { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-frame {
  position: absolute;
  top: 50%; left: 50%;
  width: min(76vw, 1160px);
  height: min(70vh, 700px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hf { position: absolute; top: 0; bottom: 0; width: 26px; opacity: 0; }
.hf-l { left: 0; border-left: 3px solid var(--oxide); border-top: 3px solid var(--oxide); border-bottom: 3px solid var(--oxide); }
.hf-r { right: 0; border-right: 3px solid var(--oxide); border-top: 3px solid var(--oxide); border-bottom: 3px solid var(--oxide); }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 84px var(--s7) 0;
  width: 100%;
}
.hero-kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember-200);
  margin-bottom: var(--s5);
}
/* Sentence case, not uppercase: the brand book sets display type in
   sentence case (only the mark is caps). Uppercase at this size read as
   bulk rather than authority, and cost two extra lines. */
.hero-title {
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 17ch;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; will-change: transform; }
.hero-sub {
  margin-top: var(--s6);
  font-size: 18px;
  line-height: 1.6;
  color: var(--chalk-100);
  max-width: 560px;
}
.hero-cta { display: flex; gap: var(--s4); margin-top: var(--s6); flex-wrap: wrap; }

.hero-meter {
  position: absolute;
  z-index: 2;
  right: var(--s7);
  bottom: 84px;
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: 11px;
  color: var(--zinc-200);
  letter-spacing: 0.08em;
}
.hm-track { width: 120px; height: 2px; background: var(--graphite-600); position: relative; }
.hm-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: var(--oxide); }
.hm-read { color: var(--chalk-50); min-width: 4ch; text-align: right; }

.hero-rail {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 12px;
  background-image: repeating-linear-gradient(to right, rgba(229, 164, 124, 0.45) 0 1px, transparent 1px 14px);
  animation: railRun 6s linear infinite;
}
@keyframes railRun { from { background-position-x: 0; } to { background-position-x: -120px; } }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--graphite-600);
  border-bottom: 1px solid var(--graphite-600);
  background: var(--graphite-800);
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zinc-200);
  animation: marquee 28s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- approach ---------- */
.approach { background: var(--graphite-900); }
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s8);
  margin-top: var(--s6);
  align-items: start;
}
.approach-facts { display: flex; flex-direction: column; gap: var(--s5); }
.fact strong { display: block; font-size: 18px; letter-spacing: -0.01em; margin-bottom: var(--s2); }
.fact p { color: var(--chalk-100); font-size: 15px; max-width: 52ch; }
.fact-rule { display: block; height: 2px; width: 48px; background: var(--graphite-500); margin-bottom: var(--s3); }
.fact:first-child .fact-rule { background: var(--oxide); }

.truth-band {
  margin-top: 96px;
  background: var(--ember-800);
  padding: var(--s7) 56px;
}
.truth-band p { font-size: clamp(19px, 2vw, 24px); line-height: 1.5; max-width: 52ch; }

/* ---------- journey ---------- */
.journey { background: var(--graphite-800); height: 420vh; position: relative; border-top: 1px solid var(--graphite-600); }

/* depth ruler: giant outlined indices sliding behind the cards at a
   slower rate — differential measurement, the horizontal moment felt */
.journey-ruler {
  position: absolute;
  bottom: 4vh;
  left: 0;
  display: flex;
  gap: 22vw;
  padding-left: 8vw;
  width: max-content;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.journey-ruler span {
  font-family: var(--f-mono);
  font-size: 24vh;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--graphite-600);
}
.journey-row, .journey-head, .journey-progress { position: relative; z-index: 1; }

/* the mark's own gesture: a rule draws left → right as a section enters */
.eyebrow::after {
  content: '';
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 10px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 560ms cubic-bezier(.2, 0, 0, 1) 120ms;
}
.eyebrow.is-revealed::after { transform: scaleX(1); }
body.static .eyebrow::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .eyebrow::after { transform: scaleX(1); } }

/* contact headline draws its own boundary */
.contact-title { position: relative; display: inline-block; padding: 12px 20px; }
.contact-title::before, .contact-title::after {
  content: '';
  position: absolute;
  width: 34px; height: 34px;
  opacity: 0;
  transition: opacity 400ms cubic-bezier(.2,0,0,1) 300ms, transform 400ms cubic-bezier(.2,0,0,1) 300ms;
  pointer-events: none;
}
.contact-title::before { top: 0; left: 0; border-top: 3px solid var(--chalk-50); border-left: 3px solid var(--chalk-50); transform: translate(8px, 8px); }
.contact-title::after { bottom: 0; right: 0; border-bottom: 3px solid var(--chalk-50); border-right: 3px solid var(--chalk-50); transform: translate(-8px, -8px); }
.contact-title.is-revealed::before, .contact-title.is-revealed::after { opacity: 1; transform: none; }
body.static .contact-title::before, body.static .contact-title::after { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .contact-title::before, .contact-title::after { opacity: 1; transform: none; }
}
.journey-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s7);
}
.journey-head { width: 100%; }
.journey-note { font-size: 11px; color: var(--zinc-200); letter-spacing: 0.06em; margin-top: var(--s4); }

.journey-row {
  display: flex;
  gap: var(--s5);
  padding-left: max(var(--s7), calc((100vw - var(--wrap)) / 2 + var(--s7)));
  will-change: transform;
  width: max-content;
}
.jcard {
  width: min(430px, 78vw);
  flex: none;
  border: 1px dashed var(--graphite-400);
  padding: var(--s6);
  background: var(--graphite-800);
  transition: border-color var(--m-expressive), background var(--m-expressive);
}
.jcard.is-active { border: 2px solid var(--oxide); padding: calc(var(--s6) - 1px); background: var(--graphite-700); }
.jcard-top { display: flex; align-items: baseline; gap: var(--s3); margin-bottom: var(--s4); }
.jnum { font-size: 12px; color: var(--zinc-200); }
.jcard.is-active .jnum { color: var(--ember-200); }
.jcard h3 { font-size: 30px; letter-spacing: -0.03em; font-weight: 700; }
.jcard p { color: var(--chalk-100); font-size: 15px; min-height: 120px; }
.jmeta {
  display: flex;
  gap: var(--s5);
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--graphite-600);
  font-size: 11px;
  color: var(--zinc-200);
  letter-spacing: 0.04em;
}
.jmeta em { font-style: normal; color: var(--zinc-200); }
.jcard.is-active .jmeta em { color: var(--chalk-50); }

.journey-progress {
  display: flex;
  align-items: center;
  gap: var(--s4);
  font-size: 12px;
  color: var(--chalk-50);
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--s7);
}
.jp-ticks {
  width: 200px; height: 8px;
  background-image: repeating-linear-gradient(to right, var(--graphite-500) 0 1px, transparent 1px 8px);
  position: relative;
}
.jp-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 25%;
  background-image: repeating-linear-gradient(to right, var(--oxide) 0 1px, transparent 1px 8px);
}

/* ---------- platform ---------- */
.platform { background: var(--graphite-900); border-top: 1px solid var(--graphite-600); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  margin-top: var(--s7);
  border-top: 1px solid var(--graphite-600);
}
.stat { padding: var(--s5) var(--s4) 0 0; border-top: 2px solid transparent; margin-top: -1px; }
.stat:first-child { border-top-color: var(--oxide); }
.stat-n { display: block; font-size: clamp(36px, 4vw, 56px); line-height: 1; color: var(--chalk-50); }
.stat-l { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--zinc-200); margin-top: var(--s2); }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  margin-top: var(--s7);
}
.cap {
  border: 1px solid var(--graphite-600);
  padding: var(--s5);
  position: relative;
  transition: border-color var(--m-transition), transform var(--m-transition);
  background-color: var(--graphite-800);
}
/* evidence-grade hatching — supported 6px pitch vs hypothesis 8px pitch */
.cap[data-grade="adapt"] {
  background-image: repeating-linear-gradient(45deg, rgba(232, 234, 237, 0.028) 0 2px, transparent 2px 6px);
}
.cap[data-grade="hyp"] {
  background-image: repeating-linear-gradient(45deg, rgba(232, 234, 237, 0.02) 0 1px, transparent 1px 8px);
}
/* hover lift rejected by the brand book ("carries no information") —
   position is marked by the oxide edge and border change only */
.cap:hover { border-color: var(--graphite-400); }
.cap::before {
  content: '';
  position: absolute;
  left: -1px; top: -1px; bottom: -1px;
  width: 0;
  border-left: 2px solid var(--oxide);
  opacity: 0;
  transition: opacity var(--m-step);
}
.cap:hover::before { opacity: 1; }
.cap-fam { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--zinc-200); }
.cap h3 { font-size: 19px; letter-spacing: -0.015em; margin-top: var(--s3); }
.cap p { font-size: 14px; color: var(--chalk-100); margin-top: var(--s2); min-height: 66px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: var(--s4);
  border: 1px solid var(--graphite-400);
  padding: 6px 10px;
  font-size: 11px;
  color: var(--chalk-100);
}
.chip i { font-style: normal; color: var(--caution); }
.cap[data-grade="adapt"] .chip i { color: var(--positive); }
.cap-note { margin-top: var(--s6); font-size: 11px; color: var(--zinc-200); letter-spacing: 0.05em; max-width: 72ch; line-height: 1.8; }

/* the buyer's actual question, answered where they ask it */
.cat-answer {
  margin-top: var(--s7);
  border-left: 2px solid var(--oxide);
  padding: var(--s5) var(--s6);
  background: var(--graphite-800);
}
.ca-q {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--chalk-50);
  margin-bottom: var(--s3);
}
.cat-answer p { font-size: 16px; line-height: 1.65; color: var(--chalk-100); max-width: 66ch; }
.cat-answer em { font-style: normal; color: var(--chalk-50); }

/* ---------- engagement ---------- */
.engagement { background: var(--plum-800); border-top: 1px solid var(--graphite-600); }
.engagement .lede { color: var(--sand-200); }

.eng-list { margin-top: var(--s7); display: flex; flex-direction: column; }
.eng {
  display: grid;
  grid-template-columns: 300px 1fr auto;
  gap: var(--s6);
  align-items: start;
  padding: var(--s6) 0;
  border-top: 1px solid var(--plum-600);
}
.eng:first-child { border-top: 2px solid var(--ember-200); }
.eng-name { display: flex; align-items: baseline; gap: var(--s4); }
.eng-no { font-size: 12px; color: var(--ember-200); }
.eng-name h3 { font-size: 26px; letter-spacing: -0.025em; }
.eng > p { color: var(--sand-200); font-size: 15px; max-width: 56ch; }
.eng-spec { display: flex; flex-direction: column; gap: var(--s2); font-size: 13px; color: var(--chalk-50); text-align: right; }
.eng-spec em { font-style: normal; color: var(--zinc-200); }
.spec-chip { font-size: 11px; color: var(--sand-200); }

.eng-transform { grid-template-columns: 300px 1fr; }
.eng-transform > p { grid-column: 2; }
.plan-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  margin-top: var(--s5);
}
.plan {
  border: 1px solid var(--plum-600);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  transition: border-color var(--m-transition);
}
.plan:hover { border-color: var(--ember-200); }
.plan-mid { border: 2px solid var(--ember-200); padding: calc(var(--s5) - 1px); }
.plan-name { font-size: 11px; letter-spacing: 0.16em; color: var(--ember-200); }
.plan-price { font-size: 27px; font-weight: 700; letter-spacing: -0.02em; }
.plan-price .vat { font-size: 12px; font-weight: 400; color: var(--sand-200); letter-spacing: 0; }
.plan-line { font-size: 11.5px; color: var(--sand-200); line-height: 1.6; }

.eng-note { margin-top: var(--s6); font-size: 11px; color: var(--sand-200); letter-spacing: 0.05em; }

/* ---------- principles (light) ---------- */
.principles { background: var(--bone-100); color: var(--graphite-900); }
.principles .eyebrow { color: var(--oxide-deep); }
.prin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4) var(--s7);
  margin-top: var(--s7);
}
.prin {
  display: flex;
  gap: var(--s4);
  align-items: baseline;
  border-top: 1px solid var(--sand-200);
  padding-top: var(--s4);
}
.prin .x { color: var(--negative); font-size: 14px; }
.prin p { font-size: 17px; line-height: 1.5; color: var(--graphite-900); }
.prin-found {
  margin-top: 96px;
  background: var(--sand-200);
  padding: var(--s6) 40px;
}
.prin-found p { font-size: 17px; max-width: 68ch; color: var(--graphite-900); }

/* ---------- contact ---------- */
.contact { background: var(--ember-800); position: relative; overflow: hidden; padding-bottom: 180px; }
.eyebrow-ember { color: var(--ember-200); }
.contact-title { max-width: none; font-size: clamp(48px, 8vw, 118px); }
.contact-lede { color: var(--sand-200); max-width: 560px; }
.contact-cta { display: flex; align-items: center; gap: var(--s5); margin-top: var(--s7); flex-wrap: wrap; }
.contact-meta { font-size: 12px; color: var(--ember-200); letter-spacing: 0.06em; }
.contact-rail {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 12px;
  background-image: repeating-linear-gradient(to right, rgba(232, 234, 237, 0.35) 0 1px, transparent 1px 14px);
  animation: railRun 6s linear infinite;
}

/* ---------- footer ---------- */
.site-foot { background: var(--graphite-900); border-top: 1px solid var(--graphite-600); padding: 88px 0 40px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
  gap: var(--s7);
  align-items: start;
}
.foot-mark { flex-wrap: wrap; align-content: flex-start; }
.foot-desc {
  width: 100%;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zinc-200);
  margin-top: var(--s3);
  line-height: 1.7;
}
.foot-col { display: flex; flex-direction: column; gap: var(--s2); font-size: 13px; color: var(--chalk-100); }
.foot-col a { color: var(--chalk-100); transition: color var(--m-step); }
.foot-col a:hover { color: var(--chalk-50); }
.foot-h {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zinc-200);
  margin-bottom: var(--s2);
}
.foot-state span { color: var(--zinc-200); font-size: 12px; }
.foot-base {
  display: flex;
  justify-content: space-between;
  margin-top: 72px;
  padding-top: var(--s5);
  border-top: 1px solid var(--graphite-700);
  font-size: 11px;
  color: var(--zinc-200);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- reveal defaults ----------
   Content is VISIBLE by default. `.will-reveal` is added by JS only when it
   holds a working IntersectionObserver to remove it again. No stylesheet
   rule may leave content permanently hidden. */
[data-reveal] { will-change: transform, opacity; }
.will-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms cubic-bezier(.2, 0, 0, 1), transform 560ms cubic-bezier(.2, 0, 0, 1);
}
.will-reveal.is-revealed { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .wrap { padding: 0 var(--s5); }
  .site-head { padding: 14px var(--s5); }
  .head-state { display: none; }
  .approach-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: var(--s6) var(--s4); }
  .eng, .eng-transform { grid-template-columns: 1fr; gap: var(--s4); }
  .eng-spec { text-align: left; }
  .plan-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 96px 0; }
  .head-nav { display: none; }
  .hero { height: 200vh; }
  .hero-meter { display: none; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap p { min-height: 0; }
  .prin-grid { grid-template-columns: 1fr; }
  .truth-band { padding: var(--s6); margin-top: var(--s8); }
  .prin-found { margin-top: var(--s8); padding: var(--s5); }

  /* journey falls back to a vertical stack — no pin */
  .journey { height: auto; padding: 96px 0; }
  .journey-sticky { position: static; height: auto; overflow: visible; }
  .journey-row {
    width: auto;
    flex-direction: column;
    padding: 0 var(--s5);
    margin-top: var(--s6);
  }
  .jcard { width: 100%; }
  .jcard p { min-height: 0; }
  .journey-progress { display: none; }
}

/* ---------- reduced motion / static: the static version is complete ----------
   Applied two ways: the media query (no JS needed) and body.static, which JS
   adds for prefers-reduced-motion users and for the ?static=1 QA mode. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero { height: 100vh; }
  .hero-sticky { position: relative; }
  .hero-frame { width: min(96vw, 1400px); height: min(84vh, 820px); }
  .hf { opacity: 1; }
  .hm-fill { width: 100%; }
  .journey { height: auto; padding: 96px 0; }
  .journey-sticky { position: static; height: auto; }
  .journey-row { width: auto; flex-wrap: wrap; padding: 0 var(--s5); }
  .jcard { border: 2px solid var(--oxide); padding: calc(var(--s6) - 1px); }
  .cursor { display: none; }
}

body.static { scroll-behavior: auto; }
body.static *, body.static *::before, body.static *::after { animation: none !important; transition: none !important; }
body.static .hero { height: 100vh; }
body.static .hero-sticky { position: relative; }
body.static .hero-frame { width: min(96vw, 1400px); height: min(84vh, 820px); }
body.static .hf { opacity: 1; }
body.static .hm-fill { width: 100%; }
body.static .hm-read::after { content: ''; }
body.static .journey { height: auto; padding: 96px 0; }
body.static .journey-sticky { position: static; height: auto; }
body.static .journey-row { width: auto; flex-wrap: wrap; padding: 0 var(--s5); transform: none !important; }
body.static .jcard { border: 2px solid var(--oxide); padding: calc(var(--s6) - 1px); }
body.static .cursor { display: none; }

/* ============================================================
   v0.2 — loader, mobile nav, Ask Aya, catalogue, provenance
   ============================================================ */

/* ---------- skip link ---------- */
.skip {
  position: fixed;
  top: -48px; left: 16px;
  z-index: 400;
  background: var(--chalk-50);
  color: var(--graphite-900);
  padding: 12px 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top var(--m-transition);
}
.skip:focus-visible { top: 16px; }

/* ---------- cold-boot loader: brackets hold a marching tick scale ----------
   Spec: the only permitted branded loader. The bracket span never resizes;
   only the measure inside it moves. 1.3 s linear loop. Once per session. */
.boot {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--graphite-900);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s5);
  transition: transform 400ms cubic-bezier(.2, 0, 0, 1);
}
.boot.is-done { transform: translateY(-100%); }
.boot-mark { display: flex; align-items: stretch; gap: 11px; height: 64px; }
.boot-b { width: 15px; }
.boot-bl { border-left: 4px solid var(--oxide); border-top: 4px solid var(--oxide); border-bottom: 4px solid var(--oxide); }
.boot-br { border-right: 4px solid var(--oxide); border-top: 4px solid var(--oxide); border-bottom: 4px solid var(--oxide); }
.boot-core { position: relative; width: 152px; }
.boot-ticks {
  position: absolute; inset: 12px 0;
  background-image: repeating-linear-gradient(to right, var(--graphite-400) 0 2px, transparent 2px 10px);
  animation: bootMarch 1.3s linear infinite;
  transition: opacity var(--m-transition);
}
.boot-word {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 46px; line-height: 1; letter-spacing: -0.05em; font-weight: 700;
  color: var(--chalk-50);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 400ms cubic-bezier(.2,0,0,1), transform 400ms cubic-bezier(.2,0,0,1);
}
.boot.is-ready .boot-ticks { opacity: 0; }
.boot.is-ready .boot-word { opacity: 1; transform: none; }
@keyframes bootMarch { from { background-position-x: 0; } to { background-position-x: -20px; } }
.boot-read { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--zinc-200); }
.boot-read b { color: var(--chalk-50); font-weight: 400; }

/* ---------- header mark: brackets breathe on hover ---------- */
.head-mark:hover .mk-l { animation: lgBreatheL 1.4s cubic-bezier(.2,0,0,1) infinite; }
.head-mark:hover .mk-r { animation: lgBreatheR 1.4s cubic-bezier(.2,0,0,1) infinite; }
@keyframes lgBreatheL { 0%, 100% { transform: none; } 50% { transform: translateX(-4px); } }
@keyframes lgBreatheR { 0%, 100% { transform: none; } 50% { transform: translateX(4px); } }

/* ---------- mobile nav ---------- */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px; height: 48px;
  background: none;
  border: 1px solid var(--graphite-400);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--chalk-50);
  transition: transform var(--m-transition), opacity var(--m-transition);
}
body.nav-open .nav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
body.nav-open .nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--graphite-900);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px var(--s5) var(--s6);
  transform: translateY(-102%);
  transition: transform 400ms cubic-bezier(.2, 0, 0, 1);
  visibility: hidden;
}
body.nav-open .mobile-nav { transform: none; visibility: visible; }
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav nav a {
  display: flex;
  align-items: baseline;
  gap: var(--s4);
  padding: 14px 0;
  border-top: 1px solid var(--graphite-700);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--chalk-50);
}
.mobile-nav nav a:active { color: var(--ember-200); }
.mn-n { font-size: 12px; color: var(--ember-200); }
.mn-foot {
  margin-top: var(--s7);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zinc-200);
}

/* ---------- Ask Aya ---------- */
.ask { margin-top: var(--s6); max-width: 560px; }
.ask-form { display: flex; align-items: stretch; }
.ask-bkt { width: 8px; flex: none; }
.ask-bkt-l { border-left: 2px solid var(--graphite-400); border-top: 2px solid var(--graphite-400); border-bottom: 2px solid var(--graphite-400); transition: border-color var(--m-step); }
.ask-bkt-r { border-right: 2px solid var(--graphite-400); border-top: 2px solid var(--graphite-400); border-bottom: 2px solid var(--graphite-400); transition: border-color var(--m-step); }
.ask-form:focus-within .ask-bkt-l,
.ask-form:focus-within .ask-bkt-r { border-color: var(--oxide); }
.ask-input {
  flex: 1;
  min-width: 0;
  background: color-mix(in srgb, var(--graphite-900) 72%, transparent);
  border: none;
  border-top: 1px solid var(--graphite-500);
  border-bottom: 1px solid var(--graphite-500);
  color: var(--chalk-50);
  font-size: 13px;
  padding: 15px 14px;
  letter-spacing: 0.02em;
}
.ask-input::placeholder { color: var(--zinc-200); }
.ask-input:focus { outline: none; }
.ask-send {
  flex: none;
  background: none;
  border: 1px solid var(--graphite-500);
  border-left: none;
  color: var(--ember-200);
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 0 18px;
  min-height: 48px;
  cursor: pointer;
  transition: background var(--m-transition), color var(--m-transition);
}
.ask-send:hover { background: var(--oxide-deep); color: var(--chalk-50); }
.ask-panel {
  margin-top: var(--s3);
  border-left: 2px solid var(--oxide);
  background: color-mix(in srgb, var(--graphite-800) 86%, transparent);
  padding: var(--s4) var(--s5);
}
.ask-answer { font-size: 15px; line-height: 1.6; color: var(--chalk-100); max-width: 60ch; }
.ask-src { margin-top: var(--s3); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--zinc-200); }
.ask-note { margin-top: var(--s3); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite-400); line-height: 1.8; }

/* suggested questions — a blank prompt box is a dead end.
   Shown on focus-within so the resting hero stays minimal. */
.ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--s3);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--m-expressive), opacity var(--m-expressive), margin var(--m-expressive);
}
.ask:hover .ask-chips,
.ask:focus-within .ask-chips { max-height: 90px; opacity: 1; }
.ask-chips button {
  background: none;
  border: 1px solid var(--graphite-500);
  color: var(--chalk-100);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 7px 11px;
  min-height: 34px;
  cursor: pointer;
  transition: border-color var(--m-step), color var(--m-step);
}
.ask-chips button:hover { border-color: var(--ember-200); color: var(--chalk-50); }

/* waiting state: the frame is solid at once, only content bars pulse,
   so the layout never shifts when the answer lands */
.ask-answer.is-waiting { display: flex; flex-direction: column; gap: 8px; }
.ask-bar {
  display: block;
  height: 9px;
  background: var(--graphite-600);
  animation: askPulse 1.1s ease-in-out infinite;
}
.ask-bar:nth-child(1) { width: 92%; }
.ask-bar:nth-child(2) { width: 78%; animation-delay: 0.12s; }
.ask-bar:nth-child(3) { width: 54%; animation-delay: 0.24s; }
@keyframes askPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.75; } }
@media (prefers-reduced-motion: reduce) { .ask-bar { animation: none; } .ask-chips { max-height: 90px; opacity: 1; } }
body.static .ask-chips { max-height: 90px; opacity: 1; }

/* ---------- stat tick-rails ---------- */
.stats.mono { font-family: var(--f-display); }
.stat-n { font-family: var(--f-mono); }
.stat-rail {
  display: block;
  height: 8px;
  margin-top: var(--s3);
  background-image: repeating-linear-gradient(to right, var(--graphite-500) 0 1px, transparent 1px 8px);
  position: relative;
}
.stat-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background-image: repeating-linear-gradient(to right, var(--oxide) 0 1px, transparent 1px 8px);
}
.stat-frac {
  display: block;
  margin-top: var(--s2);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zinc-200);
}

/* ---------- catalogue browser ---------- */
.catalogue { margin-top: var(--s7); border: 1px solid var(--graphite-600); }
.cat-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--s4);
  background: var(--graphite-800);
  border: none;
  color: var(--chalk-50);
  padding: 20px var(--s5);
  cursor: pointer;
  transition: background var(--m-transition);
}
.cat-toggle:hover { background: var(--graphite-700); }
.cat-tog-label { font-size: 12px; letter-spacing: 0.16em; }
.cat-tog-count { font-size: 11px; color: var(--zinc-200); margin-left: auto; }
.cat-tog-glyph { font-size: 16px; color: var(--ember-200); }
.cat-body { padding: var(--s5); border-top: 1px solid var(--graphite-600); }
.cat-filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.cat-f {
  background: none;
  border: 1px solid var(--graphite-500);
  color: var(--chalk-100);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  min-height: 36px;
  cursor: pointer;
  transition: border-color var(--m-step), color var(--m-step);
}
.cat-f:hover { border-color: var(--chalk-100); }
.cat-f.is-on { border-color: var(--oxide); color: var(--chalk-50); }
.cat-table { width: 100%; border-collapse: collapse; }
.cat-table th {
  text-align: left;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zinc-200);
  border-bottom: 1px solid var(--graphite-400);
  padding: 0 12px 10px 0;
}
.cat-table td {
  border-bottom: 1px solid var(--graphite-700);
  padding: 11px 12px 11px 0;
  font-size: 14px;
  vertical-align: baseline;
}
.cat-table tbody tr { transition: background var(--m-step); }
.cat-table tbody tr:hover { background: var(--graphite-800); box-shadow: inset 2px 0 0 var(--oxide); }
.ct-id { font-size: 11px; color: var(--graphite-400); white-space: nowrap; }
.ct-fam { font-size: 11px; color: var(--zinc-200); }
.ct-class { font-size: 11px; white-space: nowrap; }
.ct-class i { font-style: normal; }
.ct-adapt-e i, .ct-adapt i { color: var(--positive); }
.ct-cand i, .ct-pattern i { color: var(--caution); }
.ct-netnew i { color: var(--zinc-200); }
.cat-note { margin-top: var(--s5); font-size: 11px; line-height: 1.8; color: var(--zinc-200); letter-spacing: 0.04em; max-width: 80ch; }

/* ---------- provenance ---------- */
.provenance { background: var(--graphite-800); border-top: 1px solid var(--graphite-600); }
.prov-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s8);
  margin-top: var(--s6);
  align-items: start;
}
.prov-body { margin-top: var(--s4); font-size: 15px; line-height: 1.7; color: var(--zinc-200); max-width: 58ch; }
.prov-evidence { border: 1px solid var(--graphite-600); background: var(--graphite-900); }
.pe-head {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ember-200);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--graphite-600);
}
.pe-rows { padding: var(--s2) 0; }
.pe-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s4);
  padding: 12px var(--s5);
  border-bottom: 1px solid var(--graphite-700);
  font-size: 12px;
  color: var(--chalk-100);
}
.pe-row:last-child { border-bottom: none; }
.pe-row b { font-weight: 500; color: var(--chalk-50); font-size: 16px; }
.pe-note {
  padding: var(--s4) var(--s5);
  border-top: 1px solid var(--graphite-600);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.8;
  color: var(--zinc-200);
}
.results-stance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  margin-top: var(--s7);
}
.rs-col { border-top: 2px solid var(--graphite-500); padding-top: var(--s4); }
.rs-col:first-child { border-top-color: var(--positive); }
.rs-head { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--zinc-200); margin-bottom: var(--s3); }
.rs-col p { font-size: 15px; line-height: 1.65; color: var(--chalk-100); max-width: 52ch; }

/* ---------- engagement: included / excluded specs ---------- */
.eng-mid { display: flex; flex-direction: column; gap: var(--s4); }
.eng-in { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: 0.02em; }
.eng-in .in { color: var(--sand-200); }
.eng-in .out { color: var(--ember-200); }

/* plan cards: bracket corners draw on hover — containment, not lift */
.plan { position: relative; }
.plan::before, .plan::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  opacity: 0;
  transition: opacity var(--m-transition);
  pointer-events: none;
}
.plan::before { top: -1px; left: -1px; border-top: 2px solid var(--ember-200); border-left: 2px solid var(--ember-200); }
.plan::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--ember-200); border-right: 2px solid var(--ember-200); }
.plan:hover::before, .plan:hover::after { opacity: 1; }

.btn-ember-ghost { border: 1px solid var(--ember-200); color: var(--chalk-50); }
.btn-ember-ghost:hover { background: var(--chalk-50); color: var(--graphite-900); border-color: var(--chalk-50); }

.pf-meta { margin-top: var(--s4); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--graphite-500); }
.foot-dashed { border: 1px dashed var(--graphite-500); padding: 6px 8px; width: fit-content; }

/* ---------- v0.2 responsive ---------- */
@media (max-width: 1080px) {
  .prov-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .results-stance { grid-template-columns: 1fr; gap: var(--s5); }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .head-state { display: none; }
  .cat-table .ct-fam { display: none; }
  .cat-table th:nth-child(3) { display: none; }
  .cat-table td { font-size: 13px; padding-right: 8px; }
  .ct-id { font-size: 9.5px; }
  .ct-class { white-space: normal; font-size: 10.5px; line-height: 1.5; }
  .cat-body { padding: var(--s4); }
  .ask { max-width: none; margin-top: var(--s4); }
  .eng-in { font-size: 11px; }

  /* the hero must fit one viewport with the instrument on board */
  .hero-sticky { align-items: flex-start; }
  .hero-inner { padding-top: 88px; }
  .hero-kicker { margin-bottom: var(--s3); }
  .hero-title { font-size: 33px; }
  .hero-sub { margin-top: var(--s4); font-size: 15px; max-width: 42ch; }
  .hero-cta { margin-top: var(--s4); }
  .hero-cta .btn { min-height: 44px; padding: 0 20px; font-size: 14px; }
  .ask-note { display: none; }
  .ask-panel { max-height: 30vh; overflow-y: auto; }
}

/* ---------- v0.2 static / reduced ---------- */
@media (prefers-reduced-motion: reduce) {
  .boot { display: none; }
  .stat-fill { width: var(--frac-w, 0%); }
}
body.static .boot { display: none; }
body.static .mobile-nav { transition: none; }

/* ============================================================
   v0.4 — hero caption track + persistent viewport instrument
   ============================================================ */

/* ---------- hero caption track ----------
   The hero scroll used to run half its length with no words on screen.
   This states the argument at each stage of the field's travel. */
.hero-stage {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 22vh;
  transform: translateX(-50%) translateY(8px);
  width: min(80vw, 640px);
  display: flex;
  align-items: baseline;
  gap: var(--s4);
  padding-left: var(--s4);
  border-left: 2px solid var(--oxide);
  opacity: 0;
  transition: opacity var(--m-expressive), transform var(--m-expressive);
  pointer-events: none;
}
.hero-stage.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.hs-num { font-size: 11px; letter-spacing: 0.14em; color: var(--ember-200); flex: none; }
.hs-txt {
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--chalk-50);
}
body.static .hero-stage { display: none; }
@media (prefers-reduced-motion: reduce) { .hero-stage { display: none; } }

.hm-read { min-width: 20ch; text-align: right; }

/* ---------- persistent viewport instrument ----------
   Runs the whole page, not just the hero: gate brackets at the edges,
   a tick rail, and a readout naming where you are. The page used to
   flatline after the journey — every remaining behaviour was one-shot. */
.vp {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--m-expressive);
}
.vp.is-on { opacity: 1; }
.vp-b {
  position: absolute;
  top: 12vh; bottom: 12vh;
  width: 14px;
  transition: transform var(--m-expressive);
}
.vp-l { left: 14px; border-left: 2px solid var(--graphite-400); border-top: 2px solid var(--graphite-400); border-bottom: 2px solid var(--graphite-400); }
.vp-r { right: 14px; border-right: 2px solid var(--graphite-400); border-top: 2px solid var(--graphite-400); border-bottom: 2px solid var(--graphite-400); }
.vp.is-marked .vp-l, .vp.is-marked .vp-r { border-color: var(--oxide); }

.vp-rail {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  height: 6px;
  background-image: repeating-linear-gradient(to right, var(--graphite-600) 0 1px, transparent 1px 9px);
}
.vp-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background-image: repeating-linear-gradient(to right, var(--oxide) 0 1px, transparent 1px 9px);
}
.vp-read {
  position: absolute;
  left: 34px; bottom: 26px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zinc-200);
}
.vp-read b { color: var(--chalk-100); font-weight: 400; }
@media (max-width: 760px) {
  .vp-b { display: none; }
  .vp-rail { left: 0; right: 0; bottom: 0; }
  .vp-read { left: 12px; bottom: 12px; font-size: 9px; }
}
body.static .vp, body.nav-open .vp { display: none; }
@media (prefers-reduced-motion: reduce) { .vp { display: none; } }

/* ============================================================
   v0.5 — selected work
   ============================================================ */

.work { background: var(--graphite-900); border-top: 1px solid var(--graphite-600); padding-bottom: 0; }
.work-list { margin-top: var(--s8); }

.wk { padding: var(--s8) 0; border-top: 1px solid var(--graphite-700); }
.wk:first-child { border-top: 2px solid var(--oxide); }

.wk-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s6);
  flex-wrap: wrap;
}
.wk-id { display: flex; align-items: baseline; gap: var(--s4); flex-wrap: wrap; }
.wk-n { font-size: 12px; color: var(--ember-200); }
.wk-id h3 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.035em; font-weight: 700; }
.wk-sector {
  width: 100%;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zinc-200);
  padding-left: 34px;
}
.wk-state { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.st {
  display: inline-block;
  border: 1px solid var(--graphite-400);
  padding: 7px 11px;
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.st-live { border-color: var(--positive); color: var(--chalk-50); }
.st-design { border-style: dashed; color: var(--chalk-100); }
.st-scoping { border-style: dotted; color: var(--zinc-200); }
.st-note { font-size: 10px; letter-spacing: 0.06em; color: var(--zinc-200); max-width: 34ch; line-height: 1.7; }

.wk-body { margin-top: var(--s5); }
.wk-body > p { font-size: 17px; line-height: 1.65; color: var(--chalk-100); max-width: 62ch; }
.wk-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s6);
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--graphite-700);
  font-size: 12px;
  color: var(--zinc-200);
}
.wk-facts b { color: var(--chalk-50); font-weight: 500; }

/* ---------- device frame ----------
   Screenshots sit inside a drawn browser chrome rather than floating as
   bare rectangles. The chrome is built from brand primitives — 1px rules,
   4px radius ceiling, tick-scale address bar — so it reads as part of the
   system rather than as a stock mockup. */
.wk-shot { margin-top: var(--s6); }
.wk-shot figure, .wk-shot { position: relative; }

.wk-shot img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--graphite-600);
  border-top: none;
  border-radius: 0 0 4px 4px;
}

/* chrome bar drawn above each shot */
.wk-shot::before {
  content: '';
  display: block;
  height: 30px;
  background: var(--graphite-800);
  border: 1px solid var(--graphite-600);
  border-radius: 4px 4px 0 0;
}
/* three window dots + an address rule, drawn not imaged */
.wk-shot::after {
  content: '';
  position: absolute;
  top: 12px; left: 14px;
  width: 34px; height: 6px;
  background-image: radial-gradient(circle 3px at 3px 3px, var(--graphite-400) 100%, transparent 0),
                    radial-gradient(circle 3px at 17px 3px, var(--graphite-400) 100%, transparent 0),
                    radial-gradient(circle 3px at 31px 3px, var(--graphite-400) 100%, transparent 0);
  background-repeat: no-repeat;
  pointer-events: none;
}
.wk-shot { --chrome-label: ''; }

.wk-shot figcaption {
  margin-top: var(--s3);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zinc-200);
}

/* scale the work imagery down — it is evidence, not wallpaper */
.wk-surfaces .wk-gallery,
.wk-gallery { max-width: 100%; }
.wk-surface > .wk-shot { max-width: 720px; }

.wk-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  margin-top: var(--s6);
  max-width: 1040px;
}
.wk-gallery .wk-shot { margin-top: 0; }

/* surfaces: one system shown as its distinct faces */
.wk-surfaces { margin-top: var(--s6); display: flex; flex-direction: column; gap: var(--s7); }
.wk-surface-head {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zinc-200);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--graphite-700);
}
.wsn {
  color: var(--ember-200);
  border: 1px solid var(--graphite-500);
  padding: 3px 7px;
  font-size: 10px;
}
.wk-surface .wk-gallery { margin-top: var(--s5); }
.wk-surface > .wk-shot { margin-top: var(--s5); }
.wk-pending { opacity: 0.86; }

/* ---------- prior work ---------- */
.prior { padding: var(--s8) 0; border-top: 1px solid var(--graphite-700); }
.prior-head h3 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.03em; font-weight: 700; }
.prior-head p { margin-top: var(--s4); font-size: 16px; line-height: 1.65; color: var(--chalk-100); max-width: 60ch; }
.prior-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  margin-top: var(--s6);
}
.pr {
  border-top: 2px solid var(--graphite-500);
  padding-top: var(--s4);
  transition: border-color var(--m-transition);
}
.pr:hover { border-top-color: var(--ember-200); }
.pr-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.pr-name { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--chalk-50); }
.pr-yr { font-size: 11px; color: var(--zinc-200); }
.pr-cat { margin-top: var(--s2); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ember-200); }
.pr-tags { margin-top: var(--s2); font-size: 11.5px; line-height: 1.7; color: var(--zinc-200); }
.prior-note {
  margin-top: var(--s5);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite-400);
}
@media (max-width: 1080px) { .prior-grid { grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s4); } }
@media (max-width: 620px) { .prior-grid { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .wk-gallery { grid-template-columns: 1fr; }
  .wk-state { text-align: left; align-items: flex-start; }
  .wk-sector { padding-left: 0; }
}

/* ============================================================
   v0.5 — scroll motion for the second half of the page
   The page previously had no sustained scroll behaviour after the
   horizontal journey. These are scrub-driven, so they read as travel
   rather than as one-shot fades.
   ============================================================ */

/* parallax drift on work screenshots */
.wk-shot img { will-change: transform; }

/* section headings slide their rule as the section passes */
.sec-rule {
  display: block;
  height: 2px;
  background: var(--graphite-600);
  margin-top: var(--s7);
  position: relative;
  overflow: hidden;
}
.sec-rule::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--oxide);
}

/* capability cards settle in a measured cascade */
.cap { will-change: transform, opacity; }

/* engagement rows draw their own left edge on approach */
.eng { position: relative; }
.eng::before {
  content: '';
  position: absolute;
  left: calc(var(--s7) * -1);
  top: 0;
  width: 2px;
  height: 0;
  background: var(--ember-200);
  transition: height 700ms cubic-bezier(.2, 0, 0, 1);
}
.eng.is-marked::before { height: 100%; }
@media (max-width: 1080px) { .eng::before { display: none; } }
body.static .eng::before { display: none; }
