/* © 2026 Giuseppe Della Corte — All rights reserved */
/* Paper 01 · IESTAC · results-page language: one accent, light condensed display, giant watermarks,
   mono labels, tabular numbers, hatched bars, hairlines. Dark + orange palette shared with the stories. */

body.paper-page {
  --cond: 'Archivo', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --display: var(--cond);
  --serif: var(--sans);
  --line: #232323;
  --line-2: #383838;
  --panel: #0c0c0c;
  --red: #ff4d4d;
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --frame: 4px;
  font-family: var(--sans);
}
body.paper-page::after { display: none; }                      /* no film grain */
/* page frame, like a plate */
.frame { position: fixed; inset: 0; pointer-events: none; z-index: 50; border-left: var(--frame) solid var(--orange); border-right: var(--frame) solid var(--orange); }

/* shared chrome, re-voiced */
body.paper-page .story-bar { font-size: 0.64rem; letter-spacing: 0.06em; }
body.paper-page .pop-title { font-family: var(--cond); font-stretch: 62%; font-weight: 300; font-size: 1.6rem; }
body.paper-page .pop-text, body.paper-page .follow-pop-note, body.paper-page .keep-v, body.paper-page .outro-note, body.paper-page .outro-author, body.paper-page .follow-text, body.paper-page .follow-note { font-family: var(--sans); font-size: 0.92rem; }
body.paper-page .resume-v { font-family: var(--cond); font-stretch: 62%; font-weight: 300; font-size: 1.25rem; }
body.paper-page .follow-title { font-family: var(--cond); font-stretch: 62%; font-weight: 300; font-size: 2.2rem; }
body.paper-page .outro-btn, body.paper-page button.outro-btn { font-size: 0.66rem; letter-spacing: 0.08em; }

/* ============ HERO (solid plate) ============ */
.plate {
  position: relative;
  background: var(--orange);
  color: #0a0400;
  overflow: hidden;
  min-height: min(calc(100svh - var(--topbar-h)), 1000px);
  display: grid;
  align-items: end;
}
.plate-img {
  position: absolute; right: 0; top: 0;
  width: min(70%, 1100px); height: 62%;
  object-fit: cover; object-position: right top;
  image-rendering: pixelated;
  opacity: 0.7;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%), linear-gradient(180deg, #000 20%, transparent 88%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 40%), linear-gradient(180deg, #000 20%, transparent 88%);
  mask-composite: intersect;
  transform: translateY(calc(var(--hy, 0) * 1px));
  will-change: transform;
  pointer-events: none;
}
.plate-grid {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4rem) var(--gutter) clamp(2.5rem, 7vh, 5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(2rem, 6vw, 6rem); align-items: end;
}
.plate-grid > aside { position: relative; isolation: isolate; }
.plate-grid > aside::before { content: ''; position: absolute; inset: -4rem -2.5rem -2rem -2.5rem; z-index: -1; background: linear-gradient(180deg, rgba(255,107,0,0) 0%, rgba(255,107,0,0.94) 16%, var(--orange) 32%); pointer-events: none; }
.plate .crumbs { color: rgba(10,4,0,0.6); margin-bottom: 1.8rem; }
.plate .crumbs a { color: rgba(10,4,0,0.6); } .plate .crumbs a:hover, .plate .crumbs span:last-child { color: #0a0400; }
.plate-k { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.2rem; color: rgba(10,4,0,0.75); }
.plate-title {
  text-shadow: none;
  font-family: var(--cond); font-stretch: 62%; font-weight: 300;
  font-size: clamp(5.2rem, 14vw, 12.5rem); line-height: 0.86; letter-spacing: -0.005em;
  text-transform: uppercase; margin: 0 0 1.6rem -0.02em; color: #0a0400;
  text-wrap: balance;
}
.plate-title small { display: block; font-size: 0.46em; letter-spacing: 0.01em; }
.plate-sub { font-family: var(--sans); font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.5; max-width: 32rem; margin-bottom: 1.8rem; color: #0a0400; }
.plate-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.plate .outro-btn { border-color: #0a0400; color: #0a0400; }
.plate .outro-btn:hover { background: rgba(10,4,0,0.08); }
.plate .outro-btn-primary { background: #0a0400; color: var(--orange); border-color: #0a0400; }
.plate .outro-btn-primary:hover { background: #241000; border-color: #241000; color: var(--ember); }
html.js .plate-copy > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
html.js .plate-copy > :nth-child(2) { animation-delay: 0.06s; } html.js .plate-copy > :nth-child(3) { animation-delay: 0.12s; } html.js .plate-copy > :nth-child(4) { animation-delay: 0.2s; } html.js .plate-copy > :nth-child(5) { animation-delay: 0.28s; }
html.js .rank li { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
html.js .rank li:nth-child(2) { animation-delay: 0.1s; } html.js .rank li:nth-child(3) { animation-delay: 0.2s; } html.js .rank li:nth-child(4) { animation-delay: 0.3s; } html.js .rank li:nth-child(5) { animation-delay: 0.4s; }

/* ranked list on the plate */
.rank-head { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(10,4,0,0.7); padding-bottom: 0.6rem; border-bottom: 1px solid rgba(10,4,0,0.35); }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: 0 1rem; align-items: center; padding: 0.85rem 0; border-bottom: 1px solid rgba(10,4,0,0.22); }
.rank-n { font-family: var(--mono); font-size: 0.7rem; color: rgba(10,4,0,0.7); }
.rank-name { font-family: var(--sans); font-weight: 500; font-size: 0.98rem; line-height: 1.2; color: #0a0400; }
.rank-name small { font-family: var(--mono); font-weight: 400; font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(10,4,0,0.65); margin-left: 0.5rem; }
.rank-v { font-family: var(--cond); font-stretch: 62%; font-weight: 300; font-size: 2.6rem; line-height: 1; color: #0a0400; text-align: right; font-variant-numeric: tabular-nums; }
.rank-v small { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(10,4,0,0.65); margin-top: 0.3rem; }
.rank .hatch { grid-column: 2; margin-top: 0.5rem; color: #0a0400; }
.rank-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1rem; margin-top: 1rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(10,4,0,0.7); }
.rank-meta b { font-weight: 400; color: #0a0400; }

/* ============ HATCH BARS ============ */
.hatch { display: block; position: relative; height: 9px; width: 100%; max-width: 14rem; background: color-mix(in srgb, currentColor 14%, transparent); overflow: hidden; color: var(--ink); }
.hatch i {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%);
  background: repeating-linear-gradient(115deg, currentColor 0 1.6px, transparent 1.6px 5px);
  background-size: 10px 100%;
  transition: width 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hatch.o { color: var(--orange); } .hatch.red { color: var(--red); } .hatch.mid { color: var(--muted); } .hatch.em { color: var(--ember); }
html.js .reveal .hatch i { width: 0; }
html.js .reveal.in .hatch i { width: var(--w, 0%); }
html.js .in .hatch i, html.js .rank .hatch i { animation: march 1.4s linear infinite; }
@keyframes march { to { background-position: 10px 0; } }

/* ============ SECTION NAV (sticky strip) ============ */
.secnav {
  position: sticky; top: calc(var(--topbar-h) + var(--bar-h)); z-index: 54;
  background: rgba(7,7,7,0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.secnav ol { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--maxw); display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.secnav ol::-webkit-scrollbar { display: none; }
.secnav a { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1.1rem 0.75rem 0; margin-right: 1.1rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 1px solid transparent; margin-bottom: -1px; transition: color 0.2s ease, border-color 0.2s ease; }
.secnav a::before { content: ''; width: 14px; height: 6px; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px); opacity: 0.5; }
.secnav a:hover { color: var(--ink); }
.secnav li.is-active a { color: var(--orange); border-bottom-color: var(--orange); }
.secnav li.is-active a::before { opacity: 1; }
html:not(.js) .secnav { position: static; }

/* ============ SECTIONS ============ */
.paper-main { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sec { position: relative; overflow: hidden; padding: clamp(5rem, 14vh, 9rem) 0 clamp(3rem, 7vh, 5rem); }
.sec + .sec { border-top: 1px solid var(--line); }
.wm {
  position: absolute; left: 0; right: 0; top: clamp(1rem, 4vh, 2.5rem); text-align: center; transform: translateY(calc(var(--wy, 0) * 1px));
  font-family: var(--cond); font-stretch: 62%; font-weight: 300; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(4.5rem, 12.5vw, 12rem); line-height: 1; letter-spacing: 0.02em;
  color: #fff; opacity: 0.045; pointer-events: none; user-select: none;
}
.sec-head { position: relative; max-width: 44rem; margin-bottom: 2.4rem; }
.sec-n { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 1rem; }
.sec h2 {
  font-family: var(--cond); font-stretch: 62%; font-weight: 300;
  font-size: clamp(3.6rem, 8.5vw, 7.4rem); line-height: 0.92; letter-spacing: -0.005em;
  color: #fff; margin: 0 0 1.2rem -0.02em;
}
.sec h2 sup { font-family: var(--mono); font-size: 0.16em; font-weight: 400; letter-spacing: 0.1em; color: var(--orange); vertical-align: top; margin-left: 0.5em; line-height: 1; position: relative; top: 0.9em; }
.sec-q { font-family: var(--sans); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.45; color: var(--ink); max-width: 36rem; margin: 0; text-wrap: pretty; }

/* prose */
.paper-page .prose { max-width: 38rem; margin: 0; padding: 0; }
.paper-page .prose p { font-family: var(--sans); font-size: clamp(1rem, 1.15vw, 1.06rem); line-height: 1.65; color: var(--ink-dim); margin-bottom: 1.2em; }
.paper-page .prose p:last-child { margin-bottom: 0; }
.paper-page .prose strong { font-weight: 500; color: #fff; }
.paper-page .prose em { color: #fff; }
html.js .paper-page .prose p { opacity: 1; transform: none; transition: none; }
.sec > * + .prose, .sec > * + .lb-wrap, .sec > * + .numlist, .sec > * + .segwrap, .sec > * + .fig, .sec > * + .bigstats, .sec > * + .compare, .sec > * + .callout, .sec > * + .triplet, .sec > * + .faq, .sec > * + .cite-grid { margin-top: 2.4rem; }
.sec-head + .prose { margin-top: 0; }

/* labels & footnotes */
.lab { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-bottom: 0.6rem; border-bottom: 1px solid var(--line-2); }
.lab b { font-weight: 400; color: var(--ink); }
.fn { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.8; color: var(--muted); margin-top: 1rem; max-width: 60rem; }
.fn p { margin: 0; }

/* reveal */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ============ LEADERBOARD TABLE ============ */
.lb-wrap { max-width: 60rem; }
.lb { width: 100%; border-collapse: collapse; }
.lb th, .lb td { text-align: left; vertical-align: middle; padding: 0.95rem 0.8rem 0.95rem 0; border-bottom: 1px solid var(--line); }
.lb th { font-family: var(--sans); font-weight: 400; font-size: 0.86rem; color: var(--ink-dim); }
.lb th.n, .lb td.n { text-align: right; }
.lb th .s { font-family: var(--mono); font-size: 0.62rem; color: var(--muted); margin-left: 0.3rem; }
.lb td.r { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); width: 2.6rem; }
.lb td.k { font-family: var(--sans); font-size: 0.98rem; color: #fff; }
.lb td.k small { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.04em; color: var(--muted); margin-top: 0.2rem; }
.lb td.n { font-family: var(--mono); font-size: 0.95rem; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb td.n small { display: block; font-size: 0.66rem; color: var(--muted); margin-top: 0.15rem; }
.lb td.b { width: 30%; }
.lb td.b .hatch { max-width: none; }
.lb tr.top td.k { color: var(--orange); }
.lb tr.dim td, .lb tr.dim td.k { color: var(--muted); }
.lb tbody tr { transition: background 0.2s ease; }
.lb tbody tr:hover { background: rgba(255,255,255,0.025); }
html.js .reveal .lb tbody tr { opacity: 0; transform: translateY(6px); transition: opacity 0.5s ease, transform 0.5s ease; }
html.js .reveal.in .lb tbody tr { opacity: 1; transform: none; }
.lb tbody tr:nth-child(2) { transition-delay: 0.08s; } .lb tbody tr:nth-child(3) { transition-delay: 0.16s; } .lb tbody tr:nth-child(4) { transition-delay: 0.24s; } .lb tbody tr:nth-child(5) { transition-delay: 0.32s; }
.stack { display: grid; gap: 3px; }
.stack .hatch { height: 6px; max-width: none; }
.legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 0.9rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; margin-right: 0.5rem; background: var(--ink); vertical-align: 0; }
.legend i.o { background: var(--orange); } .legend i.red { background: var(--red); } .legend i.mid { background: var(--muted); } .legend i.em { background: var(--ember); }

/* ============ SEGMENTED BAR ============ */
.segwrap { max-width: 60rem; }
.segbar { display: flex; height: 38px; margin-top: 1rem; gap: 2px; }
.segbar i { display: block; height: 100%; flex: 0 0 var(--w); background: var(--ink); transform-origin: left; transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.segbar i.o { background: var(--orange); } .segbar i.em { background: var(--ember); } .segbar i.red { background: var(--red); } .segbar i.mid { background: #3a3a3a; }
html.js .reveal .segbar i { transform: scaleX(0); }
html.js .reveal.in .segbar i { transform: none; }
.segbar i:nth-child(2) { transition-delay: 0.15s; } .segbar i:nth-child(3) { transition-delay: 0.3s; } .segbar i:nth-child(4) { transition-delay: 0.45s; }
.seglegend { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.4rem 2rem; margin-top: 1.2rem; }
.seglegend div { font-family: var(--sans); font-size: 0.95rem; line-height: 1.45; color: var(--ink-dim); }
.seglegend b { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; font-size: 0.95rem; color: #fff; margin-bottom: 0.3rem; }
.seglegend b i { width: 8px; height: 8px; background: var(--ink); display: inline-block; }
.seglegend b i.o { background: var(--orange); } .seglegend b i.em { background: var(--ember); } .seglegend b i.red { background: var(--red); } .seglegend b i.mid { background: #3a3a3a; }
.seglegend b span { font-family: var(--mono); font-weight: 400; font-size: 0.78rem; color: var(--muted); margin-left: 0.2rem; }

/* ============ NUMBERED LIST (steps, methods) ============ */
.numlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; max-width: 64rem; }
.numlist li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 0 0.6rem; padding: 1.4rem 0 1.6rem; border-top: 1px solid var(--line); }
.numlist-1 { grid-template-columns: minmax(0, 1fr); max-width: 44rem; }
.numlist .n { font-family: var(--cond); font-stretch: 62%; font-weight: 300; font-size: 2.9rem; line-height: 0.9; color: #fff; font-variant-numeric: tabular-nums; }
.numlist .n.o { color: var(--orange); }
.numlist h3 { font-family: var(--cond); font-stretch: 62%; font-weight: 300; font-size: 2.3rem; line-height: 0.95; color: #fff; margin: 0 0 0.6rem; }
.numlist h3 small { font-family: var(--mono); font-stretch: 100%; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-left: 0.6rem; vertical-align: 0.5em; white-space: nowrap; }
.numlist p { font-family: var(--sans); font-size: 0.95rem; line-height: 1.55; color: var(--ink-dim); margin: 0; }
.numlist p + p { margin-top: 0.5rem; }
.numlist p strong { color: #fff; font-weight: 500; }
.numlist code { display: block; font-family: var(--mono); font-size: 0.68rem; line-height: 1.5; color: var(--ember); background: #000; border: 1px solid var(--line); padding: 0.6rem 0.75rem; margin-top: 0.7rem; overflow-x: auto; white-space: pre; }
.numlist .tools { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 0.7rem; }
.numlist .tools b { font-weight: 400; color: var(--orange); }
html.js .reveal.numlist li { opacity: 0; transform: translateY(10px); transition: opacity 0.55s ease, transform 0.55s ease; }
html.js .reveal.in.numlist li { opacity: 1; transform: none; }
.numlist li:nth-child(2) { transition-delay: 0.1s; } .numlist li:nth-child(3) { transition-delay: 0.2s; } .numlist li:nth-child(4) { transition-delay: 0.3s; }

/* ============ BIG STATS ============ */
.bigstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2rem; max-width: 64rem; }
.bigstats div { border-top: 1px solid var(--line); padding-top: 1rem; }
.bigstats b { display: block; font-family: var(--cond); font-stretch: 62%; font-weight: 300; font-size: clamp(2.8rem, 4.6vw, 4.2rem); line-height: 0.9; color: #fff; font-variant-numeric: tabular-nums; }
.bigstats span { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.7rem; line-height: 1.6; }

/* ============ CALLOUT ============ */
.callout { max-width: 44rem; padding: 1.4rem 0 0; border-top: 1px solid var(--orange); }
.callout-k { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.7rem; }
.callout p { font-family: var(--cond); font-stretch: 62%; font-weight: 300; font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1; color: #fff; margin: 0; text-wrap: balance; }
.callout small { display: block; margin-top: 0.9rem; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.06em; color: var(--muted); }

/* ============ FIGURES (SVG) ============ */
.fig { max-width: 60rem; }
.fig-svg { width: 100%; height: auto; display: block; overflow: visible; margin-top: 1rem; }
.fig figcaption { font-family: var(--sans); font-size: 0.88rem; line-height: 1.55; color: var(--muted); margin-top: 0.8rem; max-width: 44rem; }
.fig figcaption b { font-family: var(--mono); font-weight: 400; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); margin-right: 0.5rem; }
.svg-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--muted); }
.svg-t { font-family: var(--sans); font-size: 13px; font-weight: 500; fill: #fff; text-anchor: middle; }
.svg-s { font-family: var(--mono); font-size: 10.5px; fill: var(--muted); text-anchor: middle; }
.svg-left { text-anchor: start; }
.svg-box rect { fill: var(--panel); stroke: var(--line-2); stroke-width: 1; }
.svg-box-o rect { stroke: var(--orange); }
.svg-arrow { stroke: var(--line-2); stroke-width: 1.2; }
.svg-arrow-o { stroke: var(--orange); }
.svg-err circle { fill: var(--red); }
.svg-err path { stroke: var(--red); fill: none; }
.svg-err-t { fill: var(--red); text-anchor: start; }
.svg-note { fill: var(--ink-dim); }
.dtw-grid rect { fill: #111; stroke: var(--bg); stroke-width: 1; }
.dtw-grid rect.on { fill: var(--orange); }
.dtw-grid rect.near { fill: #2a2017; }
html.js .fig .dtw-grid rect.on { opacity: 0; transition: opacity 0.35s ease; }
html.js .fig.in .dtw-grid rect.on { opacity: 1; }

/* ============ COMPARE (pick an aligner) ============ */
.compare { max-width: 60rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.pick { font: inherit; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); background: var(--panel); border: 1px solid var(--line-2); padding: 0.55rem 0.9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.55rem; transition: color 0.2s ease, border-color 0.2s ease; }
.pick::before { content: ''; width: 8px; height: 8px; background: var(--line-2); }
.pick:hover { color: #fff; border-color: var(--ink); }
.pick[aria-checked="true"] { color: #fff; border-color: var(--orange); }
.pick[aria-checked="true"]::before { background: var(--orange); }
.cmp-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2.5rem; margin-top: 1.6rem; align-items: start; }
.cmp-panel[hidden] { display: none; }
.cmp-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.cmp-nums div { border-top: 1px solid var(--line); padding-top: 0.8rem; }
.cmp-nums b { display: block; font-family: var(--cond); font-stretch: 62%; font-weight: 300; font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 0.9; color: #fff; font-variant-numeric: tabular-nums; }
.cmp-nums span { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0.5rem 0 0.6rem; }
.cmp-nums .hatch { max-width: none; }
.cmp-verdict { grid-column: 1 / -1; font-family: var(--sans); font-size: 0.95rem; line-height: 1.55; color: var(--ink-dim); margin: 0; }
.cmp-verdict strong { color: #fff; font-weight: 500; }
.ex { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 0.8rem; align-items: center; }
.ex-k { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.ex-s { font-family: var(--sans); font-size: 0.92rem; line-height: 1.4; color: #fff; padding: 0.6rem 0.75rem; border: 1px solid var(--line-2); background: var(--panel); margin: 0 0 0.45rem; position: relative; }
.ex-s.it { border-color: var(--orange); }
.ex-s.off { color: var(--muted); border-style: dashed; }
.ex-s.off::after { content: 'partial · unpaired'; position: absolute; right: 0.6rem; top: 0.55rem; font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.ex-link { width: 44px; height: 96px; }
.ex-link path { fill: none; stroke: var(--orange); stroke-width: 1.5; stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 0.9s ease 0.2s; }
.ex-link path.off { stroke: var(--line-2); stroke-dasharray: 3 4; stroke-dashoffset: 0; }
html.js .cmp-panel:not([hidden]) .ex-link path:not(.off), html:not(.js) .ex-link path { stroke-dashoffset: 0; }
.ex-gloss { font-family: var(--sans); font-size: 0.86rem; line-height: 1.5; color: var(--muted); margin-top: 0.5rem; }

/* ============ TRIPLET ============ */
.triplet { max-width: 44rem; border-top: 1px solid var(--line-2); }
.trip-file { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 0 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.trip-id { font-family: var(--mono); font-size: 1rem; color: var(--muted); }
.trip-id b { color: #fff; font-weight: 400; }
.trip-ext { font-family: var(--mono); font-size: 1rem; color: var(--ink-dim); }
.trip-ext-it { color: var(--orange); }
.trip-k { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: right; }
.trip-legend { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 0.8rem 0 0; margin: 0; line-height: 1.8; }
.trip-legend b { color: var(--orange); font-weight: 400; }

/* ============ FAQ ============ */
.faq { max-width: 64rem; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-family: var(--cond); font-stretch: 62%; font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); font-size: 1rem; color: var(--orange); flex-shrink: 0; transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--ember); }
.faq .a { font-family: var(--sans); font-size: 0.98rem; line-height: 1.6; color: var(--ink-dim); max-width: 44rem; padding: 0 0 1.4rem; margin: 0; }
.faq .a strong { color: #fff; font-weight: 500; }

/* ============ CITE ============ */
.cite-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; max-width: 64rem; align-items: start; }
.cite-text { font-family: var(--sans); font-size: 0.98rem; line-height: 1.6; color: var(--ink); margin: 1rem 0 0; }
.cite-text a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.cite-text a:hover { color: #fff; border-bottom-color: var(--orange); }
.cite-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0; }
.cite-bib { font-family: var(--mono); font-size: 0.7rem; line-height: 1.6; color: var(--ink-dim); background: #000; border: 1px solid var(--line); padding: 1rem 1.1rem; overflow-x: auto; margin: 0; }
.cite-links { list-style: none; margin: 1rem 0 0; padding: 0; }
.cite-links a { display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: center; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: #fff; font-family: var(--sans); font-size: 1rem; transition: color 0.2s ease; }
.cite-links a .r { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.cite-links a small { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 0.2rem; }
.cite-links a .arr { font-family: var(--mono); color: var(--orange); }
.cite-links a:hover { color: var(--ember); }

/* ============ END PLATE ============ */
.endwm { position: relative; overflow: hidden; padding: clamp(4rem, 12vh, 8rem) 0 0; text-align: center; }
.endwm .wm { position: static; transform: translateY(calc(var(--wy, 0) * 1px)); display: block; font-size: clamp(6rem, 22vw, 22rem); opacity: 0.045; }
.endband { position: relative; height: clamp(220px, 38vh, 420px); background: var(--orange); overflow: hidden; }
.endband img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; image-rendering: pixelated; opacity: 0.9; transform: translateY(calc(var(--ey, 0) * 1px)); will-change: transform; }
.endband .outro-end { position: absolute; left: 0; right: 0; bottom: 0; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 1.4rem; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: #0a0400; }
body.paper-page .story-outro { border-top: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .plate-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .plate-img { width: 100%; height: 42%; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); opacity: 0.45; }
  .plate-grid { padding-top: 8rem; }
  .numlist { grid-template-columns: minmax(0, 1fr); }
  .cmp-panel { grid-template-columns: minmax(0, 1fr); }
  .cite-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .rank-v { font-size: 2rem; }
  .rank-name small { display: block; margin: 0.15rem 0 0; }
  .plate-title { font-size: clamp(4.2rem, 19vw, 6rem); }
  .lb td.b { display: none; } .lb th.b { display: none; }
  .lb th, .lb td { padding: 0.8rem 0.5rem 0.8rem 0; }
  .numlist li { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .bigstats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1.2rem; }
  .numlist .n { font-size: 2.2rem; } .numlist h3 { font-size: 1.9rem; }
  .cmp-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
  .cmp-nums b { font-size: 2.2rem; }
  .ex { grid-template-columns: minmax(0, 1fr); }
  .ex-link { transform: rotate(90deg); margin: -1rem auto; height: 44px; width: 44px; }
  .trip-file { grid-template-columns: auto auto; }
  .trip-k { grid-column: 1 / -1; text-align: left; margin-top: 0.3rem; }
  .plate-actions .outro-btn, .cite-actions .outro-btn { width: 100%; text-align: center; }
  .segbar { height: 28px; }
  .frame { --frame: 3px; }
  .endband .outro-end { flex-direction: column; gap: 0.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .reveal .lb tbody tr, html.js .reveal.numlist li { opacity: 1; transform: none; transition: none; }
  html.js .reveal .hatch i { width: var(--w, 0%); transition: none; }
  html.js .reveal .segbar i { transform: none; transition: none; }
  .hatch i { animation: none !important; }
  .ex-link path { stroke-dashoffset: 0; transition: none; }
  html.js .plate-copy > *, html.js .rank li { animation: none; }
  .wm, .plate-img, .endband img { transform: none !important; }
}
