/* ==========================================================================
   Richard Franklin — The Drawing Set
   One stylesheet. Tokens → base → layout → components → pages → motion.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #eeebe3;
  --paper-2: #e6e2d8;
  --paper-3: #dcd7ca;
  --ink: #121210;
  --ink-2: #3a3833;
  --muted: #6b675e;
  --line: rgba(18, 18, 16, 0.14);
  --line-strong: rgba(18, 18, 16, 0.32);
  --signal: #c2341b;          /* drafting red: annotations, current state */
  --signal-soft: rgba(194, 52, 27, 0.1);
  --ok: #2f6b3f;
  --grid: rgba(18, 18, 16, 0.045);

  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-sans: "Geist", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.1vw, 2.3rem);
  --step-3: clamp(2.2rem, 1.6rem + 2.6vw, 3.9rem);
  --step-4: clamp(3rem, 1.8rem + 5.4vw, 7.2rem);

  --gutter: clamp(16px, 3.2vw, 44px);
  --maxw: 1440px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 160ms;
  --t-med: 420ms;
  --t-slow: 900ms;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12120f;
    --paper-2: #191916;
    --paper-3: #23221e;
    --ink: #ebe7dc;
    --ink-2: #c9c4b7;
    --muted: #8f8a7e;
    --line: rgba(235, 231, 220, 0.12);
    --line-strong: rgba(235, 231, 220, 0.3);
    --signal: #ff6a45;
    --signal-soft: rgba(255, 106, 69, 0.12);
    --ok: #7fbf8c;
    --grid: rgba(235, 231, 220, 0.04);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12120f; --paper-2: #191916; --paper-3: #23221e;
  --ink: #ebe7dc; --ink-2: #c9c4b7; --muted: #8f8a7e;
  --line: rgba(235, 231, 220, 0.12); --line-strong: rgba(235, 231, 220, 0.3);
  --signal: #ff6a45; --signal-soft: rgba(255, 106, 69, 0.12); --ok: #7fbf8c;
  --grid: rgba(235, 231, 220, 0.04);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--signal); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--signal); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px;
  font-family: var(--f-mono); font-size: var(--step--1); text-decoration: none;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Type helpers ---------- */
.mono, .label {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.label { color: var(--muted); }
.label b { color: var(--ink); font-weight: 500; }
.serif { font-family: var(--f-display); }
.display {
  font-family: var(--f-display);
  font-size: var(--step-3);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.display em, .serif em { font-style: italic; }
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); max-width: 34ch; }
.measure { max-width: 62ch; }
.signal { color: var(--signal); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 28px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Section heads read like sheet titles: number · name ……… note */
.sheet { padding-block: clamp(72px, 11vw, 160px); position: relative; }
.sheet + .sheet { border-top: 1px solid var(--line); }
.sheet-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 2vw, 28px); align-items: end;
  margin-bottom: clamp(40px, 6vw, 88px);
}
.sheet-head .num {
  grid-column: 1 / span 2; font-family: var(--f-mono); font-size: var(--step--1); color: var(--signal);
  align-self: start; padding-top: 0.6em;
}
.sheet-head h2 { grid-column: 3 / span 7; font-family: var(--f-display); font-size: var(--step-3); line-height: 1; letter-spacing: -0.015em; }
.sheet-head .aside { grid-column: 10 / span 3; color: var(--muted); font-size: var(--step--1); font-family: var(--f-mono); }
@media (max-width: 860px) {
  .sheet-head { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .sheet-head .num, .sheet-head h2, .sheet-head .aside { grid-column: 1; }
}

/* ---------- Top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background var(--t-med) var(--ease-out), border-color var(--t-med);
  border-bottom: 1px solid transparent;
}
.bar.is-solid {
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom-color: var(--line);
}
.bar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px;
}
.mark {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--f-mono); font-size: var(--step--1);
}
.mark svg { width: 26px; height: 26px; }
.mark .who { white-space: nowrap; }
.mark .who span { color: var(--muted); }
.bar nav ul { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.bar nav a {
  font-family: var(--f-mono); font-size: var(--step--1); text-decoration: none; color: var(--ink-2);
  position: relative; padding-block: 6px;
}
.bar nav a sup { color: var(--muted); font-size: 0.75em; margin-right: 2px; vertical-align: 0.4em; }
.bar nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--signal);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease-out);
}
.bar nav a:hover::after, .bar nav a[aria-current="true"]::after { transform: scaleX(1); }
.bar nav a[aria-current="true"] { color: var(--ink); }
.bar .now {
  font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted);
  min-width: 15ch; text-align: right;
}
.bar-end { display: flex; align-items: center; gap: 18px; }
.theme {
  appearance: none; background: none; border: 1px solid var(--line-strong); width: 28px; height: 28px; padding: 0;
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
}
.theme:hover { border-color: var(--signal); color: var(--signal); }
.theme svg { width: 14px; height: 14px; }
@media (max-width: 860px) {
  .bar .now, .mark .who span { display: none; }
  .bar nav a sup { display: none; }
}
@media (max-width: 420px) {
  .mark .who { display: none; }
}
@media (max-width: 560px) {
  .bar--case .mark { display: none; }
  .bar--case nav ul { gap: 12px; }
  .bar nav a { font-size: 12px; }
}

/* ==========================================================================
   SHEET 00 — the cover / hero
   ========================================================================== */
.cover {
  position: relative;
  min-height: min(100svh, 1000px);
  padding: 76px var(--gutter) var(--gutter);
  display: flex;
}
.frame {
  position: relative; flex: 1;
  border: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(12px, 2vw, 28px);
  padding: clamp(20px, 3.4vw, 48px);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  overflow: hidden;
  isolation: isolate;
}
/* Rulers along top + left edges */
.ruler-x, .ruler-y { position: absolute; pointer-events: none; color: var(--muted); }
.ruler-x {
  left: 0; right: 0; top: 0; height: 9px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 24px),
              repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 120px);
  background-size: 100% 5px, 100% 9px; background-repeat: no-repeat;
}
.ruler-y {
  top: 0; bottom: 0; left: 0; width: 9px;
  background: repeating-linear-gradient(180deg, var(--line-strong) 0 1px, transparent 1px 24px),
              repeating-linear-gradient(180deg, var(--line-strong) 0 1px, transparent 1px 120px);
  background-size: 5px 100%, 9px 100%; background-repeat: no-repeat;
}
/* Registration crosses in corners */
.reg { position: absolute; width: 14px; height: 14px; pointer-events: none; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--ink); }
.reg::before { left: 6px; top: 0; width: 1px; height: 14px; }
.reg::after { top: 6px; left: 0; height: 1px; width: 14px; }
.reg.tl { top: -7px; left: -7px; } .reg.tr { top: -7px; right: -7px; }
.reg.bl { bottom: -7px; left: -7px; } .reg.br { bottom: -7px; right: -7px; }

/* Crosshair cursor (fine pointers only, enabled by JS) */
.xhair { position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0; transition: opacity var(--t-med); }
.frame.has-pointer .xhair { opacity: 1; }
.xhair .h, .xhair .v { position: absolute; background: var(--signal); opacity: 0.55; }
.xhair .h { left: 0; right: 0; height: 1px; transform: translateY(var(--cy, -10px)); }
.xhair .v { top: 0; bottom: 0; width: 1px; transform: translateX(var(--cx, -10px)); }
.xhair .read {
  position: absolute; left: 0; top: 0;
  transform: translate(calc(var(--cx, 0px) + 10px), calc(var(--cy, 0px) + 10px));
  font-family: var(--f-mono); font-size: 11px; color: var(--signal);
  background: var(--paper); padding: 2px 5px; border: 1px solid var(--signal-soft);
  white-space: nowrap;
}

.cover-top {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; align-items: start;
  position: relative; z-index: 2;
}
.cover-main {
  grid-column: 1 / span 7; align-self: center; position: relative; z-index: 2;
  padding-block: clamp(32px, 6vw, 72px);
}
.cover-fig {
  grid-column: 8 / span 5; align-self: center; position: relative; z-index: 2;
}
.cover-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; gap: 24px; position: relative; z-index: 2; }

.hero-title {
  font-family: var(--f-display);
  font-size: var(--step-4);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .ln > span { display: inline-block; }
.hero-title .ln:last-child { padding-bottom: 36px; margin-bottom: -20px; }
.hero-title em { font-style: italic; }
.hero-title .lb { position: relative; display: inline-block; }
/* Dimension line under "load-bearing" */
.dim {
  position: absolute; left: 0; right: 0; bottom: -0.2em; height: 14px;
  color: var(--signal); pointer-events: none;
}
.dim::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: currentColor; transform-origin: left; }
.dim i { position: absolute; top: 0; width: 1px; height: 13px; background: currentColor; }
.dim i:first-child { left: 0; } .dim i:last-child { right: 0; }
.dim b {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%);
  font: 400 11px/1 var(--f-mono); letter-spacing: 0.01em; white-space: nowrap; background: var(--paper); padding: 2px 6px;
}

.hero-sub { max-width: 46ch; color: var(--ink-2); font-size: var(--step-1); line-height: 1.45; margin-bottom: 32px; }
.hero-sub strong { color: var(--ink); font-weight: 500; }

.actions { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: var(--step--1);
  padding: 13px 18px; text-decoration: none; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.btn:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform var(--t-med) var(--ease-out); }
.btn:hover .arr { transform: translateY(2px); }
.link-arrow {
  font-family: var(--f-mono); font-size: var(--step--1); text-decoration: none;
  display: inline-flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px;
}
.link-arrow:hover { border-color: var(--signal); color: var(--signal); }
.link-arrow .arr { transition: transform var(--t-med) var(--ease-out); }
.link-arrow:hover .arr { transform: translateX(4px); }

/* Title block, like the corner of an engineering drawing */
.titleblock {
  display: grid; grid-template-columns: repeat(4, auto);
  border: 1px solid var(--line-strong); background: var(--paper);
  font-family: var(--f-mono); font-size: 11px; line-height: 1.35;
}
.titleblock div { padding: 7px 12px 8px; border-left: 1px solid var(--line); }
.titleblock div:first-child { border-left: 0; }
.titleblock span { display: block; color: var(--muted); font-size: 10px; }
.titleblock b { font-weight: 500; white-space: nowrap; }
.titleblock .live b::before {
  content: ""; display: inline-block; width: 6px; height: 6px; background: var(--signal); margin-right: 6px; vertical-align: 1px;
}
.scrollcue { font-family: var(--f-mono); font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.scrollcue i { display: block; width: 1px; height: 28px; background: var(--line-strong); position: relative; overflow: hidden; }
.scrollcue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--signal); animation: drip 2.2s var(--ease-draw) infinite; }
@keyframes drip { to { top: 100%; } }

/* --- Fig. 1: Section A–A through a product --- */
.section-fig { width: 100%; }
.section-fig svg { width: 100%; height: auto; overflow: visible; }
.section-fig .cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.sx text { font-family: var(--f-mono); font-size: 11px; fill: var(--muted); }
.sx .t-ink { fill: var(--ink); }
.sx .t-sig { fill: var(--signal); }
.sx .stroke { stroke: var(--ink); fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.sx .stroke-faint { stroke: var(--line-strong); fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.sx .stroke-sig { stroke: var(--signal); fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.sx .hatch { fill: url(#hatch); }
.sx .idea { fill: var(--signal); }
.sx .layer { cursor: default; outline: none; }
.sx .layer rect.hit { fill: transparent; }
.sx .layer .band { fill: var(--paper); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill var(--t-fast); }
.sx .layer:hover .band, .sx .layer:focus-visible .band, .sx .layer.is-on .band { fill: var(--signal-soft); }
.sx .layer:focus-visible .band { stroke: var(--signal); stroke-width: 2; }
.sx .layer .nm { fill: var(--ink); font-size: 12px; }
.sx .layer.is-on .nm { fill: var(--signal); }

.note-out {
  margin-top: 16px; min-height: 5.2em; border-top: 1px solid var(--line); padding-top: 12px;
  display: grid; grid-template-columns: 7ch 1fr; gap: 0 14px; font-size: var(--step--1);
}
.note-out .k { font-family: var(--f-mono); color: var(--signal); }
.note-out p { margin: 0; color: var(--ink-2); }
.note-out p b { font-weight: 500; color: var(--ink); }

@media (max-width: 1020px) {
  .cover-main { grid-column: 1 / -1; padding-bottom: 8px; }
  .cover-fig { grid-column: 1 / -1; max-width: 560px; padding-bottom: 32px; }
  .frame { grid-template-rows: auto auto auto auto; }
}
@media (max-width: 640px) {
  .cover { padding: 68px 10px 10px; }
  .frame { padding: 18px 16px; }
  .titleblock { grid-template-columns: 1fr 1fr; width: 100%; }
  .titleblock div:nth-child(3) { border-left: 0; }
  .titleblock div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cover-foot { flex-direction: column-reverse; align-items: stretch; }
  .scrollcue { display: none; }
  .dim b { font-size: 10px; }
}

/* ==========================================================================
   SHEET 01 — Register of work
   ========================================================================== */
.register { border-top: 1px solid var(--ink); }
.register li { border-bottom: 1px solid var(--line); }
.reg-row {
  display: grid; grid-template-columns: 6ch minmax(0, 1.5fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.9fr) 3ch;
  gap: 18px; align-items: baseline;
  padding: clamp(18px, 2.2vw, 30px) 4px; text-decoration: none;
  position: relative;
  transition: padding var(--t-med) var(--ease-out), color var(--t-fast);
}
.reg-row::before {
  content: ""; position: absolute; inset: 0; background: var(--paper-2); transform: scaleY(0); transform-origin: bottom;
  transition: transform var(--t-med) var(--ease-out); z-index: -1;
}
.reg-row:hover::before, .reg-row:focus-visible::before { transform: scaleY(1); }
.reg-row:hover { padding-left: 18px; }
.reg-row .n { font-family: var(--f-mono); font-size: var(--step--1); color: var(--signal); }
.reg-row .t { font-family: var(--f-display); font-size: var(--step-2); line-height: 1; }
.reg-row .d { color: var(--ink-2); font-size: var(--step--1); line-height: 1.45; }
.reg-row .r, .reg-row .s { font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); }
.reg-row .go { font-family: var(--f-mono); justify-self: end; transition: transform var(--t-med) var(--ease-out); }
.reg-row:hover .go { transform: translateX(-6px); color: var(--signal); }
.reg-head {
  display: grid; grid-template-columns: 6ch minmax(0, 1.5fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.9fr) 3ch;
  gap: 18px; padding: 0 4px 10px; font-family: var(--f-mono); font-size: 11px; color: var(--muted);
}
.reg-thumb { display: none; }
@media (max-width: 860px) {
  .reg-head { display: none; }
  .reg-row { grid-template-columns: 4ch 1fr 3ch; row-gap: 6px; }
  .reg-row .t { grid-column: 2; }
  .reg-row .go { grid-column: 3; grid-row: 1; }
  .reg-row .d, .reg-row .r, .reg-row .s { grid-column: 2 / span 2; }
  .reg-row:hover { padding-left: 4px; }
}

/* Floating preview plate that follows the pointer over the register */
.peek {
  position: fixed; left: 0; top: 0; z-index: 40; width: min(380px, 30vw); pointer-events: none;
  opacity: 0; transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(0.96);
  transition: opacity var(--t-med) var(--ease-out);
  border: 1px solid var(--ink); background: var(--paper);
}
.peek.on { opacity: 1; }
.peek img, .peek .peek-art { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.peek .cap { display: flex; justify-content: space-between; padding: 6px 10px; font: 11px/1.3 var(--f-mono); border-top: 1px solid var(--line); }

/* Feature plates for the two main products */
.plate { padding-block: clamp(56px, 8vw, 120px); border-top: 1px solid var(--line); }
.plate:first-of-type { border-top: 0; }
.plate-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 28px); row-gap: 40px; align-items: start; }
.plate-copy { grid-column: 1 / span 4; position: sticky; top: 96px; }
.plate-art { grid-column: 6 / span 7; }
.plate.flip .plate-copy { grid-column: 9 / span 4; grid-row: 1; }
.plate.flip .plate-art { grid-column: 1 / span 7; grid-row: 1; }
.plate-copy .idx { font-family: var(--f-mono); font-size: var(--step--1); color: var(--signal); margin-bottom: 22px; display: block; }
.plate-copy h3 { font-family: var(--f-display); font-size: var(--step-3); line-height: 0.98; margin-bottom: 18px; letter-spacing: -0.015em; }
.plate-copy .pitch { font-size: var(--step-1); line-height: 1.4; color: var(--ink); margin-bottom: 20px; }
.plate-copy p { color: var(--ink-2); }
.spec { margin: 26px 0 30px; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 11ch 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.spec dt { font-family: var(--f-mono); color: var(--muted); }
.spec dd { margin: 0; }
@media (max-width: 960px) {
  .plate-copy, .plate.flip .plate-copy { grid-column: 1 / -1; position: static; grid-row: auto; }
  .plate-art, .plate.flip .plate-art { grid-column: 1 / -1; grid-row: auto; }
}

/* Shot frames — real screenshots presented as mounted plates */
.shot { position: relative; border: 1px solid var(--ink); background: var(--paper-2); }
.shot img { width: 100%; }
.shot figcaption, .fig-cap {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px;
  font-family: var(--f-mono); font-size: 11px; color: var(--muted); border-top: 1px solid var(--line);
  background: var(--paper);
}
.shot figcaption b, .fig-cap b { color: var(--ink); font-weight: 500; }
.shot-stack { display: grid; gap: 18px; }
.shot-stack .shot:first-child { display: flex; flex-direction: column; }
.shot-stack .shot:first-child figcaption { order: -1; border-top: 0; border-bottom: 1px solid var(--line); }
.shot-stack .shot.offset { margin-left: 14%; margin-top: -14%; box-shadow: -14px 14px 0 var(--paper); position: relative; }
@media (max-width: 640px) { .shot-stack .shot.offset { margin-left: 8%; margin-top: -6%; box-shadow: -8px 8px 0 var(--paper); } }

/* Image reveal: a wipe like a sheet being pulled from a plan chest */
.reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-draw); }
.reveal-img.in { clip-path: inset(0 0 0 0); }

/* ThimbleKit plate art: notebook → structure */
.shift {
  display: grid; grid-template-columns: 1fr auto 1fr; border: 1px solid var(--ink); background: var(--paper);
}
.shift > div { padding: clamp(18px, 2.4vw, 32px); }
.shift .from { background: var(--paper-2); }
.shift .arrow { border-inline: 1px solid var(--line); display: grid; place-items: center; padding: 10px; color: var(--signal); font-family: var(--f-mono); font-size: 11px; writing-mode: vertical-rl; letter-spacing: 0.08em; }
.shift h4 { font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-bottom: 18px; }
.scrawl { font-family: var(--f-display); font-style: italic; font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.45rem); line-height: 1.35; color: var(--ink-2); }
.scrawl p { margin: 0 0 0.55em; transform: rotate(var(--r, -0.6deg)); }
.scrawl s { text-decoration-color: var(--signal); }
.scrawl .q { color: var(--signal); }
.fields { font-size: var(--step--1); }
.fields div { display: grid; grid-template-columns: 11ch 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fields div:first-child { border-top: 1px solid var(--line); }
.fields dt { font-family: var(--f-mono); color: var(--muted); }
.fields dd { margin: 0; }
.stages { display: flex; gap: 4px; margin-top: 18px; flex-wrap: wrap; }
.stages span { font-family: var(--f-mono); font-size: 10.5px; padding: 4px 7px; border: 1px solid var(--line-strong); }
.stages span.done { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stages span.now { border-color: var(--signal); color: var(--signal); }
@media (max-width: 640px) {
  .shift { grid-template-columns: 1fr; }
  .shift .arrow { writing-mode: horizontal-tb; border-inline: 0; border-block: 1px solid var(--line); }
}

/* ==========================================================================
   Unlisted work — a specification table
   ========================================================================== */
.specs { border-top: 1px solid var(--ink); }
.specs li {
  display: grid; grid-template-columns: 6ch minmax(0, 1.1fr) minmax(0, 2fr); gap: 18px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.specs .n { font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); }
.specs h3 { font-size: var(--step-1); line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; }
.specs p { margin: 0; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 760px) { .specs li { grid-template-columns: 4ch 1fr; } .specs p { grid-column: 2; } }
.nda-note { margin-top: 28px; display: flex; gap: 12px; align-items: baseline; color: var(--muted); font-size: var(--step--1); }

/* ==========================================================================
   Method — principles as numbered notes
   ========================================================================== */
.principles { counter-reset: p; }
.principle {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 28px);
  padding-block: clamp(28px, 4vw, 52px); border-top: 1px solid var(--line);
}
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle .n { grid-column: 1 / span 2; font-family: var(--f-mono); font-size: var(--step--1); color: var(--signal); padding-top: 0.8em; }
.principle h3 { grid-column: 3 / span 6; font-family: var(--f-display); font-size: var(--step-2); line-height: 1.08; letter-spacing: -0.01em; }
.principle p { grid-column: 9 / span 4; color: var(--ink-2); margin: 0; padding-top: 0.35em; font-size: var(--step--1); line-height: 1.6; }
@media (max-width: 860px) {
  .principle { grid-template-columns: 4ch minmax(0, 1fr); row-gap: 12px; }
  .principle .n { grid-column: 1; padding-top: 0.5em; }
  .principle h3, .principle p { grid-column: 2; }
}

/* Materials schedule (tech, without logos or bars) */
.materials { margin-top: clamp(64px, 9vw, 120px); }
.materials h3 { font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); font-weight: 400; margin-bottom: 18px; }
.mat-table { width: 100%; border-collapse: collapse; }
.mat-table th, .mat-table td { text-align: left; vertical-align: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.mat-table tr:last-child th, .mat-table tr:last-child td { border-bottom: 1px solid var(--line); }
.mat-table th { font-weight: 400; font-family: var(--f-display); font-size: var(--step-2); width: 28%; padding-right: 24px; line-height: 1; }
.mat-table td.items { font-size: var(--step-1); line-height: 1.5; }
.mat-table td.items span { white-space: nowrap; display: inline-block; }
.mat-table td.items span + span::before { content: " / "; color: var(--line-strong); white-space: pre; }
.mat-table td.use { color: var(--muted); font-size: var(--step--1); width: 30%; padding-left: 24px; }
@media (max-width: 860px) {
  .mat-table, .mat-table tbody, .mat-table tr, .mat-table th, .mat-table td { display: block; width: auto; }
  .mat-table tr { border-top: 1px solid var(--line); padding: 16px 0; }
  .mat-table th, .mat-table td { border: 0 !important; padding: 0 0 8px; }
  .mat-table td.use { padding-left: 0; }
}

/* ==========================================================================
   Record — timeline as a drawn scale
   ========================================================================== */
.record { position: relative; }
.scale {
  position: relative; height: 64px; margin-bottom: 28px; border-bottom: 1px solid var(--ink);
}
.scale .yr { position: absolute; bottom: 0; transform: translateX(-50%); font-family: var(--f-mono); font-size: 11px; color: var(--muted); padding-bottom: 14px; }
.scale .yr::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 9px; background: var(--ink); }
.scale .span {
  position: absolute; height: 3px; bottom: -2px; background: var(--ink);
  transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease-draw);
}
.scale .span.sig { background: var(--signal); }
.scale .yr:first-child { transform: none; } .scale .yr:first-child::after { left: 0; }
.scale .yr.last { transform: translateX(-100%); } .scale .yr.last::after { left: auto; right: 0; }
.scale .tag { position: absolute; bottom: 8px; font-family: var(--f-mono); font-size: 11px; color: var(--ink); background: var(--paper); padding-inline: 4px; }
.scale .tag.sig { color: var(--signal); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px; margin-top: 28px; font-family: var(--f-mono); font-size: 11px; }
.flow span { border: 1px solid var(--line-strong); padding: 6px 9px; background: var(--paper); }
.flow span.code { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.flow span.ai { border-style: dashed; }
.flow i { font-style: normal; color: var(--signal); }
.flow-key { display: flex; gap: 18px; margin-top: 12px; font-family: var(--f-mono); font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.flow-key b { display: inline-block; width: 10px; height: 10px; border: 1px solid var(--ink); vertical-align: -1px; margin-right: 6px; }
.flow-key b.code { background: var(--ink); } .flow-key b.ai { border-style: dashed; border-color: var(--line-strong); }
.scale .span.open::after { content: "→"; position: absolute; right: -16px; top: -9px; font-size: 12px; color: var(--signal); }
.in .scale .span, .scale.in .span { transform: scaleX(1); }
.entries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.entry { padding: 22px clamp(14px, 2vw, 28px) 8px 0; border-right: 1px solid var(--line); }
.entry + .entry { padding-left: clamp(14px, 2vw, 28px); }
.entry:last-child { border-right: 0; }
.entry .when { font-family: var(--f-mono); font-size: var(--step--1); color: var(--signal); margin-bottom: 14px; display: block; }
.entry h3 { font-family: var(--f-display); font-size: var(--step-2); line-height: 1.02; margin-bottom: 6px; }
.entry .role { font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); margin-bottom: 14px; display: block; }
.entry p { color: var(--ink-2); font-size: var(--step--1); }
@media (max-width: 860px) {
  .scale { display: none; }
  .entries { grid-template-columns: 1fr; }
  .entry, .entry + .entry { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0 12px; }
}

/* ==========================================================================
   Margins — beyond the code
   ========================================================================== */
.margins-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 28px); row-gap: 48px; }
.portrait { grid-column: 1 / span 4; }
.portrait .frame-ph {
  position: relative; aspect-ratio: 4 / 5; border: 1px solid var(--ink); overflow: hidden;
  background:
    repeating-linear-gradient(45deg, transparent 0 9px, var(--line) 9px 10px),
    var(--paper-2);
}
.portrait .frame-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter var(--t-slow); }
.portrait .frame-ph:hover img { filter: grayscale(0); }
.portrait .frame-ph .ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
  font-family: var(--f-mono); font-size: 11px; color: var(--muted);
}
.portrait .frame-ph .ph::before, .portrait .frame-ph .ph::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 140%; height: 1px; background: var(--line-strong);
  transform: translate(-50%, -50%) rotate(51.3deg);
}
.portrait .frame-ph .ph::after { transform: translate(-50%, -50%) rotate(-51.3deg); }
.portrait .frame-ph .ph span { position: relative; z-index: 1; background: var(--paper-2); padding: 6px 10px; }
.portrait .frame-ph.has-img .ph { display: none; }
.notes { grid-column: 6 / span 7; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--ink); }
.notes li { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--line); }
.notes li:nth-child(odd) { border-right: 1px solid var(--line); }
.notes li:nth-child(even) { padding-left: 24px; padding-right: 0; }
.notes .k { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--signal); margin-bottom: 12px; }
.notes p { font-family: var(--f-display); font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.6rem); line-height: 1.22; margin: 0; }
@media (max-width: 960px) {
  .portrait { grid-column: 1 / -1; max-width: 360px; }
  .notes { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .notes { grid-template-columns: 1fr; }
  .notes li, .notes li:nth-child(even) { padding: 22px 0; border-right: 0 !important; }
}

/* ==========================================================================
   Correspondence — contact
   ========================================================================== */
.contact { padding-block: clamp(96px, 14vw, 200px) clamp(48px, 6vw, 80px); border-top: 1px solid var(--ink); }
.contact .kicker { font-family: var(--f-mono); font-size: var(--step--1); color: var(--signal); margin-bottom: 28px; display: block; }
.contact h2 { font-family: var(--f-display); font-size: var(--step-4); line-height: 0.92; letter-spacing: -0.025em; max-width: 12ch; }
.contact h2 em { font-style: italic; }
.contact .sub { margin-top: 28px; max-width: 46ch; color: var(--ink-2); font-size: var(--step-1); line-height: 1.45; }
.mailto {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-top: clamp(36px, 5vw, 64px);
  font-family: var(--f-display); font-size: var(--step-3); line-height: 1; text-decoration: none;
  border-bottom: 1px solid var(--ink); padding-bottom: 10px; max-width: 100%; overflow-wrap: anywhere;
}
.mailto .arr { font-family: var(--f-mono); font-size: var(--step-0); color: var(--signal); transition: transform var(--t-med) var(--ease-out); }
.mailto:hover { color: var(--signal); border-color: var(--signal); }
.mailto:hover .arr { transform: translate(4px, -4px); }
.channels { margin-top: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.channels a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 18px 16px 18px 0; text-decoration: none; border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: var(--step--1);
}
.channels a + a { padding-left: 16px; border-left: 1px solid var(--line); }
.channels a span { color: var(--muted); }
.channels a:hover { color: var(--signal); }
.channels a:hover span { color: var(--signal); }
@media (max-width: 760px) {
  .channels { grid-template-columns: 1fr 1fr; }
  .channels a:nth-child(3) { padding-left: 0; border-left: 0; }
}

.endblock {
  margin-top: clamp(64px, 8vw, 112px);
  display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px; color: var(--muted);
}
.endblock .titleblock { color: var(--ink); }
.endblock a { color: var(--muted); }

/* ==========================================================================
   Case study pages
   ========================================================================== */
.cs-cover { padding: 100px var(--gutter) 0; }
.cs-cover .crumb { font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: clamp(36px, 6vw, 80px); }
.cs-cover .crumb a { color: var(--muted); }
.cs-cover .crumb a:hover { color: var(--signal); }
.cs-title {
  font-family: var(--f-display); font-size: clamp(3.4rem, 1.4rem + 10vw, 12rem); line-height: 0.84; letter-spacing: -0.035em;
  margin-left: -0.04em;
}
.cs-title .ln { display: block; overflow: hidden; padding-bottom: 0.04em; }
.cs-title .ln > span { display: inline-block; }
.cs-strap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 28px); margin-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(36px, 5vw, 64px); }
.cs-strap .pitch { grid-column: 1 / span 6; font-family: var(--f-display); font-size: var(--step-2); line-height: 1.12; }
.cs-strap .pitch em { font-style: italic; color: var(--signal); }
.cs-strap .spec { grid-column: 8 / span 5; margin: 0; }
@media (max-width: 860px) { .cs-strap .pitch, .cs-strap .spec { grid-column: 1 / -1; } .cs-strap .spec { margin-top: 28px; } }

.cs-hero-art { padding-inline: var(--gutter); }
.cs-hero-art .wrap { padding: 0; }

.chapter {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 28px);
  padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line);
}
.chapter > .side { grid-column: 1 / span 3; }
.chapter > .side .n { font-family: var(--f-mono); font-size: var(--step--1); color: var(--signal); display: block; margin-bottom: 8px; }
.chapter > .side h2 { font-family: var(--f-mono); font-size: var(--step--1); color: var(--ink); font-weight: 400; position: sticky; top: 84px; }
.chapter > .body { grid-column: 4 / span 8; }
.chapter > .wide { grid-column: 4 / -1; }
.chapter .big {
  font-family: var(--f-display); font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.008em; margin-bottom: 1em; max-width: 30ch;
}
.chapter .big em { font-style: italic; }
.chapter .body > p { max-width: 62ch; color: var(--ink-2); }
.chapter .body > p strong { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) {
  .chapter { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .chapter > .side, .chapter > .body, .chapter > .wide { grid-column: 1; }
  .chapter > .side h2 { position: static; }
}

.pull {
  font-family: var(--f-display); font-size: var(--step-3); line-height: 1.02; letter-spacing: -0.015em;
  padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); max-width: 20ch;
}
.pull em { font-style: italic; color: var(--signal); }

.decisions { counter-reset: d; border-top: 1px solid var(--ink); }
.decisions li { display: grid; grid-template-columns: 5ch 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.decisions li::before { counter-increment: d; content: "D" counter(d, decimal-leading-zero); font-family: var(--f-mono); font-size: var(--step--1); color: var(--signal); padding-top: 0.2em; }
.decisions h3 { font-size: var(--step-1); font-weight: 500; line-height: 1.3; margin-bottom: 6px; letter-spacing: -0.01em; }
.decisions p { margin: 0; color: var(--ink-2); max-width: 60ch; }

.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
@media (max-width: 760px) { .two-up { grid-template-columns: 1fr; } }

.learned { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.learned li { padding: 22px 22px 22px 0; border-right: 1px solid var(--line); }
.learned li + li { padding-left: 22px; }
.learned li:last-child { border-right: 0; }
.learned .k { font-family: var(--f-mono); font-size: 11px; color: var(--signal); display: block; margin-bottom: 12px; }
.learned p { margin: 0; font-family: var(--f-display); font-size: var(--step-1); line-height: 1.3; }
@media (max-width: 860px) {
  .learned { grid-template-columns: 1fr; }
  .learned li, .learned li + li { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

.visit {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: clamp(28px, 4vw, 48px); border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
}
.visit .serif { font-size: var(--step-2); line-height: 1.05; }
.visit .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.visit .btn:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.visit .mono { color: color-mix(in oklab, var(--paper) 60%, transparent); }

.next-sheet {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; text-decoration: none;
  padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--ink);
}
.next-sheet .mono { color: var(--muted); display: block; margin-bottom: 14px; }
.next-sheet .serif { font-size: var(--step-4); line-height: 0.9; letter-spacing: -0.025em; }
.next-sheet .arr { font-family: var(--f-mono); font-size: var(--step-2); color: var(--signal); transition: transform var(--t-med) var(--ease-out); }
.next-sheet:hover .arr { transform: translateX(10px); }
.next-sheet:hover .serif { font-style: italic; }

/* Diagrams (shared) */
.dg { border: 1px solid var(--ink); background: var(--paper); }
.dg svg { width: 100%; height: auto; }
.dg text { font-family: var(--f-mono); font-size: 12px; fill: var(--ink); }
.dg .mut { fill: var(--muted); }
.dg .sig { fill: var(--signal); }
.dg .box { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.dg .box-soft { fill: var(--paper-2); stroke: var(--line-strong); stroke-width: 1; }
.dg .box-sig { fill: var(--signal-soft); stroke: var(--signal); stroke-width: 1; }
.dg .ln { stroke: var(--ink); stroke-width: 1; fill: none; }
.dg .ln-faint { stroke: var(--line-strong); stroke-width: 1; fill: none; stroke-dasharray: 3 4; }
.dg .ln-sig { stroke: var(--signal); stroke-width: 1.25; fill: none; }
.dg .ah { fill: var(--ink); }
.dg .ah-sig { fill: var(--signal); }
.dg-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dg-scroll svg { min-width: 680px; }

/* VouchLens pipeline: the interactive diagram */
.pipe { border: 1px solid var(--ink); background: var(--paper); }
.pipe-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid var(--ink); }
.pipe-steps button {
  appearance: none; background: transparent; border: 0; border-right: 1px solid var(--line); cursor: pointer;
  text-align: left; padding: 16px 14px 18px; position: relative; min-height: 88px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  transition: background var(--t-fast);
}
.pipe-steps button:last-child { border-right: 0; }
.pipe-steps button .i { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.pipe-steps button .nm { font-size: var(--step--1); font-weight: 500; line-height: 1.25; }
.pipe-steps button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--signal);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease-out);
}
.pipe-steps button:hover { background: var(--paper-2); }
.pipe-steps button[aria-selected="true"] { background: var(--paper-2); }
.pipe-steps button[aria-selected="true"]::after { transform: scaleX(1); }
.pipe-steps button[aria-selected="true"] .i { color: var(--signal); }
.pipe-steps button.passed .i::after { content: " ✓"; color: var(--ok); }
.pipe-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 300px; }
.pipe-panel .explain { padding: clamp(20px, 3vw, 36px); border-right: 1px solid var(--line); }
.pipe-panel .explain h3 { font-family: var(--f-display); font-size: var(--step-2); line-height: 1.05; margin-bottom: 14px; }
.pipe-panel .explain p { color: var(--ink-2); font-size: var(--step--1); line-height: 1.6; }
.pipe-panel .explain .src { font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-top: 18px; display: block; }
.pipe-panel .data { padding: clamp(20px, 3vw, 36px); background: var(--paper-2); font-family: var(--f-mono); font-size: 12px; line-height: 1.7; overflow-x: auto; }
.pipe-panel .data .k { color: var(--muted); }
.pipe-panel .data .v { color: var(--ink); }
.pipe-panel .data .flag { color: var(--signal); }
.pipe-panel .data .good { color: var(--ok); }
.pipe-panel .data pre { margin: 0; white-space: pre-wrap; font: inherit; }
.pipe-panel[hidden] { display: none; }
.pipe-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.pipe-foot button { appearance: none; border: 1px solid var(--line-strong); background: var(--paper); padding: 6px 10px; cursor: pointer; font-family: var(--f-mono); font-size: 11px; }
.pipe-foot button:hover { border-color: var(--signal); color: var(--signal); }
.pipe-foot .ctrl { display: flex; gap: 6px; }
@media (max-width: 900px) {
  .pipe-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pipe-steps button:nth-child(3) { border-right: 0; }
  .pipe-steps button:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .pipe-panel { grid-template-columns: 1fr; }
  .pipe-panel .explain { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Screenshot slot (for products whose screens are not yet public) */
.slot {
  position: relative; border: 1px dashed var(--line-strong); background:
    repeating-linear-gradient(-45deg, transparent 0 11px, var(--grid) 11px 12px), var(--paper-2);
  display: grid; place-items: center; text-align: center; padding: 28px;
  font-family: var(--f-mono); font-size: 11px; color: var(--muted);
}
.slot.phone { aspect-ratio: 9 / 19; max-width: 300px; border-radius: 28px; border-style: solid; border-color: var(--ink); }
.slot.has-img { padding: 0; border-style: solid; overflow: hidden; }
.slot.has-img .slot-label { display: none; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phones { display: flex; gap: clamp(12px, 2vw, 24px); align-items: flex-start; }
.phones .slot.phone { flex: 1; }
.phones .slot.phone:nth-child(2) { margin-top: 48px; }
.phones .slot.phone:nth-child(3) { margin-top: 96px; }
@media (max-width: 640px) {
  .phones { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .phones .slot.phone { flex: 0 0 62%; scroll-snap-align: start; margin-top: 0 !important; }
}

/* Footer (case pages) */
.foot { border-top: 1px solid var(--line); padding-block: 28px 36px; }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.foot a { color: var(--muted); }

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; padding: 96px var(--gutter); text-align: left; }
.lost h1 { font-family: var(--f-display); font-size: var(--step-4); line-height: 0.92; letter-spacing: -0.025em; margin: 16px 0 24px; }

/* ==========================================================================
   Motion — only when the reader hasn't asked for less
   ========================================================================== */
.rv { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 260ms var(--ease-out) both vt-out; }
  ::view-transition-new(root) { animation: 520ms var(--ease-out) both vt-in; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .rv.in { opacity: 1; transform: none; }

  /* Opening sequence for Sheet 00 */
  .js .cover .hero-title .ln > span { transform: translateY(105%); }
  .js .cover.go .hero-title .ln > span { transform: none; transition: transform 1.1s var(--ease-out); }
  .js .cover.go .hero-title .ln:nth-child(2) > span { transition-delay: 120ms; }
  .js .cover .dim::before { transform: scaleX(0); }
  .js .cover .dim i, .js .cover .dim b { opacity: 0; }
  .js .cover.go .dim::before { transform: scaleX(1); transition: transform 0.8s var(--ease-draw) 1.5s; }
  .js .cover.go .dim i, .js .cover.go .dim b { opacity: 1; transition: opacity 0.4s 2.1s; }
  .js .cover .fade { opacity: 0; transform: translateY(10px); }
  .js .cover.go .fade { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out) var(--d, 0.8s), transform 0.9s var(--ease-out) var(--d, 0.8s); }

  .js .sx .draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
  .js .cover.go .sx .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease-draw) var(--d, 0s); }
  .js .sx .pop { opacity: 0; }
  .js .cover.go .sx .pop { opacity: 1; transition: opacity 0.6s var(--ease-out) var(--d, 0s); }
  .js .sx .idea { transform-box: fill-box; transform-origin: center; transform: scale(0); }
  .js .cover.go .sx .idea { transform: scale(1); transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s; }
  .js .sx .layer { opacity: 0; transform: translateY(-8px); }
  .js .cover.go .sx .layer { opacity: 1; transform: none; transition: opacity 0.6s var(--ease-out) var(--d), transform 0.8s var(--ease-out) var(--d); }

  .js .cs-title .ln > span { transform: translateY(105%); }
  .js .cs-cover.go .cs-title .ln > span { transform: none; transition: transform 1.1s var(--ease-out); }
  .js .cs-cover.go .cs-title .ln:nth-child(2) > span { transition-delay: 110ms; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-img { clip-path: none; transition: none; }
  .scale .span { transform: none; transition: none; }
  .scrollcue i::after { animation: none; }
  .xhair { display: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

@media print {
  .bar, .xhair, .peek, .scrollcue { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   Revision 2 — engineering depth
   ========================================================================== */

/* ---------- Fig. 1 modes + trace ---------- */
.fig-modes { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); }
.seg button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--f-mono); font-size: 11px; padding: 6px 10px; color: var(--ink-2);
  border-left: 1px solid var(--line);
}
.seg button:first-child { border-left: 0; }
.seg button:hover { color: var(--signal); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.trace-btn {
  appearance: none; background: transparent; border: 1px solid var(--signal); color: var(--signal); cursor: pointer;
  font-family: var(--f-mono); font-size: 11px; padding: 6px 10px; transition: background var(--t-fast), color var(--t-fast);
}
.trace-btn:hover { background: var(--signal); color: var(--paper); }
.trace-btn[hidden] { display: none; }
.sx .glyph { transition: opacity var(--t-med) var(--ease-out); }
.sx .real { opacity: 0; transition: opacity var(--t-med) var(--ease-out); fill: var(--ink); font-size: 12px; pointer-events: none; }
.section-fig[data-mode="tk"] .glyph, .section-fig[data-mode="vl"] .glyph { opacity: 0.12; }
.section-fig[data-mode="tk"] .real.tk, .section-fig[data-mode="vl"] .real.vl { opacity: 1; }
.sx .trace-rail { stroke: var(--line-strong); stroke-dasharray: 2 4; fill: none; }
.sx .trace-dot { fill: var(--signal); opacity: 0; transition: transform 700ms var(--ease-draw), opacity var(--t-med); }
.sx .trace-dot.on { opacity: 1; }
.readout { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; min-height: 9.6em; font-size: var(--step--1); }
.readout .note-out { margin: 0; border: 0; padding: 0; min-height: 0; }
.trace-log { counter-reset: t; display: grid; gap: 4px; }
.trace-log li { display: grid; grid-template-columns: 4ch 3ch 1fr; gap: 10px; color: var(--muted); line-height: 1.45; }
.trace-log li .l { font-family: var(--f-mono); color: var(--signal); }
.trace-log li .i { font-family: var(--f-mono); }
.trace-log li.now { color: var(--ink); }
.trace-log li.now .i { color: var(--signal); }
.trace-title { font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-bottom: 8px; display: block; }

/* ---------- Device frames ---------- */
.browser { border: 1px solid var(--ink); background: var(--paper); position: relative; }
.browser-bar {
  display: flex; align-items: center; gap: 14px; padding: 8px 12px; border-bottom: 1px solid var(--ink);
  font-family: var(--f-mono); font-size: 11px; color: var(--muted); background: var(--paper);
}
.browser-bar .sq { display: inline-flex; gap: 5px; }
.browser-bar .sq i { width: 7px; height: 7px; border: 1px solid var(--line-strong); display: block; }
.browser-bar .url { flex: 1; border-left: 1px solid var(--line); padding-left: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-bar .tag { color: var(--muted); }
.browser .screen { position: relative; overflow: hidden; background: var(--paper-2); }
.browser .screen img { width: 100%; }
.device {
  position: relative; border: 1px solid var(--ink); border-radius: 30px; padding: 6px; background: var(--paper);
}
.device .screen { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.device .screen img { width: 100%; }

/* ---------- Annotation pins ---------- */
.pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  background: var(--signal); color: #fff; font: 500 11px/1 var(--f-mono);
  box-shadow: 0 0 0 3px var(--paper); z-index: 2; transition: transform var(--t-fast) var(--ease-out);
}
.pin.is-on { transform: translate(-50%, -50%) scale(1.25); }
.legend { counter-reset: none; border-top: 1px solid var(--ink); }
.legend li {
  display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: var(--step--1); color: var(--ink-2); cursor: default; transition: color var(--t-fast);
}
.legend li b { font-weight: 500; color: var(--ink); }
.legend li .k {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--signal); color: var(--signal);
  display: grid; place-items: center; font: 500 11px/1 var(--f-mono);
}
.legend li.is-on .k { background: var(--signal); color: #fff; }

/* ---------- Featured products ---------- */
.feature { padding-block: clamp(64px, 9vw, 136px); border-top: 1px solid var(--line); position: relative; }
.feature-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 28px); row-gap: 18px; align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
.feature-head .idx { grid-column: 1 / -1; font-family: var(--f-mono); font-size: var(--step--1); color: var(--signal); }
.feature-head h3 { grid-column: 1 / span 7; font-family: var(--f-display); font-size: var(--step-4); line-height: 0.92; letter-spacing: -0.025em; }
.feature-head h3 em { font-style: italic; }
.feature-head .pitch { grid-column: 8 / span 5; font-size: var(--step-1); line-height: 1.42; color: var(--ink-2); margin: 0; }
.feature-foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 28px); row-gap: 36px; margin-top: clamp(32px, 5vw, 64px); align-items: start; }
.feature-foot .legend { grid-column: 1 / span 6; }
.feature-foot .aside { grid-column: 8 / span 5; }
.feature-foot .aside .spec { margin-top: 0; }
@media (max-width: 900px) {
  .feature-head h3, .feature-head .pitch, .feature-foot .legend, .feature-foot .aside { grid-column: 1 / -1; }
}

/* ThimbleKit: a workbench — the maker's screen with the customer's phone set down beside it */
.bench { position: relative; padding-left: 17%; padding-bottom: 7%; }
.bench .device { position: absolute; left: 0; bottom: 0; width: 20%; z-index: 3; }
.bench .bench-label {
  position: absolute; left: 0; bottom: calc(20% * 2.1 + 34px); width: 20%; font-family: var(--f-mono); font-size: 11px; color: var(--muted);
}
.bench .bench-label::after { content: ""; display: block; width: 1px; height: 14px; background: var(--line-strong); margin: 6px 0 0 16px; }
@media (max-width: 760px) {
  .bench { padding-left: 0; padding-bottom: 0; }
  .bench .device { position: relative; width: 52%; margin: -22% 0 0 4%; }
  .bench .bench-label { position: static; width: auto; margin-top: 12px; }
}

/* VouchLens: a full-bleed deep band — a change of key, same notation */
.band-deep {
  --paper: #121210; --paper-2: #1a1a17; --paper-3: #24231f;
  --ink: #ebe7dc; --ink-2: #c9c4b7; --muted: #8f8a7e;
  --line: rgba(235, 231, 220, 0.12); --line-strong: rgba(235, 231, 220, 0.3);
  --signal: #ff6a45; --signal-soft: rgba(255, 106, 69, 0.12); --grid: rgba(235, 231, 220, 0.04);
  background: var(--paper); color: var(--ink); border-top: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band-deep { --paper: #0a0a08; --paper-2: #121210; } }
:root[data-theme="dark"] .band-deep { --paper: #0a0a08; --paper-2: #121210; }
.vl-stage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 28px); align-items: start; }
.vl-stage .browser { grid-column: 2 / -1; }
.vl-stage .side-note { grid-column: 1 / span 1; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--f-mono); font-size: 11px; color: var(--muted); justify-self: start; align-self: end; }
@media (max-width: 760px) { .vl-stage .browser { grid-column: 1 / -1; } .vl-stage .side-note { display: none; } }
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line-strong); margin-top: clamp(28px, 4vw, 48px); }
.strip li { padding: 16px 14px 18px; border-left: 1px solid var(--line); position: relative; }
.strip li:first-child { border-left: 0; }
.strip li + li::before { content: "→"; position: absolute; left: -7px; top: 14px; background: var(--paper); color: var(--signal); font: 11px/1 var(--f-mono); padding: 2px 0; }
.strip .i { font-family: var(--f-mono); font-size: 11px; color: var(--signal); display: block; margin-bottom: 8px; }
.strip b { display: block; font-weight: 500; font-size: var(--step--1); margin-bottom: 6px; }
.strip span.d { font-family: var(--f-mono); font-size: 11px; color: var(--muted); line-height: 1.45; display: block; }
@media (max-width: 900px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip li:nth-child(odd) { border-left: 0; }
  .strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .strip li + li::before { display: none; }
}

/* Postaweek: a filmstrip with copy set in three columns underneath */
.film-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); margin-top: 28px; }
.film-cols p { margin: 0; color: var(--ink-2); font-size: var(--step--1); }
.film-cols p b { color: var(--ink); font-weight: 500; display: block; margin-bottom: 4px; font-family: var(--f-mono); font-size: 11px; }
@media (max-width: 760px) { .film-cols { grid-template-columns: 1fr; } }
.film { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.film img { min-width: 900px; }

/* ---------- Code plates ---------- */
.code-plate { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 28px); row-gap: 28px; align-items: start; }
.code-plate .copy { grid-column: 1 / span 4; position: sticky; top: 96px; }
.code-plate .copy h3 { font-family: var(--f-display); font-size: var(--step-2); line-height: 1.05; margin-bottom: 14px; }
.code-plate .copy p { color: var(--ink-2); font-size: var(--step--1); }
.code-plate figure { grid-column: 6 / -1; }
.code-plate.flip .copy { grid-column: 9 / -1; grid-row: 1; }
.code-plate.flip figure { grid-column: 1 / span 7; grid-row: 1; }
@media (max-width: 960px) { .code-plate .copy, .code-plate figure, .code-plate.flip .copy, .code-plate.flip figure { grid-column: 1 / -1; grid-row: auto; position: static; } }
.code { border: 1px solid var(--ink); background: var(--paper-2); }
.code pre {
  margin: 0; padding: 16px 0; overflow-x: auto; font: 12.5px/1.7 var(--f-mono); counter-reset: ln; tab-size: 4;
}
.code .ln { display: block; padding: 0 18px 0 0; white-space: pre; }
.code .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 4ch; margin-right: 14px; text-align: right; color: var(--muted); opacity: 0.6; }
.code .ln.hl { background: var(--signal-soft); box-shadow: inset 2px 0 0 var(--signal); }
.code .c { color: var(--muted); }
.code .s { color: var(--signal); }
.code .m { position: absolute; right: 12px; font-family: var(--f-mono); font-size: 11px; color: var(--signal); }
.code-notes { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 18px; }
.code-notes li { display: grid; grid-template-columns: 3ch 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--step--1); color: var(--ink-2); }
.code-notes li span { font-family: var(--f-mono); color: var(--signal); }

/* ---------- Decision log (ADR) ---------- */
.adr { margin-top: clamp(64px, 9vw, 120px); }
.adr > h3 { font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); font-weight: 400; margin-bottom: 18px; }
.adr table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.adr th, .adr td { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; border-top: 1px solid var(--line); }
.adr thead th { font-family: var(--f-mono); font-weight: 400; font-size: 11px; color: var(--muted); border-top: 1px solid var(--ink); padding-block: 10px; }
.adr tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.adr td.no { font-family: var(--f-mono); color: var(--signal); white-space: nowrap; width: 8ch; }
.adr td.p { font-family: var(--f-mono); color: var(--muted); white-space: nowrap; width: 12ch; }
.adr td.d { font-family: var(--f-display); font-size: var(--step-1); line-height: 1.2; color: var(--ink); width: 28%; }
.adr td { color: var(--ink-2); }
@media (max-width: 860px) {
  .adr thead { display: none; }
  .adr table, .adr tbody, .adr tr, .adr td { display: block; width: auto !important; }
  .adr tr { border-top: 1px solid var(--line); padding: 16px 0; }
  .adr td { border: 0 !important; padding: 0 0 8px; }
  .adr td.no, .adr td.p { display: inline-block; margin-right: 12px; }
  .adr td[data-k]::before { content: attr(data-k); display: block; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
}

/* ---------- Formula + bands (VouchLens pricing) ---------- */
.formula { border: 1px solid var(--ink); background: var(--paper-2); padding: clamp(18px, 2.6vw, 30px); font-family: var(--f-mono); font-size: 13px; line-height: 1.9; overflow-x: auto; }
.formula .eq { font-family: var(--f-display); font-size: var(--step-2); line-height: 1.2; display: block; margin-bottom: 10px; white-space: nowrap; }
.formula .eq i { font-style: italic; }
.formula dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 18px; margin: 0; }
.formula dt { color: var(--signal); }
.formula dd { margin: 0; color: var(--ink-2); }
.readout code, .chapter code, .adr code, .legend code { font-family: var(--f-mono); font-size: 0.9em; color: var(--ink); background: var(--paper-2); padding: 0 4px; border: 1px solid var(--line); }
#work { padding-bottom: 0; }
#work .feature:last-child { padding-bottom: clamp(72px, 10vw, 140px); }
.sheet-head .pw-title { grid-column: 3 / span 7; font-family: var(--f-display); font-size: var(--step-3); line-height: 1; letter-spacing: -0.015em; }
.sheet-head .pw-title em { font-style: italic; }
@media (max-width: 860px) { .sheet-head .pw-title { grid-column: 1; } }
@media (max-width: 760px) { .bench .bench-label { display: none; } .bench .device { margin-top: -14%; } }

/* ==========================================================================
   Revision 3 — written for the people who hire
   ========================================================================== */
.bar nav a.cta { border: 1px solid var(--ink); padding: 6px 11px; color: var(--ink); }
.bar nav a.cta::after { display: none; }
.bar nav a.cta:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
@media (max-width: 560px) { .bar nav .nav-process { display: none; } }
@media (max-width: 400px) { .bar nav .nav-about { display: none; } }

.hero-for { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.hero-for a { color: var(--ink-2); }
.hero-for a:hover { color: var(--signal); }

.svc { border-top: 1px solid var(--ink); }
.svc li {
  display: grid; grid-template-columns: 6ch minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px;
  padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.svc .n { font-family: var(--f-mono); font-size: var(--step--1); color: var(--signal); }
.svc h3 { font-family: var(--f-display); font-size: var(--step-2); line-height: 1.05; }
.svc p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.svc .eg { font-family: var(--f-mono); font-size: 11px; color: var(--muted); line-height: 1.5; }
.svc .eg span { display: block; margin-bottom: 4px; }
.svc .eg a { color: var(--ink-2); }
.svc .eg a:hover { color: var(--signal); }
@media (max-width: 900px) {
  .svc li { grid-template-columns: 4ch minmax(0, 1fr); row-gap: 10px; }
  .svc p, .svc .eg { grid-column: 2; }
}

.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.process li { padding: 24px clamp(14px, 2vw, 28px) 8px 0; position: relative; }
.process li + li { padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid var(--line); }
.process .n { font-family: var(--f-display); font-size: var(--step-4); line-height: 0.9; color: var(--signal); display: block; margin-bottom: 18px; }
.process h3 { font-family: var(--f-display); font-size: var(--step-2); line-height: 1; margin-bottom: 12px; }
.process p { color: var(--ink-2); font-size: var(--step--1); }
.process .you { display: block; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process li:nth-child(3) { padding-left: 0; border-left: 0; }
  .process li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .process li, .process li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .process li:first-child { border-top: 0; }
}
.reassure { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 28px); }
.reassure p { grid-column: 3 / span 8; font-family: var(--f-display); font-size: var(--step-2); line-height: 1.15; margin: 0; }
.reassure p em { font-style: italic; color: var(--signal); }
@media (max-width: 860px) { .reassure p { grid-column: 1 / -1; } }

.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 28px); row-gap: 40px; align-items: start; }
.about-grid .portrait { grid-column: 1 / span 4; }
.about-copy { grid-column: 6 / span 7; }
.about-copy .big { font-family: var(--f-display); font-size: var(--step-2); line-height: 1.18; margin-bottom: 1em; }
.about-copy p { color: var(--ink-2); max-width: 60ch; }
.exp { margin-top: 32px; border-top: 1px solid var(--ink); }
.exp li { display: grid; grid-template-columns: 17ch minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--step--1); align-items: baseline; }
.exp .w { font-family: var(--f-mono); color: var(--signal); }
.exp b { font-weight: 500; }
.exp span:last-child { color: var(--muted); }
@media (max-width: 960px) { .about-grid .portrait { grid-column: 1 / -1; max-width: 340px; } .about-copy { grid-column: 1 / -1; } }
@media (max-width: 560px) { .exp li { grid-template-columns: 1fr; gap: 2px; } }

.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); border: 1px solid var(--ink); }
.paths a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 180px;
  padding: clamp(18px, 2.4vw, 28px); text-decoration: none; border-left: 1px solid var(--line);
  transition: background var(--t-fast), color var(--t-fast);
}
.paths a:first-child { border-left: 0; }
.paths a .k { font-family: var(--f-mono); font-size: 11px; color: var(--signal); }
.paths a .t { font-family: var(--f-display); font-size: var(--step-2); line-height: 1.05; }
.paths a .h { font-family: var(--f-mono); font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.paths a:hover { background: var(--ink); color: var(--paper); }
.paths a:hover .h { color: color-mix(in oklab, var(--paper) 65%, transparent); }
@media (max-width: 860px) {
  .paths { grid-template-columns: 1fr; }
  .paths a { min-height: 0; border-left: 0; border-top: 1px solid var(--line); }
  .paths a:first-child { border-top: 0; }
}
.contact h2.ask { font-size: var(--step-3); max-width: 20ch; line-height: 1; }
.contact h2.ask em { color: var(--signal); }

.inshort { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin: clamp(40px, 6vw, 72px) 0 0; }
.inshort div { padding: 20px 20px 22px 0; }
.inshort div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.inshort dt { font-family: var(--f-mono); font-size: 11px; color: var(--signal); margin-bottom: 10px; }
.inshort dd { margin: 0; font-family: var(--f-display); font-size: var(--step-1); line-height: 1.25; }
@media (max-width: 860px) {
  .inshort { grid-template-columns: 1fr 1fr; }
  .inshort div:nth-child(3) { padding-left: 0; border-left: 0; }
  .inshort div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) { .inshort { grid-template-columns: 1fr; } .inshort div, .inshort div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .inshort div:first-child { border-top: 0; } }
.tech-divide { display: flex; align-items: center; gap: 16px; padding-top: clamp(40px, 6vw, 72px); font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-align: center; }
.tech-divide::before, .tech-divide::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.tech-divide b { color: var(--signal); font-weight: 400; }
#hero-title { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 6.2rem); }
.cs-cover .inshort { margin-bottom: clamp(36px, 5vw, 64px); }
