/* Scrollbrief site styles.
   One visual world, by choice: the night sea of a lighthouse station.
   Layout idea: on the home page each scene is a sticky full-height stage with
   text plates scrolling over it (below the picture on portrait screens, in a
   right-hand column on wide ones). Inner pages are a single reading column. */

@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --night: #05070d;      /* sky at the top of the sea */
  --navy: #0a1220;       /* graph paper at night */
  --sheet: #101a2b;      /* raised surface */
  --fg: #e6dfd0;         /* bone */
  --dim: #8f98a9;
  --rule: #26324a;
  --ember: #ffb06a;      /* the flame */
  --lens: #f6e7b2;       /* the beam */
  --glass: #9fd8e8;      /* the lens */
  --hot: #e2584a;        /* the red sector */

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --measure: 64ch;
  --gutter: clamp(16px, 4vw, 40px);
  --space: clamp(48px, 8vw, 104px);
  --header: 58px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--navy); color: var(--fg); font-family: var(--body); font-size: 1.125rem; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--lens); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ember); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 40; background: var(--fg); color: var(--navy); padding: 10px 14px; font-family: var(--mono); font-size: 12px; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Type */
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1; text-wrap: balance; letter-spacing: -0.012em; margin: 0; }
h1 { font-size: clamp(2.7rem, 7vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h1 em, h2 em { font-style: italic; color: var(--ember); }
h3 { font-family: var(--body); font-weight: 600; font-size: 1.14rem; line-height: 1.3; margin: 0; }
p { margin: 0; }
.prose { max-width: var(--measure); display: grid; gap: 1em; }
.prose h2 { margin-top: 0.8em; }
.prose h3 { margin-top: 0.5em; color: var(--lens); }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: 0.45em; }
.prose li::marker { color: var(--ember); }
.lede { font-size: clamp(1.2rem, 2.3vw, 1.42rem); line-height: 1.45; max-width: 58ch; color: var(--fg); }
.small { font-size: 0.92rem; color: var(--dim); }
.eyebrow, .log { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ember); }
.num { font-variant-numeric: tabular-nums; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: rgba(10, 18, 32, 0.9); }
.is-deck .site-header { position: fixed; inset: 0 0 auto 0; z-index: 30; backdrop-filter: blur(8px); }
.site-header__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding-block: 10px; min-height: var(--header); }
.wordmark { font-family: var(--display); font-size: 1.55rem; font-weight: 600; letter-spacing: 0; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; color: var(--fg); margin: 0; }
.wordmark:hover { color: var(--fg); }
.wordmark__mark { width: 34px; height: 34px; flex: none; }
.m-flame { fill: var(--ember); }
.m-lens { fill: rgba(159, 216, 232, 0.28); stroke: var(--glass); stroke-width: 1.6; stroke-linejoin: round; }
.m-beam { fill: none; stroke: var(--lens); stroke-width: 2.8; stroke-linecap: round; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-inline: auto 0; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--dim); padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--lens); border-bottom-color: var(--ember); }
@media (max-width: 720px) { .is-deck .nav { display: none; } }

/* Deck bar: the sheet counter and progress line on the home page */
.deckbar__row { display: flex; gap: 14px; align-items: center; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); padding-block: 5px; }
.deckbar__sheet { color: var(--ember); }
.deckbar__keys { margin-left: auto; }
@media (max-width: 720px) { .deckbar__keys { display: none; } }
.deckbar__line { height: 2px; background: var(--rule); }
.deckbar__line span { display: block; height: 100%; width: 0; background: var(--ember); }
html:not(.js) .deckbar { display: none; }

/* Buttons */
.btn { display: inline-block; font-family: var(--mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding: 12px 18px; border: 1px solid var(--ember); border-radius: 2px; background: var(--ember); color: var(--night); cursor: pointer; }
.btn:hover { background: var(--lens); border-color: var(--lens); color: var(--night); }
.btn--small { padding: 8px 12px; font-size: 0.72rem; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--dim); }
.btn--ghost:hover { background: transparent; color: var(--ember); border-color: var(--ember); }
.btn--mark { background: var(--lens); border-color: var(--lens); }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections and inner pages */
.section { padding-block: var(--space); position: relative; }
.section + .section, .scene + .section, .section + .scene { border-top: 1px solid var(--rule); }
.section__head { display: grid; gap: 14px; margin-bottom: clamp(24px, 4vw, 44px); max-width: 62ch; }
.page { padding-block: clamp(40px, 7vw, 84px) var(--space); background: linear-gradient(180deg, var(--night), var(--navy) 420px); }
.page__head { display: grid; gap: 20px; margin-bottom: clamp(28px, 5vw, 52px); }
.page__head h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); max-width: 20ch; }
@media (min-width: 900px) { .margin-rule { border-left: 1px solid var(--rule); padding-left: clamp(22px, 3vw, 40px); } }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(30px, 5vw, 52px); }
.note { border-left: 2px solid var(--ember); padding: 4px 0 4px 16px; max-width: var(--measure); }

/* Light list: the station's entry, set the way a keeper's log sets it */
.lightlist { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin: 0; }
.lightlist b { color: var(--lens); font-weight: 500; }

/* Cards and grids */
.grid { display: grid; gap: clamp(14px, 2.4vw, 22px); }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 720px) and (max-width: 1019px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--sheet); border: 1px solid var(--rule); padding: 22px; display: grid; gap: 10px; align-content: start; }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 1.55rem; line-height: 1.05; }
.card h3 a { text-decoration: none; color: var(--fg); }
.card h3 a:hover { color: var(--ember); }
.card h3 a::after { content: " \2192"; color: var(--ember); }
.card p { font-size: 1rem; }
.tag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); }
.terms { font-family: var(--mono); font-size: 0.72rem; line-height: 1.7; color: var(--dim); }

/* Citation chips */
.cite { font-family: var(--mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.03em; text-decoration: none; color: var(--ember); border: 1px solid rgba(255, 176, 106, 0.55); border-radius: 2px; padding: 1px 6px; white-space: nowrap; vertical-align: 0.14em; margin: 0 5px 0 2px; }
.cite:hover { background: var(--ember); color: var(--night); }

/* Beats */
.beats { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: beat; border-top: 1px solid var(--rule); }
.beats li { counter-increment: beat; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 6px 10px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.beats li::before { content: counter(beat, decimal-leading-zero); font-family: var(--mono); font-size: 0.8rem; color: var(--ember); padding-top: 0.3em; }
.beats strong { font-weight: 600; color: var(--lens); }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); background: var(--sheet); }
table { border-collapse: collapse; width: 100%; min-width: 580px; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 13px 15px; border-bottom: 1px solid var(--rule); }
thead th { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); font-weight: 500; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--lens); }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--rule); max-width: 74ch; }
.faq__item { padding: 20px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; }
.faq__item h2, .faq__item h3 { font-family: var(--body); font-weight: 600; font-size: 1.16rem; letter-spacing: 0; line-height: 1.3; color: var(--lens); }

/* ---------- The deck: hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; background: linear-gradient(180deg, var(--night), var(--navy)); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
html:not(.js) .hero canvas { display: none; }
.hero__inner { position: relative; display: grid; gap: 20px; padding-block: calc(var(--header) + 12vh) 11vh; max-width: 46rem; }
.hero h1 { font-size: clamp(3rem, 9.5vw, 6.6rem); line-height: 0.94; }
.hero .lede { color: #d6cfbf; }
.hint { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }

/* ---------- The deck: scenes ---------- */
.scene { position: relative; }
.stage__tag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember); }
.plate { background: rgba(7, 12, 22, 0.9); border: 1px solid var(--rule); padding: 22px 24px; display: grid; gap: 12px; max-width: 30rem; }
.plate h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.plate .n { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ember); }
.plate p { font-size: 1.04rem; }
.steps { list-style: none; margin: 0; padding: 0; }

/* Without scripts a scene is its plates, read top to bottom. */
html:not(.js) .scene .stage { display: none; }
html:not(.js) .scene--exhibit .stage { display: block; }
html:not(.js) .scene { padding-block: var(--space); border-top: 1px solid var(--rule); }
html:not(.js) .step { padding: 10px var(--gutter); }

.js .scene .stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; background: var(--navy); }
.js .scene .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.js .scene .stage__head { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--header) + 40px); display: grid; gap: 8px; pointer-events: none; }
.js .scene .steps { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100dvh; pointer-events: none; }
.js .scene .step { min-height: 96vh; display: flex; align-items: flex-end; justify-content: center; padding: 0 var(--gutter) 7vh; }
.js .scene .step:first-child { min-height: 100vh; }
.js .scene .step:last-child { padding-bottom: 16vh; }
.js .scene .plate { pointer-events: auto; width: 100%; backdrop-filter: blur(6px); }
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .js .scene .step { align-items: center; justify-content: flex-end; padding: 0 5vw 0 0; }
  .js .scene .plate { width: min(36vw, 30rem); }
}

/* Formula lines beside the picture, as on the graph-paper scrollies */
.fx { display: grid; gap: 2px; font-family: var(--mono); font-size: 0.74rem; color: var(--dim); }
.fx div { opacity: 0; transition: opacity 0.4s ease; }
.fx div.on { opacity: 0.55; }
.fx div.cur { opacity: 1; }
.fx b { color: var(--lens); font-weight: 500; }
.fx .g { margin-left: 10px; }

/* Control bar: a slider the reader can take over */
.palette { position: absolute; left: var(--gutter); bottom: 31vh; display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); background: rgba(7, 12, 22, 0.86); border: 1px solid var(--rule); padding: 9px 13px; opacity: 0; transition: opacity 0.35s ease; z-index: 3; }
.palette.on { opacity: 1; }
.palette output { color: var(--lens); min-width: 1.4em; text-align: right; }
input[type="range"] { accent-color: var(--ember); width: min(46vw, 220px); }
@media (min-width: 900px) and (min-aspect-ratio: 5/4) { .palette { left: 8vw; bottom: 9vh; } }

/* The seven beats, lit one ring at a time */
.beatlist { position: absolute; right: var(--gutter); top: calc(var(--header) + 40px); list-style: none; margin: 0; padding: 0; display: none; gap: 3px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); text-align: right; }
.beatlist li { opacity: 0.28; transition: opacity 0.3s ease, color 0.3s ease; }
.beatlist li.on { opacity: 1; color: var(--lens); }
@media (min-width: 900px) and (min-aspect-ratio: 5/4) { .beatlist { display: grid; right: auto; left: 8vw; top: auto; bottom: 17vh; text-align: left; grid-template-columns: repeat(4, auto); gap: 4px 20px; } }

/* ---------- The exhibit: panels ---------- */
.stage__dom { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: var(--gutter); }
.js .scene--exhibit .stage__dom { position: absolute; inset: calc(var(--header) + 74px) var(--gutter) auto var(--gutter); padding: 0; }
.js .scene--exhibit .panel { display: none; }
.js .scene--exhibit .panel.is-active { display: grid; }
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .js .scene--exhibit .stage__dom { inset: 0 auto 0 7vw; width: min(46vw, 620px); align-content: center; }
}
.panel { margin: 0; background: var(--sheet); border: 1px solid var(--rule); padding: clamp(16px, 3vw, 26px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.panel figcaption { font-size: 0.84rem; color: var(--dim); }
.panel__title { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember); }

.heat { position: relative; height: 96px; }
.heat__track { position: absolute; left: 0; right: 0; top: 40px; height: 14px; background: var(--navy); border: 1px solid var(--rule); }
.heat__band { position: absolute; top: 40px; height: 14px; background: var(--glass); opacity: 0.75; }
.heat__band--hot { background: var(--hot); opacity: 1; }
.heat__tick { position: absolute; top: 34px; width: 2px; height: 26px; background: var(--lens); }
.heat__label { position: absolute; font-size: 0.82rem; line-height: 1.25; white-space: nowrap; }
.heat__label--top { top: 0; }
.heat__label--bottom { top: 66px; }
.heat__label b { font-family: var(--mono); font-weight: 500; color: var(--lens); }
.heat__axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.68rem; color: var(--dim); }

.clock { display: grid; gap: 14px; }
.clock__row { display: grid; gap: 6px; }
.clock__label { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; }
.clock__label b { font-family: var(--mono); font-weight: 500; color: var(--lens); }
.clock__track { height: 18px; background: var(--navy); border: 1px solid var(--rule); }
.clock__fill { height: 100%; background: var(--glass); opacity: 0.8; }
.clock__fill--hot { background: var(--hot); opacity: 1; }
.clock__out { font-family: var(--mono); font-size: 0.78rem; min-height: 1.4em; color: var(--dim); }

.dots svg { display: block; width: 100%; height: auto; color: var(--lens); }
.split { display: grid; gap: 12px; }
@media (min-width: 560px) { .split { grid-template-columns: 1fr 1fr; } }
.stat { border-top: 1px solid var(--ember); padding-top: 8px; }
.stat b { display: block; font-family: var(--display); font-size: 2.1rem; font-weight: 500; line-height: 1.05; color: var(--lens); }
.stat span { font-size: 0.88rem; color: var(--dim); }

.bars { display: grid; gap: 14px; }
.bars__row { display: grid; gap: 6px; }
.bars__label { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; }
.bars__label b { font-family: var(--mono); font-weight: 500; color: var(--lens); }
.bars__bar { height: 22px; background: var(--lens); }
.bars__bar--cut { background: var(--hot); }
.bars__bar--sealed { background: none; border: 1px dashed var(--dim); }

/* ---------- Case types: tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tabs button { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; background: transparent; color: var(--dim); border: 1px solid var(--rule); border-radius: 2px; padding: 9px 12px; cursor: pointer; }
.tabs button:hover { color: var(--lens); border-color: var(--dim); }
.tabs button[aria-selected="true"] { color: var(--night); background: var(--ember); border-color: var(--ember); }
html:not(.js) .tabs { display: none; }
.casetype { background: var(--sheet); border: 1px solid var(--rule); padding: clamp(18px, 3vw, 28px); display: grid; gap: 12px; }
.casetype + .casetype { margin-top: 14px; }
.casetype h2, .casetype h3 { font-family: var(--display); font-weight: 500; font-size: 1.7rem; line-height: 1.05; }
.casetype dl { margin: 0; display: grid; gap: 8px; }
.casetype dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); }
.casetype dd { margin: 0 0 6px; }
@media (min-width: 760px) { .casetype dl { grid-template-columns: 11rem minmax(0, 1fr); gap: 10px 20px; } .casetype dd { margin: 0; } }

/* ---------- Dawn: the ask ---------- */
.dawn { position: relative; min-height: 86vh; display: flex; align-items: center; overflow: hidden; background: linear-gradient(180deg, var(--navy), #1a2136 60%, #3a2a2c); border-top: 1px solid var(--rule); }
.dawn canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
html:not(.js) .dawn canvas { display: none; }
.dawn__inner { position: relative; display: grid; gap: 20px; max-width: 44rem; padding-block: 14vh; }
.dawn h2 { font-size: clamp(2.6rem, 7vw, 4.8rem); }
.dawn .btn--ghost { background: rgba(5, 7, 13, 0.55); border-color: var(--fg); }

/* ---------- Plates after the first use h3 ---------- */
.plate h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 1.95rem); line-height: 1.05; }
.plate h3 em { font-style: italic; color: var(--ember); }

/* ---------- One fact, four ways: the letter, the video, the slide, the score ---------- */
.ill { color: var(--dim); margin-left: 8px; }
.letter { background: #efe9dc; color: #1c1a16; padding: clamp(14px, 3vw, 22px); font-family: Georgia, "Times New Roman", serif; font-size: 0.8rem; line-height: 1.5; display: grid; gap: 8px; }
.letter__head { display: flex; justify-content: space-between; font-size: 0.68rem; color: #6a6355; border-bottom: 1px solid #c9c0ad; padding-bottom: 6px; }
.letter mark { background: #f7d98a; color: inherit; padding: 0 1px; }
.letter__foot { font-size: 0.68rem; color: #5a5448; border-top: 1px solid #c9c0ad; padding-top: 6px; }
.vid { display: grid; gap: 8px; }
.vid__frame { position: relative; height: clamp(170px, 26vh, 300px); background: radial-gradient(ellipse at 50% 38%, #24324c, #05070d 70%); border: 1px solid var(--rule); display: grid; align-items: end; overflow: hidden; }
.vid__frame::before { content: ""; position: absolute; left: 50%; top: 46%; width: 54px; height: 54px; margin: -27px; border: 1px solid var(--fg); border-radius: 50%; opacity: 0.7; }
.vid__frame::after { content: ""; position: absolute; left: 50%; top: 46%; margin: -10px 0 0 -6px; border: 10px solid transparent; border-left: 16px solid var(--fg); border-right: 0; opacity: 0.8; }
.vid__cap { position: relative; margin: 0 auto 12px; padding: 4px 10px; background: rgba(0, 0, 0, 0.72); font-size: 0.86rem; max-width: 90%; text-align: center; }
.vid__bar { height: 4px; background: var(--rule); }
.vid__bar span { display: block; height: 100%; background: var(--hot); }
.vid__time { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.7rem; color: var(--dim); }
.slide { position: relative; min-height: clamp(170px, 26vh, 300px); background: #f4f4f1; color: #16202e; padding: clamp(14px, 4%, 30px); display: grid; align-content: center; gap: 10px; font-family: Helvetica, Arial, sans-serif; }
.slide__title { font-size: clamp(1.05rem, 2.6vw, 1.5rem); font-weight: 700; border-bottom: 3px solid #1f4e8c; padding-bottom: 6px; }
.slide ul { margin: 0; padding-left: 1.1em; display: grid; gap: 5px; font-size: clamp(0.84rem, 2vw, 1.05rem); }
.slide__n { position: absolute; right: 10px; bottom: 6px; font-size: 0.66rem; color: #6c7684; }
.score { min-width: 0; font-size: 0.86rem; }
.score th, .score td { padding: 6px 6px; }
.score thead th { font-size: 0.6rem; letter-spacing: 0.08em; text-align: center; padding-inline: 2px; }
.score thead th:first-child { text-align: left; }
.score tbody th { font-weight: 400; color: var(--fg); line-height: 1.25; }
.score td { text-align: center; font-size: 1rem; line-height: 1; color: var(--dim); }
.score td.y { color: var(--lens); }
.score td.h { color: var(--ember); }
.score td:last-child, .score thead th:last-child { background: rgba(255, 176, 106, 0.08); }
.score-key { display: flex; flex-wrap: wrap; gap: 4px 16px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.score-key b { font-weight: 400; font-size: 0.9rem; }
.score-key .y { color: var(--lens); } .score-key .h { color: var(--ember); }
@media (max-width: 899px) { .js .scene--exhibit .panel figcaption { font-size: 0.78rem; } .js .scene--exhibit .panel { gap: 10px; padding: 14px; } }
/* On portrait screens the plate passes over the panel, so exhibit steps run long:
   the reader gets the panel alone first, then the sentence about it. */
.js .scene--exhibit .step, .js .scene--exhibit .step:first-child { min-height: 132vh; }
@media (min-width: 900px) and (min-aspect-ratio: 5/4) { .js .scene--exhibit .step { min-height: 96vh; } .js .scene--exhibit .step:first-child { min-height: 100vh; } }

/* Fees table fits a phone without sideways scroll */
.fees { min-width: 0; }
@media (max-width: 600px) { .fees th, .fees td { padding: 11px 9px; font-size: 0.94rem; } }

/* ---------- The maker's mark, cut at seven rings ---------- */
.bigmark { width: min(100%, 300px); height: auto; display: block; }
.bigmark .m-lens { stroke-width: 0.9; }
.bigmark .m-beam { stroke-width: 2.2; }
.maker { display: grid; gap: clamp(20px, 4vw, 48px); align-items: center; }
@media (min-width: 820px) { .maker { grid-template-columns: 300px minmax(0, 1fr); } }
.formula { font-family: var(--mono); font-size: 0.78rem; color: var(--dim); }
.formula b { color: var(--lens); font-weight: 500; }

/* CTA band on inner pages */
.cta { background: var(--night); border-top: 1px solid var(--rule); padding-block: clamp(40px, 7vw, 72px); }
.cta__row { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.cta__row > div { display: grid; gap: 10px; max-width: 56ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding-block: 40px 52px; background: var(--night); }
.site-footer__grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer__grid > div { display: grid; gap: 10px; align-content: start; }
.footer-nav { display: grid; gap: 6px; font-size: 0.98rem; align-content: start; }
@media (min-width: 480px) { .footer-nav { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .fx div, .palette, .beatlist li { transition: none; }
}

/* Print: the deck as a leave-behind. Pictures drop out, sheets stay. */
@media print {
  :root { --navy: #fff; --night: #fff; --sheet: #fff; --fg: #111; --dim: #444; --rule: #bbb; --lens: #111; --ember: #8a4a12; --glass: #555; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .site-header, .deckbar, .stage canvas, .hero canvas, .dawn canvas, .palette, .beatlist, .tabs, .hint, .skip { display: none !important; }
  .is-deck .site-header { position: static; }
  .hero, .dawn { min-height: auto; background: none; }
  .hero__inner, .dawn__inner { padding-block: 24pt; }
  .js .scene .stage { position: static; height: auto; background: none; }
  .js .scene .steps { margin-top: 0; }
  .js .scene .step { min-height: 0; padding: 6pt 0; display: block; }
  .js .scene--exhibit .stage__dom { position: static; width: auto; }
  .js .scene--exhibit .panel { display: grid; break-inside: avoid; }
  .plate { background: none; border: 0; border-left: 2pt solid #8a4a12; padding: 0 0 0 10pt; max-width: none; }
  .casetype[hidden] { display: grid !important; }
  .vid__frame { height: 120pt; }
  .scene, .section { break-inside: avoid-page; border: 0; padding-block: 14pt; }
  a { color: #111; }
  .btn { border: 1pt solid #111; background: none; color: #111; }
}
