/* witnessdiff.com · "the blueprint of a change". Cool drafting paper, ink, hairline frames with crosshair marks,
   Archivo wide uppercase for display, JetBrains Mono for every label, and one accent: the reviewer's highlighter.
   One deliberate theme switch: the lights go down for the videos. Radii: 2px for drafting, 8px for keys and screens. */
@font-face { font-family: "Archivo"; src: url(fonts/archivo-wide.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(fonts/archivo-wide-italic.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jbm-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jbm-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #eceeea;
  --paper-2: #e2e5df;
  --sheet: #f6f7f4;
  --ink: #111315;
  --ink-2: #33383d;
  --mute: #5f656b;
  --faint: #8b9096;
  --hair: rgba(17, 19, 21, .16);
  --grid: rgba(17, 19, 21, .045);
  --marker: #ffd23f;
  --marker-ink: #1a1600;
  --add: #138a5b;
  --del: #c43d2f;
  --night: #0b0d10;
  --r: 2px;
  --pad: clamp(20px, 3.4vw, 48px);
  --max: 1440px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 "Archivo", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background-color .6s ease; }
body.night { background: var(--night); }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
code, kbd { font: 500 .9em "JetBrains Mono", monospace; }
kbd { display: inline-block; padding: 0 6px; border: 1px solid var(--hair); border-bottom-width: 2px; border-radius: 5px; background: var(--sheet); font-size: .82em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { top: 12px; }

/* the drafting grid, on a fixed layer */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; transition: opacity .6s; }
body.night::before { opacity: 0; }

/* type */
.h-xl, .h-l, .h-m { font-stretch: 112%; font-weight: 800; text-transform: uppercase; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
.h-xl { font-size: clamp(42px, 6.4vw, 104px); line-height: .94; }
.h-l { font-size: clamp(32px, 4vw, 64px); line-height: .98; }
.h-m { font-size: clamp(24px, 2.4vw, 36px); line-height: 1; }
.mk, .sweep { position: relative; z-index: 0; white-space: nowrap; }
.mk::before, .sweep::before { content: ""; position: absolute; z-index: -1; left: -.05em; right: -.05em; top: .1em; bottom: .02em; background: var(--marker); transform-origin: left; transform: scaleX(var(--sw, 1)); }
.tag { display: inline-block; font: 600 12px "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border: 1px solid currentColor; margin-bottom: 22px; }
p { text-wrap: pretty; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: var(--r); font: 600 14px "JetBrains Mono", monospace; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid var(--ink); transition: transform .18s cubic-bezier(.16,1,.3,1), background-color .18s, color .18s, border-color .18s; }
.btn, .kc, .sound, .pause, .tile-media { touch-action: manipulation; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--marker); color: var(--marker-ink); border-color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; height: 64px; display: flex; align-items: center; gap: 28px; padding: 0 var(--pad); background: rgba(236,238,234,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--hair); transition: background-color .6s, color .6s, border-color .6s; }
body.night .nav { background: rgba(11,13,16,.8); color: #e8ebee; border-color: rgba(255,255,255,.08); }
body.night .nav .btn-ink { background: #e8ebee; color: var(--night); border-color: #e8ebee; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 15px "JetBrains Mono", monospace; letter-spacing: .14em; }
.mark { width: 28px; color: var(--ink); }
body.night .mark { color: #e8ebee; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { text-decoration: none; font: 500 13px "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .06em; opacity: .7; transition: opacity .2s; }
.nav nav a:hover { opacity: 1; }

/* hero: a drawing sheet */
.hero { position: relative; min-height: 100dvh; padding: 96px var(--pad) 28px; display: grid; grid-template-rows: 1fr auto; overflow: hidden; border-bottom: 1px solid var(--hair); }
.hero-plan { position: absolute; top: 76px; bottom: 104px; left: 41%; right: 8px; display: grid; place-items: center; }
.hero-plan svg { width: 100%; height: 100%; overflow: visible; }
.bp-room { fill: rgba(246,247,244,.85); stroke: var(--ink); stroke-width: 1.4; }
.bp-room-d { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 6 5; }
.bp-cell { fill: rgba(246,247,244,.9); stroke: var(--ink-2); stroke-width: .8; }
.bp-cell-new { fill: rgba(19,138,91,.12); }
.bp-cell-hot { fill: var(--marker); stroke: var(--ink); stroke-width: 1.2; }
.bp-wire { fill: none; stroke: var(--ink); stroke-width: 1.1; }
.bp-wire-d { fill: none; stroke: var(--ink-2); stroke-width: .9; stroke-dasharray: 3 4; }
.bp-dim { fill: none; stroke: var(--faint); stroke-width: .8; }
.bp-hatch { stroke: var(--ink); stroke-width: .6; opacity: .28; }
.bp-t { font: 600 12px "JetBrains Mono", monospace; fill: var(--ink); text-transform: uppercase; letter-spacing: .05em; }
.bp-s { font: 400 10.5px "JetBrains Mono", monospace; fill: var(--mute); }
.bp-f { font: 500 10px "JetBrains Mono", monospace; fill: var(--ink-2); }
.bp-l { font: 600 10px "JetBrains Mono", monospace; fill: var(--ink); }
.hero-cross { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-cross .cx, .hero-cross .cy { position: absolute; background: rgba(17,19,21,.2); }
.hero-cross .cx { left: 0; right: 0; height: 1px; top: var(--y, 50%); }
.hero-cross .cy { top: 0; bottom: 0; width: 1px; left: var(--x, 66%); }
.hero-cross .cdot { position: absolute; width: 13px; height: 13px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--marker); box-shadow: 0 0 0 1.5px var(--ink); left: var(--x, 66%); top: var(--y, 50%); }
.hero-cross .clabel { position: absolute; left: calc(var(--x, 66%) + 14px); top: calc(var(--y, 50%) + 10px); font: 600 11px "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .06em; background: var(--ink); color: var(--paper); padding: 3px 7px; white-space: nowrap; }
.hero-text { position: relative; z-index: 2; align-self: end; width: 38%; min-width: 440px; padding-bottom: 28px; }
.hero .h-xl { font-size: clamp(42px, 5.1vw, 86px); }
.lede { margin: 26px 0 0; font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-2); max-width: 44ch; }
.ctas { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-spec { position: relative; z-index: 2; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); background: var(--paper); }
.hero-spec div { padding: 12px 16px 0 0; }
.hero-spec dt { font: 600 11px "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.hero-spec dd { margin: 4px 0 0; font: 400 13px/1.45 "JetBrains Mono", monospace; }

/* problem: four columns between hairlines */
.problem { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--hair); }
.problem div { padding: 40px var(--pad) 48px; border-right: 1px solid var(--hair); }
.problem div:last-child { border-right: 0; }
.problem h3 { margin: 0 0 12px; font-stretch: 110%; font-weight: 800; text-transform: uppercase; font-size: 18px; line-height: 1.1; letter-spacing: -0.01em; }
.problem p { margin: 0; color: var(--mute); font-size: 15px; }

.statement { padding: clamp(110px, 16vw, 220px) var(--pad); text-align: center; border-bottom: 1px solid var(--hair); }

/* chapters */
.chapter { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 9vw, 140px) var(--pad); }
.chapter-head { max-width: 900px; margin-bottom: 52px; }
.chapter-head p, .flows-grid > div > p, .keys-copy > p, .team-copy > p { color: var(--ink-2); font-size: 18px; max-width: 58ch; margin: 22px 0 0; }

.sheet { position: relative; margin: 0; padding: 14px; background: var(--sheet); border: 1px solid var(--ink); }
.sheet::before, .sheet::after { content: "+"; position: absolute; font: 400 18px "JetBrains Mono", monospace; color: var(--ink); line-height: 1; }
.sheet::before { left: -6px; top: -11px; } .sheet::after { right: -6px; bottom: -11px; }
.sheet img { width: 100%; border: 1px solid var(--hair); }
.callouts { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); pointer-events: none; overflow: visible; }
.co path { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.co circle { fill: var(--marker); stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.notes span { position: absolute; left: var(--x); top: var(--y); background: var(--ink); color: var(--paper); font: 600 12px/1.35 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .04em; padding: 7px 10px; }
.notes em { font-style: normal; font-weight: 400; text-transform: none; color: #c8ccd0; }
.map-row { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.map-text h3 { margin: 0 0 12px; font-stretch: 110%; font-weight: 800; text-transform: uppercase; font-size: 24px; }
.map-text p { margin: 0; color: var(--ink-2); }
.map-mod { border: 1px solid var(--ink); }

.flows-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.routes { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.routes li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hair); font: 500 14px "JetBrains Mono", monospace; transition: padding .3s, background-size .3s; background: linear-gradient(90deg, var(--marker), var(--marker)) left / 0 100% no-repeat; }
.routes li span { color: var(--mute); font-size: 12px; }
.routes li.on { background-size: 4px 100%; padding-left: 14px; }
.trace { position: relative; margin: 0; }
.trace-svg { width: min(520px, 100%); margin: 0 auto 32px; overflow: visible; }
.t-box rect { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.3; }
.t-hot rect { fill: var(--marker); }
.t-new rect { fill: rgba(19,138,91,.12); }
.t-k { font: 600 11px "JetBrains Mono", monospace; fill: var(--mute); letter-spacing: .06em; }
.t-n { font: 600 16px "JetBrains Mono", monospace; fill: var(--ink); }
.t-path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 4 5; }
.t-dot { fill: var(--marker); stroke: var(--ink); stroke-width: 2; }
.trace img { border: 1px solid var(--ink); }

/* keys */
.keys-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.keycaps { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kc { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; background: var(--sheet); border: 1px solid var(--hair); border-radius: 8px; cursor: pointer; color: var(--ink); font: 400 12.5px/1.25 "Archivo", sans-serif; transition: transform .12s, background-color .12s, border-color .12s; }
.kc b { min-width: 34px; height: 34px; padding: 0 8px; display: grid; place-items: center; border: 1px solid var(--ink); border-bottom-width: 3px; border-radius: 7px; background: #fff; font: 600 14px "JetBrains Mono", monospace; }
.kc:hover { border-color: var(--ink); }
.kc.press { transform: translateY(2px); background: var(--marker); border-color: var(--ink); }
.kc.press b { border-bottom-width: 1px; }
.kc-static { cursor: default; opacity: .8; }
.pane { position: relative; background: var(--night); color: #dfe4ea; border-radius: 10px; padding: 0 0 52px; box-shadow: 0 30px 80px -40px rgba(17,19,21,.55); font: 400 13.5px/1.45 "JetBrains Mono", monospace; min-height: 480px; outline-offset: 4px; }
.pane:focus-visible { outline: 2px solid var(--marker); }
.pane-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); color: #8b95a3; }
.pane-progress { display: flex; align-items: center; gap: 10px; }
.pane-progress i { display: block; width: 120px; height: 4px; background: rgba(255,255,255,.1); position: relative; overflow: hidden; }
.pane-progress i::after { content: ""; position: absolute; inset: 0; background: var(--marker); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .3s; }
.pane-progress b { font-variant-numeric: tabular-nums; color: #fff; font-weight: 600; min-width: 36px; text-align: right; }
.pane-mods { list-style: none; margin: 0; padding: 8px 0; }
.pm-h { display: flex; justify-content: space-between; padding: 5px 18px; color: #9aa5b4; }
.pm-h span { color: #6b7685; }
.pm.on > .pm-h { color: #fff; }
.pm.on > .pm-h b::before { content: "▸ "; color: var(--marker); }
.pm-f { list-style: none; margin: 0; padding: 0; display: none; }
.pm.on .pm-f { display: block; }
.pf { display: flex; gap: 10px; padding: 3px 18px 3px 36px; color: #9aa5b4; }
.pf i { font-style: normal; width: 64px; flex: none; color: #6b7685; font-size: 12px; }
.pf i.added { color: #34d399; } .pf i.modified { color: #f0a93b; }
.pf.on { background: rgba(255,210,63,.14); color: #fff; box-shadow: inset 3px 0 0 var(--marker); }
.pf.done { color: #6b7685; }
.pf.done::after { content: "reviewed"; margin-left: auto; color: #34d399; font-size: 11.5px; }
.pane-search { margin: 6px 18px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--marker); border-radius: 6px; }
.pane-search span { color: var(--marker); }
.pane-search input { flex: 1; background: none; border: 0; color: #fff; font: inherit; outline: none; }
.pane-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.08); color: #8b95a3; }
.pane-foot kbd { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.term-row { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.term { margin: 0; padding: 18px 20px; background: var(--ink); color: #d6dce3; border-radius: 8px; font: 400 13px/1.7 "JetBrains Mono", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.term .p { color: var(--marker); }
.term-row p { margin: 0; color: var(--ink-2); }

/* proof: a sticky stack of evidence */
.stack { position: relative; }
.card { position: sticky; top: 96px; margin: 0 auto 28px; max-width: 980px; min-height: 420px; background: var(--sheet); border: 1px solid var(--ink); padding: clamp(24px, 3vw, 40px); box-shadow: 0 -12px 40px -24px rgba(17,19,21,.35); display: grid; align-content: start; gap: 18px; transform-origin: center top; }
.card:nth-child(2) { top: 112px; } .card:nth-child(3) { top: 128px; } .card:nth-child(4) { top: 144px; }
.card header { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; border-bottom: 1px solid var(--hair); padding-bottom: 14px; }
.card .n { font: 600 12px "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: var(--paper); padding: 4px 8px; }
.card h3 { margin: 0; font-stretch: 110%; font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.01em; }
.card blockquote { margin: 0; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; max-width: 70ch; }
.card-foot { margin: 0; color: var(--mute); font-size: 15px; max-width: 70ch; }
.yaml, .z3, .mut { margin: 0; padding: 16px 18px; background: var(--paper-2); border-left: 3px solid var(--ink); font: 400 13.5px/1.7 "JetBrains Mono", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.y-k { color: var(--add); font-weight: 600; }
.z-c { color: var(--mute); } .z-d { color: var(--ink); font-weight: 600; background: var(--marker); padding: 0 4px; }
.m-l { color: var(--faint); } .m-del { color: var(--del); text-decoration: line-through; } .m-add { color: var(--add); } .m-ok { background: var(--add); color: #fff; padding: 0 6px; font-weight: 600; }
.metric { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: baseline; }
.metric b { font-variant-numeric: tabular-nums; font: 700 clamp(44px, 6vw, 84px)/1 "JetBrains Mono", monospace; letter-spacing: -0.04em; }
.metric span { color: var(--ink-2); max-width: 46ch; }
.metric em { font-style: normal; background: var(--marker); padding: 0 4px; font-weight: 600; }
.proof-ci { max-width: 980px; margin: 36px auto 0; color: var(--mute); }

/* cinema: the lights go down */
.cinema { background: var(--night); color: #e8ebee; padding: clamp(100px, 11vw, 170px) var(--pad); }
.cinema-in { max-width: 1280px; margin: 0 auto; }
.cinema-in > p { color: #9aa5b4; font-size: 18px; max-width: 60ch; margin: 22px 0 48px; }
.screen { position: relative; margin: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 60px 160px -50px rgba(255,210,63,.25); }
.screen video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.pause { position: absolute; right: 132px; bottom: 16px; height: 38px; padding: 0 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2); background: rgba(11,13,16,.72); color: #fff; font: 600 12px "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; backdrop-filter: blur(8px); }
.pause:hover, .sound:hover { border-color: rgba(255,255,255,.5); }
.sound { position: absolute; right: 16px; bottom: 16px; height: 38px; padding: 0 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2); background: rgba(11,13,16,.72); color: #fff; font: 600 12px "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; backdrop-filter: blur(8px); }
.sound[aria-pressed="true"] { background: var(--marker); color: var(--marker-ink); border-color: transparent; }
.cinema-row { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.tile-media { display: block; width: 100%; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; position: relative; cursor: pointer; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
div.tile-media { cursor: default; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s cubic-bezier(.16,1,.3,1); }
button.tile-media::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--marker) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%231a1600'/%3E%3C/svg%3E") center/26px no-repeat; transition: transform .3s; }
.tile-media:hover img { transform: scale(1.03); }
.tile h3 { margin: 18px 0 6px; font-stretch: 110%; font-weight: 800; text-transform: uppercase; font-size: 22px; }
.tile p { margin: 0; color: #9aa5b4; }
.tile kbd { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }

/* team */
.team-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.facts { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--hair); color: var(--ink-2); font-size: 15.5px; }
.facts b { display: block; font: 600 12px "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 4px; }
.team-shot { border: 1px solid var(--ink); }

/* the day: five cells, three shapes */
.day { margin-top: 48px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.day article { padding: 28px 26px 32px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.day h3 { margin: 0 0 10px; font-stretch: 110%; font-weight: 800; text-transform: uppercase; font-size: 19px; }
.day p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.d1 { grid-column: span 3; background: var(--marker); } .d2 { grid-column: span 3; }
.d3 { grid-column: span 2; } .d4 { grid-column: span 2; background: var(--sheet); } .d5 { grid-column: span 2; }

/* specs */
.specs { max-width: var(--max); margin: 0 auto; padding: 40px var(--pad) 120px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); }
.spec-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.spec-cols dl { margin: 0; }
.spec-cols div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--hair); }
.spec-cols dt { font: 600 11.5px "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); padding-top: 2px; }
.spec-cols dd { margin: 0; font: 400 13.5px/1.5 "JetBrains Mono", monospace; }

/* final + the wordmark */
.final { position: relative; overflow: hidden; padding: 120px var(--pad) 0; border-top: 1px solid var(--ink); display: grid; justify-items: start; gap: 28px; }
.final .h-l { max-width: 14ch; }
.final-note { margin: 0; color: var(--mute); font: 400 13px "JetBrains Mono", monospace; }
.wordmark { margin-top: 40px; width: 100%; font-stretch: 125%; font-weight: 900; font-size: 16.4vw; line-height: .78; letter-spacing: -0.05em; color: var(--ink); text-align: center; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding: 22px var(--pad) 30px; background: var(--ink); color: #9aa0a6; font: 400 12.5px "JetBrains Mono", monospace; }
.foot a { color: #d6dce3; }

.player { overscroll-behavior: contain; padding: 0; border: 0; background: transparent; width: min(1200px, 94vw); }
.player::backdrop { background: rgba(5,6,8,.88); }
.player video { width: 100%; border-radius: 8px; background: #000; }
.player form { display: flex; justify-content: flex-end; margin-top: 12px; }
.player .btn-line { color: #fff; border-color: #fff; }

/* phones and small laptops */
@media (max-width: 1000px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { display: flex; flex-direction: column; }
  .hero-plan { position: relative; inset: auto; height: 44vh; min-height: 260px; margin: 0 -10px 8px; }
  .hero-cross { display: none; }
  .hero-text { width: auto; min-width: 0; }
  .hero-spec { grid-template-columns: 1fr; }
  .problem { grid-template-columns: 1fr 1fr; }
  .problem div:nth-child(2) { border-right: 0; }
  .problem div { border-bottom: 1px solid var(--hair); }
  .flows-grid, .keys-grid, .team-grid, .map-row, .term-row, .specs, .spec-cols { grid-template-columns: 1fr; }
  .notes, .callouts { display: none; }
  .card { position: relative; top: auto !important; min-height: 0; }
  .cinema-row { grid-template-columns: 1fr; }
  .day { grid-template-columns: 1fr; }
  .day article { grid-column: auto !important; }
  .keycaps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .problem { grid-template-columns: 1fr; } .problem div { border-right: 0; } .ctas .btn { flex: 1; } .metric { grid-template-columns: 1fr; gap: 6px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.pane-search[hidden] { display: none; }
