/* OCDigital — design system
   Palette "Spruce": neutral paper, deep ink, one spruce-green accent, one dark band.
   Type: Geist (text and display), Geist Mono only inside diagrams and step markers. */

:root {
  --paper: #f6f6f3;
  --surface: #ffffff;
  --ink: #15181c;
  --ink-2: #353a42;
  --muted: #5f656e;
  --rule: #dcddd7;
  --rule-strong: #c7c9c2;
  --accent: #1d5c55;
  --accent-hover: #164a44;
  --accent-ink: #ffffff;
  --accent-wash: #e3ebe8;
  --night: #121d1b;
  --night-2: #182624;
  --night-ink: #e8eeeb;
  --night-muted: #9db0aa;
  --night-rule: #2b3d3a;
  --error: #a3271f;
  --ok: #1d5c55;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 7rem;
  --measure: 66ch;
  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink); overflow-x: clip;
  font: 400 1.0625rem/1.6 var(--font); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; overflow-wrap: anywhere; min-width: 0; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: var(--s4); top: -100px; background: var(--ink); color: var(--paper); padding: var(--s2) var(--s4); z-index: 100; border-radius: var(--radius); }
.skip:focus { top: var(--s4); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(780px + 2 * var(--gutter)); }

/* ---------- type scale ---------- */
.display { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; }
.h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); line-height: 1.06; letter-spacing: -0.035em; }
.h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.1rem); line-height: 1.15; letter-spacing: -0.028em; }
.h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.125rem, 1.02rem + .45vw, 1.35rem); line-height: 1.5; color: var(--ink-2); max-width: 40ch; letter-spacing: -0.01em; }
.lead--wide { max-width: 52ch; }
.body { max-width: var(--measure); color: var(--ink-2); }
.body p + p { margin-top: var(--s4); }
.small { font-size: .9375rem; }
.muted { color: var(--muted); }
.label { font-size: .875rem; color: var(--muted); letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; white-space: nowrap;
  font: 500 1rem/1 var(--font); letter-spacing: -0.005em; text-decoration: none;
  min-height: 48px; padding: 0 1.4rem; border-radius: var(--radius); border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--quiet:hover { background: var(--surface); border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 1rem; font-size: .9375rem; }
.link { font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule-strong); }
.link:hover { text-decoration-color: var(--accent); color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: center; margin-top: var(--s6); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s5); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.brand svg { width: 22px; height: 22px; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: var(--s1); }
.nav a { text-decoration: none; color: var(--ink-2); font-size: .9375rem; padding: .5rem .7rem; border-radius: var(--radius); white-space: nowrap; }
.nav a:hover { color: var(--ink); background: rgba(21, 24, 28, .05); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav .btn { margin-left: var(--s3); color: var(--accent-ink); }
.nav .btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--rule-strong); border-radius: var(--radius); font: 500 .9375rem var(--font); color: var(--ink); min-height: 40px; padding: 0 .9rem; cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: var(--s2) var(--gutter) var(--s5); }
  .nav.is-open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--rule); border-radius: 0; font-size: 1.0625rem; }
  .nav a:hover { background: none; }
  .nav .btn { margin: var(--s4) 0 0; border-bottom: 0; border-radius: var(--radius); justify-content: center; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(4rem, 3rem + 5vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 2.4rem + 3vw, 5rem); }
.section + .section:not(.night):not(.white) { border-top: 1px solid var(--rule); }
.white { background: var(--surface); }
.night { background: var(--night); color: var(--night-ink); }
.night .muted, .night .label { color: var(--night-muted); }
.night .lead, .night .body { color: var(--night-ink); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5) var(--s7); align-items: end; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head .lead { max-width: 46ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(2.5rem, 2rem + 3vw, 4rem); }
.hero .display { max-width: 15ch; }
.hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s5) var(--s7); align-items: end; }
.hero-top .lead { margin-top: 0; }
@media (max-width: 960px) { .hero-top { grid-template-columns: minmax(0, 1fr); } .hero-top .lead { margin-top: var(--s2); } }
.hero .lead { margin-top: var(--s5); max-width: 44ch; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); }
.page-hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.page-hero .h1 { max-width: 20ch; }
.page-hero .lead { margin-top: var(--s5); }
.crumb { font-size: .9375rem; color: var(--muted); margin-bottom: var(--s5); }
.crumb a { color: var(--muted); }
.kicker { font-size: .9375rem; color: var(--accent); font-weight: 500; margin-bottom: var(--s4); }

/* ---------- system map (home hero diagram) ---------- */
.map { margin-left: 0; margin-right: 0; margin-bottom: 0; margin-top: clamp(2.5rem, 2rem + 3vw, 4rem); border-top: 1px solid var(--rule); padding-top: var(--s6); }
.map-frame { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(1rem, .5rem + 2vw, 2rem); overflow: hidden; }
.map svg { width: 100%; height: auto; }
.map svg text { font-family: var(--mono); }
.map figcaption { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); justify-content: space-between; color: var(--muted); font-size: .9375rem; }
.map-key { display: flex; gap: var(--s5); flex-wrap: wrap; }
.map-key span { display: inline-flex; align-items: center; gap: .5rem; }
.map-key i { width: 18px; height: 2px; background: var(--accent); display: inline-block; }
.map-key i { background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 9px); }
.map-key i.solid { background: var(--rule-strong); }
.flow { stroke-dasharray: 6 6; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.map-mobile { display: none; }
@media (max-width: 760px) { .map-wide { display: none; } .map-mobile { display: block; } .map-frame { padding: 12px; } }
@media (prefers-reduced-motion: reduce) { .flow { animation: none; } }

/* ---------- statement ---------- */
.statement { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s5) var(--s7); }
.statement .big { font-size: clamp(1.4rem, 1.05rem + 1.4vw, 2.05rem); line-height: 1.3; letter-spacing: -0.025em; color: var(--ink); max-width: 30ch; }
.statement .body { margin-top: var(--s6); }
@media (max-width: 860px) { .statement { grid-template-columns: minmax(0, 1fr); } }

/* ---------- capability index (rows, not cards) ---------- */
.index { border-top: 1px solid var(--rule); }
.index > li { list-style: none; border-bottom: 1px solid var(--rule); }
.index-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr); gap: var(--s3) var(--s6); padding: var(--s6) 0; align-items: baseline; text-decoration: none; color: inherit; }
a.index-row { transition: background-color .2s var(--ease); }
a.index-row:hover h3 { color: var(--accent); }
.index-row h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); letter-spacing: -0.025em; line-height: 1.2; }
.index-row p { color: var(--ink-2); max-width: 56ch; }
.index-row .go { justify-self: end; font-size: .9375rem; color: var(--muted); white-space: nowrap; }
a.index-row:hover .go { color: var(--accent); }
.index-row .tools { margin-top: var(--s3); font-size: .9375rem; color: var(--muted); }
@media (max-width: 860px) { .index-row { grid-template-columns: minmax(0, 1fr); padding: var(--s5) 0; } .index-row .go { justify-self: start; } }

/* ---------- before/after table ---------- */
.ledger { width: 100%; border-collapse: collapse; font-size: 1rem; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: var(--s5) var(--s5) var(--s5) 0; border-bottom: 1px solid var(--rule); }
.ledger thead th { font-size: .875rem; font-weight: 500; color: var(--muted); padding-top: 0; padding-bottom: var(--s3); border-bottom-color: var(--rule-strong); }
.ledger tbody th { font-weight: 500; width: 24%; letter-spacing: -0.01em; }
.ledger td { color: var(--ink-2); width: 38%; }
.ledger td:last-child { padding-right: 0; color: var(--ink); }
@media (max-width: 760px) {
  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger th, .ledger td { display: block; width: auto; }
  .ledger tr { border-bottom: 1px solid var(--rule); padding: var(--s5) 0; }
  .ledger th, .ledger td { border: 0; padding: 0; }
  .ledger tbody th { font-size: 1.125rem; margin-bottom: var(--s3); }
  .ledger td::before { content: attr(data-h); display: block; font-size: .8125rem; color: var(--muted); margin-top: var(--s3); }
}

/* ---------- process (night band) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--night-rule); }
.steps > li { list-style: none; display: flex; flex-direction: column; padding: var(--s6) var(--s5) var(--s2) 0; border-right: 1px solid var(--night-rule); margin-right: var(--s5); }
.steps > li:last-child { border-right: 0; margin-right: 0; }
.steps .n { font-family: var(--mono); font-size: .8125rem; color: var(--night-muted); }
.steps h3 { font-size: 1.35rem; margin-top: var(--s5); letter-spacing: -0.02em; }
.steps p { margin-top: var(--s3); color: var(--night-muted); font-size: 1rem; }
.steps .out { margin-top: auto; padding-top: var(--s3); font-size: .9375rem; color: var(--night-ink); border-top: 1px solid var(--night-rule); }
.steps > li > p:not(.out) { margin-bottom: var(--s5); }
.steps .out b { font-weight: 500; display: block; color: var(--night-muted); font-size: .8125rem; margin-bottom: 2px; }
.steps--light { border-top-color: var(--rule); }
.steps--light > li { border-right-color: var(--rule); }
.steps--light .n, .steps--light p, .steps--light .out b { color: var(--muted); }
.steps--light .out { color: var(--ink); border-top-color: var(--rule); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps > li:nth-child(2) { border-right: 0; margin-right: 0; } }
@media (max-width: 600px) { .steps { grid-template-columns: minmax(0, 1fr); } .steps > li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--night-rule); padding: var(--s5) 0; } .steps--light > li { border-bottom-color: var(--rule); } }

/* ---------- columns of short text ---------- */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s7) var(--s6); }
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols h3 { font-size: 1.125rem; letter-spacing: -0.015em; }
.cols p { margin-top: var(--s3); color: var(--ink-2); }
.cols > div { border-top: 1px solid var(--rule); padding-top: var(--s5); }
.night .cols > div { border-top-color: var(--night-rule); }
.night .cols p { color: var(--night-muted); }
@media (max-width: 960px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cols, .cols--2 { grid-template-columns: minmax(0, 1fr); gap: var(--s6); } }

/* ---------- industries list ---------- */
.sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s7); border-top: 1px solid var(--rule); }
.sectors a { display: block; padding: var(--s6) 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.sectors h3 { font-size: 1.35rem; letter-spacing: -0.025em; }
.sectors a:hover h3 { color: var(--accent); }
.sectors p { margin-top: var(--s3); color: var(--ink-2); max-width: 48ch; }
.sectors .go { display: inline-block; margin-top: var(--s4); font-size: .9375rem; color: var(--muted); }
.sectors a:hover .go { color: var(--accent); }
@media (max-width: 760px) { .sectors { grid-template-columns: minmax(0, 1fr); } }

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s7); }
.principles > li { list-style: none; padding: var(--s5) 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
.principles b { font-weight: 500; font-size: 1.125rem; letter-spacing: -0.015em; }
.principles span { color: var(--ink-2); }
@media (max-width: 760px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- about block ---------- */
.person { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: start; }
.person--nophoto { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.portrait { margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: var(--rule); filter: saturate(.92); }
.portrait figcaption { margin-top: var(--s3); font-size: .9375rem; color: var(--muted); }
.person .body { margin-top: var(--s5); }
.facts { margin-top: var(--s6); display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s3) var(--s6); font-size: .9375rem; border-top: 1px solid var(--rule); padding-top: var(--s5); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 860px) { .person, .person--nophoto { grid-template-columns: minmax(0, 1fr); } .portrait { max-width: 360px; } }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; } .facts dd { margin-bottom: var(--s3); } }

/* ---------- closing ---------- */
.closing { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6) var(--s7); align-items: end; }
.closing .h1 { max-width: 16ch; }
.closing .lead { margin-top: var(--s5); }
.contact-lines { display: grid; gap: var(--s4); }
.contact-lines a { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid var(--rule-strong); padding-bottom: var(--s3); display: flex; justify-content: space-between; gap: var(--s4); }
.contact-lines a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.contact-lines small { font-size: .875rem; color: var(--muted); letter-spacing: 0; align-self: center; white-space: nowrap; }
.night .contact-lines a { border-bottom-color: var(--night-rule); }
.night .contact-lines a:hover { color: var(--night-ink); border-bottom-color: var(--night-ink); }
.night .contact-lines small { color: var(--night-muted); }
.night .btn { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.night .btn:hover { background: #fff; border-color: #fff; }
@media (max-width: 860px) { .closing { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* ---------- detail pages ---------- */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s5) var(--s7); }
.split + .split { margin-top: var(--s8); }
.split .h2 { max-width: 16ch; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split + .split { margin-top: var(--s7); } }
.bullets { display: grid; gap: var(--s3); }
.bullets li { list-style: none; position: relative; padding-left: 1.4rem; color: var(--ink-2); }
.bullets li::before { content: ""; position: absolute; left: 0; top: .72em; width: .55rem; height: 1px; background: var(--ink); }
.night .bullets li { color: var(--night-muted); } .night .bullets li::before { background: var(--night-ink); }
.examples { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.examples > div { padding: var(--s5) 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s2) var(--s6); }
.examples h3 { font-size: 1.125rem; letter-spacing: -0.015em; }
.examples p { color: var(--ink-2); }
@media (max-width: 760px) { .examples > div { grid-template-columns: minmax(0, 1fr); } }
.tags { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); color: var(--ink-2); }
.tags li { list-style: none; }
.tags li:not(:last-child)::after { content: "/"; color: var(--rule-strong); margin-left: var(--s5); }
.note { border-left: 2px solid var(--accent); padding: var(--s2) 0 var(--s2) var(--s5); color: var(--ink-2); max-width: var(--measure); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s5); padding: var(--s5) 0; font-size: 1.125rem; font-weight: 500; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--muted); flex: none; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div, .faq details > p { padding-bottom: var(--s5); color: var(--ink-2); max-width: var(--measure); }

/* ---------- work ---------- */
.work { display: grid; gap: clamp(3rem, 2rem + 4vw, 6rem); }
.project { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6) var(--s7); align-items: start; padding-top: var(--s6); border-top: 1px solid var(--rule); }
.project--text { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.project .status { font-size: .875rem; color: var(--muted); }
.project .status b { color: var(--accent); font-weight: 500; }
.project h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.03em; margin-top: var(--s3); }
.project .intro { margin-top: var(--s4); color: var(--ink-2); max-width: 46ch; }
.project .stack { margin-top: var(--s5); font-size: .9375rem; color: var(--muted); }
.project .bullets { margin-top: var(--s4); }
.project figure { margin: 0; }
.project figure img { border-radius: 8px; border: 1px solid var(--rule); width: 100%; height: auto; }
.project figcaption { margin-top: var(--s3); font-size: .9375rem; color: var(--muted); }
@media (max-width: 860px) { .project, .project--text { grid-template-columns: minmax(0, 1fr); } }
.minor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s7); }
.minor > div { border-top: 1px solid var(--rule); padding-top: var(--s5); }
.minor h3 { font-size: 1.15rem; letter-spacing: -0.015em; margin-top: var(--s2); }
.minor p { margin-top: var(--s3); color: var(--ink-2); }
@media (max-width: 760px) { .minor { grid-template-columns: minmax(0, 1fr); } }

/* ---------- offer (campaign pages) ---------- */
.offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s7); }
.offer > div { border-top: 1px solid var(--rule-strong); padding-top: var(--s5); }
.offer .price { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.offer h3 { font-size: 1.125rem; }
.offer p { margin-top: var(--s3); color: var(--ink-2); }
@media (max-width: 760px) { .offer { grid-template-columns: minmax(0, 1fr); } }

/* ---------- forms ---------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s7); align-items: start; }
@media (max-width: 960px) { .form-layout { grid-template-columns: minmax(0, 1fr); } }
.form-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s5); }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: var(--s2); min-width: 0; border: 0; padding: 0; margin: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .9375rem; font-weight: 500; color: var(--ink); padding: 0; }
.field .opt { font-weight: 400; color: var(--muted); }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: .75rem .85rem; min-height: 48px;
  transition: border-color .15s, background-color .15s;
}
textarea { min-height: 140px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-wash); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.hint { font-size: .875rem; color: var(--muted); }
.error-text { font-size: .875rem; color: var(--error); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s5); margin-top: var(--s2); }
@media (max-width: 640px) { .choices { grid-template-columns: minmax(0, 1fr); } }
.choice { display: flex; gap: .6rem; align-items: flex-start; font-size: .9375rem; font-weight: 400 !important; color: var(--ink-2) !important; cursor: pointer; padding: .35rem 0; }
.choice input { width: 18px; height: 18px; margin: .15rem 0 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-note { margin-top: var(--s5); font-size: .875rem; color: var(--muted); }
.form-card .btn { margin-top: var(--s5); }
.form-status { margin-top: var(--s5); border-radius: 10px; padding: var(--s6); background: var(--surface); border: 1px solid var(--rule); }
.form-status h2 { font-size: 1.5rem; letter-spacing: -0.025em; }
.form-status p { margin-top: var(--s3); color: var(--ink-2); }
.form-status--ok { border-left: 3px solid var(--ok); }
.form-status--err { border-left: 3px solid var(--error); }
.aside { display: grid; gap: var(--s6); }
.aside h2 { font-size: .9375rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.aside .contact-lines { margin-top: var(--s3); }
.aside ol { margin-top: var(--s3); padding-left: 1.2rem; display: grid; gap: var(--s2); color: var(--ink-2); }

/* ---------- demo (service firms) ---------- */
.demo { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(1rem, .6rem + 2vw, 2rem); }
.demo-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s4); padding-bottom: var(--s5); border-bottom: 1px solid var(--rule); }
.demo-day { font-family: var(--mono); font-weight: 500; }
.demo-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); margin-top: var(--s5); }
@media (max-width: 900px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } }
.tablewrap-demo { overflow-x: auto; }
.demo-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.demo-table th, .demo-table td { text-align: left; padding: .6rem .5rem .6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.demo-table thead th { font-weight: 500; font-size: .8125rem; color: var(--muted); }
.demo-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.demo-sub { font-size: 1rem; font-weight: 500; margin: var(--s5) 0 var(--s3); }
.demo-log { list-style: none; display: grid; gap: var(--s2); font-size: .9375rem; color: var(--ink-2); min-height: 4rem; }
.demo-log li { padding-left: var(--s4); border-left: 2px solid var(--accent-wash); }
.demo-sum { margin-top: var(--s5); font-size: .9375rem; border-top: 1px solid var(--rule); padding-top: var(--s4); }
.badge { display: inline-block; font-size: .8125rem; padding: .1rem .5rem; border-radius: 4px; background: var(--paper); color: var(--ink-2); white-space: nowrap; border: 1px solid var(--rule); }
.badge--ok { background: var(--accent-wash); color: var(--accent); border-color: transparent; }
.badge--you { background: #f3ead6; color: #6b4b00; border-color: transparent; }
.badge--wait { color: var(--muted); }
.badge.lost { text-decoration: line-through; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--night-ink); padding-block: var(--s8) var(--s6); border-top: 1px solid var(--night-rule); }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: var(--s6); }
.site-footer .brand { color: var(--night-ink); }
.site-footer p { color: var(--night-muted); margin-top: var(--s4); max-width: 38ch; font-size: .9375rem; }
.site-footer h2 { font-size: .875rem; font-weight: 500; color: var(--night-muted); letter-spacing: 0; }
.site-footer ul { list-style: none; margin-top: var(--s4); display: grid; gap: var(--s2); }
.site-footer a { color: var(--night-ink); text-decoration: none; font-size: .9375rem; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--night-muted); }
.footer-bottom { margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--night-rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); font-size: .875rem; color: var(--night-muted); }
@media (max-width: 860px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }

/* ---------- prose (privacy) ---------- */
.prose { max-width: var(--measure); color: var(--ink-2); }
.prose h2 { font-size: 1.35rem; color: var(--ink); margin-top: var(--s7); letter-spacing: -0.02em; }
.prose p, .prose ul { margin-top: var(--s4); }
.prose ul { padding-left: 1.2rem; display: grid; gap: var(--s2); }

/* ---------- one orchestrated entrance: hero only ---------- */
.rise { opacity: 0; transform: translateY(10px); animation: rise .7s var(--ease) forwards; }
.rise-2 { animation-delay: .08s; } .rise-3 { animation-delay: .16s; } .rise-4 { animation-delay: .28s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; animation: none; } }

@media print { .site-header, .site-footer, .actions { display: none; } body { background: #fff; } }

/* demo status labels (set by main.js) */
.badge-l { display: inline-block; font-size: .8125rem; padding: .1rem .5rem; border-radius: 4px; background: var(--paper); color: var(--ink-2); white-space: nowrap; border: 1px solid var(--rule); }
.badge-l--ok { background: var(--accent-wash); color: var(--accent); border-color: transparent; }
.badge-l--wait { color: var(--muted); }
.badge-l--you { background: #f3ead6; color: #6b4b00; border-color: transparent; }
.badge-l--no { color: var(--muted); text-decoration: line-through; }

/* ---------- hero diagram: the highlight walks the four steps ---------- */
.cursor { animation: walk 9s var(--ease) infinite; }
.cursor--m { animation-name: walk-m; }
@keyframes walk { 0%, 18% { transform: translateY(0); } 25%, 43% { transform: translateY(54px); } 50%, 75% { transform: translateY(112px); } 82%, 100% { transform: translateY(166px); } }
@keyframes walk-m { 0%, 18% { transform: translateY(0); } 25%, 43% { transform: translateY(42px); } 50%, 75% { transform: translateY(84px); } 82%, 100% { transform: translateY(127px); } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; transform: translateY(112px); } .cursor--m { transform: translateY(84px); } }

/* ---------- proof band (Vice Desk) ---------- */
.proof .section-head .h1 { max-width: 20ch; }
.proof .lead { color: var(--night-ink); }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--night-rule); background: #0d0b1a; }
.shot figcaption, .shorts figcaption { margin-top: var(--s3); font-size: .9375rem; color: var(--night-muted); }
.shot--hero img { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 0; }
.figures > div { border-top: 1px solid var(--night-rule); padding-top: var(--s5); }
.figures dt { font-size: clamp(2.6rem, 1.8rem + 3vw, 4.2rem); line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; color: #fff; }
.figures dd { margin: var(--s3) 0 0; color: var(--night-muted); max-width: 30ch; }
@media (max-width: 760px) { .figures { grid-template-columns: minmax(0, 1fr); gap: var(--s5); } }
.proof-pair { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s6); align-items: start; margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.shorts { margin: 0; }
.shorts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.shorts-row img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #0d0b1a; }
.shorts-row picture:nth-child(2) { transform: translateY(1.25rem); }
@media (max-width: 860px) { .proof-pair { grid-template-columns: minmax(0, 1fr); } .shorts { max-width: 420px; } }
.engine { margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s5) var(--s7); }
.engine .h2 { max-width: 13ch; }
.engine .actions { grid-column: 2; margin-top: var(--s5); }
.engine-rows { list-style: none; border-top: 1px solid var(--night-rule); }
.engine-rows li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s2) var(--s6); padding: var(--s5) 0; border-bottom: 1px solid var(--night-rule); }
.engine-rows .part { color: #fff; font-weight: 500; letter-spacing: -0.01em; }
.engine-rows .use { color: var(--night-muted); }
@media (max-width: 860px) { .engine { grid-template-columns: minmax(0, 1fr); } .engine .actions { grid-column: 1; } .engine-rows li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- before / after switch ---------- */
.switch { display: inline-flex; padding: 4px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--paper); margin-bottom: var(--s6); }
.switch button { font: 500 .9375rem/1 var(--font); color: var(--ink-2); background: none; border: 0; border-radius: 999px; padding: .7rem 1.1rem; cursor: pointer; min-height: 40px; transition: background-color .2s var(--ease), color .2s var(--ease); }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.switch button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.no-js .switch { display: none; }
.js .compare[data-view] .ledger thead { display: none; }
.js .compare[data-view] .ledger tbody th { width: 30%; font-size: 1.125rem; }
.js .compare[data-view] .ledger td { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); letter-spacing: -0.01em; color: var(--ink); animation: swap .35s var(--ease); }
.js .compare[data-view="before"] .ledger td:last-child, .js .compare[data-view="after"] .ledger td:nth-of-type(1) { display: none; }
.js .compare[data-view="after"] .ledger td { color: var(--accent); }
@keyframes swap { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .compare .ledger td { animation: none; } }
@media (max-width: 760px) { .js .compare .ledger td::before { display: none; } .js .compare .ledger td { margin-top: var(--s2); } }

/* ---------- recent work shelf ---------- */
.shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); }
.tile { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-top: 1px solid var(--rule-strong); padding-top: var(--s5); min-width: 0; }
.tile--wide { grid-column: 1 / -1; }
.tile img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--rule); transition: transform .5s var(--ease); }
.tile picture { overflow: hidden; border-radius: 8px; display: block; }
.tile:hover img { transform: scale(1.015); }
.tile-text { display: grid; gap: var(--s2); margin-top: var(--s5); max-width: 60ch; }
.tile-text b { font-weight: 500; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); letter-spacing: -0.025em; line-height: 1.2; }
.tile:hover .tile-text b { color: var(--accent); }
.tile-text > span { color: var(--ink-2); }
.tile--plain { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: var(--s6); justify-content: space-between; }
.tile--plain .tile-text { margin-top: 0; }
.tile--plain .go { margin-top: var(--s6); font-size: .9375rem; color: var(--muted); }
@media (max-width: 760px) { .shelf { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .tile img { transition: none; } }
.proof-pair--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; }
.vd-notes .bullets { margin-top: var(--s5); }
.vd-notes .stack { font-size: .9375rem; color: var(--night-muted); }
@media (max-width: 860px) { .proof-pair--flip { grid-template-columns: minmax(0, 1fr); } }
.tile--plain.tile--wide { flex-direction: row; align-items: end; gap: var(--s6); }
.tile--plain.tile--wide .go { margin-top: 0; white-space: nowrap; }
@media (max-width: 760px) { .tile--plain.tile--wide { flex-direction: column; align-items: start; } }
.shorts figcaption { margin-top: calc(var(--s3) + 1.25rem); }
.switch button { white-space: nowrap; }
