/* Notos. The painting in its own colours, warm cream paper, umber ink, one burnt-sienna accent.
   (The variable names --silver and --red are kept from the grey version: they now hold cream and sienna.) */
:root {
  --night: #14100c;
  --silver: #f6efe0;
  --silver-2: rgba(246, 239, 224, 0.78);
  --hair-l: rgba(246, 239, 224, 0.3);
  --paper: #efe6d4;
  --card: #f7f1e3;
  --ink: #1c1814;
  --ink-2: #5c5448;
  --ink-3: #8d8473;
  --hair: rgba(28, 24, 20, 0.2);
  --hair-2: rgba(28, 24, 20, 0.1);
  --red: #ad5527;
  --red-d: #8c421c;
  --red-l: #efae74;
  --serif: "Bodoni Moda", "Didot", "Bodoni MT", "Times New Roman", serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 4vw, 64px);
  --nav-h: 68px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--silver); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button, input { font: inherit; color: inherit; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--red-l); outline-offset: 3px; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border: 1px solid var(--hair-l); border-radius: 999px; background: rgba(20, 16, 12,0.28); color: var(--silver); font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pill:hover { border-color: var(--silver); }
.pill.solid { background: var(--silver); color: var(--night); border-color: var(--silver); }
.pill.solid:hover { background: #fff; }
.pill.ink { background: transparent; color: var(--ink); border-color: var(--hair); -webkit-backdrop-filter: none; backdrop-filter: none; }
.pill.ink:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--nav-h); padding: 0 var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; color: var(--silver); transition: background .3s, color .3s, box-shadow .3s; }
.nav.scrolled { background: linear-gradient(rgba(20, 16, 12,0.62), rgba(20, 16, 12,0)); }
.nav-links { display: flex; gap: clamp(14px, 1.8vw, 30px); font-size: 17.5px; font-weight: 500; }
.nav-links a { text-decoration: none; white-space: nowrap; text-shadow: 0 1px 10px rgba(20, 16, 12, 0.55); }
.nav.on-paper .nav-links a { text-shadow: none; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 600 34px/1 var(--serif); letter-spacing: -0.01em; }
.brand .mark { width: 27px; height: 27px; }
.brand.small { font-size: 22px; }
.nav-cta { justify-self: end; height: 40px; padding: 0 18px; font-size: 14.5px; }
.nav.on-paper { background: rgba(239, 230, 212, 0.94); color: var(--ink); box-shadow: 0 1px 0 var(--hair); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.nav.on-paper .nav-cta { background: transparent; color: var(--ink); border-color: var(--hair); }
.nav.on-paper .nav-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- the painting and its chapters ---------- */
.story { position: relative; height: 430vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--night); }
.paint { position: absolute; inset: 0; transform-origin: 58% 55%; will-change: transform; container-type: size; overflow: hidden; }
/* The frame is the whole painting, laid over its box the way object-fit: cover would lay it (--px, --py are the
   object-position). The turning sails sit inside it in percentages of the painting, so they stay on the hub at
   every size. Figures: painting 3840 x 1648, hub at 1980, 545, sails image 1320 wide around the hub. */
.frame { position: absolute; --ar: 2.330097; --px: .42; --py: .42; --sl: 34.375%; --sw: 34.375%;
  --w: max(100cqw, calc(100cqh * var(--ar))); width: var(--w); height: calc(var(--w) / var(--ar));
  left: calc((100cqw - var(--w)) * var(--px)); top: calc((100cqh - var(--w) / var(--ar)) * var(--py)); }
.frame.tall { position: relative; --sl: -2.428%; --sw: 100.152%; width: 100%; height: auto; left: auto; top: auto; aspect-ratio: 4 / 5; overflow: hidden; }
.frame picture, .frame > img:first-child, .frame picture img { display: block; width: 100%; height: 100%; }
.frame .sails { position: absolute; left: var(--sl); width: var(--sw); top: -6.978%; height: 80.097%; max-width: none; transform-origin: 50% 50%; will-change: transform; pointer-events: none; }
.veil { position: absolute; inset: 0; background: var(--night); opacity: .04; pointer-events: none; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(20, 16, 12,0.32) 0%, rgba(20, 16, 12,0) 22%, rgba(20, 16, 12,0) 46%, rgba(20, 16, 12,0.86) 100%); }
.chapters, .figures, .rail, .scroll-hint { z-index: 2; }
.chapters { position: absolute; left: var(--pad); bottom: clamp(28px, 7vh, 64px); width: min(46rem, 56vw); }
.chapter { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .55s ease, transform .55s ease; }
.chapter.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ch-no { font: italic 400 19px/1 var(--serif); color: var(--silver-2); margin-bottom: 14px; }
.ch-no i { color: var(--red-l); margin-right: 4px; }
.chapter h1, .chapter h2 { font: 600 clamp(2.9rem, 6.5vw, 5.9rem)/0.97 var(--serif); letter-spacing: -0.022em; text-shadow: 0 2px 30px rgba(20, 16, 12,0.45); }
.chapter h1 em, .chapter h2 em { font-weight: 400; letter-spacing: -0.012em; }
/* the titles on the painting: gilt lettering, a little see-through, like a watermark */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .chapter h1, .chapter h2 { padding-bottom: .12em; background: linear-gradient(172deg, #fbeecb 0%, #ecd08f 45%, #cfa257 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 16px rgba(20, 16, 12, 0.5)); opacity: .93; }
}
.lede { margin-top: 22px; max-width: 33rem; font-size: 17px; line-height: 1.5; color: var(--silver); }
.cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }

.figures { position: absolute; right: var(--pad); bottom: clamp(28px, 7vh, 64px); width: min(23rem, 30vw); }
.fig { position: absolute; right: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.fig.is-on { opacity: 1; transform: none; }
.fig-h { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--silver-2); padding-bottom: 10px; }
.fig-big { font: 600 clamp(1.8rem, 2.6vw, 2.4rem)/1.1 var(--serif); text-align: right; padding: 10px 0 12px; border-top: 1px solid var(--hair-l); }
.fig dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--hair-l); font-size: 14.5px; }
.fig dt { color: var(--silver-2); }
.fig dd { font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.rail { position: absolute; right: var(--pad); top: 40%; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.rail a { display: flex; align-items: center; gap: 10px; font: italic 400 16px/1 var(--serif); color: var(--silver); opacity: .5; text-decoration: none; transition: opacity .3s; }
.rail a::after { content: ""; width: 14px; height: 1px; background: currentColor; transition: width .3s; }
.rail a.is-on { opacity: 1; }
.rail a.is-on::after { width: 30px; }
.scroll-hint { position: absolute; right: 14px; bottom: 30px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--silver-2); writing-mode: vertical-rl; }

/* ---------- paper ---------- */
.paper { position: relative; background: var(--paper); color: var(--ink); }
.paper::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .13  0 0 0 0 .1  0 0 0 0 .06  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); }
.paper > * { position: relative; }
.sec, .manifesto { max-width: 1360px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--pad); }
.sec.rule { border-top: 1px solid var(--hair); }
.manifesto p { font: 400 clamp(1.55rem, 3.1vw, 2.7rem)/1.22 var(--serif); letter-spacing: -0.012em; max-width: 24em; }
.manifesto em { color: var(--ink-2); }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--red); }
.title { font: 600 clamp(2.1rem, 4.5vw, 3.7rem)/1.02 var(--serif); letter-spacing: -0.02em; }
.title em { font-weight: 400; }
.intro { margin-top: 18px; max-width: 40rem; color: var(--ink-2); font-size: 17px; }
h3 { font: 600 1.45rem/1.15 var(--serif); letter-spacing: -0.01em; }

.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); padding-top: 0; }
.tri article { border-top: 1px solid var(--ink); padding-top: 18px; }
.tri h3 { font: 600 11.5px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--red-d); margin-bottom: 12px; }
.tri p { color: var(--ink-2); }

/* chips, fields, messages */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { height: 38px; padding: 0 16px; border: 1px solid var(--hair); border-radius: 999px; background: transparent; color: var(--ink); font-size: 14.5px; font-weight: 500; cursor: pointer; font-variant-numeric: tabular-nums; transition: background .15s, color .15s; }
.chips button:hover { border-color: var(--ink); }
.chips button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.msg { min-height: 1.4em; font-size: 14px; color: var(--red-d); }
.live { color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.live:not(:empty)::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 7px; vertical-align: 1px; }

/* ---------- scale ---------- */
.picker { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.typed { display: flex; align-items: center; gap: 8px; }
.typed label { font-size: 13px; color: var(--ink-2); }
.typed input { width: 122px; height: 38px; padding: 0 14px; border: 1px solid var(--hair); border-radius: 999px; background: var(--card); text-transform: uppercase; font-size: 14.5px; }
.typed input::placeholder { text-transform: none; color: var(--ink-3); }
.typed .pill { height: 38px; padding: 0 16px; font-size: 14.5px; }
.picker .msg { flex-basis: 100%; }
.plate { margin-top: 10px; border: 1px solid var(--hair); border-radius: 14px; background: rgba(255, 255, 255, 0.36); padding: clamp(18px, 2.6vw, 34px); }
.plate-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.plate-coin { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.plate-coin small { font-size: 13px; letter-spacing: .02em; font-weight: 500; margin-left: 8px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.plate-force { margin-top: 6px; font: 600 clamp(2.2rem, 4.6vw, 3.5rem)/1 var(--serif); letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 16px; }
.plate-force i { font-weight: 400; color: var(--red); min-width: 1.1em; }
.forces { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; color: var(--ink-3); }
.forces li { padding-bottom: 6px; border-bottom: 1px solid transparent; }
.forces i { font: italic 400 15px/1 var(--serif); margin-right: 7px; }
.forces li.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--red); }
.forces li.on i { color: var(--red); }
.chart { width: 100%; min-height: 230px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.c-line { fill: none; stroke: var(--ink); stroke-width: 1.15; stroke-linejoin: round; stroke-linecap: round; }
.c-area { fill: var(--ink); opacity: .055; }
.c-rule { stroke: var(--ink); stroke-opacity: .38; stroke-width: .8; stroke-dasharray: 1.5 4; }
.c-base, .c-tick { stroke: var(--ink); stroke-opacity: .45; stroke-width: .8; }
.c-band { fill: var(--red); opacity: .075; }
.c-num { font: italic 400 14px var(--serif); fill: var(--ink-3); }
.c-num.on { fill: var(--red); font-weight: 600; }
.c-lab { font: 400 11px var(--sans); fill: var(--ink-3); }
.c-dot { fill: var(--red); }
.c-halo { fill: var(--red); opacity: .18; }
.legend { margin-top: 14px; font-size: 12.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.legend .k { display: inline-block; margin-left: 12px; }
.legend .k:first-child { margin-left: 0; }
.k-line { width: 22px; height: 0; border-top: 1.5px solid var(--ink); }
.k-rule { width: 22px; height: 0; border-top: 1px dotted var(--ink); }
.k-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.legend .live { margin-left: auto; }
.band { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.band > div { padding: 18px 20px 4px; border-left: 1px solid var(--hair); }
.band > div:first-child { border-left: 0; padding-left: 0; }
.band-h { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.band-v { margin-top: 10px; font: 700 clamp(1.7rem, 2.9vw, 2.35rem)/1.05 var(--serif); letter-spacing: -0.015em; font-variant-numeric: lining-nums tabular-nums; }
.band-s { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.neg { color: var(--red-d); }

/* ---------- bench ---------- */
.bench { margin-top: 40px; display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.ctl { padding: 18px 0; border-top: 1px solid var(--hair); }
.ctl:first-child { border-top: 1px solid var(--ink); }
.ctl label, .ctl .lab { display: block; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.field { display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--ink); margin-bottom: 14px; font: 600 2.3rem/1.2 var(--serif); }
.field span { color: var(--ink-3); font-weight: 400; }
.field input { width: 100%; min-width: 0; border: 0; background: transparent; outline: none; padding: 2px 0 6px; font-variant-numeric: lining-nums; }
.field input.bad { color: var(--red-d); }
.fine { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.receipt { background: var(--card); border: 1px solid var(--hair); border-radius: 14px; padding: clamp(18px, 2.4vw, 30px); box-shadow: 0 18px 40px -30px rgba(28, 24, 20,0.5); }
.rc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.rc-h .live { letter-spacing: 0; text-transform: none; font-weight: 400; }
.receipt dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--hair-2); font-size: 15px; }
.receipt dt { color: var(--ink-2); }
.receipt dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt dd small { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-3); white-space: normal; }
.receipt .strong dd { font: 600 1.7rem/1.1 var(--serif); }
.receipt .strong dt { color: var(--ink); font-weight: 600; }
.receipt .neg dd { color: var(--red-d); }
.receipt .sep { padding-top: 22px; border-bottom-color: var(--hair); }
.receipt .sep dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.rc-note { margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.rc-actions { margin-top: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rc-actions .msg { color: var(--ink-2); }
textarea.manual { display: block; width: 100%; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 8px; background: #fff; color: var(--ink); font: 12.5px/1.5 ui-monospace, Consolas, monospace; resize: vertical; }

/* ---------- markets ---------- */
.table-wrap { margin-top: 36px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.league { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.league th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); padding: 0 14px 12px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.league td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--hair-2); white-space: nowrap; }
.league .r { text-align: right; }
.league th:last-child, .league td:last-child { padding-right: 0; text-align: right; }
.league tbody tr[data-coin] { cursor: pointer; transition: background .15s; }
.league tbody tr[data-coin]:hover { background: rgba(28, 24, 20,0.045); }
.league tr.on td { background: rgba(173, 85, 39, 0.09); }
.league .mk { font: 600 1.2rem/1 var(--serif); padding-left: 8px; }
.league .fc i { font: italic 400 16px/1 var(--serif); display: inline-block; min-width: 1.5em; color: var(--ink-3); }
.league .f4, .league .f5 { color: var(--red-d); font-weight: 600; }
.league .f4 i, .league .f5 i { color: var(--red); }
.league .f1 { color: var(--ink-3); }
.league .wait { color: var(--ink-2); padding: 30px 0; text-align: left; }
.spark { display: inline-block; vertical-align: middle; }
.spark rect { fill: var(--ink); opacity: .55; }
.spark rect.hi { fill: var(--red); opacity: 1; }
.foot-note { margin-top: 14px; font-size: 13px; color: var(--ink-2); }

/* ---------- method ---------- */
.method { margin-top: 44px; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.band-v, .receipt .strong dd, .field, .fig-big { font-variation-settings: "opsz" 16; }
.detail .frame { border-radius: 4px; box-shadow: 0 30px 60px -40px rgba(28, 24, 20,0.7); }
.detail figcaption { margin-top: 10px; font: italic 400 14.5px/1.4 var(--serif); color: var(--ink-2); }
.steps li { display: grid; grid-template-columns: 54px 1fr; padding: 24px 0; border-top: 1px solid var(--hair); }
.steps li:first-child { border-top: 1px solid var(--ink); }
.steps i, .roman i { font: italic 400 1.35rem/1.2 var(--serif); color: var(--red); }
.steps p { margin-top: 8px; color: var(--ink-2); max-width: 36rem; }

/* ---------- plain sections ---------- */
.two { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.two > div { border-top: 1px solid var(--ink); padding-top: 20px; }
.plain { margin-top: 14px; }
.plain li { padding: 13px 0 13px 22px; border-top: 1px solid var(--hair-2); position: relative; color: var(--ink-2); }
.plain li::before { content: ""; position: absolute; left: 0; top: 1.5em; width: 10px; height: 1px; background: var(--red); }
.limits { margin-top: 48px; padding: clamp(20px, 3vw, 34px); border: 1px solid var(--hair); border-radius: 14px; background: rgba(255, 255, 255, 0.32); }
.limits p { margin-top: 12px; color: var(--ink-2); max-width: 62rem; }
.limits b { color: var(--ink); font-weight: 600; }
.season { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--red-d); margin-bottom: 10px; }
.seasons > div:last-child .season { color: var(--ink-3); }
.roman { margin-top: 16px; }
.roman li { display: grid; grid-template-columns: 44px 1fr; padding: 11px 0; border-top: 1px solid var(--hair-2); color: var(--ink-2); }
.roman i { font-size: 1.1rem; }
.ca { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ca code { font: 500 clamp(13px, 1.6vw, 18px)/1.4 ui-monospace, Consolas, monospace; padding: 12px 16px; border: 1px solid var(--hair); border-radius: 10px; background: var(--card); word-break: break-all; }

/* ---------- faq ---------- */
.faq { margin-top: 36px; max-width: 58rem; border-bottom: 1px solid var(--hair); }
.faq details { border-top: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 600 1.3rem/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 1.6rem/1 var(--serif); color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); max-width: 44rem; }

/* ---------- close ---------- */
.close { position: relative; min-height: 92vh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--night); }
.close .paint { transform: none; }
.close .frame { --px: .53; --py: .3; }
.close::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20, 16, 12,0.55), rgba(20, 16, 12,0.2) 40%, rgba(20, 16, 12,0.94)); }
.close-in, .close footer { position: relative; z-index: 1; }
.close-in { padding: 0 var(--pad) clamp(40px, 8vh, 90px); }
.close-in h2 { font: 600 clamp(2.7rem, 6.5vw, 5.6rem)/0.98 var(--serif); letter-spacing: -0.022em; }
.close-in h2 em { font-weight: 400; }
.close-in p { margin-top: 28px; }
.close footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 22px var(--pad); border-top: 1px solid var(--hair-l); font-size: 13.5px; color: var(--silver-2); }
.close footer a { margin-left: auto; }

/* ---------- narrow screens ---------- */
@media (max-width: 980px) {
  .nav { grid-template-columns: auto 1fr; grid-template-rows: 44px 32px; height: auto; padding-top: 6px; row-gap: 0; }
  :root { --nav-h: 84px; }
  .brand { grid-column: 1; grid-row: 1; font-size: 29px; }
  .brand .mark { width: 24px; height: 24px; }
  .nav-cta { grid-column: 2; grid-row: 1; height: 36px; padding: 0 15px; font-size: 14px; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; font-size: 15.5px; gap: clamp(10px, 3.4vw, 20px); scrollbar-width: none; padding-bottom: 6px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav { background: linear-gradient(rgba(20, 16, 12,0.7), rgba(20, 16, 12,0)); }
  .bench, .method, .two { grid-template-columns: 1fr; }
  .tri { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr 1fr; }
  .band > div { border-top: 1px solid var(--hair); padding: 16px 12px 14px 14px; }
  .band > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .band > div:nth-child(-n+2) { border-top: 0; }
  .detail { max-width: 420px; }
  .rail, .scroll-hint { display: none; }
  .chapters { width: auto; right: var(--pad); bottom: 208px; }
  .figures { width: auto; left: var(--pad); bottom: 22px; height: 170px; }
  .fig dl > div { padding: 7px 0; font-size: 13.5px; }
  .fig-h { padding-bottom: 7px; }
  .fig-big { font-size: 1.5rem; padding: 6px 0 7px; }
  .lede { font-size: 15.5px; margin-top: 14px; }
  .cta { margin-top: 16px; }
  .cta .pill:nth-child(2) { display: none; }
  .ch-no { font-size: 17px; margin-bottom: 10px; }
  .stage::after { background: linear-gradient(rgba(20, 16, 12,0.5) 0%, rgba(20, 16, 12,0) 22%, rgba(20, 16, 12,0.2) 40%, rgba(20, 16, 12,0.93) 58%, var(--night) 100%); }
}
@media (max-width: 720px) {
  .stage .paint { bottom: auto; height: 62%; }
  .stage .frame { --ar: .8; --px: .5; --py: .2; --sl: -2.428%; --sw: 100.152%; }
  .chapter h1, .chapter h2 { font-size: clamp(2.35rem, 11.4vw, 3.3rem); }
  .hide-s { display: none; }
  .league { min-width: 540px; }
  .legend .live { margin-left: 0; flex-basis: 100%; }
  .forces { gap: 4px 16px; }
  .receipt dl > div { font-size: 14px; gap: 12px; }
  .receipt dd { white-space: normal; }
  .close footer a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chapter, .fig, .pill, .nav { transition: none; }
}
