/* ============================================================
   AI OPERATIONS LAUNCH™ — blueprint sheet-set design system
   paper #FAFAF7 · ink #0D0D0C · signal #FF4D00 · blueprint #1B4DFF
   silver grid #E4E4DE — Space Grotesk / IBM Plex Mono
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/spacegrotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plexmono.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plexmono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
/* symbol slivers — arrows, ≤/≥, ✓ are absent from the latin subsets */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/spacegrotesk-sym.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+2190, U+2192, U+2197, U+2264-2265, U+2713;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plexmono-sym.woff2') format('woff2');
  font-weight: 400 500;
  font-display: swap;
  unicode-range: U+2190, U+2192, U+2197, U+2264-2265, U+2713;
}

:root {
  --paper: #FAFAF7;
  --ink: #0D0D0C;
  --signal: #FF4D00;
  --blue: #1B4DFF;
  --silver: #E4E4DE;
  --grid-minor: #EFEFE9;
  --muted: #55554F;
  --faint: #8B8B83;
  --sans: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --snap: cubic-bezier(0.1, 0, 0, 1);
  --pad: clamp(20px, 4vw, 56px);
  --head-h: 54px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--silver) 1px, transparent 1px),
    linear-gradient(90deg, var(--silver) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 12px 12px, 12px 12px;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

::selection { background: var(--signal); color: var(--paper); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); border-left: 1px solid var(--silver); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 2px solid var(--paper); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

a { color: inherit; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
  transition: top 150ms linear;
}
.skip-link:focus { top: 12px; }

/* ---------- mono annotation primitives ---------- */

.tag {
  font-family: var(--mono); font-weight: 500;
  font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
}
.tag--blue { color: var(--blue); }
.tag--muted { color: var(--muted); }
.tag--box { border: 1px solid var(--ink); padding: 4px 8px; display: inline-block; background: var(--paper); }
.tag--signal { background: var(--signal); color: var(--ink); padding: 4px 8px; display: inline-block; }

.fig-label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-weight: 500; font-size: 0.6875rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
}
.fig-label::after { content: ""; flex: 1; height: 1px; background: var(--ink); min-width: 32px; }
.fig-label .fig-no { color: var(--blue); white-space: nowrap; }

/* dimension tick: |———— label ————| */
.dim {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.dim::before, .dim::after {
  content: ""; flex: 1; height: 9px; min-width: 24px;
  background:
    linear-gradient(var(--muted), var(--muted)) left center / 1px 9px no-repeat,
    linear-gradient(var(--muted), var(--muted)) right center / 1px 9px no-repeat,
    linear-gradient(var(--muted), var(--muted)) center / 100% 1px no-repeat;
}

/* ---------- fixed header ---------- */

.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--head-h);
  display: flex; align-items: stretch;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.site-head__brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px; border-right: 1px solid var(--ink);
  text-decoration: none; white-space: nowrap;
}
.site-head__brand svg { display: block; }
.site-head__brand .b-name {
  font-family: var(--mono); font-weight: 500; font-size: 0.75rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.site-head__brand .b-sub { color: var(--faint); }
.site-head nav { display: flex; align-items: stretch; flex: 1; overflow-x: auto; scrollbar-width: none; }
.site-head nav::-webkit-scrollbar { display: none; }
.site-head nav a {
  display: flex; align-items: center; padding: 0 16px;
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border-right: 1px solid var(--silver); color: var(--muted);
  transition: background 120ms linear, color 120ms linear;
  white-space: nowrap;
}
.site-head nav a:hover { background: var(--ink); color: var(--paper); }
.site-head__cta {
  display: flex; align-items: center; padding: 0 20px;
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  background: var(--signal); color: var(--ink); border-left: 1px solid var(--ink);
  transition: background 120ms linear, color 120ms linear;
  white-space: nowrap;
}
.site-head__cta:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 700px) {
  .site-head__brand { padding: 0 12px; }
  .site-head__brand .b-sub { display: none; }
  .site-head__brand .b-name { font-size: 0.6875rem; letter-spacing: 0.08em; }
  .site-head nav a { padding: 0 12px; }
  .site-head nav {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
  }
  .site-head__cta { padding: 0 14px; }
  .site-head__cta .cta-long { display: none; }
}

/* mobile day progress strip */
.day-strip {
  position: fixed; top: var(--head-h); left: 0; right: 0; z-index: 99;
  height: 26px; display: flex; align-items: center;
  background: var(--paper); border-bottom: 1px solid var(--silver);
  font-family: var(--mono); font-size: 0.625rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.day-strip__bar { flex: 1; height: 100%; position: relative; overflow: hidden; }
.day-strip__fill {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: repeating-linear-gradient(90deg, var(--signal) 0 3px, transparent 3px 6px);
}
.day-strip__read { padding: 0 12px; border-left: 1px solid var(--silver); white-space: nowrap; color: var(--ink); }

/* desktop day rail (scroll-linked 30-day scrubber) */
.day-rail {
  position: fixed; top: var(--head-h); right: 0; bottom: 0; width: 76px; z-index: 99;
  border-left: 1px solid var(--ink); background: var(--paper);
  display: none;
}
.day-rail__ticks { position: absolute; inset: 44px 0 60px 0; }
.day-rail__tick {
  position: absolute; right: 0; width: 12px; height: 1px; background: var(--faint);
  transition: width 160ms var(--snap), background-color 120ms steps(2, end);
}
.day-rail__tick--wk { width: 22px; background: var(--ink); }
/* ticks snap on as the marker passes them — the 30-day spine keeps score */
.day-rail__tick.is-past { width: 18px; background: var(--ink); }
.day-rail__tick--wk.is-past { width: 28px; background: var(--signal); height: 2px; }
.day-rail__tick--wk.is-past span { color: var(--ink); }
.day-rail__tick span {
  position: absolute; right: 26px; top: -0.55em;
  font-family: var(--mono); font-size: 0.5625rem; font-weight: 500;
  letter-spacing: 0.08em; color: var(--faint);
}
.day-rail__marker {
  position: absolute; right: 0; width: 100%; height: 0; z-index: 2;
  will-change: transform;
}
.day-rail__marker::before {
  content: ""; position: absolute; right: 0; top: -1px; width: 30px; height: 2px; background: var(--signal);
}
.day-rail__marker .dr-day {
  position: absolute; right: 34px; top: -9px;
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
  background: var(--ink); color: var(--paper); padding: 2px 5px; letter-spacing: 0.08em;
}
.day-rail__label {
  position: absolute; top: 14px; left: 0; right: 0; text-align: center;
  font-family: var(--mono); font-size: 0.5625rem; font-weight: 500; letter-spacing: 0.18em; color: var(--muted);
}
.day-rail__week {
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  font-family: var(--mono); font-size: 0.5625rem; font-weight: 500; letter-spacing: 0.14em; color: var(--blue);
  white-space: pre-line; line-height: 1.7;
}

@media (min-width: 1180px) {
  .day-rail { display: block; }
  .day-strip { display: none; }
  .page { padding-right: 76px; }
  html { scroll-padding-top: calc(var(--head-h) + 16px); }
}
@media (max-width: 1179.98px) {
  html { scroll-padding-top: calc(var(--head-h) + 42px); }
  main { padding-top: 26px; }
}

/* ---------- sheet frame ---------- */

.page { padding-top: var(--head-h); }

.sheet {
  position: relative;
  width: min(1400px, calc(100% - 2 * clamp(14px, 3vw, 48px)));
  margin: clamp(44px, 6.5vw, 88px) auto;
  border: 1px solid var(--ink);
  background: rgba(250, 250, 247, 0.55);
}
.sheet::before, .sheet::after {
  content: ""; position: absolute; width: 15px; height: 15px; pointer-events: none;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat;
}
.sheet::before { top: -22px; left: -22px; }
.sheet::after { bottom: -22px; right: -22px; }
@media (max-width: 720px) {
  .sheet::before, .sheet::after { display: none; }
}

.sheet__head {
  display: flex; flex-wrap: wrap; align-items: stretch;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.sheet__head > * {
  padding: 10px 16px; border-right: 1px solid var(--ink);
  display: flex; align-items: center;
}
.sheet__head .sh-no { background: var(--ink); color: var(--paper); }
.sheet__head .sh-title { font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.12em; }
.sheet__head .sh-fig { color: var(--blue); }
.sheet__head .sh-scale { margin-left: auto; border-right: 0; border-left: 1px solid var(--ink); color: var(--muted); }
@media (max-width: 720px) {
  .sheet__head .sh-scale { display: none; }
  .sheet__head .sh-fig { border-right: 0; }
}

.sheet__body { padding: var(--pad); }

.below-fold { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* ---------- type ---------- */

h1, h2, h3 { font-weight: 500; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }

.display-xl { font-size: clamp(2.5rem, 7.2vw, 5.5rem); font-weight: 500; }
.display-xl em { font-style: normal; color: var(--signal); }
.display-l { font-size: clamp(1.9rem, 4.2vw, 3.4rem); }
.display-m { font-size: clamp(1.35rem, 2.6vw, 2rem); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink); max-width: 62ch; font-weight: 300; }
.lede strong { font-weight: 500; }
p { max-width: 66ch; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  padding: 14px 22px; border: 1px solid var(--ink);
  background: var(--paper); color: var(--ink); cursor: pointer;
  transition: background 140ms linear, color 140ms linear, transform 140ms var(--snap);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn--signal { background: var(--signal); border-color: var(--ink); }
.btn--signal:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { font-family: var(--sans); }

/* ---------- reveal (grid-snapped) ---------- */
/* hidden initial states are gated behind html.js (set inline in <head>):
   without JavaScript the page renders complete and static. :where() keeps
   specificity low so .is-in / .is-built rules always win. */

html.js :where([data-reveal]) { opacity: 0; transform: translateY(16px); }
.is-in > [data-reveal], [data-reveal].is-in {
  opacity: 1; transform: translateY(0);
  transition: opacity 240ms linear, transform 300ms var(--snap);
}
.is-in > [data-reveal]:nth-child(2), [data-reveal].is-in:nth-of-type(2) { transition-delay: 60ms; }
.is-in > [data-reveal]:nth-child(3) { transition-delay: 120ms; }
.is-in > [data-reveal]:nth-child(4) { transition-delay: 180ms; }

/* ---------- hero ---------- */

.hero .sheet__body { padding-bottom: 0; }
.hero__grid { display: grid; gap: clamp(28px, 4vw, 48px); }
.hero__copy > .lede { margin-top: clamp(24px, 3vw, 40px); }
.hero__kicker { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.hero__claims { display: flex; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; margin-top: 30px; }
.hero__schematic { border-top: 1px solid var(--ink); margin-top: clamp(4px, 1vw, 12px); padding: clamp(18px, 3vw, 32px) var(--pad) clamp(22px, 3vw, 36px); margin-inline: calc(-1 * var(--pad)); }
.hero__schematic .fig-label { margin-bottom: 14px; }
.hero__schematic svg { width: 100%; height: auto; display: block; margin-inline: auto; }

/* wide fold: headline left, live schematic right — claim and machine share the fold */
@media (min-width: 1100px) {
  .hero .sheet__body { padding-bottom: var(--pad); }
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
  .hero .display-xl { font-size: clamp(2.4rem, 3.4vw, 3.6rem); }
  .hero__schematic { border-top: 0; border-left: 1px solid var(--silver); margin: 0; margin-inline: 0; padding: 4px 0 4px clamp(24px, 2.5vw, 48px); }
  .hero__schematic svg { max-width: 560px; max-height: min(72vh, 620px); }
}

/* ---------- schematic + diagram shared svg styles ---------- */

.schem text { font-family: var(--mono); letter-spacing: 0.1em; }
.schem .n-box { fill: var(--paper); stroke: var(--ink); stroke-width: 1.25; }
.schem .n-box--core { stroke-width: 1.75; }
.schem .n-label { font-size: 12px; font-weight: 500; fill: var(--ink); text-transform: uppercase; }
.schem .n-sub { font-size: 9.5px; fill: var(--muted); text-transform: uppercase; }
.schem .edge { fill: none; stroke: var(--blue); stroke-width: 1.1; }
.schem .edge--dim { stroke: var(--silver); }
.schem .anno { font-size: 9.5px; fill: var(--muted); text-transform: uppercase; }
.schem .anno--blue { fill: var(--blue); }
.schem .leader { fill: none; stroke: var(--faint); stroke-width: 0.75; }
.schem .packet { fill: var(--signal); }
.schem .stepnum circle { fill: var(--ink); }
.schem .stepnum text { fill: var(--paper); font-size: 10px; font-weight: 500; }
.schem .icon { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: square; }

/* diagram assembly — hidden pre-built state only when JS is running (html.js);
   otherwise the completed static schematic renders immediately */
html.js :where(.assemble .node) { opacity: 0; transform: translateY(10px); }
.assemble.is-built .node { opacity: 1; transform: none; transition: opacity 180ms steps(3, end), transform 220ms var(--snap); }
html.js :where(.assemble .edge) { stroke-dasharray: var(--len, 800); stroke-dashoffset: var(--len, 800); }
.assemble.is-built .edge { stroke-dashoffset: 0; transition: stroke-dashoffset 480ms linear; }
html.js :where(.assemble .anno-g) { opacity: 0; }
.assemble.is-built .anno-g { opacity: 1; transition: opacity 200ms linear 600ms; }

/* orchestration figure */
.orch { border: 1px solid var(--ink); background: var(--paper); }
.orch__tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--ink); }
.orch__tabs [role="tab"] {
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--paper); color: var(--muted); border: 0; border-right: 1px solid var(--ink);
  padding: 12px 18px; cursor: pointer;
  transition: background 120ms linear, color 120ms linear;
}
.orch__tabs [role="tab"]:hover { background: var(--grid-minor); color: var(--ink); }
.orch__tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--paper); }
.orch__tabs [role="tab"][aria-selected="true"] .t-no { color: var(--signal); }
.orch__tabs .t-no { color: var(--blue); margin-right: 8px; }
.orch__stage { padding: clamp(10px, 2vw, 24px); overflow-x: auto; }
.orch__stage svg { min-width: 760px; width: 100%; height: auto; display: block; }
.orch .edge { transition: stroke 200ms linear, stroke-width 200ms linear, opacity 200ms linear; }
.orch .edge.is-off { stroke: var(--silver); }
.orch .node .n-box { transition: stroke 150ms steps(2, end); }
.orch .node.is-hot .n-box { stroke: var(--signal); stroke-width: 2; }
.orch__legend {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center;
  border-top: 1px solid var(--ink); padding: 12px 18px;
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.orch__legend .lg { display: inline-flex; align-items: center; gap: 8px; }
.orch__legend .sw { width: 14px; height: 3px; background: var(--blue); display: inline-block; }
.orch__legend .sw--dot { width: 7px; height: 7px; background: var(--signal); }
.orch__legend .sw--dim { background: var(--silver); }

/* scenario step list */
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; border: 1px solid var(--ink); border-top: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; border-bottom: 1px solid var(--silver); }
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--silver); color: var(--blue); padding: 12px 0;
}
.steps li p { padding: 12px 16px; font-size: 0.95rem; max-width: none; }
.steps li p .tag { margin-right: 6px; }

/* ---------- problem stats ---------- */

.plates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 0; border: 1px solid var(--ink); }
.plate { padding: clamp(20px, 3vw, 32px); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); position: relative; background: var(--paper); }
.plate .plate-fig {
  font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 4.5vw, 4rem); line-height: 1; color: var(--ink); margin: 14px 0 10px;
}
.plate .plate-fig .u { font-size: 0.45em; color: var(--signal); font-weight: 500; }
.plate p { font-size: 0.95rem; color: var(--muted); max-width: 34ch; }
.plate .dim { margin-top: 18px; }

/* ---------- module cards ---------- */

.mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--ink); border-bottom: 0; }
@media (max-width: 1239.98px) { .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 619.98px) { .mods { grid-template-columns: 1fr; } }
.mod { border-bottom: 1px solid var(--ink); border-right: 1px solid var(--ink); padding: 22px 22px 24px; background: var(--paper); position: relative; transition: background 140ms linear; }
.mod:hover { background: #FFFFFC; }
.mod:hover .mod__icon { background: var(--signal); }
.mod__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mod__icon { width: 40px; height: 40px; border: 1px solid var(--ink); display: grid; place-items: center; background: var(--paper); transition: background 140ms steps(2, end); }
.mod__icon svg { display: block; }
.mod h3 { font-size: 1.2rem; margin-bottom: 8px; }
.mod p { font-size: 0.92rem; color: var(--muted); }
.mod__spec { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.mod__spec .tag--box { font-size: 0.59rem; padding: 3px 6px; color: var(--muted); border-color: var(--silver); }

/* ---------- 30-day programme ---------- */

.ruler-wrap { position: sticky; top: calc(var(--head-h) + 26px); z-index: 5; background: var(--paper); border: 1px solid var(--ink); margin-bottom: clamp(24px, 3vw, 40px); }
@media (min-width: 1180px) { .ruler-wrap { top: var(--head-h); } }
.ruler { position: relative; height: 58px; overflow: hidden; }
.ruler__fill { position: absolute; inset: 0 auto 0 0; width: 0%; background: rgba(255, 77, 0, 0.13); border-right: 2px solid var(--signal); }
.ruler__ticks { position: absolute; inset: 0; display: flex; }
.ruler__ticks span { flex: 1; border-right: 1px solid var(--silver); position: relative; }
.ruler__ticks span:nth-child(7n) { border-right-color: var(--ink); }
.ruler__ticks span i {
  position: absolute; left: 3px; top: 4px; font-style: normal;
  font-family: var(--mono); font-size: 0.5rem; font-weight: 500; letter-spacing: 0.04em; color: var(--faint);
  transition: color 120ms steps(2, end);
}
/* day ticks snap as the programme fill passes them */
.ruler__ticks span::after {
  content: ""; position: absolute; right: -1px; bottom: 0; width: 1px; height: 0;
  background: var(--signal); transition: height 140ms var(--snap);
}
.ruler__ticks span.is-past::after { height: 9px; }
.ruler__ticks span.is-past i { color: var(--ink); }
.ruler__read {
  position: absolute; right: 10px; bottom: 6px;
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.1em;
  background: var(--ink); color: var(--paper); padding: 3px 8px;
}
.weeks { display: grid; gap: clamp(20px, 3vw, 36px); }
.week { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; border: 1px solid var(--ink); background: var(--paper); }
@media (max-width: 860px) { .week { grid-template-columns: 1fr; } }
.week__meta { padding: clamp(20px, 3vw, 32px); border-right: 1px solid var(--ink); }
@media (max-width: 860px) { .week__meta { border-right: 0; border-bottom: 1px solid var(--ink); } }
.week__meta .wk-no { font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; color: var(--blue); text-transform: uppercase; }
.week__meta h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 10px 0 8px; }
.week__meta .wk-days { font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.week__meta p { font-size: 0.95rem; color: var(--muted); margin-top: 14px; }
.week__days { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.wday { border-left: 1px solid var(--silver); border-bottom: 1px solid var(--silver); padding: 14px 14px 16px; min-height: 96px; }
.wday .d-no { font-family: var(--mono); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.1em; color: var(--signal); display: block; margin-bottom: 6px; }
.wday p { font-size: 0.82rem; line-height: 1.45; color: var(--ink); max-width: none; }

/* ---------- handover ---------- */

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.split > * { min-width: 0; }
.rules { list-style: none; border: 1px solid var(--ink); background: var(--paper); }
.rules li { display: grid; grid-template-columns: 74px 1fr; border-bottom: 1px solid var(--silver); }
.rules li:last-child { border-bottom: 0; }
.rules .r-id { font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.1em; color: var(--blue); display: flex; align-items: flex-start; justify-content: center; padding: 14px 0; border-right: 1px solid var(--silver); }
.rules .r-body { padding: 12px 16px 14px; }
.rules .r-body strong { display: block; font-weight: 500; font-size: 0.98rem; }
.rules .r-body span { font-size: 0.85rem; color: var(--muted); }
.decision { border: 1px solid var(--ink); background: var(--paper); padding: clamp(12px, 2vw, 24px); overflow-x: auto; }
.decision svg { width: 100%; min-width: 520px; height: auto; display: block; }
.decision .d-yes { fill: var(--blue); }
.decision .d-no { fill: var(--signal); }
.decision .diamond { fill: var(--paper); stroke: var(--ink); stroke-width: 1.25; }
.decision .term { fill: var(--ink); }
.decision .term-t { fill: var(--paper); }

/* ---------- photographic plate (FIG 06) ---------- */

.photo-plate { margin-top: clamp(36px, 5vw, 64px); }
.plate-frame { position: relative; border: 1px solid var(--ink); background: var(--paper); }
.plate-frame img { display: block; width: 100%; height: auto; }
.plate-anno { position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; }
@media (min-width: 720px) { .plate-anno { display: block; } }
.plate-anno .leader-c { fill: none; stroke: var(--paper); stroke-width: 4; opacity: 0.85; }
.plate-anno .leader { fill: none; stroke: var(--ink); stroke-width: 1.25; }
.plate-anno .pin { fill: var(--paper); stroke: var(--ink); stroke-width: 1.25; }
.plate-anno .lbl-box { fill: var(--paper); stroke: var(--ink); stroke-width: 1.25; }
.plate-anno .lbl {
  font-family: var(--mono); font-weight: 500; font-size: 15px;
  letter-spacing: 0.14em; fill: var(--ink);
}
.plate-anno .lbl--blue { fill: var(--blue); }
.plate-meta {
  display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between;
  border: 1px solid var(--ink); border-top: 0; background: var(--paper); padding: 10px 14px;
  font-family: var(--mono); font-size: 0.575rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.plate-meta .pm-fig { color: var(--ink); }

/* ---------- deliverable mocks ---------- */

.mocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.mock { border: 1px solid var(--ink); background: #FFFFFE; box-shadow: 6px 6px 0 rgba(13, 13, 12, 0.08); }
.mock__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--ink); background: var(--paper); font-family: var(--mono); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.mock__bar .dot { width: 8px; height: 8px; border: 1px solid var(--ink); }
.mock__bar .dot--live { background: var(--signal); border-color: var(--signal); }
.mock__bar .spacer { flex: 1; }
.mock__bar .time { color: var(--muted); }
.mock__body { padding: 18px; }
.mock table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.mock th { font-family: var(--mono); font-weight: 500; font-size: 0.575rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.mock td { padding: 8px; border-bottom: 1px solid var(--grid-minor); vertical-align: top; }
.mock td.mono, .mock .mono { font-family: var(--mono); font-size: 0.7rem; }
.chip { font-family: var(--mono); font-size: 0.575rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--ink); padding: 2px 6px; white-space: nowrap; }
.chip--booked { background: var(--ink); color: var(--paper); }
.chip--handover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.chip--follow { background: var(--paper); }
.chip--logged { border-color: var(--silver); color: var(--muted); }
.summary-kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); margin: 4px 0 16px; }
.summary-kpis > div { padding: 10px 8px 12px; border-right: 1px solid var(--silver); text-align: center; }
.summary-kpis > div:last-child { border-right: 0; }
.summary-kpis .k-n { font-size: 1.7rem; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; display: block; }
.summary-kpis .k-l { font-family: var(--mono); font-size: 0.53rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.summary-list { list-style: none; }
.summary-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--grid-minor); font-size: 0.85rem; align-items: baseline; }
.summary-list li:last-child { border-bottom: 0; }
.summary-list .t { font-family: var(--mono); font-size: 0.65rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.mock__foot { border-top: 1px solid var(--ink); padding: 10px 14px; font-family: var(--mono); font-size: 0.575rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mock-note { margin-top: 12px; }

.speclist { list-style: none; border: 1px solid var(--ink); background: var(--paper); margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 999.98px) { .speclist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 619.98px) { .speclist { grid-template-columns: 1fr; } }
.speclist li { padding: 18px 20px; border-right: 1px solid var(--silver); border-bottom: 1px solid var(--silver); }
.speclist .s-id { font-family: var(--mono); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.12em; color: var(--blue); display: block; margin-bottom: 8px; }
.speclist strong { font-weight: 500; display: block; margin-bottom: 4px; }
.speclist span { font-size: 0.85rem; color: var(--muted); }

/* ---------- outcomes ---------- */

.targets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); border: 1px solid var(--ink); }
.target { padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 30px); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper); }
.target .t-fig { font-size: clamp(2.8rem, 5vw, 4.4rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.target .t-fig .u { color: var(--signal); font-size: 0.42em; vertical-align: 0.6em; font-weight: 500; }
.target .dim { margin: 14px 0 10px; }
.target p { font-size: 0.92rem; color: var(--muted); }

/* ---------- engage form ---------- */

.engage-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 4vw, 64px); }
@media (max-width: 960px) { .engage-grid { grid-template-columns: 1fr; } }
.form { border: 1px solid var(--ink); background: var(--paper); }
.form__head { padding: 14px 18px; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.form__head span:last-child { color: var(--blue); }
.form fieldset { border: 0; padding: 0; display: grid; }
.field { display: grid; gap: 6px; padding: 16px 18px; border-bottom: 1px solid var(--silver); }
.field label { font-family: var(--mono); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 6px 0 8px;
  border-radius: 0; width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-bottom: 2px solid var(--blue); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.form .btn { margin: 18px; }
.form__ok { padding: clamp(28px, 4vw, 48px) 22px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.form__ok .display-m { max-width: 24ch; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer / revision block ---------- */

.rev-footer { width: min(1400px, calc(100% - 2 * clamp(14px, 3vw, 48px))); margin: 0 auto clamp(44px, 6vw, 88px); border: 1px solid var(--ink); background: var(--paper); }
.rev-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr; }
@media (max-width: 900px) { .rev-footer__grid { grid-template-columns: 1fr; } }
.rev-block { border-right: 1px solid var(--ink); }
@media (max-width: 900px) { .rev-block { border-right: 0; border-bottom: 1px solid var(--ink); } }
.rev-block table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em; }
.rev-block caption { text-align: left; padding: 10px 16px; font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid var(--ink); }
.rev-block th { text-align: left; font-weight: 500; font-size: 0.575rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 8px 16px; border-bottom: 1px solid var(--ink); }
.rev-block td { padding: 8px 16px; border-bottom: 1px solid var(--silver); vertical-align: top; }
.rev-block tr:last-child td { border-bottom: 0; }
.rev-block .rv { color: var(--signal); font-weight: 500; }
.title-block { display: grid; }
.title-block > div { padding: 14px 18px; border-bottom: 1px solid var(--silver); }
.title-block > div:last-child { border-bottom: 0; }
.title-block .tb-l { font-family: var(--mono); font-size: 0.575rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 3px; }
.title-block .tb-v { font-size: 0.95rem; font-weight: 500; }
.title-block a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.title-block a:hover { color: var(--blue); }
.foot-nav { display: flex; flex-wrap: wrap; border-top: 1px solid var(--ink); }
.foot-nav a {
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; padding: 12px 18px; border-right: 1px solid var(--silver);
  transition: background 120ms linear, color 120ms linear;
}
.foot-nav a:hover { background: var(--ink); color: var(--paper); }
.credit { padding: 12px 18px; border-top: 1px solid var(--ink); font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.credit a { color: var(--ink); text-underline-offset: 3px; }
.credit a:hover { color: var(--blue); }

/* ---------- guide & process page helpers ---------- */

.prose { max-width: 74ch; }
.prose h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 2.2em 0 0.6em; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 1em; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose code { font-family: var(--mono); font-size: 0.82em; background: var(--grid-minor); padding: 1px 5px; border: 1px solid var(--silver); }
pre.code {
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.6;
  background: var(--ink); color: var(--paper); padding: 20px 22px; overflow-x: auto;
  border: 1px solid var(--ink); margin: 1.4em 0; max-width: 100%;
}
pre.code .c { color: #8B8B83; }
pre.code .k { color: #FF8A57; }
pre.code .s { color: #9DB4FF; }
.passlog { list-style: none; border: 1px solid var(--ink); background: var(--paper); margin: 1.4em 0; }
.passlog > li { border-bottom: 1px solid var(--ink); padding: 18px 20px; }
.passlog > li:last-child { border-bottom: 0; }
.passlog .pl-t { font-family: var(--mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); display: block; margin-bottom: 10px; }
.passlog ul { list-style: none; margin: 0; display: grid; gap: 8px; }
.passlog ul li { font-size: 0.92rem; color: var(--muted); padding-left: 18px; position: relative; margin: 0; }
.passlog ul li::before { content: "—"; position: absolute; left: 0; color: var(--signal); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.note-box { border: 1px solid var(--ink); background: var(--paper); padding: 18px 20px; font-size: 0.9rem; color: var(--muted); }
.note-box .tag { display: block; margin-bottom: 8px; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  html [data-reveal], .is-in > [data-reveal] { opacity: 1; transform: none; }
  html .assemble .node { opacity: 1; transform: none; }
  html .assemble .edge { stroke-dasharray: none; stroke-dashoffset: 0; }
  html .assemble .anno-g { opacity: 1; }
  .schem .packet { display: none; }
  .ruler__fill { transition: none; }
}
