/* Delta Ledger — "Redline". See DESIGN.md for the system. */
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 104%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }
:root {
  --ground: #ffffff;
  --ink: #121316;
  --muted: #5a5e66;
  --line: #e5e5e2;
  --strike: #d0222f;
  --insert: #1d4ed8;
  --proof: #0b7a52;
  --curtain: #121316;
  --term: #121316;
  --paper-2: #f6f6f4;
  --field: #c9c9c4;
  --on-insert: #ffffff;
  --shadow: rgba(18, 19, 22, 0.25);
  --ease: cubic-bezier(.65, 0, .35, 1);
  --sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gut: clamp(16px, 2vw, 28px);
  --pad: max(5vw, 16px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ground: #0e0f11;
  --ink: #ececea;
  --muted: #a2a6ad;
  --line: #25272c;
  --strike: #ff5b66;
  --insert: #7ea6ff;
  --proof: #3ccf94;
  --curtain: #18191c;
  --term: #050506;
  --paper-2: #16171a;
  --field: #34363c;
  --on-insert: #0e0f11;
  --shadow: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}
html { background: var(--ground); transition: background-color 0.4s var(--ease); }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.45s var(--ease) both vt-out; }
::view-transition-new(root) { animation: 0.6s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateX(-24px); } }
@keyframes vt-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: color-mix(in srgb, var(--insert) 22%, transparent); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--strike); outline-offset: 3px; border-radius: 2px; }
img, svg { display: block; max-width: 100%; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--ground); padding: 10px 14px; border-radius: 2px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.nw { white-space: nowrap; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- frame / nav ---------- */
.frame { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--pad); background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: translate 0.6s var(--ease), border-color 0.3s; }
html.scrolled .frame { border-bottom-color: var(--line); }
html.frame-away .frame { translate: 0 -110%; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; font-size: 15px; }
.mark { width: 1.15em; height: 1.15em; flex: none; overflow: visible; }
.mark .tri { fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: round; }
.mark .s { fill: var(--strike); transform-box: fill-box; transform-origin: left; }
.brand { align-items: center; padding-block: 4px; }
.brand .mark { width: 22px; height: 22px; transition: transform 0.45s var(--ease); }
.brand:hover .mark, .brand:focus-visible .mark { transform: rotate(-8deg); }
.brand:hover .mark .s, .brand:focus-visible .mark .s { animation: redraw 0.6s var(--ease); }
.nav { display: flex; gap: clamp(12px, 2vw, 26px); align-items: center; font-size: 14px; }
.nav a { text-decoration: none; }
.nav .more { display: none; }
.theme { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--ground); color: var(--ink); cursor: pointer; transition: border-color 0.3s var(--ease); }
.theme svg { width: 18px; height: 18px; transition: transform 0.6s var(--ease); }
.theme:hover, .theme:focus-visible { border-color: var(--ink); }
.theme:hover svg, .theme:focus-visible svg { transform: rotate(180deg); }
:root[data-theme="dark"] .theme svg { transform: rotate(180deg); }
:root[data-theme="dark"] .theme:hover svg { transform: rotate(0deg); }
@media (max-width: 720px) { .nav a:not(.keep) { display: none; } }

/* Primary link treatment: an insertion underline draws in from the left. */
.ul { position: relative; display: inline-block; padding-block: 2px; }
.ul::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--insert); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.ul:hover::after, .ul:focus-visible::after, .ul[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.ul:hover, .ul:focus-visible { color: var(--insert); }
.ul[aria-current="page"]:hover::after { animation: redraw 0.6s var(--ease); }
@keyframes redraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.arrow { display: inline-block; transition: transform 0.35s var(--ease); }
a:hover .arrow, button:hover .arrow, a:focus-visible .arrow { transform: translateX(4px); }

/* Buttons flood blue from the left, like an accepted insertion. */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--ground); color: var(--ink); font: 600 15px var(--sans); text-decoration: none; cursor: pointer; isolation: isolate; transition: color 0.45s var(--ease), border-color 0.45s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--insert); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.btn:hover, .btn:focus-visible { color: var(--on-insert); border-color: var(--insert); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:active { transform: translateY(1px); }
.btn.solid { background: var(--ink); color: var(--ground); }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* ---------- layout ---------- */
main { display: block; }
.band { position: relative; padding: clamp(72px, 10vw, 140px) var(--pad); }
.wrap { max-width: 1320px; margin: 0 auto; position: relative; }
.rail::before { content: "Δ "; color: var(--strike); }
.rail { position: absolute; left: calc(-1 * clamp(0px, 3.2vw, 56px)); top: 0.35em; font: 500 13px var(--mono); color: var(--muted); }
@media (max-width: 1100px) { .rail { position: static; display: block; margin-bottom: 14px; } }
h1, h2, h3 { font-family: var(--sans); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.6vw, 60px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.0; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 58ch; margin: 18px 0 0; }
p { margin: 0; }
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); font-size: 0.86em; }
del, .del { text-decoration: none; color: var(--strike); background: linear-gradient(var(--strike), var(--strike)) 0 55% / 100% 1.5px no-repeat; }
ins, .ins { text-decoration: none; color: var(--insert); background: linear-gradient(var(--insert), var(--insert)) 0 100% / 100% 1.5px no-repeat; }

/* strike-in reveal (motion verb). Visible by default; JS arms it. */
.js-motion [data-reveal] { clip-path: inset(0 100% 0 0); }
[data-reveal] { position: relative; }
.js-motion [data-reveal]::after { content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 1.5px; background: var(--strike); transform: scaleX(var(--rl, 0)); opacity: var(--ro, 1); transform-origin: left; pointer-events: none; }

/* ---------- hero (signature) ---------- */
.hero { position: relative; height: 230svh; }
.hero__stage { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: center; padding: 96px var(--pad) 40px; max-width: calc(1320px + 2 * var(--pad)); margin: 0 auto; }
.hero h1 { font-size: clamp(40px, 5.6vw, 92px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; }
.hero h1 .l { display: block; }
.hero .lede { margin-top: 22px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.install { margin-top: 26px; display: flex; align-items: stretch; max-width: 560px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper-2); }
.install .lbl { padding: 10px 12px; font-size: 12.5px; font-weight: 600; border-right: 1px solid var(--line); display: grid; place-items: center; white-space: nowrap; }
.install code { flex: 1; padding: 12px; font: 13px/1.4 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: center; }
.install button { border: 0; border-left: 1px solid var(--line); background: none; color: var(--insert); font: 600 13px var(--sans); padding: 0 14px; cursor: pointer; min-width: 74px; position: relative; }
.install button::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 10px; height: 1.5px; background: var(--insert); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.install button:hover::after, .install button:focus-visible::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 560px) { .install .lbl { display: none; } }
.cue { margin-top: 34px; font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.cue .bar { width: 44px; height: 1.5px; background: var(--line); position: relative; overflow: hidden; }
.cue .bar i { position: absolute; inset: 0; background: var(--strike); transform-origin: left; transform: scaleX(var(--p, 0)); }

.doc { margin: 0; position: relative; background: var(--ground); border: 1px solid var(--line); border-radius: 2px; padding: clamp(22px, 3vw, 44px); box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px var(--shadow); }
.doc__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 13px; color: var(--muted); padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.doc__head b { color: var(--ink); font-weight: 600; }
.doc__text { font-family: var(--serif); font-size: clamp(21px, 2.15vw, 34px); line-height: 1.38; letter-spacing: -0.005em; position: relative; }
.edit { position: relative; white-space: nowrap; }
.edit .o, .edit .n { position: relative; display: inline-block; }
.edit .o::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 2px; background: var(--strike); transform: scaleX(var(--s, 1)); transform-origin: left; }
.edit .o { color: var(--strike); }
.edit .n { color: var(--insert); margin-left: 0.18em; }
.edit .n::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 2px; background: var(--insert); transform: scaleX(var(--u, 1)); transform-origin: left; }
.js-motion .edit .o { color: var(--ink); }
.js-motion .edit .n { opacity: 0.16; }
.js-motion .edit .o::after { transform: scaleX(var(--s, 0)); }
.js-motion .edit .n::after { transform: scaleX(var(--u, 0)); }
.js-motion #stamp { opacity: 0; }
.js-motion .pipe__rule i { transform: scaleX(var(--p, 0)); }
.js-motion .word .mark .s { transform: scaleX(var(--w, 0)); }
.caret { position: absolute; top: 0; left: 0; color: var(--insert); font: 600 22px var(--sans); line-height: 1; pointer-events: none; opacity: 0; will-change: transform; }
.doc__foot { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; }
.note { font-size: 15px; color: var(--muted); border-left: 2px solid var(--strike); padding-left: 14px; max-width: 46ch; }
.note b { color: var(--ink); font-weight: 600; }
.stamp { width: 128px; height: 128px; border-radius: 50%; border: 2.5px solid var(--proof); color: var(--proof); display: grid; place-items: center; text-align: center; font: 700 12.5px/1.25 var(--sans); letter-spacing: 0.02em; rotate: -9deg; padding: 14px; }
.stamp .big { display: block; font-size: 26px; line-height: 1; margin-bottom: 4px; }
.stamp-wrap { will-change: transform; }
.doc__cite { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.doc__cite a { color: var(--insert); padding-block: 4px; }
@media (max-width: 980px) {
  .hero { height: 200svh; }
  .hero__stage { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 22px; padding-top: 84px; padding-bottom: 20px; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 60px); }
  .doc { padding: 18px 18px 16px; }
  .doc__head { padding-bottom: 10px; margin-bottom: 14px; font-size: 12.5px; }
  .doc__head > span:last-child { display: none; }
  .doc__text { font-size: clamp(19px, 5.1vw, 28px); }
  .doc .note { display: none; }
  .doc__foot { margin-top: 10px; min-height: 0; }
  .doc__cite { margin-top: 10px; font-size: 12px; }
  .hero .btn { min-height: 44px; padding: 0 14px; font-size: 14px; }
  .hero .lede { display: none; }
  .hero .ctas { margin-top: 18px; }
  .cue { display: none; }
  .stamp { width: 96px; height: 96px; font-size: 10.5px; padding: 10px; }
  .stamp .big { font-size: 20px; }
}
@media (max-width: 560px) {
  .doc__foot { grid-template-columns: minmax(0, 1fr); }
  .stamp-wrap { position: absolute; right: 10px; top: -30px; }
  .edit { white-space: normal; }
}

/* ---------- pipeline ---------- */
.pipe { margin-top: clamp(40px, 6vw, 80px); position: relative; }
.pipe__rule { position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line); }
.pipe__rule i { position: absolute; inset: 0; background: var(--strike); transform-origin: left; transform: scaleX(var(--p, 1)); }
.pipe ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gut); position: relative; }
.pipe li { padding-top: 40px; position: relative; }
.pipe li::before { content: ""; position: absolute; top: 4px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--ground); border: 2px solid var(--ink); transition: background 0.4s var(--ease), border-color 0.4s var(--ease); }
.pipe li.on::before { background: var(--strike); border-color: var(--strike); }
.pipe h3 { font-size: 21px; }
.pipe p { font-size: 15px; color: var(--muted); margin-top: 6px; }
.pipe .k { font: 500 12.5px var(--mono); color: var(--ink); margin-top: 10px; display: block; }
@media (max-width: 900px) {
  .pipe__rule { left: 7px; right: auto; width: 2px; top: 0; bottom: 0; height: auto; }
  .pipe__rule i { transform-origin: top; transform: scaleY(var(--p, 1)); }
  .pipe ol { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .pipe li { padding: 0 0 0 40px; }
}

/* ---------- live index ---------- */
.idx { margin-top: clamp(36px, 5vw, 64px); border-top: 1.5px solid var(--ink); }
.idx__row { border-bottom: 1px solid var(--line); }
.idx__btn { width: 100%; display: grid; grid-template-columns: 90px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 36px; gap: var(--gut); align-items: center; padding: 20px 0; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; position: relative; }
.idx__btn::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--strike); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); pointer-events: none; opacity: 0.85; }
.idx__btn:hover .idx__name, .idx__btn:focus-visible .idx__name { transform: translateX(10px); color: var(--insert); }
.idx__btn[aria-expanded="true"] .idx__name { color: var(--insert); }
.idx__tk { font: 600 15px var(--mono); }
.idx__name { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -0.02em; transition: transform 0.45s var(--ease), color 0.45s var(--ease); }
.idx__num { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.idx__num b { color: var(--ink); font-weight: 600; }
.idx__plus { width: 28px; height: 28px; position: relative; justify-self: end; }
.idx__plus::before, .idx__plus::after { content: ""; position: absolute; left: 6px; right: 6px; top: 13px; height: 2px; background: var(--ink); transition: transform 0.45s var(--ease); }
.idx__plus::after { transform: rotate(90deg); }
.idx__btn[aria-expanded="true"] .idx__plus::after { transform: rotate(0deg); }
.idx__panel { padding: 4px 0 30px; }
.idx__panel[hidden] { display: none; }
.idx__status { padding: 26px 0; color: var(--muted); }
@media (max-width: 760px) {
  .idx__btn { grid-template-columns: 64px minmax(0, 1fr) 28px; }
  .idx__btn .idx__num { display: none; }
  .idx__btn .idx__num.keep { display: block; grid-column: 2; margin-top: -10px; }
}
.tiers { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--ground); color: var(--ink); font: 500 14px var(--sans); cursor: pointer; transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease); }
.chip { position: relative; overflow: hidden; }
.chip::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px; background: var(--insert); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.chip[aria-pressed="true"]::after { background: #8fb4ff; }
.chip:hover::after, .chip:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.chip:hover, .chip:focus-visible { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.filings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gut); margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.filings a { color: var(--insert); font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.card { border: 1px solid var(--line); border-radius: 2px; padding: 18px 20px; margin-bottom: 10px; background: var(--ground); }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin-bottom: 10px; align-items: center; }
.tier { font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 999px; color: #fff; text-transform: capitalize; }
.tier.high { background: var(--strike); }
.tier.medium { background: #b45309; }
.tier.low { background: var(--muted); }
.ok { color: var(--proof); font-weight: 600; }
.bad { color: var(--strike); font-weight: 600; }
.card__why { font-size: 16px; }
.card__red { margin-top: 12px; font-family: var(--serif); font-size: 16.5px; line-height: 1.55; background: var(--paper-2); padding: 14px 16px; border-radius: 2px; }
.more-btn { margin-top: 8px; }

/* ---------- prove it ---------- */
.prove { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); margin-top: clamp(36px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .prove { grid-template-columns: minmax(0, 1fr); } }
.qs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; }
.qs .chip { text-align: left; height: auto; min-height: 40px; padding: 8px 14px; line-height: 1.35; }
.qs .chip .tk { font: 600 12px var(--mono); margin-right: 6px; }
.answer { border-top: 1.5px solid var(--ink); padding-top: 20px; }
.answer .q { font-size: 14px; color: var(--muted); }
.answer .a { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 26px); line-height: 1.4; margin: 10px 0 18px; }
.answer sup { font: 700 11px var(--mono); color: var(--insert); margin-left: 2px; }
.cite { border-left: 2px solid var(--insert); padding: 4px 0 4px 14px; margin: 12px 0; }
.cite q { font-family: var(--serif); font-size: 16px; quotes: "“" "”"; }
.cite .meta { margin-top: 6px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.cite .meta a { color: var(--insert); }
.small { font-size: 13px; color: var(--muted); }
.check { background: var(--paper-2); border-radius: 2px; padding: clamp(20px, 2.4vw, 30px); }
.check label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.check select, .check textarea { width: 100%; font: 16px var(--sans); color: var(--ink); background: var(--ground); border: 1px solid var(--field); border-radius: 2px; padding: 10px 12px; }
.check textarea { min-height: 110px; resize: vertical; font-family: var(--serif); }
.check .btn { margin-top: 14px; }
.verdict { margin-top: 18px; min-height: 24px; }
.verdict .ctx { margin-top: 8px; font-family: var(--serif); font-size: 15.5px; background: var(--ground); padding: 10px 12px; border-radius: 2px; }
.verdict mark { background: color-mix(in srgb, var(--proof) 18%, transparent); color: inherit; padding: 0 2px; }

/* ---------- numbers (ink band) ---------- */
.ink { background: var(--curtain); color: #f1f1ef; }
:root[data-theme="dark"] .ink { border-block: 1px solid var(--line); }
.ink .rail, .ink .lede { color: #a9acb3; }
.nums { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #34363c; }
.num { padding: 28px var(--gut) 30px 0; border-bottom: 1px solid #34363c; }
.num:not(:nth-child(3n)) { border-right: 1px solid #34363c; }
.num:not(:nth-child(3n+1)) { padding-left: var(--gut); }
.num .v { font-size: clamp(48px, 7vw, 112px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.num .v sup { font-size: 0.42em; letter-spacing: 0; vertical-align: 0.9em; margin-left: 2px; }
.num p { margin-top: 12px; font-size: 15px; color: #c6c8cd; max-width: 30ch; }
.num.red .v { color: #ff5b66; }
@media (max-width: 760px) {
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .num, .num:not(:nth-child(3n+1)) { padding: 22px 12px 22px 0; border-right: 0 !important; }
  .num:nth-child(odd) { border-right: 1px solid #34363c !important; }
  .num:nth-child(even) { padding-left: 14px; }
}

/* ---------- connect ---------- */
.connect { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); margin-top: clamp(36px, 5vw, 64px); }
@media (max-width: 960px) { .connect { grid-template-columns: minmax(0, 1fr); } }
.term { background: var(--term); color: #e8e8e6; border-radius: 2px; padding: 22px; font: 14px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.term .p { color: #8b8f97; }
.term .y { color: #8fb4ff; }
.term .g { color: #6fd3a6; }
.copy { margin-top: 12px; }
.tools { margin: 0; }
.tools > div { padding: 16px 0; border-top: 1px solid var(--line); }
.tools dt { font: 600 14px var(--mono); }
.tools dd { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
.tools .new { color: var(--insert); font: 600 12px var(--sans); margin-left: 8px; }

/* ---------- footer ---------- */
.foot { padding: clamp(60px, 8vw, 110px) var(--pad) 40px; border-top: 1px solid var(--line); }
.word { font-size: clamp(44px, 10.5vw, 176px); font-weight: 700; letter-spacing: -0.055em; line-height: 0.86; margin: 0; }
.word { display: flex; align-items: center; gap: 0.12em; flex-wrap: wrap; }
.word .mark { width: 0.82em; height: 0.82em; }
.word .mark .tri { stroke-width: 2.4; }
.word .mark .s { transform: scaleX(var(--w, 1)); }
.foot__row { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; margin-top: 36px; font-size: 14px; color: var(--muted); }
.foot__row nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot__row a { color: var(--ink); text-decoration: none; }

/* ---------- case page ---------- */
.case-hero { padding: clamp(120px, 14vw, 190px) var(--pad) clamp(40px, 6vw, 80px); }
.case-hero h1 { font-size: clamp(40px, 6.4vw, 104px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; max-width: 15ch; }
.decisions { margin-top: clamp(36px, 5vw, 64px); display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.dec { border-bottom: 1px solid var(--line); }
.dec summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 28px; gap: var(--gut); align-items: center; padding: 22px 0; }
.dec summary::-webkit-details-marker { display: none; }
.dec summary .one { color: var(--muted); font-size: 16px; }
.dec summary h3 { transition: transform 0.45s var(--ease), color 0.45s var(--ease); }
.dec summary:hover h3, .dec summary:focus-visible h3 { transform: translateX(8px); color: var(--insert); }
.dec[open] h3 { color: var(--insert); }
.dec .plus { width: 28px; height: 28px; position: relative; }
.dec .plus::before, .dec .plus::after { content: ""; position: absolute; left: 6px; right: 6px; top: 13px; height: 2px; background: var(--ink); transition: transform 0.45s var(--ease); }
.dec .plus::after { transform: rotate(90deg); }
.dec[open] .plus::after { transform: rotate(0deg); }
.dec .body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 28px; gap: var(--gut); padding: 0 0 24px; }
.dec .body p { grid-column: 2; color: var(--ink); }
.dec .body a { grid-column: 2; color: var(--insert); font-size: 14px; margin-top: 8px; justify-self: start; }
@media (max-width: 760px) { .dec summary, .dec .body { grid-template-columns: minmax(0, 1fr) 28px; } .dec summary .one { grid-column: 1; grid-row: 2; } .dec .body p, .dec .body a { grid-column: 1; } }
.dec h3 { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.02em; }
.dec p { color: var(--ink); }
.dec p + p { margin-top: 10px; color: var(--muted); }
.dec aside { font-size: 14px; color: var(--muted); border-left: 2px solid var(--strike); padding-left: 12px; align-self: start; }
.dec aside a { color: var(--insert); }

.arch { margin-top: clamp(32px, 4vw, 56px); display: grid; gap: 12px; }
.lane { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; align-items: center; }
.lane b { font-size: 14px; }
.stations { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st { border: 1px solid var(--line); border-radius: 2px; padding: 9px 12px; font-size: 14px; background: var(--ground); }
.st small { display: block; color: var(--muted); font-size: 12.5px; }
.st.red { border-color: var(--strike); }
.st.blue { border-color: var(--insert); }
.to { color: var(--muted); }
@media (max-width: 700px) { .lane { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.table-wrap { overflow-x: auto; margin-top: 24px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
td.n { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; align-content: center; padding: 120px var(--pad) 60px; max-width: calc(1100px + 2 * var(--pad)); margin: 0 auto; }
.nf h1 { font-size: clamp(40px, 7vw, 110px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; }
.nf .path { margin-top: 28px; font-family: var(--serif); font-size: clamp(22px, 3vw, 40px); overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
