/*
DIRECTION CONTRACT — The Callboard
THESIS: The site is the backstage callboard of a school theatre and every page
is a document posted for the company. It refuses the category default, a white
docs site with a grey sidebar, and the opposite rut, a playful kids app.
OWN-WORLD: Dark backstage wall, paper documents in real script revision stock
colours (white, blue, pink, yellow, green, goldenrod), gaff tape as the only
ornament, Besley playbill display, Libre Franklin reading text, Courier Prime
typed-notice voice. Recognizable with all content removed.
STORY: A student finds the document for the task they are on, reads exactly
what the examiner wants at each band, and signs off their own checklist.
FIRST VIEWPORT: The stage in darkness. A warm spotlight sweeps a black
stage, footlights glow along the bottom edge, and the show title rises line
by line like a cast entering. Below it a marquee of command verbs runs, then
the callboard itself: the four criteria pinned in their revision colours
inside a gaff-edged frame. Primary action: open your criterion. A two row
ribbon crosses the top of every page: support pages above, the four criteria
as a full width colour strip beneath.
FORM: Backstage callboard, candidate 3 of the grounded list, assigned by seed
0e465a37. Staging: posted-documents grammar, straight sheets for reading.
*/

/* ---------- fonts ---------- */
@font-face { font-family: 'Besley'; src: url('../fonts/besley-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Besley'; src: url('../fonts/besley-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Besley'; src: url('../fonts/besley-700italic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Libre Franklin'; src: url('../fonts/librefranklin-400n.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Libre Franklin'; src: url('../fonts/librefranklin-400i.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Libre Franklin'; src: url('../fonts/librefranklin-500n.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Libre Franklin'; src: url('../fonts/librefranklin-600n.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Libre Franklin'; src: url('../fonts/librefranklin-700n.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('../fonts/courierprime-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('../fonts/courierprime-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --wall: #191512;
  --wall-deep: #120f0c;
  --wall-line: #2c2620;
  --paper: #f9f6ef;
  --paper-shade: #efe9dc;
  --ink: #221d16;
  --ink-soft: #574f40;
  --ink-faint: #6d6455;
  --wall-text: #efe9dd;
  --wall-muted: #b7ac99;
  --tape: #ff5a1e;
  --tape-ink: #1c1712;
  --gaff-white: rgba(244, 240, 230, 0.92);
  --rev-blue: #d9e6f2;
  --rev-blue-deep: #274a66;
  --rev-pink: #f6d6dd;
  --rev-pink-deep: #7c2b40;
  --rev-yellow: #f5e7ac;
  --rev-yellow-deep: #6b5410;
  --rev-green: #d5e7d0;
  --rev-green-deep: #2c5430;
  --rev-gold: #e9c25c;
  --rev-gold-deep: #5c430a;
  --rev-buff: #ead9b8;
  --rev-buff-deep: #5e4a26;
  --display: 'Besley', 'Iowan Old Style', Georgia, serif;
  --body: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --typed: 'Courier Prime', 'Courier New', monospace;
  --rail-w: 248px;
  --sheet-max: 872px;
  --stage-wide: 66rem;
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
[id] { scroll-margin-top: 8.2rem; }
body {
  font-family: var(--body);
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--wall-text);
  background:
    radial-gradient(1100px 480px at 78% -8%, rgba(255, 176, 96, 0.1), transparent 62%),
    radial-gradient(900px 700px at 12% 40%, rgba(120, 96, 72, 0.09), transparent 68%),
    linear-gradient(180deg, #1d1813, #171310 45%, #1b1611);
  background-color: var(--wall);
  min-height: 100vh;
}

::selection { background: var(--tape); color: var(--tape-ink); }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; border-radius: 1px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--tape); color: var(--tape-ink);
  font-family: var(--typed); font-weight: 700; font-size: 0.85rem;
  padding: 0.7rem 1.1rem; text-decoration: none; letter-spacing: 0.06em;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- gaff tape primitives ---------- */
.tape {
  display: inline-block;
  background: var(--tape);
  box-shadow: 0 0 18px -4px rgba(255, 90, 30, 0.55);
  color: var(--tape-ink);
  font-family: var(--typed);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.85rem;
  transform: rotate(-1.2deg);
  clip-path: polygon(1.5% 0%, 100% 2%, 98.8% 100%, 0% 96%);
}
.tape.tape-white { background: var(--gaff-white); color: var(--ink); }
.tape.tape-dark { background: #2b251e; color: var(--wall-text); }

/* ---------- layout: ribbon + full-width stage ---------- */
.rail { display: none; }
.brand {
  display: block; text-decoration: none;
  padding: 0 1.4rem 1.3rem;
}
.brand .brand-kicker {
  font-family: var(--typed); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.24em; color: var(--wall-muted); text-transform: uppercase;
  display: block; margin-bottom: 0.25rem;
}
.brand .brand-name {
  font-family: var(--display); font-weight: 800; font-size: 1.32rem;
  line-height: 1.1; color: var(--wall-text); letter-spacing: 0.01em;
}
.brand .brand-name em { font-style: italic; color: var(--rev-gold); }

.nav-group { margin-top: 1.15rem; }
.nav-group-label {
  font-family: var(--typed); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--wall-muted);
  padding: 0 1.4rem; margin-bottom: 0.4rem;
}
.nav-tabs { list-style: none; }
.nav-tab a {
  position: relative;
  display: flex; align-items: baseline; gap: 0.55rem;
  padding: 0.5rem 1.4rem 0.5rem 1.65rem;
  text-decoration: none;
  font-weight: 500; font-size: 0.92rem; color: var(--wall-text);
  border-left: 4px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.nav-tab a .tab-chip {
  position: absolute; left: 0.55rem; top: 50%;
  width: 0.55rem; height: 1.05rem; transform: translateY(-50%);
  background: var(--chip, transparent);
  border-radius: 1px;
}
.nav-tab a:hover { background: rgba(244, 240, 230, 0.06); }
.nav-tab a[aria-current="page"] {
  background: var(--chip-bg, var(--paper));
  color: var(--chip-ink, var(--ink));
  font-weight: 600;
  border-left-color: var(--tape);
}
.nav-tab a[aria-current="page"] .tab-chip { background: transparent; }
.nav-tab a[aria-current="true"] {
  border-left-color: var(--tape);
  background: rgba(244, 240, 230, 0.07);
  font-weight: 600;
}
.nav-tab .tab-note {
  margin-left: auto; font-family: var(--typed); font-size: 0.78rem;
  color: inherit; opacity: 0.85; letter-spacing: 0.05em;
}
.nav-tab a[aria-current] .tab-note { opacity: 1; }

/* per-section chip colours */
.nav-tab.t-blue   { --chip: var(--rev-blue);   --chip-bg: var(--rev-blue);   --chip-ink: var(--ink); }
.nav-tab.t-pink   { --chip: var(--rev-pink);   --chip-bg: var(--rev-pink);   --chip-ink: var(--ink); }
.nav-tab.t-yellow { --chip: var(--rev-yellow); --chip-bg: var(--rev-yellow); --chip-ink: var(--ink); }
.nav-tab.t-green  { --chip: var(--rev-green);  --chip-bg: var(--rev-green);  --chip-ink: var(--ink); }
.nav-tab.t-gold   { --chip: var(--rev-gold);   --chip-bg: var(--rev-gold);   --chip-ink: var(--ink); }
.nav-tab.t-buff   { --chip: var(--rev-buff);   --chip-bg: var(--rev-buff);   --chip-ink: var(--ink); }
.nav-tab.t-white  { --chip: var(--paper);      --chip-bg: var(--paper);      --chip-ink: var(--ink); }

.rail-foot {
  margin-top: 2rem; padding: 1.1rem 1.4rem 0;
  border-top: 1px solid var(--wall-line);
  font-family: var(--typed); font-size: 0.7rem; line-height: 1.7;
  color: var(--wall-muted); letter-spacing: 0.04em;
}

/* mobile top bar */
.topbar {
  display: none;
  position: sticky; top: 0; z-index: 90;
  background: rgba(18, 15, 12, 0.94);
  border-bottom: 1px solid var(--wall-line);
  padding: 0.7rem 1rem;
  align-items: center; justify-content: space-between; gap: 1rem;
  backdrop-filter: blur(6px);
}
.topbar .brand { padding: 0; }
.topbar .brand .brand-name { font-size: 1.05rem; }
.menu-btn {
  font-family: var(--typed); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--tape); color: var(--tape-ink);
  border: 0; padding: 0.55rem 1rem; cursor: pointer;
  transform: rotate(-1deg);
  clip-path: polygon(1.5% 0%, 100% 3%, 98.5% 100%, 0% 95%);
}

.stage { --stage-pad: 2.4rem; padding: 2.2rem var(--stage-pad) 4.5rem; }
.stage > * { max-width: var(--sheet-max); margin-left: auto; margin-right: auto; }
.stage > .board-frame, .stage > .teaser-row { max-width: max(var(--stage-wide), var(--sheet-max)); }
@media (min-width: 1200px) { :root { --sheet-max: 62rem; } }
@media (min-width: 1500px) { :root { --sheet-max: 68rem; } }
.stage > .full-bleed {
  max-width: none;
  margin-left: calc(-1 * var(--stage-pad));
  margin-right: calc(-1 * var(--stage-pad));
}
.stage-inner { max-width: var(--sheet-max); margin: 0 auto; }

@media (max-width: 1023px) {
  .rail.menu-open {
    display: block;
    position: fixed; inset: 0; z-index: 100;
    width: 100%; max-width: none; max-height: none; height: 100%;
    background: var(--wall-deep);
    border-right: 0;
    padding-top: 4.4rem;
    overflow-y: auto;
  }
  .rail.menu-open .close-menu {
    position: absolute; top: 0.85rem; right: 1rem;
  }
  .topbar { display: flex; }
  .ribbon { display: none; }
  .stage { --stage-pad: 1rem; padding: 1.4rem var(--stage-pad) 3.5rem; }
}
.close-menu { display: none; }
.rail.menu-open .close-menu { display: inline-block; background: var(--gaff-white); color: var(--ink); }
body.menu-locked { overflow: hidden; }

/* ---------- the ribbon ---------- */
.ribbon {
  position: sticky; top: 0; z-index: 90;
}
.ribbon-row1 {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2.4rem;
  background: rgba(18, 15, 12, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--wall-line);
  padding: 0.55rem clamp(1.2rem, 3.5vw, 2.6rem) 0.5rem;
  min-height: 4.4rem;
}
.ribbon-brand {
  font-family: var(--display); font-weight: 800; font-size: 1.16rem;
  color: var(--wall-text); text-decoration: none; letter-spacing: 0.01em;
  white-space: nowrap;
}
.ribbon-brand em { font-style: italic; color: var(--rev-gold); }
.ribbon-links { display: flex; gap: clamp(1.3rem, 3vw, 2.8rem); align-items: stretch; }
.nav-cluster { display: flex; flex-direction: column; gap: 0.28rem; position: relative; }
.nav-cluster + .nav-cluster { padding-left: clamp(1.3rem, 3vw, 2.8rem); }
.nav-cluster + .nav-cluster::before {
  content: ""; position: absolute; left: 0; top: 0.2rem; bottom: 0.2rem;
  width: 1px; background: var(--wall-line);
}
.nav-cluster-label {
  font-family: var(--typed); font-weight: 700; font-size: 0.58rem;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: #6f6555;
}
.nav-cluster-links { display: flex; gap: clamp(0.9rem, 1.7vw, 1.5rem); align-items: baseline; }
.ribbon-links a {
  position: relative;
  font-family: var(--body); font-weight: 600; font-size: 0.88rem;
  letter-spacing: 0.01em;
  color: var(--wall-muted); text-decoration: none;
  padding: 0.12rem 0;
  white-space: nowrap;
  transition: color 0.18s ease;
}
.ribbon-links a:hover { color: var(--wall-text); }
.ribbon-links a[aria-current] { color: var(--rev-gold); }
.ribbon-links a[aria-current]::before {
  content: ""; position: absolute; left: -0.62rem; top: 50%;
  width: 5px; height: 5px; margin-top: -2px; border-radius: 50%;
  background: var(--rev-gold); box-shadow: 0 0 8px 1px var(--rev-gold);
}

.ribbon-crits { display: flex; }
.crit-tab {
  flex: 1 1 0;
  display: flex; align-items: baseline; gap: 0.55rem;
  padding: 0.62rem clamp(0.9rem, 2vw, 1.6rem) 0.56rem;
  text-decoration: none; color: var(--ink);
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  position: relative;
  transition: filter 0.18s ease, transform 0.18s var(--ease-settle);
}
.crit-tab.t-blue { background: var(--rev-blue); }
.crit-tab.t-pink { background: var(--rev-pink); }
.crit-tab.t-yellow { background: var(--rev-yellow); }
.crit-tab.t-green { background: var(--rev-green); }
.crit-tab:hover { filter: brightness(1.06); }
.crit-tab.t-blue { --tab-gel: rgba(217, 230, 242, 0.5); }
.crit-tab.t-pink { --tab-gel: rgba(246, 214, 221, 0.5); }
.crit-tab.t-yellow { --tab-gel: rgba(245, 231, 172, 0.55); }
.crit-tab.t-green { --tab-gel: rgba(213, 231, 208, 0.5); }
.crit-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px;
  background: linear-gradient(to bottom, var(--tab-gel, transparent), transparent);
  opacity: 0; transition: opacity 0.25s ease; pointer-events: none;
}
.crit-tab:hover::after, .crit-tab[aria-current]::after { opacity: 1; }
.crit-tab .crit-letter {
  font-family: var(--display); font-weight: 800; font-size: 1.12rem; line-height: 1;
}
.crit-tab .crit-name {
  font-family: var(--typed); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.crit-tab .crit-max { margin-left: auto; font-family: var(--typed); font-size: 0.76rem; color: rgba(34, 29, 22, 0.72); }
.crit-tab[aria-current]::before {
  content: ""; position: absolute; top: 0.18rem; left: 12%; right: 12%; height: 0.45rem;
  background: var(--tape);
  clip-path: polygon(1% 12%, 100% 0%, 99% 88%, 0% 100%);
}

@media (max-width: 1279px) { .crit-tab .crit-name { letter-spacing: 0.04em; } }
@media (max-width: 1400px) and (min-width: 1024px) {
  .ribbon-links { gap: 1.1rem; }
  .nav-cluster + .nav-cluster { padding-left: 1.1rem; }
  .nav-cluster-links { gap: 0.85rem; }
  .ribbon-links a { font-size: 0.82rem; }
  .ribbon-brand { font-size: 1.05rem; }
}
@media (max-width: 1150px) and (min-width: 1024px) {
  .ribbon-row1 { flex-wrap: wrap; gap: 0.5rem 1.2rem; }
  .ribbon-links { width: 100%; }
}

/* ---------- breadcrumbs ---------- */
.crumbs {
  font-family: var(--typed); font-size: 0.74rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--wall-muted);
  margin-bottom: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center;
  list-style: none;
}
.crumbs a { color: var(--wall-muted); text-decoration: none; }
.crumbs a:hover { color: var(--wall-text); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 0.55rem; opacity: 0.5; }

/* ---------- the posted sheet ---------- */
.sheet {
  position: relative;
  background:
    radial-gradient(120% 60% at 50% -8%, rgba(255, 255, 255, 0.7), transparent 60%),
    var(--paper);
  color: var(--ink);
  padding: clamp(1.6rem, 4vw, 3rem) clamp(1.25rem, 4.5vw, 3.4rem) clamp(2.2rem, 5vw, 3.4rem);
  box-shadow: 0 26px 60px -28px rgba(0, 0, 0, 0.95), 0 6px 18px -8px rgba(0, 0, 0, 0.55), 6px 8px 0 -2px rgba(0, 0, 0, 0.22);
  margin-bottom: 2.4rem;
}
.sheet::before {
  /* tape pinning the sheet to the wall */
  content: "";
  position: absolute; top: 0.35rem; left: 50%;
  width: 7.5rem; height: 1.7rem;
  transform: translateX(-50%) rotate(-1.6deg);
  background: var(--gaff-white);
  clip-path: polygon(2% 8%, 98% 0%, 100% 92%, 0% 100%);
  opacity: 0.96;
  filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.28));
}
.sheet:nth-of-type(2n)::before { left: 22%; width: 6.2rem; transform: translateX(-50%) rotate(2.1deg); }
.sheet:nth-of-type(3n)::before { left: 76%; width: 8.4rem; transform: translateX(-50%) rotate(-0.8deg); }
.sheet.stock-blue   { background: var(--rev-blue); }
.sheet.stock-pink   { background: var(--rev-pink); }
.sheet.stock-yellow { background: var(--rev-yellow); }
.sheet.stock-green  { background: var(--rev-green); }
.sheet.stock-gold   { background: var(--rev-gold); }
.sheet.stock-buff   { background: var(--rev-buff); }

/* ---------- page head (the notice heading) ---------- */
.notice-head { margin-bottom: 2.2rem; }
.notice-head .stamp {
  display: inline-block;
  font-family: var(--typed); font-weight: 700; font-size: 0.76rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stamp-ink, var(--ink-soft));
  border: 2px solid currentColor; padding: 0.22rem 0.7rem;
  transform: rotate(-1.1deg);
  margin-bottom: 1.05rem;
}
.notice-head h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.15rem, 5.4vw, 3.4rem);
  line-height: 1.02; letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 0.9rem;
}
.notice-head h1 em { font-style: italic; }
.notice-head .lede {
  font-size: 1.08rem; line-height: 1.6; color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- headings inside sheets ---------- */
.sheet h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.15;
  margin: 2.6rem 0 1rem;
  text-wrap: balance;
}
.sheet h2:first-child { margin-top: 0; }
.sheet h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 1.18rem; line-height: 1.25;
  margin: 1.9rem 0 0.55rem;
}
.sheet p { margin-bottom: 1.15rem; max-width: 68ch; }
.sheet p:last-child { margin-bottom: 0; }
.sheet .muted { color: var(--ink-soft); }
.sheet strong { font-weight: 700; }
.sheet a { color: var(--ink); text-decoration-color: var(--tape); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.sheet a:hover { background: rgba(255, 90, 30, 0.14); }
.sheet ul, .sheet ol { margin: 0 0 1rem 1.35rem; max-width: 68ch; }
.sheet li { margin-bottom: 0.5rem; }
.sheet li::marker { color: var(--tape); font-weight: 700; }

.kicker {
  font-family: var(--typed); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
  display: block; margin-bottom: 0.35rem;
}

.sheet.stock-gold .kicker, .sheet.stock-gold .notice-head .stamp,
.sheet.stock-gold .signin-head .signin-count, .sheet.stock-gold .muted,
.sheet.stock-gold .lede { color: var(--rev-gold-deep); }

/* ---------- typed notice (criteria quotes) ---------- */
.typed-notice {
  font-family: var(--typed); font-size: 0.96rem; line-height: 1.7;
  background: var(--paper);
  border: 1px solid rgba(34, 29, 22, 0.28);
  padding: 1.05rem 1.5rem 1.1rem;
  margin: 1.6rem 0;
  position: relative;
  max-width: 66ch;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.08);
}
.typed-notice .tape { position: static; display: inline-block; margin: -0.2rem 0 0.7rem; }
.typed-notice blockquote { font-style: normal; margin: 0 0 0.4rem; }
.typed-notice cite { display: block; font-style: normal; font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.06em; }

/* ---------- examiner lens / teacher note callout ---------- */
.calloutbox {
  position: relative;
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(255, 90, 30, 0.07), transparent 62%),
    rgba(34, 29, 22, 0.05);
  border: 1px solid rgba(34, 29, 22, 0.22);
  box-shadow: inset 2px 0 0 rgba(255, 90, 30, 0.5);
  padding: 1.15rem 1.5rem 1.2rem;
  margin: 1.6rem 0;
  max-width: 68ch;
}
.calloutbox > .tape { position: static; display: inline-block; margin: -0.25rem 0 0.7rem; }
.calloutbox p { max-width: none; }
.calloutbox.on-dark {
  background: rgba(244, 240, 230, 0.05);
  border-color: var(--wall-line);
  color: var(--wall-text);
}

/* ---------- mark band ladder (cue sheet) ---------- */
.ladder { margin: 1.5rem 0 2rem; border-top: 2px solid var(--ink); }
.ladder .rung {
  display: grid;
  grid-template-columns: 5.4rem 11rem 1fr;
  gap: 0 1.3rem;
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid rgba(34, 29, 22, 0.25);
  align-items: baseline;
}
.ladder .band {
  font-family: var(--typed); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.04em; white-space: nowrap;
}
.ladder .verb {
  font-family: var(--display); font-weight: 800; font-size: 1.12rem;
}
 .ladder .rung.top-band {
  background: linear-gradient(90deg, rgba(255, 90, 30, 0.16), rgba(255, 90, 30, 0.04) 70%, transparent);
  box-shadow: inset 3px 0 0 var(--tape);
}
.ladder .rung.top-band .verb { color: #a33005; }
.ladder .desc { color: var(--ink); max-width: 58ch; }
@media (max-width: 700px) {
  .ladder .rung { grid-template-columns: 4.6rem 1fr; }
  .ladder .desc { grid-column: 1 / -1; padding-top: 0.25rem; color: var(--ink-soft); }
}

/* ---------- formula chain ---------- */
.formula { list-style: none; margin: 1.5rem 0 2rem; counter-reset: step; max-width: none; }
.formula > li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.4rem 10.5rem 1fr;
  gap: 0 1.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(34, 29, 22, 0.3);
  align-items: baseline;
  margin: 0;
}
.formula > li::before {
  content: counter(step);
  font-family: var(--typed); font-weight: 700; font-size: 0.95rem;
  color: var(--paper);
  background: var(--ink);
  width: 1.7rem; height: 1.7rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transform: translateY(0.2rem);
}
.formula .f-verb { font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.formula .f-what { display: block; font-weight: 600; margin-bottom: 0.15rem; }
.formula .f-why { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 700px) {
  .formula > li { grid-template-columns: 2.3rem 1fr; }
  .formula > li > div { grid-column: 2; }
}

/* ---------- worked example: drafts at three bands ---------- */
.drafts { display: grid; gap: 1.5rem; margin: 1.6rem 0 2.1rem; }
.draft {
  position: relative;
  padding: 1.6rem 1.6rem 1.35rem;
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.55), 4px 5px 0 -1px rgba(0, 0, 0, 0.14);
}
.draft .draft-band {
  display: flex; align-items: baseline; gap: 0.8rem;
  font-family: var(--typed); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.draft .draft-verb { font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: 0; text-transform: none; }
.draft blockquote {
  font-family: var(--typed); font-size: 0.94rem; line-height: 1.68;
  margin: 0 0 0.9rem;
}
.draft .draft-note { font-size: 0.93rem; color: var(--ink-soft); max-width: none; }
.draft.d-low { background: var(--paper); border: 1px solid rgba(34, 29, 22, 0.25); }
.draft.d-mid { background: var(--rev-pink); }
.draft.d-top {
  background: radial-gradient(130% 100% at 8% -10%, rgba(255, 255, 255, 0.75), transparent 62%), rgba(233, 194, 92, 0.3);
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.55);
}
.draft.d-top .draft-band > span:first-child {
  background: var(--rev-gold); color: var(--ink);
  padding: 0.16rem 0.6rem; transform: rotate(-0.8deg);
  clip-path: polygon(1.5% 0%, 100% 2%, 98.8% 100%, 0% 96%);
}
.draft.d-top .draft-verb { color: var(--rev-gold-deep); }
.draft.d-band3 { background: var(--rev-blue); }
.draft.d-top .draft-note, .draft.d-mid .draft-note, .draft.d-band3 .draft-note { color: rgba(34, 29, 22, 0.78); }

/* ---------- adjective banks ---------- */
.bank { margin: 1.4rem 0; }
.bank .bank-words {
  font-family: var(--typed); font-size: 0.9rem; line-height: 2.1;
  color: var(--ink);
}
.bank .bank-words span {
  background: rgba(34, 29, 22, 0.07);
  border: 1px solid rgba(34, 29, 22, 0.2);
  padding: 0.13rem 0.55rem; margin-right: 0.35rem;
  white-space: nowrap;
}

/* ---------- loss list ---------- */
.loss-list { list-style: none; margin: 1.4rem 0 2rem; max-width: none; }
.loss-list > li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2.5rem;
  border-bottom: 1px solid rgba(34, 29, 22, 0.2);
  max-width: 70ch;
  margin: 0;
}
.loss-list > li::before {
  content: "✕";
  position: absolute; left: 0.35rem; top: 0.78rem;
  font-family: var(--typed); font-weight: 700; font-size: 1.05rem;
  color: #a33005;
}

/* ---------- sign-in sheet (checklist) ---------- */
.signin { margin: 1.5rem 0 2.2rem; border: 2px solid var(--ink); background: var(--paper); box-shadow: 5px 6px 0 rgba(0,0,0,0.16); }
.signin-head {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: baseline; justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  padding: 0.8rem 1.2rem;
  background: rgba(34, 29, 22, 0.05);
}
.signin-head .signin-title { font-family: var(--typed); font-weight: 700; font-size: 0.84rem; letter-spacing: 0.16em; text-transform: uppercase; }
.signin-head .signin-count { font-family: var(--typed); font-size: 0.8rem; color: var(--ink-soft); }
.signin ul { list-style: none; margin: 0; max-width: none; }
.signin li { margin: 0; border-bottom: 1px solid rgba(34, 29, 22, 0.22); }
.signin li:last-child { border-bottom: 0; }
.signin label {
  display: grid; grid-template-columns: 2.9rem 1fr; align-items: start;
  gap: 0.9rem; padding: 0.75rem 1.2rem 0.75rem 0.85rem;
  cursor: pointer; position: relative;
}
.signin label:hover { background: rgba(255, 90, 30, 0.07); }
.signin input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 1.9rem; height: 1.9rem; margin-top: 0.1rem;
  border: 2px solid var(--ink); background: var(--paper);
  cursor: pointer; position: relative;
  justify-self: center;
}
.signin input[type="checkbox"]:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; }
.signin input[type="checkbox"]::after {
  content: "";
  position: absolute; inset: -4px;
  background:
    linear-gradient(45deg, transparent 44%, var(--tape) 44%, var(--tape) 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--tape) 44%, var(--tape) 56%, transparent 56%);
  opacity: 0; transform: scale(0.5) rotate(-8deg);
  transition: opacity 0.18s ease, transform 0.24s var(--ease-settle);
}
.signin input[type="checkbox"]:checked::after { opacity: 1; transform: scale(1) rotate(0deg); }
.signin li:has(input:checked) .signin-text { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: rgba(34,29,22,0.4); }

/* ---------- criterion pages, IBDP reading pattern ---------- */
.runrail {
  position: sticky; top: 7.4rem; z-index: 40;
  margin: 0 0 2rem; padding: 0.55rem 0;
  background: rgba(23, 19, 16, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wall-line);
}
.runrail ul { display: flex; gap: 0.4rem; list-style: none; margin: 0; overflow-x: auto; padding: 0.15rem 0; scrollbar-width: none; }
.runrail ul::-webkit-scrollbar { display: none; }
.runrail li { flex: none; margin: 0; }
.runrail a {
  display: block; text-decoration: none; white-space: nowrap;
  font-family: var(--typed); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.08em;
  color: var(--wall-muted); padding: 0.44rem 0.95rem;
  border: 1px solid var(--wall-line); border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.25s ease, text-shadow 0.25s ease, transform 0.2s var(--ease-settle);
}
.runrail a:hover, .runrail a:focus-visible {
  color: var(--gel, var(--rev-gold));
  border-color: var(--gel, var(--rev-gold));
  background: color-mix(in srgb, var(--gel, #e9c25c) 10%, transparent);
  text-shadow: 0 0 12px color-mix(in srgb, var(--gel, #e9c25c) 75%, transparent);
  transform: translateY(-1px);
  box-shadow:
    0 0 20px -2px color-mix(in srgb, var(--gel, #e9c25c) 70%, transparent),
    0 0 48px -12px color-mix(in srgb, var(--gel, #e9c25c) 60%, transparent),
    inset 0 0 14px -6px color-mix(in srgb, var(--gel, #e9c25c) 80%, transparent);
}

@media (max-width: 1023px) { .runrail { top: 3.4rem; } }

.crit { margin: 3.4rem 0; }
.crit-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.2rem; }
.crit-tag {
  font-family: var(--typed); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em;
  color: var(--ink); background: var(--gel, var(--rev-gold));
  padding: 0.28rem 0.62rem; flex: none;
  clip-path: polygon(2% 8%, 100% 0%, 98% 92%, 0% 100%);
}
.crit-head h3 {
  font-family: var(--display); font-weight: 800; color: var(--wall-text);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem); line-height: 1.18; margin: 0;
}
.lens {
  border: 1px solid var(--wall-line); border-radius: 4px;
  background: rgba(244, 240, 230, 0.04);
  padding: 1.1rem 1.35rem; margin-bottom: 1.6rem;
}
.lens-tag {
  font-family: var(--typed); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gel, var(--rev-gold)); display: block; margin-bottom: 0.4rem;
}
.lens p { color: var(--wall-text); margin: 0; max-width: 62ch; }
.lens b { color: var(--gel, var(--rev-gold)); font-weight: 600; }
.step-label {
  font-family: var(--typed); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--wall-muted); display: block; margin: 1.8rem 0 0.7rem;
}
.steps { list-style: none; counter-reset: step; max-width: 46rem; margin: 0; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 0.55rem 0 0.55rem 2.7rem; margin: 0 0 0.5rem;
}
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0.5rem;
  width: 1.75rem; height: 1.75rem; display: flex; align-items: center; justify-content: center;
  font-family: var(--typed); font-weight: 700; font-size: 0.85rem;
  color: var(--wall-text); border: 1px solid var(--wall-line); border-radius: 50%;
}
.steps .do { color: var(--wall-text); font-size: 1rem; line-height: 1.62; }
.steps .do b { color: var(--gel, var(--rev-gold)); font-weight: 600; }
.evid-stack { display: grid; gap: 1.1rem; margin-top: 0.6rem; }
.evid {
  background: var(--paper); color: var(--ink);
  padding: 1.35rem 1.5rem 1.25rem; margin: 0;
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.85), 3px 4px 0 -1px rgba(0, 0, 0, 0.16);
}
.evid-head { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: baseline; margin-bottom: 0.7rem; }
.evid-tag {
  font-family: var(--typed); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.12em;
  color: var(--paper); background: var(--ink); padding: 0.2rem 0.5rem;
}
.evid-src { font-family: var(--typed); font-size: 0.75rem; color: var(--ink-soft); letter-spacing: 0.04em; }
.evid blockquote { font-size: 1rem; line-height: 1.66; color: var(--ink); margin: 0; }
.markcall {
  margin-top: 1.5rem; display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 1.1rem; align-items: start;
  border: 1px solid var(--wall-line); border-radius: 4px;
  background: linear-gradient(100deg, rgba(233, 194, 92, 0.07), transparent 60%), #14100c;
  padding: 1.1rem 1.3rem;
}
.markcall .band {
  font-family: var(--typed); font-weight: 700; font-size: 0.82rem;
  color: #ffd98a; white-space: nowrap; text-shadow: 0 0 16px rgba(255, 216, 140, 0.45);
}
.markcall .why { color: var(--wall-muted); font-size: 0.96rem; margin: 0; }
@media (max-width: 700px) {
  .markcall { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .markcall .band { white-space: normal; }
  .crit-head { flex-direction: column; gap: 0.55rem; align-items: flex-start; }
}

/* ---------- the bill: what are you working on ---------- */
.bill { border-top: 1px solid var(--wall-line); margin: 1.6rem 0 0; }
.bill-row {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 1.4rem; align-items: center;
  padding: 1.7rem 0.9rem;
  border-bottom: 1px solid var(--wall-line);
  text-decoration: none; position: relative;
  transition: background-color 0.22s ease;
}
.bill-row::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(460px 150px at var(--mx, 18%) var(--my, 50%), var(--gel-glow, rgba(233, 194, 92, 0.14)), transparent 70%);
  opacity: 0; transition: opacity 0.3s ease;
}
.bill-row:hover::before, .bill-row:focus-visible::before { opacity: 1; }
.bill-row:hover, .bill-row:focus-visible { background: rgba(244, 240, 230, 0.03); }
.geldot {
  width: 11px; height: 11px; flex: none; border-radius: 2px;
  background: var(--gel, var(--rev-gold));
  box-shadow: 0 0 14px 2px var(--gel, var(--rev-gold));
}
.bill-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.08;
  color: var(--wall-text); display: flex; align-items: center; gap: 0.85rem;
  transition: color 0.22s ease; margin: 0;
}
.bill-row:hover .bill-title { color: var(--gel, var(--rev-gold)); }
.bill-letter { font-size: 0.7em; opacity: 0.65; }
.bill-sub {
  margin: 0.4rem 0 0; font-family: var(--typed); font-size: 0.76rem;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--gel, var(--wall-muted));
}
.bill-desc { font-size: 0.97rem; color: var(--wall-muted); line-height: 1.6; margin: 0; }
.bill-arrow { color: var(--wall-muted); font-size: 1.3rem; transition: transform 0.24s var(--ease-settle), color 0.2s ease; }
.bill-row:hover .bill-arrow { color: var(--gel, var(--rev-gold)); transform: translateX(5px); }
@media (max-width: 860px) {
  .bill-row { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; padding: 1.4rem 0.4rem; }
  .bill-arrow { justify-self: start; }
}

/* ---------- the climb: command terms grow with the scroll ---------- */
.climb {
  border-block: 1px solid var(--wall-line);
  background: linear-gradient(180deg, #14100c, #191512);
  margin: 3rem 0;
}
.climb-head { padding: clamp(2.6rem, 7vh, 4rem) var(--stage-pad) 0.6rem; max-width: var(--sheet-max); margin: 0 auto; }
.climb-head h2 {
  font-family: var(--display); font-weight: 800; color: var(--wall-text);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -0.01em;
}
.climb-head p { margin-top: 0.8rem; color: var(--wall-muted); max-width: 58ch; }
.climb-track { height: 340vh; }
.climb-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.climb-spot {
  position: absolute; inset: -20%;
  background: radial-gradient(42% 56% at 38% 46%, rgba(255, 214, 150, calc(0.05 + var(--p, 0) * 0.24)), transparent 72%);
  mix-blend-mode: screen; transition: background 0.4s ease;
}
.climb-inner {
  position: relative; width: 100%; max-width: var(--sheet-max); margin: 0 auto;
  padding: 0 var(--stage-pad);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center;
}
.climb-words { position: relative; min-height: 17rem; }
.climb-word {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(34px) scale(0.96);
  transition: opacity 0.55s ease, transform 0.65s var(--ease-settle);
  pointer-events: none;
}
.climb-word .cband { font-family: var(--typed); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.22em; color: var(--wall-muted); }
.climb-word .cverb { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: -0.02em; margin-top: 0.4rem; }
.climb-word .cdefn { margin-top: 1rem; color: var(--wall-muted); max-width: 34rem; font-size: 1.04rem; }
.climb-word.s1 .cverb { font-size: clamp(2.6rem, 6vw, 4rem); color: #8f8270; }
.climb-word.s2 .cverb { font-size: clamp(3.2rem, 8vw, 5.4rem); color: #ab9c82; }
.climb-word.s3 .cverb { font-size: clamp(3.9rem, 10vw, 7rem); color: #d9c58f; }
.climb-word.s4 .cverb {
  font-size: clamp(4.4rem, 12vw, 8.6rem); color: #ffd98a;
  text-shadow: 0 0 34px rgba(255, 216, 140, 0.5), 0 0 90px rgba(255, 198, 112, 0.3);
}
.climb-word.s4 .cdefn { color: var(--wall-text); }
[data-stage="1"] .climb-word.s1, [data-stage="2"] .climb-word.s2,
[data-stage="3"] .climb-word.s3, [data-stage="4"] .climb-word.s4 { opacity: 1; transform: none; }
[data-stage="2"] .climb-word.s1, [data-stage="3"] .climb-word.s2,
[data-stage="4"] .climb-word.s3 { opacity: 0; transform: translateY(-30px) scale(1.02); }
.climb-bank { display: flex; gap: 1rem; align-items: flex-end; height: 17rem; padding-bottom: 0.4rem; margin-right: clamp(0rem, 5vw, 5rem); }
.climb-bank .cfader { width: 20px; height: 100%; border-radius: 4px; background: rgba(244, 240, 230, 0.07); position: relative; overflow: hidden; }
.climb-bank .cfader span {
  position: absolute; left: 0; right: 0; bottom: 0; border-radius: 3px;
  height: var(--h, 25%); background: #6d6250;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.7s var(--ease-settle), background 0.4s ease, box-shadow 0.4s ease;
}
.cfader.f1 span { --h: 25%; } .cfader.f2 span { --h: 50%; }
.cfader.f3 span { --h: 75%; } .cfader.f4 span { --h: 100%; }
[data-stage] .cfader span { transform: scaleY(1); }
[data-stage="4"] .cfader.f4 span { background: #ffd98a; box-shadow: 0 0 20px rgba(255, 216, 140, 0.6); }
[data-stage="3"] .cfader.f3 span, [data-stage="4"] .cfader.f3 span { background: #d9c58f; }
.climb-fallback { max-width: var(--sheet-max); margin: 0 auto; padding: 0 var(--stage-pad) 2.4rem; }
.climb-fallback .ladder .desc, .climb-fallback .ladder .verb, .climb-fallback .ladder .band { color: var(--wall-text); }
.climb-fallback .ladder { border-top-color: var(--wall-line); }
.climb-fallback .ladder .rung { border-bottom-color: var(--wall-line); }
@media (max-width: 860px) {
  .climb-inner { grid-template-columns: minmax(0, 1fr); }
  .climb-bank { display: none; }
  .climb-track { height: 300vh; }
}

/* ---------- pinned notice cards (home board) ---------- */
.board-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.7rem;
  margin: 1.8rem 0 2.4rem;
}
@media (max-width: 760px) { .board-grid { grid-template-columns: 1fr; } }
.pinned {
  position: relative;
  display: block; text-decoration: none;
  color: var(--ink);
  padding: 1.55rem 1.5rem 1.3rem;
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.9), 5px 7px 0 -2px rgba(0, 0, 0, 0.25);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.28s var(--ease-settle), box-shadow 0.28s ease;
}
.pinned::before {
  content: "";
  position: absolute; top: 0.3rem; left: 50%;
  width: 5.2rem; height: 1.4rem;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--gaff-white);
  clip-path: polygon(2% 8%, 98% 0%, 100% 92%, 0% 100%);
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.28));
}
.board-grid > .pinned:nth-child(2)::before { left: 26%; width: 4.4rem; transform: translateX(-50%) rotate(1.8deg); }
.board-grid > .pinned:nth-child(3)::before { left: 72%; width: 6rem; transform: translateX(-50%) rotate(-1deg); }
.board-grid > .pinned:nth-child(4)::before { width: 4.8rem; transform: translateX(-50%) rotate(2.4deg); }
.pinned:hover, .pinned:focus-visible { transform: rotate(0deg) translateY(-4px); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.95), 0 0 30px -6px var(--gel-glow, rgba(233, 194, 92, 0.28)), 6px 9px 0 -2px rgba(0, 0, 0, 0.28); }
.pinned .pin-kicker {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem;
  font-family: var(--typed); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(34, 29, 22, 0.72);
  margin-bottom: 0.5rem;
}
.pinned .pin-max { border: 1.5px solid currentColor; padding: 0.08rem 0.45rem; transform: rotate(1.6deg); }
.pinned h3 { font-family: var(--display); font-weight: 800; font-size: 1.62rem; margin: 0 0 0.45rem; line-height: 1.08; }
.pinned .pin-lede { font-size: 0.95rem; color: rgba(34, 29, 22, 0.8); margin-bottom: 0.85rem; max-width: none; }
.pinned .pin-verbs {
  font-family: var(--typed); font-size: 0.82rem; letter-spacing: 0.02em;
  color: rgba(34, 29, 22, 0.85);
  border-top: 1px solid rgba(34, 29, 22, 0.3); padding-top: 0.65rem;
  display: flex; justify-content: space-between; align-items: center; gap: 0.6rem;
}
.pinned .pin-verbs .arrow { font-size: 1rem; }
.pinned.stock-blue { background: var(--rev-blue); --gel-glow: rgba(217, 230, 242, 0.3); }
.pinned.stock-pink { background: var(--rev-pink); --gel-glow: rgba(246, 214, 221, 0.3); }
.pinned.stock-yellow { background: var(--rev-yellow); --gel-glow: rgba(245, 231, 172, 0.32); }
.pinned.stock-green { background: var(--rev-green); --gel-glow: rgba(213, 231, 208, 0.3); }
.pinned.stock-gold { background: var(--rev-gold); --gel-glow: rgba(233, 194, 92, 0.36); }
.pinned.stock-buff { background: var(--rev-buff); }
.pinned.stock-white { background: var(--paper); }

.board-frame {
  position: relative;
  border: 2px solid #382e23;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 0 34px rgba(0, 0, 0, 0.34);
  padding: 1.9rem 1.7rem 0.4rem;
  margin: 1.8rem 0 2.4rem;
}
.board-frame::before, .board-frame::after {
  content: "";
  position: absolute; top: 0.3rem; width: 4.6rem; height: 1.5rem;
  background: var(--gaff-white);
  clip-path: polygon(2% 8%, 98% 0%, 100% 92%, 0% 100%);
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
}
.board-frame::before { left: 8%; transform: rotate(-2.4deg); }
.board-frame::after { right: 8%; transform: rotate(1.8deg); }
.board-frame .board-grid { margin: 0 0 1.5rem; }
.board-frame .board-label {
  font-family: var(--typed); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--wall-muted);
  text-align: center; padding-bottom: 1rem;
}

/* ---------- info table ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; }
table.docket { border-collapse: collapse; width: 100%; min-width: 540px; }
table.docket caption { text-align: left; font-family: var(--typed); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 0.6rem; }
table.docket th, table.docket td {
  text-align: left; padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(34, 29, 22, 0.25);
  vertical-align: top; font-size: 0.95rem;
}
table.docket thead th {
  font-family: var(--typed); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
}
table.docket td:first-child { font-family: var(--typed); font-weight: 700; white-space: nowrap; }

/* ---------- definition grid (glossary, slots) ---------- */
.defs { margin: 1.3rem 0 2rem; border-top: 2px solid var(--ink); max-width: none; }
.defs > div {
  display: grid; grid-template-columns: 12.5rem 1fr; gap: 0 1.4rem;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid rgba(34, 29, 22, 0.22);
}
.defs dt { font-family: var(--display); font-weight: 700; font-size: 1.02rem; }
.defs dd { margin: 0; color: var(--ink); font-size: 0.96rem; max-width: 58ch; }
.mnem { color: #a33005; font-weight: 800; }
.defs dd .band-tag { font-family: var(--typed); font-size: 0.78rem; color: var(--ink-soft); display: block; margin-top: 0.2rem; }
@media (max-width: 700px) {
  .defs > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---------- style shift cards (roles page) ---------- */
.style-shift { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.3rem 0 1.9rem; }
@media (max-width: 700px) { .style-shift { grid-template-columns: 1fr; } }
.style-shift .shift {
  border: 1px solid rgba(34, 29, 22, 0.28);
  background: rgba(255, 255, 255, 0.45);
  padding: 1rem 1.1rem;
}
.style-shift .shift h4, .style-shift .shift h3 { font-family: var(--display); font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; }
.style-shift .shift h3 { margin-top: 0; }
.style-shift .shift p { font-size: 0.92rem; color: var(--ink); margin: 0; max-width: none; }

.exemplar-embed {
  background:
    radial-gradient(120% 60% at 50% -8%, rgba(255, 255, 255, 0.7), transparent 60%),
    var(--paper);
  box-shadow: 0 28px 64px -28px rgba(0, 0, 0, 0.95), 6px 8px 0 -2px rgba(0, 0, 0, 0.2);
  border-top: 3px solid var(--rev-gold);
}
.exemplar-embed .kicker { color: var(--rev-gold-deep); }
/* the student's own writing, set as a typed submission */
.exemplar-embed .ex-para {
  color: var(--ink);
  border-left: 1px solid rgba(34, 29, 22, 0.16);
  padding-left: 1.1rem;
  max-width: 68ch;
}
.ex-sec {
  display: flex; align-items: baseline; gap: 0.7rem;
  border-top: 1px solid rgba(34, 29, 22, 0.28); padding-top: 1rem;
}
.exemplar-embed .annotation {
  background: rgba(34, 29, 22, 0.045);
  box-shadow: none;
  margin-left: 1.1rem;
}
.exemplar-embed .annotation::before { display: none; }
/* the examiner's note reads as a taped label on the page */
.annotation .ann-label {
  display: inline-block;
  padding: 0.22rem 0.72rem;
  color: var(--ink);
  transform: rotate(-0.8deg);
  clip-path: polygon(1.5% 0%, 100% 2%, 98.8% 100%, 0% 96%);
  box-shadow: 0 0 16px -6px rgba(0, 0, 0, 0.4);
}
.annotation.ann-top .ann-label { background: var(--rev-gold); }
.annotation.ann-mid .ann-label { background: var(--rev-blue); }
.annotation.ann-watch .ann-label { background: var(--rev-pink); }
.ex-key {
  font-family: var(--typed); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.1em;
  color: var(--ink-soft); border: 1px solid rgba(34, 29, 22, 0.3);
  padding: 0.14rem 0.5rem;
}

/* ---------- exemplar annotations ---------- */
.ex-para { max-width: 70ch; }
.annotation {
  position: relative;
  margin: 1.1rem 0 1.5rem;
  padding: 1.1rem 1.2rem 0.95rem;
  max-width: 62ch;
  font-size: 0.93rem;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.5), 3px 4px 0 -1px rgba(0, 0, 0, 0.12);
}
.annotation .ann-label {
  display: block;
  font-family: var(--typed); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.annotation p { margin: 0; max-width: none; overflow-wrap: anywhere; }
.annotation.ann-top { background: rgba(233, 194, 92, 0.16); }
.annotation.ann-mid { background: rgba(217, 230, 242, 0.34); }
.annotation.ann-watch { background: rgba(246, 214, 221, 0.38); }
.annotation::before {
  content: "";
  position: absolute; top: 0.3rem; left: 1.1rem;
  width: 3.4rem; height: 1.15rem;
  transform: rotate(-2.2deg);
  background: var(--gaff-white);
  clip-path: polygon(2% 8%, 98% 0%, 100% 92%, 0% 100%);
}

/* exemplar meta header */
.ex-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem 1.6rem;
  margin: 1.4rem 0 0.4rem;
}
@media (max-width: 760px) { .ex-meta { grid-template-columns: 1fr 1fr; } }
.ex-meta .m { border-top: 2px solid var(--ink); padding-top: 0.45rem; }
.ex-meta .m .kicker { margin-bottom: 0.1rem; }
.ex-meta .m p { font-size: 0.93rem; margin: 0; max-width: none; }

/* exemplar section jump list */
.ex-toc { list-style: none; margin: 1.2rem 0 0.4rem; max-width: none; column-gap: 2.4rem; }
@media (min-width: 760px) { .ex-toc { columns: 2; } }
.ex-toc li { break-inside: avoid; margin-bottom: 0.45rem; }
.ex-toc a { font-size: 0.93rem; text-decoration: none; font-weight: 600; }
.ex-toc a:hover { background: rgba(255, 90, 30, 0.14); }
.ex-toc .typed { font-family: var(--typed); font-weight: 700; font-size: 0.78rem; margin-right: 0.4rem; }

/* ---------- next / prev flow ---------- */
.flow-links {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  margin-top: 0.5rem;
}
.flow-links a {
  display: inline-block; text-decoration: none;
  font-family: var(--typed); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--tape); color: var(--tape-ink);
  padding: 0.7rem 1.2rem;
  transform: rotate(-0.8deg);
  clip-path: polygon(1% 0%, 100% 4%, 99% 100%, 0% 94%);
  transition: transform 0.2s var(--ease-settle);
}
.flow-links a:hover { transform: rotate(0deg) translateY(-2px); }
.flow-links a.quiet { background: var(--gaff-white); color: var(--ink); }

/* ---------- grade calculator ---------- */
.gradecalc {
  border: 2px solid var(--ink);
  background:
    radial-gradient(900px 320px at 50% 0%, rgba(233, 194, 92, 0.07), transparent 72%),
    linear-gradient(180deg, #1b1510, #14100c);
  color: var(--wall-text);
  padding: clamp(1.4rem, 3.5vw, 2.3rem); margin: 2.2rem 0;
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.2);
}
.gc-result {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.2rem, 4vw, 2.6rem);
  align-items: center; padding: 1.3rem 1.4rem; margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid #3a3128; border-radius: 4px;
}
@media (max-width: 620px) { .gc-result { grid-template-columns: 1fr; text-align: center; } }
.gc-big { text-align: center; }
.gc-biggrade {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(4rem, 10vw, 6.2rem); line-height: 1; letter-spacing: -0.03em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.gc-biggrade[data-g="1"] { color: #5f7fb5; text-shadow: 0 0 22px rgba(95, 127, 181, 0.35); }
.gc-biggrade[data-g="2"] { color: #7d86c6; text-shadow: 0 0 22px rgba(125, 134, 198, 0.35); }
.gc-biggrade[data-g="3"] { color: #b57bb0; text-shadow: 0 0 24px rgba(181, 123, 176, 0.35); }
.gc-biggrade[data-g="4"] { color: #e08bab; text-shadow: 0 0 26px rgba(224, 139, 171, 0.4); }
.gc-biggrade[data-g="5"] { color: #f0a35f; text-shadow: 0 0 28px rgba(240, 163, 95, 0.45); }
.gc-biggrade[data-g="6"] { color: #e9c25c; text-shadow: 0 0 32px rgba(233, 194, 92, 0.5); }
.gc-biggrade[data-g="7"] { color: #ffe9bd; text-shadow: 0 0 40px rgba(255, 233, 189, 0.75), 0 0 90px rgba(233, 194, 92, 0.4); }
.gc-biglabel {
  display: block; margin-top: 0.4rem; font-family: var(--typed); font-weight: 700;
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wall-muted);
}
.gc-pct { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--wall-text); }
.gc-pct small {
  font-family: var(--typed); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--wall-muted); margin-left: 0.55rem;
}
.gc-scale {
  position: relative; height: 14px; border-radius: 4px; margin: 0.6rem 0 0.55rem;
  background: rgba(255, 255, 255, 0.07); overflow: hidden;
}
.gc-scale-fill {
  position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 4px;
  transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, #5f7fb5 0%, #b57bb0 28%, #e08bab 45%, #f0a35f 65%, #e9c25c 82%, #ffe9bd 100%);
  transition: transform 0.34s var(--ease-settle);
  box-shadow: 0 0 18px rgba(233, 194, 92, 0.3);
}
.gc-scale-marks { position: absolute; inset: 0; }
.gc-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(10, 8, 6, 0.9); }
.gc-next { font-size: 0.92rem; color: var(--wall-muted); max-width: none; }
.gc-rows { display: grid; gap: 0.55rem; }
.gc-row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) auto;
  gap: 1.1rem; align-items: center;
  border: 1px solid #3a3128;
  border-radius: 4px; padding: 0.78rem 1rem;
  box-shadow: inset 3px 0 0 var(--gel, var(--rev-gold)), inset 0 0 30px -18px var(--gel, var(--rev-gold));
  background: linear-gradient(90deg, var(--gel-glow, transparent), transparent 45%);
}
@media (max-width: 760px) {
  .gc-row { grid-template-columns: minmax(0, 1fr); gap: 0.55rem; }
  .gc-out { justify-self: start; }
}
.gc-head label { display: block; font-weight: 600; color: var(--wall-text); font-size: 0.98rem; }
.gc-weight { font-family: var(--typed); font-size: 0.7rem; letter-spacing: 0.05em; color: var(--gel, var(--wall-muted)); }
.gc-control { display: flex; align-items: center; gap: 0.8rem; }
.gc-control input[type="range"] { flex: 1; accent-color: var(--gel, var(--rev-gold)); cursor: pointer; height: 1.4rem; }
.gc-control input[type="number"] {
  width: 4.2rem; background: rgba(0, 0, 0, 0.35); color: var(--wall-text);
  border: 1px solid #3a3128; border-radius: 3px; padding: 0.4rem 0.5rem;
  font-family: var(--typed); font-size: 0.95rem; text-align: center;
}
.gc-control input[type="number"]:focus { border-color: var(--gel, var(--rev-gold)); outline: none; }
.gc-out { display: flex; align-items: center; gap: 0.8rem; justify-self: end; }
.gc-verb {
  font-family: var(--typed); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: #14100c; background: var(--gel, var(--rev-gold));
  padding: 0.3rem 0.7rem;
  clip-path: polygon(2% 10%, 100% 0%, 98% 90%, 0% 100%);
  white-space: nowrap;
}
.gc-verb:empty { visibility: hidden; }
.gc-done { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; font-family: var(--typed);
  font-weight: 700; font-size: 0.68rem; letter-spacing: 0.1em; color: var(--wall-muted); text-transform: uppercase; }
.gc-done input { width: 1rem; height: 1rem; accent-color: var(--gel, var(--rev-gold)); cursor: pointer; }
.gc-done input:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; }
.gc-row.is-done .gc-done { color: var(--gel, var(--rev-gold)); }
.gc-target { margin-top: 1.7rem; padding-top: 1.5rem; border-top: 1px solid #3a3128; }
.gc-target-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.gc-target-head label { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--wall-text); }
.gc-target-head select {
  background: rgba(0, 0, 0, 0.35); color: #ffe9bd; border: 1px solid var(--rev-gold);
  border-radius: 4px; padding: 0.35rem 0.7rem; font-family: var(--display);
  font-weight: 800; font-size: 1.25rem; cursor: pointer;
}
.gc-hint { font-size: 0.88rem; color: var(--wall-muted); margin-top: 0.75rem; max-width: 64ch; }
.gc-hint strong { color: var(--rev-gold); font-weight: 600; }
.gc-advice { margin-top: 0.9rem; color: var(--wall-text); max-width: 68ch; }
.gc-needs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.7rem; margin-top: 1.1rem; }
.gc-need {
  border: 1px solid #3a3128; border-top: 2px solid var(--rev-gold);
  border-radius: 4px; padding: 0.75rem 0.95rem; display: grid; gap: 0.25rem;
  background: rgba(233, 194, 92, 0.05);
}
.gc-need strong { font-size: 0.92rem; color: var(--wall-text); font-weight: 600; }
.gc-need span { font-family: var(--typed); font-size: 0.86rem; color: var(--rev-gold); }
.gc-need span em { color: var(--wall-muted); font-style: normal; font-size: 0.78rem; }
.gc-need.impossible { border-top-color: #d5483a; background: rgba(213, 72, 58, 0.08); }

/* ---------- footer ---------- */
.site-foot {
  margin-top: 1rem;
  color: var(--wall-muted);
  font-family: var(--typed); font-size: 0.74rem; letter-spacing: 0.06em; line-height: 1.9;
}
.site-foot a { color: var(--wall-muted); }
.site-foot a:hover { color: var(--wall-text); }

/* ---------- the stage hero (home) ---------- */
.hero {
  position: relative;
  min-height: min(86svh, 56rem);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(4rem, 10vh, 7rem) var(--stage-pad) clamp(5rem, 12vh, 8rem);
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 108%, #241c14 0%, transparent 55%), var(--wall-deep);
}
.hero-words { position: absolute; inset: 0; pointer-events: none; }
.hero-words span {
  position: absolute;
  font-family: var(--typed); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em;
  white-space: nowrap;
  color: rgba(244, 240, 230, 0.06);
  transform: rotate(var(--r, 0deg));
}
.hero-words span.b { color: rgba(233, 194, 92, 0.09); }
@media (max-width: 760px) {
  .hero-words span { font-size: 0.85rem !important; }
  .hero-words span:nth-child(2n) { display: none; }
}

.spot { position: absolute; inset: 0; pointer-events: none; }
.spot-fixture {
  position: absolute; top: 0; left: var(--spot-x, 62%);
  width: 3rem; height: 1.3rem;
  transform: translateX(-50%);
  background: #0b0906;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 2px 20px 5px rgba(255, 216, 150, 0.5), inset 0 -3px 5px rgba(255, 226, 170, 0.85);
}
.spot-cone {
  position: absolute; top: 1rem; left: var(--spot-x, 62%); bottom: 0;
  width: min(58rem, 70vw);
  transform: translateX(-50%);
  transform-origin: 50% 0;
  background: linear-gradient(to bottom, rgba(255, 230, 185, 0.34), rgba(255, 216, 150, 0.1) 65%, rgba(255, 216, 150, 0.02));
  clip-path: polygon(47.5% 0%, 52.5% 0%, 94% 100%, 6% 100%);
  filter: blur(13px);
}
.spot-pool {
  position: absolute; bottom: -3.5rem; left: var(--spot-x, 62%);
  width: min(52rem, 64vw); height: 9.5rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 228, 172, 0.32), rgba(255, 204, 134, 0.1) 58%, transparent 76%);
  filter: blur(7px);
}
.haze { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.haze::before, .haze::after {
  content: ""; position: absolute;
  width: 60%; height: 70%;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 214, 160, 0.05), transparent 70%);
}
.haze::before { top: 5%; left: 30%; }
.haze::after { top: 30%; left: 48%; width: 46%; }
@media (prefers-reduced-motion: no-preference) {
  .spot-cone { animation: spot-sway 17s ease-in-out infinite alternate; }
  .spot-pool { animation: pool-sway 17s ease-in-out infinite alternate; }
  @keyframes spot-sway { from { transform: translateX(-50%) rotate(-1.5deg); } to { transform: translateX(-50%) rotate(1.5deg); } }
  @keyframes pool-sway { from { transform: translateX(-58%); } to { transform: translateX(-42%); } }
  .haze::before { animation: haze-drift 47s ease-in-out infinite alternate; }
  .haze::after { animation: haze-drift 61s ease-in-out infinite alternate-reverse; }
  @keyframes haze-drift { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
}
.footlights {
  position: absolute; left: 0; right: 0; bottom: -1px;
  display: flex; justify-content: space-evenly;
  pointer-events: none;
}
.footlights span {
  width: 16vw; height: 8.5rem;
  background: radial-gradient(50% 100% at 50% 100%, rgba(255, 190, 120, 0.32), rgba(255, 160, 80, 0.07) 55%, transparent 75%);
}
.footlights span:nth-child(even) { height: 7rem; opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
  .footlights span { animation: footlight-breathe 5.5s ease-in-out infinite alternate; }
  .footlights span:nth-child(2n) { animation-delay: 1.2s; }
  .footlights span:nth-child(3n) { animation-delay: 2.3s; }
  @keyframes footlight-breathe { from { opacity: 0.72; } to { opacity: 1; } }
}
.hero-inner { position: relative; max-width: var(--sheet-max); margin: 0 auto; width: 100%; }
.hero-stamp {
  display: inline-block;
  font-family: var(--typed); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--wall-muted);
  border: 2px solid rgba(183, 172, 153, 0.55);
  padding: 0.32rem 0.9rem;
  transform: rotate(-1.1deg);
  margin-bottom: 1.6rem;
}
.hero-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.7rem, 7.2vw, 5.6rem);
  line-height: 1.01; letter-spacing: -0.015em;
  color: #f6ecd8;
  text-shadow: 0 0 28px rgba(255, 202, 122, 0.18);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero-title .lit, .hero-title .split-char.lit {
  font-style: italic;
  color: #ffd98a;
  text-shadow:
    0 0 12px rgba(255, 216, 140, 0.9),
    0 0 32px rgba(255, 198, 112, 0.55),
    0 0 68px rgba(255, 182, 92, 0.38);
}
.hero-lede {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem); line-height: 1.65;
  color: var(--wall-muted); max-width: 56ch; margin-bottom: 2.2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.tape-btn {
  display: inline-block; text-decoration: none;
  font-family: var(--typed); font-weight: 700; font-size: 0.92rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--tape); color: var(--tape-ink);
  padding: 0.95rem 1.7rem;
  transform: rotate(-1deg);
  clip-path: polygon(1% 0%, 100% 4%, 99% 100%, 0% 94%);
  transition: transform 0.22s var(--ease-settle), filter 0.18s ease;
  will-change: transform;
}
.tape-btn:hover { transform: rotate(0deg) translateY(-3px); filter: brightness(1.06); }
.tape-btn.quiet { background: var(--gaff-white); color: var(--ink); }

/* split text entrance: lines clip only while the letters rise */
.split-line { display: block; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.js-split:not(.split-done) .split-line { overflow: hidden; }
.js-split .split-char { display: inline-block; white-space: pre; }
@media (prefers-reduced-motion: no-preference) {
  .js-split .split-char {
    transform: translateY(115%) rotate(2deg);
    animation: char-rise 0.7s var(--ease-settle) forwards;
    animation-delay: calc(var(--ci) * 26ms);
  }
  @keyframes char-rise { to { transform: translateY(0) rotate(0deg); } }
  .js .hero-stamp, .js .hero-lede, .js .hero-ctas {
    opacity: 0; transform: translateY(12px);
    animation: soft-rise 0.65s ease forwards;
  }
  .js .hero-stamp { animation-delay: 0.1s; }
  .js .hero-lede { animation-delay: 0.75s; }
  .js .hero-ctas { animation-delay: 0.95s; }
  @keyframes soft-rise { to { opacity: 1; transform: translateY(0); } }
}

/* ---------- marquee ---------- */
.marquee-wrap { overflow: hidden; padding: 0.55rem 0; position: relative; z-index: 2; }
.marquee {
  background: var(--tape); color: var(--tape-ink);
  transform: rotate(-0.6deg);
  width: 104%; margin-left: -2%;
  overflow: hidden;
  padding: 0.6rem 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.marquee-track {
  display: flex; gap: 3.2rem; width: max-content;
  font-family: var(--typed); font-weight: 700; font-size: 0.94rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee-run 30s linear infinite; }
  @keyframes marquee-run { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { flex-wrap: wrap; width: auto; white-space: normal; justify-content: center; }
  .marquee-track .marquee-dup { display: none; }
}

/* ---------- bibliography ---------- */
.biblio { list-style: none; margin: 1.2rem 0 1.8rem; max-width: none; }
.biblio li {
  margin: 0 0 0.85rem; padding-left: 1.6rem; text-indent: -1.6rem;
  font-size: 0.92rem; line-height: 1.65;
  overflow-wrap: anywhere;
  max-width: 72ch;
}
.mb-fold {
  margin: 1rem 0 1.6rem;
  border: 1px dashed rgba(34, 29, 22, 0.35);
  padding: 0.55rem 0.9rem;
  max-width: 62ch;
}
.mb-fold summary {
  font-family: var(--typed); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  list-style: none;
}
.mb-fold summary::-webkit-details-marker { display: none; }
.mb-fold summary::before { content: "+ "; color: var(--ink); }
.mb-fold[open] summary::before { content: "\2212\a0"; }
.mb-fold summary:hover { color: var(--ink); }
.mb-fold .mb-note { font-size: 0.88rem; color: var(--ink-soft); margin: 0.8rem 0 0.4rem; }
.mb-list { list-style: none; margin: 0.6rem 0 0.4rem; max-width: none; font-size: 0.9rem; }
.mb-list li { margin: 0 0 0.7rem; padding-left: 1.4rem; position: relative; max-width: 70ch; }
.mb-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.65rem; height: 0.35rem; background: var(--rev-pink); }
.mb-list .mb-src { display: block; font-family: var(--typed); font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- lantern clippings ---------- */
.lanterns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1.8rem; margin: 1.3rem 0 2rem; }
@media (max-width: 700px) { .lanterns { grid-template-columns: 1fr; } }
.lantern h4 { font-family: var(--display); font-weight: 700; font-size: 1.08rem; margin-bottom: 0.55rem; }
.lantern img {
  display: block; width: 100%; height: auto; max-width: 24rem;
  transform: rotate(-0.6deg);
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.18);
  margin-bottom: 0.7rem;
}
.lantern:nth-child(2n) img { transform: rotate(0.5deg); }
.lantern p { font-size: 0.93rem; color: var(--ink); margin: 0; max-width: none; }

/* ---------- the lighting desk (production roles) ---------- */
.lightdesk {
  border: 2px solid var(--ink);
  background: #14100c; color: var(--wall-text);
  padding: 1.5rem 1.5rem 1.4rem;
  margin: 1.6rem 0 2rem;
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.2);
}
.lightdesk .kicker { color: var(--wall-muted); }
.ld-stage {
  position: relative; height: 15rem;
  background: #0b0908;
  border: 1px solid #292219;
  overflow: hidden;
  margin: 1rem 0 1.3rem;
}
.ld-fixture {
  position: absolute; top: 0; left: 50%;
  width: 2.4rem; height: 1rem; transform: translateX(-50%);
  background: #060504; border-radius: 0 0 4px 4px;
  box-shadow: 0 1px 14px 3px var(--ld-c, #f2952e);
  opacity: calc(var(--ld-a, 0.5) + 0.15);
  transition: box-shadow 0.35s ease, opacity 0.35s ease;
}
.ld-cone {
  position: absolute; top: 0.8rem; bottom: 0; left: 50%;
  width: 100%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--ld-c, #f2952e), transparent 92%);
  opacity: var(--ld-a, 0.5);
  clip-path: polygon(45% 0%, 55% 0%, 88% 100%, 12% 100%);
  filter: blur(10px);
  transition: background 0.35s ease, opacity 0.35s ease;
}
.ld-pool {
  position: absolute; bottom: -2.6rem; left: 50%;
  width: 78%; height: 5.5rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, var(--ld-c, #f2952e), transparent 72%);
  opacity: calc(var(--ld-a, 0.5) * 0.8);
  filter: blur(6px);
  transition: background 0.35s ease, opacity 0.35s ease;
}
.ld-light {
  position: absolute; inset: 0; pointer-events: none;
  --lit: color-mix(in srgb, var(--ld-c, #f2952e) var(--ld-p, 40%), transparent);
  --lit-soft: color-mix(in srgb, var(--ld-c, #f2952e) calc(var(--ld-p, 40%) / 2.2), transparent);
}
.ld-light[hidden] { display: none; }
.ld-figure {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  height: 12.4rem; aspect-ratio: 182 / 560;
  -webkit-mask-image: url('../img/figure.png');
  mask-image: url('../img/figure.png');
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: bottom center; mask-position: bottom center;
  background: #14100b;
  transition: background 0.35s ease, filter 0.35s ease;
}
.ld-cone2, .ld-fixture2 { display: none; }
.ld-light[data-dir="f45"] .ld-cone {
  left: 0; width: 100%; transform: none;
  clip-path: polygon(28% 0%, 35% 0%, 76% 100%, 24% 100%);
}
.ld-light[data-dir="f45"] .ld-fixture { left: 31%; }
.ld-light[data-dir="f45"] .ld-pool { left: 50%; }
.ld-light[data-dir="f4545"] .ld-cone {
  display: inline-block; left: 0; width: 100%; transform: none; opacity: 0.8;
  clip-path: polygon(19% 0%, 26% 0%, 72% 100%, 22% 100%);
}
.ld-light[data-dir="f4545"] .ld-cone2 {
  display: inline-block; left: 0; width: 100%; transform: none; opacity: 0.8;
  clip-path: polygon(74% 0%, 81% 0%, 78% 100%, 28% 100%);
}
.ld-light[data-dir="f4545"] .ld-fixture { left: 22.5%; }
.ld-light[data-dir="f4545"] .ld-fixture2 { display: inline-block; left: 77.5%; }
.ld-light[data-dir="sider"] .ld-cone {
  top: 16%; bottom: auto; left: auto; right: 0; width: 62%; height: 56%;
  transform: none;
  background: linear-gradient(to left, var(--lit), transparent 92%);
  opacity: 1;
  clip-path: polygon(100% 44%, 100% 56%, 0% 100%, 0% 0%);
}
.ld-light[data-dir="sider"] .ld-fixture {
  top: 36%; left: auto; right: 0.4rem; width: 1rem; height: 2.2rem; transform: none;
  border-radius: 4px 0 0 4px;
}
.ld-light[data-dir="sider"] .ld-pool { left: 56%; }
.ld-light[data-dir="side"] .ld-cone {
  top: 16%; bottom: auto; left: 0; width: 62%; height: 56%;
  transform: none;
  background: linear-gradient(to right, var(--lit), transparent 92%);
  opacity: 1;
  clip-path: polygon(0% 44%, 0% 56%, 100% 100%, 100% 0%);
}
.ld-light[data-dir="side"] .ld-fixture {
  top: 36%; left: 0.4rem; width: 1rem; height: 2.2rem; transform: none;
  border-radius: 0 4px 4px 0;
}
.ld-light[data-dir="side"] .ld-pool { left: 44%; }
/* top light: a tight column straight down */
.ld-light[data-dir="top"] .ld-cone { clip-path: polygon(44% 0%, 56% 0%, 70% 100%, 30% 100%); }
.ld-light[data-dir="top"] .ld-fixture { left: 50%; }
/* back light: broad wash from behind, the figure reads as a silhouette */
.ld-light[data-dir="back"] .ld-cone {
  opacity: calc(var(--ld-a, 0.5) * 0.6);
  clip-path: polygon(38% 0%, 62% 0%, 94% 100%, 6% 100%);
}
.ld-light[data-dir="back"] .ld-pool { opacity: calc(var(--ld-a, 0.5) * 0.45); }
.ld-light[data-dir="up"] .ld-cone {
  top: auto; bottom: 0.7rem;
  background: linear-gradient(to top, var(--lit), transparent 88%);
  clip-path: polygon(45% 100%, 55% 100%, 80% 0%, 20% 0%);
}
.ld-light[data-dir="up"] .ld-fixture {
  top: auto; bottom: 0; border-radius: 5px 5px 0 0;
  box-shadow: 0 -2px 20px 5px var(--ld-c, #f2952e);
}
.ld-light[data-dir="up"] .ld-pool { bottom: -3.4rem; }
.ld-chip.plain span::before { display: none; }
.ld-controls { display: grid; gap: 1.1rem; margin-top: 0.4rem; }
.ld-channels-wrap { border: 0; padding: 0; margin: 0; }
.ld-channels-wrap legend {
  font-family: var(--typed); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--wall-muted);
  margin-bottom: 0.6rem; padding: 0;
}
.ld-channels { display: grid; gap: 0.4rem; }
.ld-ch {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) minmax(9rem, 13rem) 3.2rem;
  gap: 0.9rem; align-items: center;
  border: 1px solid #3a3128; border-radius: 4px;
  padding: 0.55rem 0.9rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.ld-ch.live { border-color: rgba(255, 90, 30, 0.55); background: rgba(255, 90, 30, 0.05); }
.ld-ch-on { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 0.9rem; color: var(--wall-muted); }
.ld-ch.live .ld-ch-on { color: var(--wall-text); }
.ld-ch-on input { width: 1.05rem; height: 1.05rem; accent-color: var(--tape); cursor: pointer; flex: none; }
.ld-ch-on input:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; }
.ld-swatches { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ld-swatch { position: relative; }
.ld-swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ld-swatch span {
  display: block; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--chip-c); border: 2px solid transparent;
  opacity: 0.55; transition: opacity 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.ld-swatch:hover span { opacity: 0.85; }
.ld-swatch input:checked + span {
  opacity: 1; border-color: var(--wall-text);
  box-shadow: 0 0 9px 1px var(--chip-c);
}
.ld-swatch input:focus-visible + span { outline: 3px solid var(--tape); outline-offset: 2px; }
.ld-ch-int { display: flex; align-items: center; }
.ld-ch-int input[type="range"] { width: 100%; accent-color: var(--tape); cursor: pointer; height: 1.2rem; }
.ld-ch output {
  font-family: var(--typed); font-weight: 700; font-size: 0.78rem;
  color: var(--wall-muted); text-align: right;
}
.ld-ch.live output { color: var(--tape); }
@media (max-width: 1199px) {
  .ld-ch { grid-template-columns: minmax(0, 1fr) 3.2rem; row-gap: 0.5rem; }
  .ld-ch-on { grid-row: 1; grid-column: 1; }
  .ld-ch output { grid-row: 1; grid-column: 2; }
  .ld-swatches { grid-column: 1 / -1; }
  .ld-ch-int { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .ld-stage { position: sticky; top: 4.6rem; z-index: 5; height: 12rem;
              box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.85); }
}
@media (min-width: 1200px) {
  .desk-sheet { max-width: min(96rem, 100%) !important; }
  [data-lightdesk] { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.4rem 1.8rem; align-items: start; }
  [data-lightdesk] > .kicker, [data-lightdesk] > h2, [data-lightdesk] > p, .ld-view { grid-column: 1 / -1; }
  .ld-view .ld-stage { height: 23rem; margin: 0.6rem 0 0; }
  [data-lightdesk] .ld-controls { grid-column: 1; margin: 0; }
  [data-lightdesk] .ld-readbox { grid-column: 2; margin: 0; }
  /* every channel on one compact line so all eight are visible at once */
  .ld-ch { grid-template-columns: 8.2rem auto minmax(5rem, 1fr) 2.8rem; gap: 0.7rem; padding: 0.42rem 0.7rem; }
  .ld-ch-on { font-size: 0.84rem; gap: 0.45rem; }
  .ld-swatch span { width: 1rem; height: 1rem; }
  .ld-swatches { gap: 0.22rem; flex-wrap: nowrap; }
  .ld-channels { gap: 0.3rem; }
  .ld-figure { height: 18.5rem; }
}
.ld-readbox {
  border: 1px solid #3a3128; border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 216, 140, 0.05), transparent 60%), rgba(0, 0, 0, 0.25);
  padding: 1rem 1.2rem 1.1rem; margin-top: 1.3rem;
}
.ld-readlabel {
  display: block; font-family: var(--typed); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--wall-muted);
  margin-bottom: 0.6rem; padding-bottom: 0.6rem; border-bottom: 1px dashed #3a3128;
}
.ld-read {
  margin-top: 1.1rem;
  font-family: var(--typed); font-size: 0.92rem; line-height: 1.6;
  color: var(--wall-text);
  border-top: 1px dashed #3a3128; padding-top: 0.9rem;
  max-width: none;
}

/* ---------- page hero band (interior pages) ---------- */
.page-hero {
  position: relative;
  color: var(--ink);
  --hero-gel: rgba(255, 255, 255, 0.55);
  padding: clamp(2.6rem, 6vw, 4.6rem) var(--stage-pad) clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 2.6rem;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}
.page-hero.stock-blue { background: var(--rev-blue); }
.page-hero.stock-pink { background: var(--rev-pink); }
.page-hero.stock-yellow { background: var(--rev-yellow); }
.page-hero.stock-green { background: var(--rev-green); }
.page-hero.stock-gold { background: var(--rev-gold); }
.page-hero.stock-buff { background: var(--rev-buff); }
.page-hero.stock-white { background: var(--paper); }
.page-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px;
  background: var(--wall-deep);
  clip-path: polygon(0 0, 100% 0, 100% 34%, 96% 88%, 90% 30%, 83% 76%, 76% 26%, 68% 82%, 60% 30%, 52% 72%, 44% 24%, 36% 80%, 28% 32%, 20% 70%, 12% 26%, 5% 78%, 0 36%);
}
.page-hero .ph-watermark {
  position: absolute; right: -0.05em; bottom: -0.28em;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(11rem, 26vw, 21rem); line-height: 1;
  color: rgba(34, 29, 22, 0.085);
  pointer-events: none; user-select: none;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 18% -20%, var(--hero-gel), transparent 62%);
  mix-blend-mode: soft-light;
}
.page-hero .ph-inner { position: relative; z-index: 1; max-width: var(--sheet-max); margin: 0 auto; }
.page-hero .stamp {
  display: inline-block;
  font-family: var(--typed); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
  border: 2px solid currentColor; padding: 0.24rem 0.75rem;
  transform: rotate(-1.1deg);
  margin-bottom: 1.15rem;
}
.page-hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1; letter-spacing: -0.012em;
  margin-bottom: 1rem; text-wrap: balance;
}
.page-hero .lede { font-size: 1.16rem; line-height: 1.66; color: var(--ink-soft); max-width: 62ch; }
.page-hero.stock-gold .stamp, .page-hero.stock-gold .lede { color: var(--rev-gold-deep); }
@media (prefers-reduced-motion: no-preference) {
  .js .page-hero .ph-inner > * {
    opacity: 0; transform: translateY(16px);
    animation: soft-rise 0.6s var(--ease-settle) forwards;
  }
  .js .page-hero .ph-inner > *:nth-child(2) { animation-delay: 0.09s; }
  .js .page-hero .ph-inner > *:nth-child(3) { animation-delay: 0.18s; }
}

/* ---------- cta band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(102deg, #221a10, #191512 60%);
  border-top: 3px solid var(--rev-gold);
  border-bottom: 3px solid var(--rev-gold);
  padding: clamp(2.8rem, 7vw, 4.6rem) var(--stage-pad);
  margin-top: 3rem;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(40rem 18rem at 78% 120%, rgba(233, 194, 92, 0.13), transparent 70%);
  pointer-events: none;
}
.cta-band .cta-inner {
  position: relative;
  max-width: var(--sheet-max); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.6rem;
}
.cta-band h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.12;
  color: var(--wall-text); max-width: 24ch; text-wrap: balance;
}
.cta-band h2 em { font-style: italic; color: var(--rev-gold); }

/* ---------- teaser cards (home) ---------- */
.teaser {
  display: block; text-decoration: none;
  background: rgba(244, 240, 230, 0.045);
  border: 1px solid var(--wall-line);
  padding: 1.5rem 1.4rem 1.3rem;
  color: var(--wall-text);
  transition: background-color 0.2s ease, transform 0.22s var(--ease-settle), border-color 0.2s ease;
}
.teaser:hover {
  background: rgba(244, 240, 230, 0.08); transform: translateY(-4px);
  border-color: rgba(233, 194, 92, 0.5);
  box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.9), 0 0 26px -10px rgba(233, 194, 92, 0.4);
}
.teaser .t-kicker {
  font-family: var(--typed); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--rev-gold);
  display: block; margin-bottom: 0.5rem;
}
.teaser h3 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin-bottom: 0.4rem; }
.teaser p { font-size: 0.92rem; color: var(--wall-muted); margin: 0; }

/* ---------- 3d tilt on pinned cards ---------- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pinned { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--tilt, 0deg)); }
  .pinned:hover, .pinned:focus-visible { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(0deg) translateY(-4px); }
}

/* ---------- backstage grain ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ---------- grade calculator ---------- */
.gradecalc {
  border: 2px solid var(--ink);
  background:
    radial-gradient(900px 320px at 50% 0%, rgba(233, 194, 92, 0.07), transparent 72%),
    linear-gradient(180deg, #1b1510, #14100c);
  color: var(--wall-text);
  padding: clamp(1.4rem, 3.5vw, 2.3rem); margin: 2.2rem 0;
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.2);
}
.gc-result {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.2rem, 4vw, 2.6rem);
  align-items: center; padding: 1.3rem 1.4rem; margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid #3a3128; border-radius: 4px;
}
@media (max-width: 620px) { .gc-result { grid-template-columns: 1fr; text-align: center; } }
.gc-big { text-align: center; }
.gc-biggrade {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(4rem, 10vw, 6.2rem); line-height: 1; letter-spacing: -0.03em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.gc-biggrade[data-g="1"] { color: #5f7fb5; text-shadow: 0 0 22px rgba(95, 127, 181, 0.35); }
.gc-biggrade[data-g="2"] { color: #7d86c6; text-shadow: 0 0 22px rgba(125, 134, 198, 0.35); }
.gc-biggrade[data-g="3"] { color: #b57bb0; text-shadow: 0 0 24px rgba(181, 123, 176, 0.35); }
.gc-biggrade[data-g="4"] { color: #e08bab; text-shadow: 0 0 26px rgba(224, 139, 171, 0.4); }
.gc-biggrade[data-g="5"] { color: #f0a35f; text-shadow: 0 0 28px rgba(240, 163, 95, 0.45); }
.gc-biggrade[data-g="6"] { color: #e9c25c; text-shadow: 0 0 32px rgba(233, 194, 92, 0.5); }
.gc-biggrade[data-g="7"] { color: #ffe9bd; text-shadow: 0 0 40px rgba(255, 233, 189, 0.75), 0 0 90px rgba(233, 194, 92, 0.4); }
.gc-biglabel {
  display: block; margin-top: 0.4rem; font-family: var(--typed); font-weight: 700;
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wall-muted);
}
.gc-pct { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--wall-text); }
.gc-pct small {
  font-family: var(--typed); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--wall-muted); margin-left: 0.55rem;
}
.gc-scale {
  position: relative; height: 14px; border-radius: 4px; margin: 0.6rem 0 0.55rem;
  background: rgba(255, 255, 255, 0.07); overflow: hidden;
}
.gc-scale-fill {
  position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 4px;
  transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, #5f7fb5 0%, #b57bb0 28%, #e08bab 45%, #f0a35f 65%, #e9c25c 82%, #ffe9bd 100%);
  transition: transform 0.34s var(--ease-settle);
  box-shadow: 0 0 18px rgba(233, 194, 92, 0.3);
}
.gc-scale-marks { position: absolute; inset: 0; }
.gc-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(10, 8, 6, 0.9); }
.gc-next { font-size: 0.92rem; color: var(--wall-muted); max-width: none; }
.gc-rows { display: grid; gap: 0.55rem; }
.gc-row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) auto;
  gap: 1.1rem; align-items: center;
  border: 1px solid #3a3128;
  border-radius: 4px; padding: 0.78rem 1rem;
  box-shadow: inset 3px 0 0 var(--gel, var(--rev-gold)), inset 0 0 30px -18px var(--gel, var(--rev-gold));
  background: linear-gradient(90deg, var(--gel-glow, transparent), transparent 45%);
}
@media (max-width: 760px) {
  .gc-row { grid-template-columns: minmax(0, 1fr); gap: 0.55rem; }
  .gc-out { justify-self: start; }
}
.gc-head label { display: block; font-weight: 600; color: var(--wall-text); font-size: 0.98rem; }
.gc-weight { font-family: var(--typed); font-size: 0.7rem; letter-spacing: 0.05em; color: var(--gel, var(--wall-muted)); }
.gc-control { display: flex; align-items: center; gap: 0.8rem; }
.gc-control input[type="range"] { flex: 1; accent-color: var(--gel, var(--rev-gold)); cursor: pointer; height: 1.4rem; }
.gc-control input[type="number"] {
  width: 4.2rem; background: rgba(0, 0, 0, 0.35); color: var(--wall-text);
  border: 1px solid #3a3128; border-radius: 3px; padding: 0.4rem 0.5rem;
  font-family: var(--typed); font-size: 0.95rem; text-align: center;
}
.gc-control input[type="number"]:focus { border-color: var(--gel, var(--rev-gold)); outline: none; }
.gc-out { display: flex; align-items: center; gap: 0.8rem; justify-self: end; }
.gc-verb {
  font-family: var(--typed); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: #14100c; background: var(--gel, var(--rev-gold));
  padding: 0.3rem 0.7rem;
  clip-path: polygon(2% 10%, 100% 0%, 98% 90%, 0% 100%);
  white-space: nowrap;
}
.gc-verb:empty { visibility: hidden; }
.gc-done { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; font-family: var(--typed);
  font-weight: 700; font-size: 0.68rem; letter-spacing: 0.1em; color: var(--wall-muted); text-transform: uppercase; }
.gc-done input { width: 1rem; height: 1rem; accent-color: var(--gel, var(--rev-gold)); cursor: pointer; }
.gc-done input:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; }
.gc-row.is-done .gc-done { color: var(--gel, var(--rev-gold)); }
.gc-target { margin-top: 1.7rem; padding-top: 1.5rem; border-top: 1px solid #3a3128; }
.gc-target-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.gc-target-head label { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--wall-text); }
.gc-target-head select {
  background: rgba(0, 0, 0, 0.35); color: #ffe9bd; border: 1px solid var(--rev-gold);
  border-radius: 4px; padding: 0.35rem 0.7rem; font-family: var(--display);
  font-weight: 800; font-size: 1.25rem; cursor: pointer;
}
.gc-hint { font-size: 0.88rem; color: var(--wall-muted); margin-top: 0.75rem; max-width: 64ch; }
.gc-hint strong { color: var(--rev-gold); font-weight: 600; }
.gc-advice { margin-top: 0.9rem; color: var(--wall-text); max-width: 68ch; }
.gc-needs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.7rem; margin-top: 1.1rem; }
.gc-need {
  border: 1px solid #3a3128; border-top: 2px solid var(--rev-gold);
  border-radius: 4px; padding: 0.75rem 0.95rem; display: grid; gap: 0.25rem;
  background: rgba(233, 194, 92, 0.05);
}
.gc-need strong { font-size: 0.92rem; color: var(--wall-text); font-weight: 600; }
.gc-need span { font-family: var(--typed); font-size: 0.86rem; color: var(--rev-gold); }
.gc-need span em { color: var(--wall-muted); font-style: normal; font-size: 0.78rem; }
.gc-need.impossible { border-top-color: #d5483a; background: rgba(213, 72, 58, 0.08); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--wall-line);
  background: var(--wall-deep);
  padding: clamp(2.6rem, 6vw, 4rem) clamp(1.2rem, 4vw, 3rem) 2rem;
  color: var(--wall-muted);
}
.footer-inner {
  max-width: 72rem; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.4rem;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--wall-text); margin-bottom: 0.7rem; }
.footer-name em { font-style: italic; color: var(--rev-gold); }
.footer-note { font-size: 0.9rem; line-height: 1.7; max-width: 34ch; }
.footer-head {
  font-family: var(--typed); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--wall-text);
  margin-bottom: 0.85rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col a {
  color: var(--wall-muted); text-decoration: none; font-size: 0.93rem;
  transition: color 0.16s ease;
}
.footer-col a:hover { color: var(--rev-gold); }
.footer-rule {
  max-width: 72rem; margin: 2.6rem auto 0; padding-top: 1.4rem;
  border-top: 1px solid var(--wall-line);
  font-family: var(--typed); font-size: 0.8rem; letter-spacing: 0.05em;
}
.footer-rule a { color: var(--wall-muted); }
.footer-rule a:hover { color: var(--wall-text); }
.footer-credit {
  max-width: 72rem; margin: 0.9rem auto 0;
  font-family: var(--typed); font-size: 0.8rem; letter-spacing: 0.05em;
  color: var(--wall-text);
}

/* ---------- settle animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .settle {
    opacity: 0;
    transform: translateY(14px);
  }
  .js .settle.settled {
    opacity: 1;
    transform: translateY(0) rotate(var(--tilt, 0deg));
    transition: opacity 0.5s ease, transform 0.62s var(--ease-settle);
  }
  .js .pinned.settle.settled { transition-delay: var(--settle-delay, 0s); }
}

@media print {
  body { background: #fff; color: #000; }
  .rail, .topbar, .skip-link, .flow-links, .menu-btn, .site-foot { display: none !important; }
  .stage { padding: 0; }
  .sheet, .pinned, .signin, .draft, .typed-notice, .calloutbox { box-shadow: none; }
  .sheet { background: #fff; color: #000; margin-bottom: 1.2rem; }
  .sheet::before, .pinned::before, .annotation::before { display: none; }
  .signin, .signin li, .defs > div, .ladder .rung, .draft { break-inside: avoid; }
  .tape, .tape.tape-dark, .tape.tape-white { background: #fff; color: #000; border: 1px solid #000; transform: none; clip-path: none; }
}

/* ---------- utilities ---------- */
.on-wall { color: var(--wall-text); }
.on-wall .kicker { color: var(--wall-muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.mt-0 { margin-top: 0 !important; }
