/*
 * framefields 3
 *
 * A screening room. The picture is black and the films carry the colour;
 * graphite is for the tools (code, controls), and signal yellow marks the
 * playhead and nothing else. The page itself is a timeline: the transport at
 * the foot shows where you are in it. One section is cut on paper, the way
 * the homepage is, for the part about type.
 */
:root {
	--black: #000;
	--graphite: #1f2022;
	--graphite-2: #2a2b2e;
	--line: #3a3c3f;
	--text: #e8e9e7;
	--dim: #9a9da0;
	--code: #c4c7c7;
	--signal: #f5e300;
	--paper: #e6e8e6;
	--ink: #000;
	--steel: #4f5256;

	--sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--mono: "Martian Mono", ui-monospace, Menlo, monospace;
	--max: 1320px;
	--gutter: 24px;
	--r: 4px;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--bar: 44px;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
	margin: 0;
	padding-bottom: var(--bar);
	background: var(--black);
	color: var(--text);
	font: 400 1.125rem/1.55 var(--sans);
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 3px; }
img, video, canvas, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
code, pre { font-family: var(--mono); font-stretch: 87.5%; }
code { font-size: 0.8em; color: var(--text); }
pre { margin: 0; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; box-shadow: 0 0 0 5px var(--signal); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--text); color: #000; padding: 8px 14px; border-radius: var(--r); z-index: 30; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 800; font-stretch: 68%; }

/* top bar */
.top {
	position: absolute; inset: 0 0 auto; z-index: 10;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	height: 68px; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
}
.mark { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 800 1.5rem/1 var(--sans); font-stretch: 68%; }
.top nav { display: flex; align-items: center; gap: 2px; }
.top nav a { text-decoration: none; font-size: 1rem; font-weight: 500; padding: 6px 12px; border-radius: var(--r); }
.top nav a:hover { text-decoration: underline; }
.top nav .top-cta { margin-left: 10px; background: var(--text); color: #000; font-weight: 600; }
.top nav .top-cta:hover { background: #fff; text-decoration: none; }

/* buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 16px 24px; border: 0; border-radius: var(--r); cursor: pointer;
	font: 700 1.1rem/1 var(--sans); text-decoration: none;
	transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-light { background: var(--text); color: #000; }
.btn-light:hover { background: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }
.btn-line { background: none; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn-line:hover { background: var(--text); color: #000; }

/* ---------- open ---------- */
.open { position: relative; min-height: min(calc(100svh - var(--bar)), 1100px); display: grid; align-items: end; overflow: hidden; background: #000; }
.open-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.open-shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 22%, transparent 45%, rgba(0, 0, 0, 0.82) 82%, #000 100%);
}
.open-copy { position: relative; width: 100%; min-width: 0; max-width: var(--max); margin-inline: auto; padding: 120px var(--gutter) 84px; }
.open h1 {
	display: flex; align-items: baseline; gap: 0 0.14em; white-space: nowrap;
	font-size: clamp(3.4rem, 15.2vw, 17rem); line-height: 0.8; letter-spacing: -0.02em;
	margin-left: -0.04em;
}
/* The one orchestrated moment: the name arrives by closing its width axis,
   the same axis Layer.text now takes as fontVariations. */
.js .open-name { animation: settle 1.5s var(--ease) both; }
.js .open-three { animation: three 1.1s 0.5s var(--ease) both; }
@keyframes settle {
	from { font-stretch: 112%; font-weight: 200; letter-spacing: 0; opacity: 0; }
	30% { opacity: 1; }
	to { font-stretch: 68%; font-weight: 800; letter-spacing: -0.02em; opacity: 1; }
}
@keyframes three { from { opacity: 0; transform: translateY(0.12em); } to { opacity: 1; transform: none; } }
.open-three { color: var(--text); }
.open-lede { max-width: 38rem; margin: 30px 0 0; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.4; }
.open-facts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 18px 0 0; font: 400 0.78rem/1.4 var(--mono); font-stretch: 87.5%; color: var(--dim); }
.open-go { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.open-credit {
	position: absolute; right: var(--gutter); bottom: 22px; max-width: 22rem; margin: 0;
	font-size: 0.8rem; line-height: 1.4; color: var(--dim); text-align: right;
}
.open-credit code { color: var(--dim); }

/* ---------- reels (sections) ---------- */
.reel { padding: clamp(96px, 15vh, 180px) 0; border-top: 1px solid #141414; }
.head { max-width: 60rem; margin-bottom: clamp(36px, 6vh, 64px); }
.ver { margin: 0 0 18px; font: 400 0.78rem/1 var(--mono); font-stretch: 87.5%; color: var(--dim); }
.ver::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 1px; background: var(--dim); }
.reel h2 { font-size: clamp(3rem, 8.2vw, 8.5rem); line-height: 0.88; letter-spacing: -0.012em; text-wrap: balance; }
.lede { max-width: 42rem; margin: 26px 0 0; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.45; color: var(--text); }
.note { max-width: 46rem; margin: 26px 0 0; font-size: 1rem; color: var(--dim); }
.note code { color: var(--code); }

.code {
	padding: 18px 20px; border-radius: var(--r); background: var(--graphite);
	font-size: 0.8rem; line-height: 1.7; color: var(--code); overflow-x: auto; white-space: pre;
}
.code b, .bench-pre b, .looks-code b { font-weight: 500; color: var(--signal); }
.code .c { color: var(--dim); }

figure { margin: 0; }
figure video { width: 100%; border-radius: var(--r); background: #0a0a0a; }
figcaption { margin-top: 10px; font-size: 0.95rem; line-height: 1.4; color: var(--dim); }
figcaption code { color: var(--code); }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.pair video { aspect-ratio: 16 / 9; object-fit: cover; }
.pair-wide { margin-top: 0; }
.pair-wide + .code, .split + .code { margin-top: 28px; max-width: 46rem; }

/* ---------- shader bench ---------- */
.bench { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px; align-items: start; }
.bench-code { display: flex; flex-direction: column; min-width: 0; background: var(--graphite); border-radius: var(--r); overflow: hidden; }
.bench-bar { display: flex; justify-content: space-between; gap: 12px; padding: 0 16px; height: 40px; align-items: center; border-bottom: 1px solid var(--line); font-size: 0.82rem; color: var(--dim); }
.bench-bar span:first-child { color: var(--text); font-weight: 600; }
.bench-state { font: 400 0.7rem var(--mono); font-stretch: 87.5%; }
.bench-state::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 1px; background: var(--signal); }
.bench-state.is-off::before { background: var(--dim); }
.bench-pre { padding: 14px 16px 0; font-size: 0.72rem; line-height: 1.7; color: var(--dim); white-space: pre-wrap; }
.bench-pre:last-of-type { padding: 0 16px 14px; }
.bench-src {
	width: 100%; height: 25.5em; margin: 0; padding: 6px 16px 6px 30px; border: 0; resize: none;
	background: #161719; color: var(--code); font: 400 0.72rem/1.7 var(--mono); font-stretch: 87.5%;
	tab-size: 2; white-space: pre; overflow: auto;
}
.bench-src:focus-visible { outline: none; box-shadow: inset 3px 0 0 var(--signal); }
.bench-err { margin: 0; padding: 10px 16px; background: #3a1a17; color: #ffb4a8; font: 400 0.72rem/1.5 var(--mono); font-stretch: 87.5%; white-space: pre-wrap; }
.bench-view { position: sticky; top: 16px; min-width: 0; background: #000; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.bench-view canvas, .bench-fallback { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.knobs { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 14px 16px; background: var(--graphite); font: 400 0.74rem var(--mono); font-stretch: 87.5%; color: var(--dim); }
.knobs label { display: flex; align-items: center; gap: 10px; flex: 1 1 150px; }

input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 80px; height: 20px; margin: 0; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--line); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 4px; height: 20px; margin-top: -9px; border-radius: 1px; background: var(--signal); }
input[type="range"]::-moz-range-thumb { width: 4px; height: 20px; border: 0; border-radius: 1px; background: var(--signal); }

/* ---------- 3D stage ---------- */
.stage { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 8px; }
.stage-view { background: #050505; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; }
.stage-view video { width: 100%; height: 100%; object-fit: contain; }
.stage-side { display: flex; flex-direction: column; background: var(--graphite); border-radius: var(--r); overflow: hidden; min-width: 0; }
.stage-tabs { display: flex; flex-direction: column; }
.stage-tabs button {
	position: relative; padding: 13px 16px 13px 30px; border: 0; border-bottom: 1px solid var(--line); background: none;
	color: var(--dim); font: 600 1rem/1.2 var(--sans); text-align: left; cursor: pointer;
}
.stage-tabs button:hover { color: var(--text); }
.stage-tabs button[aria-selected="true"] { color: var(--text); background: var(--graphite-2); }
.stage-tabs button[aria-selected="true"]::before { content: ""; position: absolute; left: 14px; top: 50%; width: 4px; height: 18px; margin-top: -9px; border-radius: 1px; background: var(--signal); }
.stage-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 16px; }
.stage-text { margin: 0; font-size: 0.98rem; line-height: 1.45; color: var(--text); }
.stage-code { font-size: 0.7rem; line-height: 1.7; color: var(--code); white-space: pre-wrap; overflow-wrap: anywhere; }

.facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; margin: 56px 0 0; padding: 0; }
.facts li { font-size: 1rem; line-height: 1.5; color: var(--dim); }
.facts b { display: block; margin-bottom: 4px; font: 800 1.5rem/1.1 var(--sans); font-stretch: 68%; color: var(--text); }
.facts code { color: var(--code); }

/* ---------- vision / agents split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.split .head { margin-bottom: 28px; }
.split h2 { font-size: clamp(2.8rem, 6vw, 6.4rem); }
.split-film video { aspect-ratio: 16 / 9; object-fit: cover; }
.split-flip { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }

/* ---------- looks ---------- */
.looks { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 8px; }
.looks-main { position: relative; border-radius: var(--r); overflow: hidden; background: #050505; }
.looks-main video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.looks-code { padding: 14px 16px; background: var(--graphite); font-size: 0.82rem; color: var(--code); }
.looks-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: start; }
.looks-wall button {
	position: relative; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: #0a0a0a; cursor: pointer;
	aspect-ratio: 16 / 9;
}
.looks-wall img { width: 100%; height: 100%; object-fit: cover; opacity: 0.72; transition: opacity 0.2s; }
.looks-wall button:hover img, .looks-wall button[aria-selected="true"] img { opacity: 1; }
.looks-wall span { position: absolute; left: 6px; bottom: 5px; padding: 2px 5px; border-radius: 2px; background: rgba(0, 0, 0, 0.72); font: 400 0.62rem/1.3 var(--mono); font-stretch: 87.5%; color: var(--text); }
.looks-wall button[aria-selected="true"] { box-shadow: 0 0 0 2px var(--signal); }

/* ---------- type, on paper ---------- */
.reel-paper { background: var(--paper); color: var(--ink); border-top: 0; color-scheme: light; }
.reel-paper .ver, .reel-paper .note, .reel-paper figcaption { color: var(--steel); }
.reel-paper .ver::before { background: var(--steel); }
.reel-paper .lede, .reel-paper code { color: var(--ink); }
.reel-paper :focus-visible { outline-color: var(--ink); }
.axes { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; }
.axes-word {
	margin: 0; font: 800 clamp(4rem, 13vw, 13.5rem)/0.9 var(--sans); font-stretch: 68%; letter-spacing: -0.02em;
	white-space: nowrap; overflow: hidden;
}
.axes-panel { display: grid; gap: 14px; }
.axes-panel label { display: grid; grid-template-columns: 3rem 1fr 2.6rem; align-items: center; gap: 12px; font: 400 0.8rem var(--mono); font-stretch: 87.5%; }
.axes-panel output { text-align: right; }
.reel-paper input[type="range"]::-webkit-slider-runnable-track { background: #a9adad; }
.reel-paper input[type="range"]::-moz-range-track { background: #a9adad; }
.reel-paper input[type="range"]::-webkit-slider-thumb { background: var(--ink); }
.reel-paper input[type="range"]::-moz-range-thumb { background: var(--ink); }
.code-on-paper { margin-top: 6px; }
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 64px; }
.paths svg { width: 100%; background: #f4f5f3; border-radius: var(--r); }
.p-dash { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 12 8; animation: march 1.2s linear infinite; }
.p-dash-2 { stroke-dasharray: 4 8; animation-duration: 0.8s; }
@keyframes march { to { stroke-dashoffset: -40; } }
.p-fill { fill: var(--ink); }
.p-morph { fill: var(--ink); stroke: var(--ink); stroke-width: 6; stroke-linejoin: round; }

/* ---------- direction ---------- */
.slate { display: grid; gap: 0; background: var(--graphite); border-radius: var(--r); overflow: hidden; }
.slate-row { display: grid; grid-template-columns: 5.5rem 1fr; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.slate-row > span { font: 400 0.74rem var(--mono); font-stretch: 87.5%; color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
	padding: 7px 12px; border: 0; border-radius: var(--r); background: var(--graphite-2); color: var(--dim);
	font: 600 0.92rem/1 var(--sans); cursor: pointer;
}
.chips button:hover { color: var(--text); }
.chips button[aria-pressed="true"] { background: var(--text); color: #000; }
.slate-code { border-radius: 0; background: #161719; }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.strip video { aspect-ratio: 16 / 9; object-fit: cover; }
.strip figcaption { font: 400 0.72rem var(--mono); font-stretch: 87.5%; }

/* ---------- agents ---------- */
.term { background: var(--graphite); border-radius: var(--r); overflow: hidden; min-width: 0; }
.term-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.term-bar span { margin-left: auto; font: 400 0.7rem var(--mono); font-stretch: 87.5%; color: var(--dim); }
.term-body { min-height: 25.5em; padding: 16px; font-size: 0.74rem; line-height: 1.7; color: var(--code); white-space: pre-wrap; overflow-wrap: anywhere; }
.term-body .p { color: var(--text); }
.term-body .o { color: var(--dim); }
.term-body .caret { display: inline-block; width: 0.55em; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: var(--signal); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: 13px 0; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.45; color: var(--dim); }
.ticks code { color: var(--code); }

/* ---------- cloud ---------- */
.farm { background: var(--graphite); border-radius: var(--r); overflow: hidden; }
.farm-ctl { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); font: 400 0.78rem var(--mono); font-stretch: 87.5%; color: var(--dim); }
.farm-ctl input { max-width: 260px; }
.farm-ctl output { color: var(--text); }
.farm-scroll { overflow-x: auto; }
#farm-svg { width: 100%; min-width: 620px; height: auto; }
#farm-svg text { font: 400 12px var(--mono); fill: var(--dim); }
#farm-svg .f-chunk { fill: #5b5e61; }
#farm-svg .f-chunk:nth-of-type(even) { fill: #8d9093; }
#farm-svg .f-wire { fill: none; stroke: var(--line); stroke-width: 1.5; }
#farm-svg .f-gpu { fill: var(--graphite-2); stroke: var(--line); }
#farm-svg .f-prog { fill: var(--signal); transform-box: fill-box; transform-origin: left center; animation: render var(--t, 3s) linear infinite; }
#farm-svg .f-out { fill: var(--text); }
#farm-svg .f-out-t { fill: #000; font-weight: 500; }
@keyframes render { 0% { transform: scaleX(0); } 85%, 100% { transform: scaleX(1); } }
.farm-code { border-radius: 0; background: #161719; }
.facts-3 { margin-top: 44px; }

/* ---------- the rest ---------- */
.log { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 56px; }
.log li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); break-inside: avoid; }
.log span { padding-top: 0.28em; font: 400 0.74rem var(--mono); font-stretch: 87.5%; color: var(--dim); }
.log p { margin: 0; font-size: 1rem; line-height: 1.45; }
.log code { color: var(--code); }

/* ---------- start ---------- */
.start { padding: clamp(110px, 18vh, 220px) 0 clamp(80px, 12vh, 140px); background: var(--graphite); }
.start h2 { font-size: clamp(3.4rem, 11vw, 12rem); line-height: 0.84; letter-spacing: -0.015em; text-wrap: balance; }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: clamp(44px, 7vh, 80px); }
.door { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border-radius: var(--r); background: #161719; }
.door h3 { font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1; }
.door p { margin: 14px 0 24px; max-width: 30rem; color: var(--dim); }
.door .door-or { margin: 22px 0 8px; font: 400 0.74rem var(--mono); font-stretch: 87.5%; }
.door-code { align-self: stretch; background: var(--graphite); }
.start-foot { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 56px 0 0; font-size: 1rem; color: var(--dim); }

/* ---------- transport ---------- */
.transport {
	position: fixed; inset: auto 0 0; z-index: 20; height: var(--bar);
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 0 16px;
	background: rgba(22, 23, 25, 0.92); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
	font: 400 0.72rem var(--mono); font-stretch: 87.5%; color: var(--dim);
}
.tc { color: var(--text); font-variant-numeric: tabular-nums; }
.tr-track { position: relative; height: 100%; cursor: pointer; }
.tr-track::before { content: ""; position: absolute; inset: 50% 0 auto; height: 1px; background: var(--line); }
.tr-fill { position: absolute; left: 0; top: 50%; height: 1px; width: 100%; background: var(--dim); transform-origin: left; transform: scaleX(0); }
.tr-mark { position: absolute; top: 50%; width: 1px; height: 12px; margin-top: -6px; background: var(--dim); }
.tr-mark span { position: absolute; left: 6px; top: -9px; white-space: nowrap; font-size: 0.6rem; color: var(--dim); }
.tr-mark.is-now span { color: var(--text); }
.tr-head { position: absolute; top: 6px; bottom: 6px; left: 0; width: 2px; margin-left: -1px; background: var(--signal); }
.tr-head::before { content: ""; position: absolute; top: -3px; left: -4px; border: 5px solid transparent; border-top-color: var(--signal); }
.tr-now { min-width: 4.5rem; text-align: right; color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
	.bench, .stage, .looks, .split, .split-flip, .axes { grid-template-columns: minmax(0, 1fr); }
	.split { gap: 32px; }
	.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.stage-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
	.stage-tabs button { flex: none; padding: 12px 14px; border-bottom: 0; border-right: 1px solid var(--line); white-space: nowrap; }
	.stage-tabs button[aria-selected="true"]::before { left: 0; top: auto; bottom: 0; width: 100%; height: 3px; margin: 0; }
	.looks-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.log { columns: 1; }
	.tr-mark span { display: none; }
	.open-credit { display: none; }
}
@media (max-width: 640px) {
	:root { --gutter: 16px; }
	body { font-size: 1.05rem; }
	.top-extra { display: none; }
	.pair, .paths, .doors, .facts { grid-template-columns: minmax(0, 1fr); }
	.looks-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.slate-row { grid-template-columns: 1fr; gap: 8px; }
	.open-copy { padding-bottom: 56px; }
	.btn { width: 100%; }
	.door { padding: 20px; }
	.bench-src { height: 20em; }
	.bench-view { position: static; }
}

/* Desktop: one compact, linked card between chapters. */
.desk-band { padding: 0 0 clamp(56px, 9vh, 96px); }
.desk-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: clamp(20px, 4vw, 56px); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r); background: var(--graphite); color: var(--text); text-decoration: none; transition: border-color 0.3s var(--ease); }
.desk-card:hover { border-color: var(--text); }
.desk-card:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.desk-card h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1; letter-spacing: -0.01em; text-wrap: balance; }
.desk-card p:not(.ver) { margin: 0 0 18px; max-width: 34ch; color: var(--dim); font-size: 1rem; }
.desk-go { font-weight: 700; }
.desk-go span { display: inline-block; transition: transform 0.3s var(--ease); }
.desk-card:hover .desk-go span { transform: translateX(4px); }
.desk-card img { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); }
@media (max-width: 640px) { .desk-card { grid-template-columns: 1fr; } .desk-card img { order: -1; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .open-name, .js .open-three, .p-dash, #farm-svg .f-prog { animation: none; }
	.btn:hover, .desk-card:hover .desk-go span { transform: none; }
}
