/* ==========================================================================
   mcalbyrne — laboratory drawing sheets
   White drafting paper, blue-black ink, graphite construction lines, one red.
   Same house look as the history-shorts "white" sheet stock (V-2 films).
   ========================================================================== */

:root {
  --paper: #f3f2ec;
  --paper-2: #eceae1;
  --paper-3: #e4e1d5;
  --ink: #1c2638;
  --ink-2: #33405a;
  --pencil: #6f6d68;
  --pencil-2: #8a8780;
  --rule: rgba(28, 38, 56, 0.16);
  --rule-2: rgba(28, 38, 56, 0.32);
  --grid: rgba(138, 166, 196, 0.13);
  --grid-major: rgba(138, 166, 196, 0.24);
  --red: #b0321e;
  --red-wash: rgba(176, 50, 30, 0.08);
  --blue: #2c4a72;
  --wash: rgba(28, 38, 56, 0.05);

  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Barlow", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --serif: "Cormorant Garamond", Georgia, serif;

  --frame: 16px;
  --gutter: clamp(16px, 4.4vw, 64px);
  --max: 1360px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}
@media (max-width: 700px) { :root { --frame: 6px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* paper: mottle + fibre, never moves */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .33 0 0 0 0 .28 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.55), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(120,110,90,.07), transparent 60%);
  opacity: .55; mix-blend-mode: multiply;
}
body > * { position: relative; z-index: 1; }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, dl, dd, ol, ul, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--red); color: var(--paper); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 24px; top: 24px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the sheet frame: a drafting border round the viewport ---------- */
.sheet-frame { position: fixed; inset: var(--frame); border: 1.5px solid var(--ink); pointer-events: none; z-index: 40; box-shadow: 0 0 0 var(--frame) var(--paper); }
.sheet-frame::before { content: ""; position: absolute; inset: 5px; border: 0.75px solid var(--rule-2); }
.sheet-frame__zones { position: absolute; inset: 0; font: 500 9px/1 var(--mono); color: var(--pencil); letter-spacing: .1em; }
.sheet-frame__zones span { position: absolute; }
.sheet-frame__zones .zx { top: calc(-1 * var(--frame) - 1px); height: var(--frame); transform: translateX(-50%); display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-start; }
.sheet-frame__zones .zx::before { content: ""; display: block; width: 1px; height: 4px; background: var(--ink); }
.sheet-frame__zones .zy { left: calc(-1 * var(--frame) - 1px); width: var(--frame); transform: translateY(-50%); display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-start; gap: 1px; }
.sheet-frame__zones .zy::before { content: ""; width: 4px; height: 1px; background: var(--ink); flex: none; }
.sheet-frame__zones .zx.b { top: auto; bottom: calc(-1 * var(--frame) - 1px); flex-direction: column; }
.sheet-frame__zones .zy.r { left: auto; right: calc(-1 * var(--frame) - 1px); flex-direction: row; }
@media (max-width: 700px) { .sheet-frame::before, .sheet-frame__zones { display: none; } .sheet-frame { border-width: 1px; } }

/* ---------- type ---------- */
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.caps { font-family: var(--cond); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.display {
  font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  font-size: clamp(54px, 9.4vw, 152px); line-height: .88; letter-spacing: .005em; color: var(--ink);
}
.display > span { display: block; }
[hidden] { display: none !important; }
.display .pencil { color: var(--pencil-2); font-weight: 600; }
.display .red { color: var(--red); }
.h2 { font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: clamp(38px, 5vw, 72px); line-height: .92; letter-spacing: .01em; }
.h3 { font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 32px); line-height: 1; letter-spacing: .04em; }
.sub { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); margin-top: 14px; }
.sub .red, .red-t { color: var(--red); }
.lede { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.body { color: var(--ink-2); max-width: 38em; }
.body + .body { margin-top: 1em; }
.quote { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; color: var(--ink); }
.u { border-bottom: 1px solid var(--rule-2); transition: border-color .2s, color .2s; }
.u:hover { color: var(--red); border-color: var(--red); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; padding-top: calc(var(--frame) + 8px); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: 0; z-index: -1;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule); opacity: 0; transition: opacity .3s; }
.nav.is-stuck::after { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 22px; height: 22px; flex: none; }
.brand__word { font-family: var(--cond); font-weight: 700; font-size: 21px; letter-spacing: .2em; text-transform: uppercase; }
.brand__ltd { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--pencil); margin-left: -4px; align-self: flex-end; padding-bottom: 3px; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font-family: var(--cond); font-weight: 600; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; }
.nav__links a { position: relative; padding: 4px 0; color: var(--ink-2); transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); }
.nav__cta { border: 1.5px solid var(--ink); padding: 7px 14px !important; }
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--ink); color: var(--paper) !important; }
@media (max-width: 820px) { .nav__links a:not(.nav__cta):not(.keep) { display: none; } }

/* ---------- section heads: a sheet number, a rule, a crosshair ---------- */
.sheet { padding: clamp(72px, 10vw, 150px) 0 0; position: relative; }
.shead { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); }
.shead__no { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.shead__no b { font-weight: 500; color: var(--red); }
.shead__rule { flex: 1; height: 1px; background: var(--rule-2); position: relative; }
.shead__rule::after { content: ""; position: absolute; right: 0; top: -3px; width: 1px; height: 7px; background: var(--ink); }
.shead__meta { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); white-space: nowrap; }
@media (max-width: 640px) { .shead__meta { display: none; } }

/* registration crosshair (also used as a pseudo-icon) */
.reg { width: 22px; height: 22px; flex: none; color: var(--ink); }

.crumbs { display: flex; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); margin-bottom: clamp(28px, 4vw, 48px); }
.crumbs a:hover, .crumbs [aria-current] { color: var(--ink); }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 22px;
  border: 1.5px solid var(--ink); font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: .2em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s; position: relative;
}
.btn::before, .btn::after { content: ""; position: absolute; width: 5px; height: 5px; border: 1px solid var(--ink); background: var(--paper); }
.btn::before { left: -3.5px; top: -3.5px; }
.btn::after { right: -3.5px; bottom: -3.5px; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--red); border-color: var(--red); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* ---------- title block (the bottom-right block on a drawing) ---------- */
.tblock { display: grid; grid-template-columns: auto 1fr; border: 1.5px solid var(--ink); background: var(--paper); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.tblock > * { padding: 8px 12px; border-top: 1px solid var(--rule-2); }
.tblock > :nth-child(odd) { border-right: 1px solid var(--rule-2); }
.tblock__title { grid-column: 1 / -1; border-top: 0 !important; border-right: 0 !important; font-family: var(--cond); font-weight: 700; font-size: 17px; letter-spacing: .16em; color: var(--ink); }
.tblock__fig { font-family: var(--cond); font-weight: 700; font-size: 15px; letter-spacing: .16em; }
.tblock__wide { grid-column: 1 / -1; border-right: 0 !important; color: var(--pencil); }

/* ---------- plates: a framed drawing on the sheet ---------- */
.plate { position: relative; border: 1.5px solid var(--ink); background: color-mix(in srgb, var(--paper) 72%, transparent); padding: clamp(14px, 2vw, 28px); }
.plate::before { content: ""; position: absolute; inset: 6px; border: .75px solid var(--rule); pointer-events: none; }
.plate__corner { position: absolute; width: 18px; height: 18px; color: var(--ink); pointer-events: none; }
.plate__corner.tl { left: 14px; top: 14px; } .plate__corner.tr { right: 14px; top: 14px; }
.plate__corner.bl { left: 14px; bottom: 14px; } .plate__corner.br { right: 14px; bottom: 14px; }
.plate__head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 4px 26px 0; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); }
.plate__head b { color: var(--ink); font-weight: 500; }
.plate__fig { width: 100%; margin: 0 auto; }
.plate__foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.plate__foot .tblock { min-width: min(100%, 360px); }
.plate--bare { border: 0; background: none; padding: 0; }
.plate--bare::before { display: none; }

/* ---------- the schematic SVG language ---------- */
.sch { width: 100%; height: auto; overflow: visible; font-family: var(--mono); }
.sch * { vector-effect: non-scaling-stroke; }
.sch path, .sch line, .sch circle, .sch ellipse, .sch rect, .sch polyline, .sch polygon { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sch .ink { stroke: var(--ink); stroke-width: 1.3; }
.sch .heavy { stroke: var(--ink); stroke-width: 2.1; }
.sch .fine { stroke: var(--ink); stroke-width: .7; opacity: .75; }
.sch .pencil { stroke: var(--pencil-2); stroke-width: .8; }
.sch .red { stroke: var(--red); stroke-width: 1.5; }
.sch .blue { stroke: var(--blue); stroke-width: 1.2; }
.sch .dash { stroke-dasharray: 5 4; }
.sch .centre { stroke-dasharray: 14 4 2 4; stroke: var(--pencil-2); stroke-width: .7; }
.sch .wash { fill: var(--wash); }
.sch .wash-2 { fill: rgba(28, 38, 56, .11); }
.sch .wash-red { fill: var(--red-wash); }
.sch .wash-blue { fill: rgba(44, 74, 114, .09); }
.sch .paper { fill: var(--paper); }
.sch .solid { fill: var(--ink); stroke: none; }
.sch .solid-red { fill: var(--red); stroke: none; }
.sch .hatch { fill: url(#hatch); }
.sch text { stroke: none; fill: var(--ink); }
.sch .lbl { font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; }
.sch .ttl { font-family: var(--cond); font-weight: 700; font-size: 30px; letter-spacing: .1em; text-transform: uppercase; }
.sch .note { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; fill: var(--pencil); text-transform: uppercase; }
.sch .num { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; fill: var(--ink-2); }
.sch text.red-t, .sch .lbl.red-t { fill: var(--red); }
.sch text.pencil-t { fill: var(--pencil); }

/* draw-on: lab.js sets --len on every .d and toggles .is-drawn per step */
/* drawings arrive already drawn: no draw-on, no fade-in */
.sch text.f, .sch [data-step].is-on text { transform: none; }

/* ambient loops */
@keyframes lab-flow { to { stroke-dashoffset: -36; } }
@keyframes lab-flow-fast { to { stroke-dashoffset: -60; } }
@keyframes lab-spin { to { transform: rotate(360deg); } }
@keyframes lab-pulse { 50% { opacity: .25; } }
@keyframes lab-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0; } }
.sch .flow { stroke-dasharray: 6 12 !important; animation: lab-flow 1.4s linear infinite; }
.sch .flow-fast { stroke-dasharray: 3 9 !important; animation: lab-flow-fast .9s linear infinite; }
.sch .spin { transform-box: fill-box; transform-origin: center; animation: lab-spin 60s linear infinite; }
.sch .spin-slow { transform-box: fill-box; transform-origin: center; animation: lab-spin 140s linear infinite; }
.sch .pulse { animation: lab-pulse 3.2s ease-in-out infinite; }
.sch .blink { animation: lab-blink 1.1s steps(1) infinite; }

@media (prefers-reduced-motion: reduce) {
  .sch .d { transition: none; stroke-dashoffset: 0; }
  .sch [data-step] text, .sch .f { opacity: 1; transition: none; }
  .sch .flow, .sch .flow-fast, .sch .spin, .sch .spin-slow, .sch .pulse, .sch .blink, .sch animate, .sch animateTransform, .sch animateMotion { animation: none !important; }
}

/* ---------- reveal ---------- */
.js .rv { opacity: 0; translate: 0 16px; transition: opacity .9s var(--ease), translate .9s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease); }
.js .rv.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; translate: 0 0; transition: none; } }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { padding-top: clamp(32px, 5vw, 64px); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--pencil); margin-bottom: clamp(24px, 3vw, 40px); }
.hero__meta b { color: var(--ink); font-weight: 500; }
.hero__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.hero__copy { padding-top: clamp(8px, 2vw, 32px); }
.hero__copy .lede { margin-top: clamp(28px, 3.4vw, 48px); }
.hero__fig { position: relative; margin-top: -24px; }
.hero__fig .sch { width: 100%; max-height: 1100px; }
.hero__strip { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule-2); }
.hero__strip > div { padding: 16px 18px 18px 0; }
.hero__strip > div + div { padding-left: 18px; border-left: 1px solid var(--rule-2); }
.hero__strip dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); }
.hero__strip dd { font-family: var(--cond); font-weight: 700; font-size: clamp(26px, 2.8vw, 40px); letter-spacing: .03em; line-height: 1.1; margin-top: 6px; }
.hero__strip dd small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--pencil); font-weight: 400; margin-left: 4px; }
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__fig { margin-top: 0; }
  .hero__fig .sch { max-height: none; width: 100%; }
  .hero__strip { grid-template-columns: 1fr 1fr; }
  .hero__strip > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero__strip > div:nth-child(n+3) { border-top: 1px solid var(--rule-2); }
}

/* ledger table (like the "rocket · first flew · height" table) */
.ledger { width: 100%; border-collapse: collapse; }
.ledger th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); padding: 0 16px 10px 0; border-bottom: 1.5px solid var(--ink); }
.ledger td { padding: 0; border-bottom: 1px solid var(--rule-2); vertical-align: middle; }
.ledger a { display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.3fr) 180px 28px; align-items: center; gap: 16px; padding: 22px 0; transition: background .25s, padding .35s var(--ease); }
.ledger a:hover { background: var(--wash); padding-left: 12px; }
.ledger__n { font-family: var(--mono); font-size: 12px; color: var(--red); letter-spacing: .1em; }
.ledger__name { font-family: var(--cond); font-weight: 700; font-size: clamp(26px, 2.8vw, 38px); text-transform: uppercase; letter-spacing: .03em; line-height: 1; }
.ledger__desc { color: var(--ink-2); }
.ledger__state { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--pencil); }
.ledger__go { font-family: var(--mono); color: var(--pencil); transition: transform .3s var(--ease), color .2s; }
.ledger a:hover .ledger__go { transform: translateX(4px); color: var(--red); }
@media (max-width: 860px) {
  .ledger a { grid-template-columns: 40px 1fr 20px; row-gap: 6px; }
  .ledger__desc, .ledger__state { grid-column: 2; }
  .ledger__go { grid-row: 1; grid-column: 3; }
}
.tick { display: inline-block; width: 8px; height: 8px; border: 1.5px solid currentColor; margin-right: 8px; vertical-align: 0; }
.tick--on { background: var(--red); border-color: var(--red); }

/* two-column feature block */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.split--rev { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split__copy .sub { margin-top: 16px; }
.split__copy .lede, .split__copy .body { margin-top: 24px; }
@media (max-width: 980px) { .split, .split--rev { grid-template-columns: 1fr; } }

/* numbered spec list */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); margin-top: clamp(40px, 5vw, 72px); }
.specs li { padding: 22px 22px 26px 0; border-bottom: 1px solid var(--rule-2); display: grid; grid-template-columns: 38px 1fr; gap: 8px; }
.specs li:not(:nth-child(3n+1)) { padding-left: 22px; border-left: 1px solid var(--rule-2); }
.specs__n { font-family: var(--mono); font-size: 11px; color: var(--red); letter-spacing: .1em; padding-top: 4px; }
.specs p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
@media (max-width: 900px) {
  .specs { grid-template-columns: 1fr; }
  .specs li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
}

/* screen recording, mounted like a pinned print */
.print { position: relative; background: #fbfaf6; padding: 12px 12px 44px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 14px 32px -18px rgba(40, 30, 10, .45), 0 2px 6px rgba(40,30,10,.08); transform: rotate(-.6deg); transition: transform .5s var(--ease); }
.print:hover { transform: rotate(0); }
.print video, .print img { width: 100%; background: #111; }
.print__cap { position: absolute; left: 14px; right: 14px; bottom: 13px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--pencil); }
.print__pin { position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e9c56a, #a87d22 70%); box-shadow: 0 2px 3px rgba(0,0,0,.3); }
.tape { position: absolute; width: 92px; height: 26px; background: rgba(235, 225, 190, .62); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tape--tl { left: -24px; top: 6px; transform: rotate(-38deg); }
.tape--br { right: -24px; bottom: 10px; transform: rotate(-38deg); }
@media (max-width: 700px) { .tape { display: none; } .print { transform: none; } }

/* typed note pinned to the sheet */
.note-card { position: relative; background: #fbfaf6; padding: 22px 24px 24px; box-shadow: 0 12px 28px -18px rgba(40, 30, 10, .5), 0 2px 5px rgba(40,30,10,.08); font-family: var(--mono); font-size: 13px; letter-spacing: .06em; line-height: 1.75; color: var(--ink-2); text-transform: uppercase; transform: rotate(.5deg); }
.note-card .print__pin { left: 22px; }
.note-card b { color: var(--ink); font-weight: 500; }

/* instrument cards (home: "the bench") */
.bench { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.bench .plate { display: flex; flex-direction: column; }
.bench .plate .sch { aspect-ratio: 1 / 1; }
.bench__cap { margin-top: auto; padding: 14px 8px 4px; border-top: 1px solid var(--rule-2); }
.bench__cap h3 { font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: .1em; text-transform: uppercase; }
.bench__cap p { font-size: 15px; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }
@media (max-width: 980px) { .bench { grid-template-columns: 1fr; } }

/* plates gallery (publications as drawings) */
.plates { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.plates .plate--wide { grid-column: 1 / -1; }
.plates .plate { display: flex; flex-direction: column; }
.plates .plate .sch { flex: 1; }
.plates .plate__cap { margin-top: 10px; padding: 14px 8px 4px; border-top: 1px solid var(--rule-2); display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: baseline; }
.plates .plate__cap h3 { font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.05; }
.plates .plate__cap .sub { margin: 0; grid-column: 1; }
.plates .plate__cap p { grid-column: 1 / -1; font-size: 15px; color: var(--ink-2); line-height: 1.5; margin-top: 6px; }
.plates .plate__cap a { grid-row: 1; grid-column: 2; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--pencil); text-transform: uppercase; }
.plates .plate__cap a:hover { color: var(--red); }
@media (max-width: 900px) { .plates { grid-template-columns: 1fr; } }

/* founder card */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 72px); align-items: start; }
.photo { position: relative; background: #fbfaf6; padding: 10px 10px 40px; box-shadow: 0 14px 30px -18px rgba(40,30,10,.5), 0 2px 6px rgba(40,30,10,.08); transform: rotate(-1.2deg); }
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(.85) contrast(1.05) sepia(.12); }
.photo figcaption { position: absolute; left: 12px; bottom: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--pencil); }
.founder .sub { margin-top: 14px; }
.founder .body { margin-top: 24px; }
.stations { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 0; border-top: 1.5px solid var(--ink); }
.stations li { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding: 12px 16px 12px 0; margin-right: 16px; border-right: 1px solid var(--rule-2); color: var(--ink-2); }
.stations li:last-child { border-right: 0; }
.more { display: inline-flex; gap: 10px; margin-top: 24px; font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1.5px solid var(--ink); padding-bottom: 4px; }
.more:hover { color: var(--red); border-color: var(--red); }
@media (max-width: 820px) { .founder { grid-template-columns: 1fr; } .photo { max-width: 280px; } }

/* principles + company facts */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); }
.principles li { padding: 24px 24px 28px 0; }
.principles li + li { padding-left: 24px; border-left: 1px solid var(--rule-2); }
.principles span { font-family: var(--mono); font-size: 11px; color: var(--red); }
.principles h3 { font-family: var(--cond); font-weight: 700; font-size: 28px; letter-spacing: .06em; text-transform: uppercase; margin: 10px 0 8px; }
.principles p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } .principles li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-2); } }
.facts { display: grid; grid-template-columns: repeat(5, auto); margin-top: clamp(32px, 4vw, 56px); border: 1.5px solid var(--ink); background: var(--paper); }
.facts > div { padding: 12px 16px; border-left: 1px solid var(--rule-2); }
.facts > div:first-child { border-left: 0; }
.facts dt { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); }
.facts dd { font-family: var(--cond); font-weight: 600; font-size: 19px; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
@media (max-width: 980px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div { border-left: 0; border-top: 1px solid var(--rule-2); } .facts > div:nth-child(even) { border-left: 1px solid var(--rule-2); } .facts > div:first-child, .facts > div:nth-child(2) { border-top: 0; } }

/* contact */
.contact { padding-bottom: clamp(56px, 8vw, 110px); }
.contact__mail { display: inline-block; margin-top: 28px; font-family: var(--cond); font-weight: 700; font-size: clamp(30px, 5.4vw, 80px); text-transform: uppercase; letter-spacing: .03em; line-height: 1; border-bottom: 2px solid var(--ink); transition: color .2s, border-color .2s; overflow-wrap: anywhere; }
.contact__mail:hover { color: var(--red); border-color: var(--red); }
.contact__links { display: flex; gap: 24px; margin-top: 32px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.contact__links a:hover { color: var(--red); }

/* footer as a title block */
.foot { padding: 0 0 calc(var(--frame) + 24px); }
.foot__block { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; border: 1.5px solid var(--ink); background: var(--paper); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.foot__block > * { padding: 12px 14px; border-left: 1px solid var(--rule-2); }
.foot__block > :first-child { border-left: 0; }
.foot__block b { display: block; font-family: var(--cond); font-weight: 700; font-size: 17px; letter-spacing: .16em; color: var(--ink); }
.foot__block span { color: var(--pencil); }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 16px; align-content: center; }
.foot__links a { color: var(--ink-2); }
.foot__links a:hover { color: var(--red); }
@media (max-width: 860px) { .foot__block { grid-template-columns: 1fr; } .foot__block > * { border-left: 0; border-top: 1px solid var(--rule-2); } .foot__block > :first-child { border-top: 0; } }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.phero { padding-top: clamp(28px, 4vw, 56px); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: end; }
.phero__grid .lede { margin-top: 0; }
@media (max-width: 900px) { .phero__grid { grid-template-columns: 1fr; } }

/* career elevation (founder) */
.career-fig .sch { min-height: 260px; }
.roles { border-top: 1.5px solid var(--ink); margin-top: clamp(28px, 3vw, 44px); }
.roles li { display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule-2); }
.roles__year { font-family: var(--mono); font-size: 12px; color: var(--red); letter-spacing: .1em; }
.roles h3 { font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; }
.roles p { color: var(--ink-2); font-size: 15.5px; margin-top: 2px; }
.roles__now { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--pencil); }
@media (max-width: 640px) { .roles li { grid-template-columns: 56px 1fr; } .roles__now { grid-column: 2; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule-2); margin-top: clamp(40px, 5vw, 64px); }
.stats > div { padding: 16px 18px 18px 0; }
.stats > div + div { padding-left: 18px; border-left: 1px solid var(--rule-2); }
.stats dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); }
.stats dd { font-family: var(--cond); font-weight: 700; font-size: clamp(28px, 3vw, 44px); letter-spacing: .03em; margin-top: 4px; line-height: 1.05; }
.stats dd.small { font-size: clamp(17px, 1.5vw, 21px); letter-spacing: .08em; text-transform: uppercase; padding-top: 8px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div:nth-child(3) { border-left: 0; padding-left: 0; } .stats > div:nth-child(n+3) { border-top: 1px solid var(--rule-2); } }

/* publications table */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters button { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--rule-2); color: var(--ink-2); transition: all .2s; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pubs { border-top: 1.5px solid var(--ink); }
.pubs li[hidden] { display: none; }
.pub { display: grid; grid-template-columns: 64px minmax(0, 1fr) 200px 28px; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule-2); transition: background .2s, padding .3s var(--ease); }
.pub:hover { background: var(--wash); padding-left: 10px; }
.pub__year { font-family: var(--mono); font-size: 12px; color: var(--red); }
.pub__title { font-size: 17px; line-height: 1.4; color: var(--ink); }
.pub__venue { font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.pub__go { color: var(--pencil); font-family: var(--mono); }
.pub:hover .pub__go { color: var(--red); }
.pub__fig { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); border: 1px solid var(--red); padding: 1px 5px; margin-left: 8px; white-space: nowrap; vertical-align: 2px; }
@media (max-width: 760px) { .pub { grid-template-columns: 48px 1fr 20px; } .pub__venue { grid-column: 2; } .pub__go { grid-row: 1; grid-column: 3; } }
.footnote { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--pencil); margin-top: 16px; }

/* downloads */
.downloads { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--ink); background: var(--paper); }
.downloads li + li { border-left: 1px solid var(--rule-2); }
.dl { display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 22px; height: 100%; transition: background .2s; position: relative; }
.dl:hover { background: var(--ink); color: var(--paper); }
.dl:hover .dl__os, .dl:hover .dl__file { color: rgba(243, 242, 236, .7); }
.dl__os { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); }
.dl__ver { font-family: var(--cond); font-weight: 700; font-size: 44px; letter-spacing: .02em; line-height: 1; margin-top: 8px; }
.dl__file { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--pencil); margin-top: auto; padding-top: 18px; }
.dl__go { position: absolute; right: 18px; top: 18px; font-family: var(--mono); }
@media (max-width: 900px) { .downloads { grid-template-columns: 1fr 1fr; } .downloads li:nth-child(3) { border-left: 0; } .downloads li:nth-child(n+3) { border-top: 1px solid var(--rule-2); } }

/* licence */
.licence { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); }
.licence article { padding: clamp(22px, 3vw, 36px); }
.licence article + article { border-left: 1px solid var(--rule-2); background: var(--ink); color: var(--paper); }
.licence h3 { font-family: var(--cond); font-weight: 700; font-size: clamp(28px, 3vw, 40px); text-transform: uppercase; letter-spacing: .03em; margin: 10px 0 12px; }
.licence p { font-size: 16px; color: inherit; opacity: .85; max-width: 34em; }
.licence .mono { color: var(--pencil); }
.licence article + article .mono { color: rgba(243, 242, 236, .6); }
.licence .btn { margin-top: 22px; border-color: var(--paper); color: var(--paper); }
.licence .btn::before, .licence .btn::after { border-color: var(--paper); background: var(--ink); }
.licence .btn:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 820px) { .licence { grid-template-columns: 1fr; } .licence article + article { border-left: 0; } }

.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.stack li { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--rule-2); padding: 6px 10px; color: var(--ink-2); }

/* explainers: episode sheets */
.eps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); }
.eps li { padding: 18px 18px 22px 0; border-bottom: 1px solid var(--rule-2); min-height: 150px; display: flex; flex-direction: column; gap: 10px; }
.eps li:not(:nth-child(4n+1)) { padding-left: 18px; border-left: 1px solid var(--rule-2); }
.eps__n { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--red); }
.eps h3 { font-family: var(--cond); font-weight: 600; font-size: 21px; letter-spacing: .04em; line-height: 1.15; text-transform: uppercase; }
.eps__state { margin-top: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--pencil); }
.eps a.eps__play { margin-top: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.eps a.eps__play:hover { color: var(--red); }
@media (max-width: 980px) { .eps { grid-template-columns: 1fr 1fr; } .eps li:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; } .eps li:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--rule-2); } }
@media (max-width: 560px) { .eps { grid-template-columns: 1fr; } .eps li:nth-child(even) { padding-left: 0; border-left: 0; } }

/* bridge card */
.bridge { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; border: 1.5px solid var(--ink); padding: clamp(22px, 3vw, 40px); background: var(--paper); position: relative; }
.bridge::before { content: ""; position: absolute; inset: 5px; border: .75px solid var(--rule); pointer-events: none; }
.bridge .body { margin-top: 10px; }

/* FAQ */
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule-2); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr 24px; gap: 16px; padding: 20px 0; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .n { font-family: var(--mono); font-size: 11px; color: var(--red); letter-spacing: .1em; }
.faq summary h3 { font-family: var(--cond); font-weight: 600; font-size: clamp(20px, 2vw, 25px); letter-spacing: .04em; text-transform: uppercase; line-height: 1.15; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 18px; color: var(--pencil); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--red); }
.faq .ans { padding: 0 40px 24px 72px; color: var(--ink-2); max-width: 60em; }
.faq .ans p + p, .faq .ans p + ul, .faq .ans ul + p { margin-top: .8em; }
.faq .ans ul { list-style: none; }
.faq .ans li { position: relative; padding-left: 18px; }
.faq .ans li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1.5px; background: var(--red); }
.faq .ans code { font-family: var(--mono); font-size: 13px; background: var(--wash); padding: 1px 5px; }
.faq .ans a { border-bottom: 1px solid var(--rule-2); }
.faq .ans a:hover { color: var(--red); border-color: var(--red); }
.faq-group { margin-top: clamp(48px, 6vw, 80px); }
.faq-group:first-of-type { margin-top: 0; }
.faq-group > h2 { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); margin-bottom: 14px; }
@media (max-width: 640px) { .faq summary { grid-template-columns: 36px 1fr 20px; } .faq .ans { padding-left: 52px; padding-right: 0; } }

/* ==========================================================================
   OVERTWO BAND — kept in Overtwo's own look (not redesigned)
   ========================================================================== */
.o2band {
  --o2-night: #0a0b0d; --o2-night-2: #131519; --o2-fog: #e9e8e2; --o2-fog-muted: #8d9097; --o2-line: rgba(233, 232, 226, 0.12); --o2-accent: #d4ff3a;
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif; background: var(--o2-night); color: var(--o2-fog);
  padding: clamp(24px, 3vw, 40px) 0 clamp(40px, 6vw, 80px); margin-top: clamp(72px, 10vw, 150px);
  font-size: 17px; line-height: 1.55;
}
.o2band ::selection { background: var(--o2-accent); color: var(--o2-night); }
.o2band .o2-head { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0 0; border-top: 1px solid var(--o2-line); font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .02em; text-transform: uppercase; margin-bottom: clamp(48px, 7vw, 96px); }
.o2band .o2-head span:last-child { color: var(--o2-fog-muted); }
.o2band .o2-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; padding-bottom: clamp(48px, 7vw, 88px); }
.o2band .o2-lockup { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.o2band .o2-mark { width: 30px; height: auto; color: currentColor; }
.o2band .o2-lockup h2 { font-size: clamp(32px, 3.4vw, 48px); font-weight: 500; letter-spacing: -0.04em; }
.o2band .o2-display { font-size: clamp(40px, 6.2vw, 96px); font-weight: 500; letter-spacing: -0.055em; line-height: .95; }
.o2band .o2-display span { display: block; }
.o2band .o2-display span:last-child { color: var(--o2-fog-muted); }
.o2band .o2-lede { color: var(--o2-fog-muted); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; max-width: 30em; }
.o2band .o2-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; background: var(--o2-accent); color: var(--o2-night); font-weight: 500; margin-top: 32px; transition: background .2s; }
.o2band .o2-btn:hover { background: var(--o2-fog); }
.o2band .game-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); }
.o2band .game-card { display: block; border-radius: 8px; overflow: hidden; background: var(--o2-night-2); box-shadow: 0 0 0 1px var(--o2-line); transition: box-shadow .3s var(--ease), transform .4s var(--ease); }
.o2band .game-card:hover { box-shadow: 0 0 0 1px var(--o2-accent); transform: translateY(-3px); }
.o2band .game-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.o2band .game-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.o2band .game-card:hover .game-card__media img { transform: scale(1.04); }
.o2band .game-card__body { padding: 24px 24px 28px; }
.o2band .tag { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; text-transform: uppercase; color: var(--o2-fog-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.o2band .tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--o2-accent); }
.o2band .game-card h3 { font-size: clamp(28px, 2.8vw, 40px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; }
.o2band .game-card p:not(.tag) { color: var(--o2-fog-muted); margin-top: 10px; max-width: 32em; }
@media (max-width: 900px) { .o2band .o2-intro, .o2band .game-cards { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ (legal text kept verbatim; only styled here)
   ========================================================================== */
.faq-doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(56px, 8vw, 110px); }
.faq-aside { position: sticky; top: 110px; align-self: start; }
.faq-aside ol { border-top: 1.5px solid var(--ink); }
.faq-aside li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule-2); font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.faq-aside li a:hover { color: var(--red); }
.faq-aside .tblock { margin-top: 24px; }
@media (max-width: 900px) { .faq-doc { grid-template-columns: 1fr; } .faq-aside { position: static; } }
.faq-body { max-width: 56em; color: var(--ink-2); }
.faq-body > p:first-child { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink); padding-bottom: 24px; border-bottom: 1.5px solid var(--ink); }
.faq-section { padding-top: clamp(36px, 4vw, 56px); scroll-margin-top: 100px; }
.faq-section h2 { font-family: var(--cond); font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); text-transform: uppercase; letter-spacing: .03em; line-height: 1; color: var(--ink); }
.faq-section-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); margin: 10px 0 22px; }
.faq-item { border-top: 1px solid var(--rule-2); padding: 20px 0 22px; display: grid; grid-template-columns: minmax(0, 1fr); }
.faq-question { font-family: var(--cond); font-weight: 600; font-size: clamp(20px, 1.8vw, 24px); letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; color: var(--ink); margin-bottom: 10px; padding-left: 26px; position: relative; }
.faq-question::before { content: "Q"; position: absolute; left: 0; top: 3px; font-family: var(--mono); font-size: 11px; color: var(--red); border: 1px solid var(--red); width: 17px; height: 17px; display: grid; place-items: center; letter-spacing: 0; }
.faq-answer { padding-left: 26px; }
.faq-answer p + p, .faq-answer p + ul, .faq-answer ul + p, .faq-answer p + ol, .faq-answer ol + p, .faq-answer div + p { margin-top: .75em; }
.faq-answer ul, .faq-answer ol { margin-top: .6em; }
.faq-answer li { position: relative; padding-left: 20px; margin-top: .4em; }
.faq-answer ul > li::before { content: ""; position: absolute; left: 0; top: .74em; width: 9px; height: 1.5px; background: var(--red); }
.faq-answer ol { counter-reset: n; }
.faq-answer ol > li { counter-increment: n; }
.faq-answer ol > li::before { content: counter(n); position: absolute; left: 0; top: .2em; font-family: var(--mono); font-size: 11px; color: var(--red); }
.faq-answer strong { color: var(--ink); font-weight: 500; }
.faq-answer a { border-bottom: 1px solid var(--rule-2); }
.faq-answer a:hover { color: var(--red); border-color: var(--red); }
.faq-answer code { font-family: var(--mono); font-size: 13px; background: var(--wash); border: 1px solid var(--rule); padding: 2px 6px; }
.faq-ref { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--pencil); }
.faq-note { border-left: 2px solid var(--red); padding: 6px 0 6px 14px; color: var(--ink); }
.faq-contact-block { border: 1.5px solid var(--ink); padding: 14px 18px; margin-top: .75em; background: var(--paper); font-family: var(--mono); font-size: 13px; }
.faq-divider { display: none; }
.back-link { display: inline-block; margin-top: 40px; font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1.5px solid var(--ink); padding-bottom: 3px; }
.back-link:hover { color: var(--red); border-color: var(--red); }

/* ==========================================================================
   THE DESIGN BOARD
   Everything is a separate piece of paper on the drafting board: sheets, prints,
   index cards and notes, pinned or taped at slight angles, joined by red-pencil arrows.
   ========================================================================== */
:root {
  --sheet: #fbfaf6;
  --card: #fdfcf8;
  --manila: #ece2c2;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --graphite: #4b4a46;
  --lift: 0 1px 1px rgba(40, 30, 10, .06), 0 3px 6px -2px rgba(40, 30, 10, .10), 0 18px 34px -22px rgba(40, 30, 10, .42);
  --lift-hi: 0 1px 1px rgba(40, 30, 10, .06), 0 6px 12px -4px rgba(40, 30, 10, .14), 0 30px 48px -26px rgba(40, 30, 10, .5);
}
body { background-color: #eceae2; }

/* sheets (and every old .plate becomes one) */
.sh, .plate {
  position: relative; background: var(--sheet); border: 0; padding: clamp(14px, 2vw, 30px);
  box-shadow: var(--lift); transform: translate(var(--x, 0px), var(--y, 0px)) rotate(var(--r, 0deg));
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.sh::before, .plate::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.5), transparent 30%), radial-gradient(ellipse at 100% 100%, rgba(120,105,70,.06), transparent 55%);
  border: 0;
}
.sh:hover, .plate:hover { box-shadow: var(--lift-hi); transform: translate(var(--x, 0px), calc(var(--y, 0px) - 3px)) rotate(var(--r, 0deg)); }
.plate__corner { display: none; }
.plate:nth-of-type(3n+1) { --r: -.5deg; } .plate:nth-of-type(3n+2) { --r: .4deg; } .plate:nth-of-type(3n) { --r: -.25deg; }
.plates .plate:nth-child(odd) { --r: -.6deg; } .plates .plate:nth-child(even) { --r: .5deg; --y: 18px; }
.sh--grid { background-color: var(--sheet); background-image: linear-gradient(rgba(138,166,196,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(138,166,196,.16) 1px, transparent 1px); background-size: 20px 20px; }
.sh--manila { background: var(--manila); }
.sh__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); }
.sh__cap b { color: var(--ink); font-weight: 500; }
.sh__title { font-family: var(--cond); font-weight: 700; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: .08em; text-transform: uppercase; line-height: 1.05; }
.sh__body { font-size: 15.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.5; }

/* fixings */
.pin { position: absolute; top: -8px; left: 50%; width: 15px; height: 15px; margin-left: -7px; border-radius: 50%; z-index: 3;
  background: radial-gradient(circle at 35% 32%, #f3d98a, #b7892a 60%, #7d5a14); box-shadow: 1px 3px 3px rgba(0,0,0,.28); }
.pin--red { background: radial-gradient(circle at 35% 32%, #f08a74, #b0321e 60%, #6e1a0e); }
.pin--l { left: 28px; } .pin--r { left: auto; right: 22px; }
.tape { z-index: 3; }
.tape--t { left: 50%; top: -12px; margin-left: -46px; transform: rotate(-2deg); }
.tape--tr { right: -26px; top: 8px; transform: rotate(38deg); }
.tape--bl { left: -24px; bottom: 10px; transform: rotate(38deg); }
.clip { position: absolute; top: -18px; left: 34px; width: 16px; height: 48px; border: 2px solid #8b8e93; border-radius: 8px; z-index: 3; }
.clip::after { content: ""; position: absolute; left: 2px; right: 2px; top: 6px; bottom: 10px; border: 2px solid #9a9da2; border-radius: 6px; }

/* index card: ruled, red margin, typed */
.card { position: relative; background: var(--card); box-shadow: var(--lift); padding: 18px 20px 20px 34px; transform: translate(var(--x, 0px), var(--y, 0px)) rotate(var(--r, 0deg));
  background-image: linear-gradient(transparent 33px, rgba(176,50,30,.45) 33px, rgba(176,50,30,.45) 34.5px, transparent 34.5px), repeating-linear-gradient(transparent 0 25px, rgba(90,130,180,.24) 25px 26px);
  background-position: 0 0, 0 34px; background-repeat: no-repeat, repeat; background-size: 100% 100%, 100% 100%;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .05em; line-height: 26px; color: var(--ink-2); text-transform: uppercase; }
.card::before { content: ""; position: absolute; top: 0; bottom: 0; left: 22px; width: 1px; background: rgba(176,50,30,.3); }
.card h3, .card .card__h { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .12em; color: var(--ink); line-height: 26px; margin-bottom: 8px; }
.card li { position: relative; }
.card li::before { content: "—"; color: var(--red); margin-right: 8px; }
.card a { border-bottom: 1px solid var(--rule-2); } .card a:hover { color: var(--red); }

/* sticky note */
.sticky { position: relative; background: var(--manila); box-shadow: var(--lift); padding: 18px 18px 20px; transform: translate(var(--x, 0px), var(--y, 0px)) rotate(var(--r, 2deg));
  font-family: var(--hand); font-size: 25px; line-height: 1.12; color: var(--graphite); }
.sticky::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px; background: linear-gradient(rgba(0,0,0,.04), transparent); }
.sticky b { color: var(--red); font-weight: 600; }

/* pencil annotations written straight on the board */
.hand { font-family: var(--hand); font-size: clamp(22px, 2vw, 28px); line-height: 1.1; color: var(--graphite); transform: translate(var(--x, 0px), var(--y, 0px)) rotate(var(--r, -2deg)); display: inline-block; }
.hand--red { color: var(--red); }
.hand u { text-decoration: none; background: linear-gradient(transparent 82%, rgba(176,50,30,.55) 82%, rgba(176,50,30,.55) 90%, transparent 90%); }
.circled { position: relative; display: inline-block; }
.circled::after { content: ""; position: absolute; inset: -6px -12px; border: 1.6px solid var(--red); border-radius: 50%; transform: rotate(-3deg); opacity: .8; }

/* stencilled region labels on the board */
.stencil { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.stencil__no { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--red); }
.stencil__word { font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: clamp(56px, 10vw, 168px); line-height: .82; letter-spacing: .01em;
  color: transparent; -webkit-text-stroke: 1.4px rgba(28, 38, 56, .5); }
.stencil__word--solid { color: var(--ink); -webkit-text-stroke: 0; }

/* the board grid: pieces are placed with --c (columns) and --w (row) inline */
.board { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(14px, 2vw, 32px); row-gap: clamp(18px, 2.4vw, 40px); align-items: start; }
.board > * { grid-column: var(--c, auto); grid-row: var(--w, auto); z-index: var(--z, 1); }
.board__links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 6; }
.board__links path { fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linecap: round; opacity: .85; }
.board__links path.pencil-l { stroke: var(--graphite); stroke-width: 1.1; opacity: .7; }

.board__links text { font-family: var(--hand); font-size: 22px; fill: var(--red); }
.board__links .head { fill: var(--red); opacity: .9; }
@media (max-width: 900px) {
  .board { grid-template-columns: 1fr; }
  .board > * { grid-column: 1 !important; grid-row: auto !important; --x: 0 !important; --y: 0 !important; }
  .board__links { display: none; }
  .board .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { .board__links .lk { transition: none; stroke-dashoffset: 0; } .board__links text, .board__links .head { opacity: 1; transition: none; } }

/* the live ink viewer */
.viewer { position: relative; user-select: none; }
.viewer__cv { display: block; width: 100%; aspect-ratio: 1 / 1; cursor: grab; touch-action: pan-y; }
.viewer.is-drag .viewer__cv { cursor: grabbing; }
.viewer__hud { position: absolute; left: 0; top: 0; pointer-events: none; }
.viewer__title { font-family: var(--cond); font-weight: 700; font-size: clamp(20px, 2vw, 30px); letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
.viewer__sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--pencil); margin-top: 8px; }
.viewer__dims { position: absolute; left: 0; bottom: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); pointer-events: none; }
.viewer__hint { position: absolute; right: 0; bottom: 0; font-family: var(--hand); font-size: 20px; color: var(--red); transform: rotate(-3deg); pointer-events: none; }
.viewer__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.viewer__tabs button { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; padding: 6px 9px; border: 1px solid var(--rule-2); color: var(--ink-2); background: var(--card); transition: all .2s; }
.viewer__tabs button:hover { border-color: var(--ink); }
.viewer__tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* the CTF teaching sheet */
.ctf__plots { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.ctf__curve { width: 100%; height: 230px; display: block; }
.ctf__rings { width: 100%; aspect-ratio: 1; display: block; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--rule-2); }
.ctf__controls { display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px; margin-top: 14px; align-items: end; }
.ctf__controls label { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--pencil); }
.ctf__controls label span { grid-column: 1; }
.ctf__controls output { grid-column: 2; justify-self: end; color: var(--ink); }
.ctf__controls input { grid-column: 1 / -1; width: 100%; accent-color: var(--red); }
.ctf__read { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--pencil); text-align: right; }
.ctf__read b { display: block; font-family: var(--cond); font-size: 30px; color: var(--red); letter-spacing: .04em; font-weight: 700; }
@media (max-width: 600px) { .ctf__plots { grid-template-columns: 1fr; } .ctf__rings { max-width: 220px; margin: 0 auto; } .ctf__controls { grid-template-columns: 1fr; } }

/* drafting cursor: hairlines across the sheet, coordinates in the frame margin */
.xhair { position: fixed; inset: 0; pointer-events: none; z-index: 39; opacity: 0; transition: opacity .3s; }
.xhair.is-on { opacity: 1; }
.xhair__v, .xhair__h { position: absolute; background: rgba(176, 50, 30, .22); }
.xhair__v { top: 0; bottom: 0; width: 1px; }
.xhair__h { left: 0; right: 0; height: 1px; }
.xhair__x, .xhair__y { position: absolute; font: 500 9px/1 var(--mono); letter-spacing: .1em; color: var(--red); background: var(--paper); padding: 2px 3px; }
.xhair__x { top: calc(var(--frame) - 1px); transform: translate(-50%, -100%); }
.xhair__y { left: calc(var(--frame) - 1px); transform: translate(-100%, -50%) rotate(-90deg); transform-origin: 100% 50%; }
@media (hover: none), (pointer: coarse) { .xhair { display: none; } }

/* section spacing for board regions */
.region { padding-top: clamp(80px, 11vw, 170px); }
.region > .stencil { margin-bottom: clamp(24px, 3.5vw, 52px); }
[data-viewbox] { overflow: hidden; }
[data-viewbox] .sch { overflow: hidden; }

/* ---------- charcoal: the schematics as hand sketches (see charcoal() in lab.js) ---------- */
.sch { --ink: #17181b; --ink-2: #2a2c31; }
.sch .ink { stroke-width: 1.8; } .sch .heavy { stroke-width: 3; } .sch .fine { stroke-width: 1; opacity: .85; }
.sch .cc-src { stroke: none !important; }
.sch .cc { stroke-linecap: round; stroke-linejoin: round; }
.sch .cc--2 { opacity: .5; stroke-width: .9 !important; }
.sch .fine.cc--2, .sch .pencil.cc--2 { opacity: .3; }
.sch .heavy.cc--2 { stroke-width: 1.5 !important; }
/* charcoal tooth: paper-coloured specks lift out of the dark strokes, as when charcoal skips over the grain */
[data-sch] { position: relative; }
[data-sch]::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url(tooth.png) 0 0 / 256px 256px; mix-blend-mode: lighten; opacity: .9; }

/* ---------- revision: plain paper slips, no ruled cards, no post-its ---------- */
.card { background: var(--sheet); background-image: none; padding: 18px 22px 20px; line-height: 1.75; }
.card::before { display: none; }
.card h3, .card .card__h { line-height: 1.4; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--rule-2); }
.sticky { background: none; box-shadow: none; padding: 0; font-size: clamp(22px, 2vw, 27px); }
.sticky::after { display: none; }

/* charcoal sketches of the founder's structures, drawn large and faint on the board behind everything */
.region, .has-bgs { position: relative; }
main { overflow-x: clip; }
.bgs { position: absolute; left: var(--bx, 50%); top: var(--by, 0); width: var(--bs, 900px); max-width: none; height: auto; z-index: 0;
  opacity: var(--bo, .16); transform: translate(-50%, 0) rotate(var(--br, 0deg)); pointer-events: none; user-select: none; mix-blend-mode: multiply; }
.region > :not(.bgs), .has-bgs > :not(.bgs) { position: relative; z-index: 1; }
.bgs__tag { position: absolute; left: var(--bx, 50%); top: var(--by, 0); z-index: 0; transform: translate(-50%, 0); font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(43, 39, 34, .38); pointer-events: none; margin-top: calc(var(--bs, 900px) * .9); }
@media (max-width: 900px) { .bgs { width: calc(var(--bs, 900px) * .7); --bo: .12; } .bgs__tag { display: none; } }

/* plates row: more structures on the board */
.platerow .sh { padding: 14px 14px 16px; }
.platerow .sh__title { font-size: clamp(16px, 1.3vw, 19px); margin-top: 8px; }
.platerow .sh__cap { margin: 4px 0 0; }
.platerow a.sh { display: block; color: inherit; }
.viewer:has(.viewer__tabs) .viewer__dims, .viewer:has(.viewer__tabs) .viewer__hint { bottom: 58px; }

/* YouTube: a still until clicked, then the privacy-enhanced player */
.yt { position: relative; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__play { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer; background: #111; }
.yt__play img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85); transition: filter .3s; }
.yt__play:hover img { filter: saturate(1); }
.yt__btn { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.3); transition: transform .25s var(--ease); }
.yt__btn svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.yt__play:hover .yt__btn { transform: scale(1.08); }

/* the specimen wall: every structure as a small charcoal sketch on its own slip; click to load it into the cabinet */
.specwall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(10px, 2vw, 30px); }
.spec { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 10px 10px 12px; background: var(--sheet); box-shadow: var(--lift); cursor: pointer;
  transform: rotate(var(--r, 0deg)); transition: transform .35s var(--ease), box-shadow .35s var(--ease); color: var(--ink); font: inherit; border: 0; }
.spec img { width: 100%; height: auto; aspect-ratio: 1; display: block; margin-bottom: 4px; }
.spec:hover { transform: rotate(0deg) translateY(-3px); box-shadow: var(--lift-hi); }
.spec[aria-pressed="true"] { box-shadow: var(--lift), inset 0 0 0 1.5px var(--red); }
.spec__t { font-family: var(--cond); font-weight: 700; font-size: 14.5px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.12; }
.spec__s { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--pencil); line-height: 1.4; }
@media (max-width: 600px) { .specwall { grid-template-columns: repeat(2, 1fr); } }

/* plate carousel: six full-size sheets a page */
.carousel { min-width: 0; }
.carousel__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 4px; }
.carousel__count { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); }
.carousel__count b { color: var(--ink); font-weight: 500; }
.carousel__nav { display: flex; gap: 8px; }
.carousel__nav button { width: 46px; height: 46px; border: 1.5px solid var(--ink); background: var(--sheet); color: var(--ink); font-size: 18px; transition: background .2s, color .2s; }
.carousel__nav button:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.carousel__nav button:disabled { opacity: .3; cursor: default; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: 26px 0 50px; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__page { scroll-snap-align: start; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(14px, 2vw, 32px); row-gap: clamp(30px, 3vw, 50px); align-items: start; padding: 0 16px; }
.carousel .sh { padding: 14px 14px 16px; }
.carousel .sh__title { font-size: clamp(16px, 1.3vw, 19px); margin-top: 8px; }
.carousel .sh__cap { margin: 4px 0 0; }
.plate__acts { display: flex; gap: 16px; align-items: center; margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.plate__acts button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--red); padding: 0; border-bottom: 1px solid currentColor; }
.plate__acts button[aria-pressed="true"] { color: var(--ink); }
@media (max-width: 900px) { .carousel__page { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .carousel__page { grid-template-columns: 1fr; } }

/* ───────────────────────── Project Kiln ───────────────────────── */
.print--r { transform: translateY(var(--y, 0px)) rotate(var(--r, -.6deg)); }
.print--r:hover { transform: translateY(calc(var(--y, 0px) - 3px)) rotate(0deg); }
.print--light img, .print--light video { background: #f3f2ec; }
.print img, .print video { display: block; height: auto; }
.tile img { height: auto; }
.print__note { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.print--note { padding-bottom: 20px; }
.print--note .print__cap { position: static; margin-top: 12px; }
.kiln-status { display: inline-flex; align-items: center; gap: 8px; }
.kiln-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(176,50,30,.16); }
.kiln-h { font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 50px); line-height: .94; letter-spacing: .01em; }

/* glaze test tiles: one per Look, punched to hang on the board */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.tile { position: relative; margin: 0; background: #fbfaf6; padding: 26px 9px 12px; box-shadow: var(--lift); transform: translateY(var(--y, 0px)) rotate(var(--r, 0deg)); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tile:hover { transform: translateY(calc(var(--y, 0px) - 4px)) rotate(0deg); box-shadow: var(--lift-hi); }
.tile::before { content: ""; position: absolute; top: 8px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
.tile img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.tile figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--pencil); }
.tile figcaption b { font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: .16em; color: var(--ink); }
.tile--own { background: transparent; box-shadow: none; outline: 1.5px dashed var(--pencil-2); outline-offset: -1px; }
.tile--own::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--pencil-2); }
.tile--own .tile__blank { display: grid; place-items: center; aspect-ratio: 1; font-family: var(--hand, var(--mono)); color: var(--red); font-size: 22px; text-align: center; line-height: 1.2; padding: 10px; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the console, on paper */
.kcon { position: relative; background: #fbfaf6; box-shadow: var(--lift); padding: 20px 22px 22px; transform: translateY(var(--y, 0px)) rotate(var(--r, 0deg)); font-family: var(--mono); font-size: 13px; line-height: 1.9; color: var(--ink); }
.kcon__h { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--pencil); border-bottom: 1px solid var(--rule); padding-bottom: 8px; margin-bottom: 10px; display: flex; justify-content: space-between; }
.kcon code { display: block; white-space: pre-wrap; word-break: break-word; font-family: inherit; }
.kcon code::before { content: "›  "; color: var(--red); }
.kcon .c { color: var(--pencil); }
.kcon .c::before { content: "#  "; color: var(--pencil-2); }
.kcon__ask { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rule-2); font-family: var(--sans, inherit); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.kcon__ask b { color: var(--red); font-weight: 500; }
.klist { list-style: none; padding: 0; margin: 0; }
.klist li { display: grid; grid-template-columns: 28px 1fr; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.klist li:first-child { border-top: 0; }
.klist li span { font-family: var(--mono); font-size: 11px; color: var(--red); padding-top: 3px; }
.klist li b { color: var(--ink); font-weight: 500; }
.kcon--list { font-family: var(--sans); font-size: 15px; line-height: 1.45; }
.kcon--list .klist li::before { content: none; }
.kcon--list .klist code { display: inline; font-family: var(--mono); font-size: 13px; }
.kcon--list .klist code::before { content: none; }
@media (max-width: 900px) { #kiln .print { padding-bottom: 12px; } #kiln .print__cap { position: static; margin-top: 10px; gap: 12px; } }

/* lightbox */
.is-zoomable { cursor: zoom-in; }
.is-zoomable:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.lbox { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: clamp(16px, 4vw, 56px); border: 0; background: transparent; display: none; }
.lbox[open] { display: grid; place-items: center; }
.lbox::backdrop { background: rgba(236, 233, 224, .9); backdrop-filter: blur(3px); }
.lbox__fig { margin: 0; background: #fbfaf6; padding: 14px 14px 0; box-shadow: var(--lift-hi); max-width: min(1600px, 100%); max-height: 100%; display: flex; flex-direction: column; animation: lbox-in .28s var(--ease); }
.lbox__media { display: grid; place-items: center; min-height: 0; flex: 1 1 auto; }
.lbox__media img, .lbox__media video { display: block; max-width: 100%; max-height: calc(100vh - 2 * clamp(16px, 4vw, 56px) - 70px); width: auto; height: auto; background: #f3f2ec; }
.lbox__cap { display: flex; justify-content: space-between; gap: 16px; padding: 14px 2px 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--pencil); }
.lbox__btn { position: fixed; width: 46px; height: 46px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font: 500 20px/1 var(--sans); cursor: pointer; display: grid; place-items: center; }
.lbox__btn:hover, .lbox__btn:focus-visible { background: var(--ink); color: var(--paper); }
.lbox__close { top: 18px; right: 18px; font-size: 26px; }
.lbox__prev, .lbox__next { top: 50%; margin-top: -23px; }
.lbox__prev { left: 18px; } .lbox__next { right: 18px; }
@media (max-width: 700px) { .lbox__prev, .lbox__next { top: auto; bottom: 18px; margin: 0; } }
html.lbox-open { overflow: hidden; }
@keyframes lbox-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lbox__fig { animation: none; } }
/* Project Kiln, folded into the Software board */
.kiln { position: relative; margin-top: clamp(110px, 12vw, 190px); }
.kiln > .shead { margin-bottom: clamp(30px, 3.6vw, 56px); }
.kiln > :not(.bgs) { position: relative; z-index: 1; }
/* live-build storyboard */
.kstrip { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); counter-reset: none; }
.kstrip li { position: relative; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); line-height: 1.5; }
.kstrip li img { display: block; width: 100%; height: auto; margin-bottom: 10px; border: 1px solid var(--rule); background: #eef0f3; }
.kstrip li span { color: var(--red); margin-right: 4px; }
.kstrip li + li::before { content: "→"; position: absolute; left: calc(-1 * clamp(10px, 1.4vw, 20px) / 2 - 5px); top: 42%; font-size: 13px; color: var(--pencil); }
@media (max-width: 900px) { .kstrip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kstrip li + li::before { display: none; } }
@media (max-width: 480px) { .kstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
