/* Wait, What? — ink & paper */

:root {
  --paper: #F6F2E8;
  --paper-2: #ECE5D6;
  --paper-3: #E4DCC9;
  --ink: #282820;
  --ink-soft: #3A3A30;
  --muted: #625F52;
  --rust: #A3432D;
  --rust-dark: #8A3624;
  --sage: #E0E5D7;
  --olive: #4B593F;
  --rule: #C9C2B2;

  --serif: "Iowan Old Style", "Baskerville", "Baskerville Old Face", "Hoefler Text", "Garamond", "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 5vw, 100px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.motion-off { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.05; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
em { font-style: italic; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

/* ---------- Top bar & masthead ---------- */
.topbar {
  display: flex; justify-content: center; align-items: center; gap: 18px;
  padding: 8px 16px; border-bottom: 1px solid var(--rule);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
  text-align: center;
}
.topbar-star { color: var(--rust); }

.masthead { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand-mark { font: 700 26px/0.92 var(--serif); letter-spacing: -.06em; text-transform: uppercase; }
.brand-mark-sm { font-size: 22px; }
.brand-line { border-left: 1px solid var(--rule); padding-left: 16px; font: italic 13px/1.35 var(--serif); color: var(--ink-soft); }

.nav { display: flex; gap: 32px; }
.nav a { position: relative; font-size: 13px; font-weight: 600; text-decoration: none; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rust); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

.masthead-tools { display: flex; align-items: center; gap: 20px; }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 0; cursor: pointer; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.motion-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 0 rgba(75,89,63,.5); animation: dot 2.6s ease-out infinite; }
.motion-off .motion-dot { background: var(--rule); animation: none; }
@keyframes dot { 0% { box-shadow: 0 0 0 0 rgba(75,89,63,.45); } 70%,100% { box-shadow: 0 0 0 7px rgba(75,89,63,0); } }

.menu-btn { display: none; width: 42px; height: 42px; background: none; border: 1px solid var(--ink); cursor: pointer; position: relative; }
.menu-lines, .menu-lines::before, .menu-lines::after { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); content: ""; transition: transform .3s var(--ease), opacity .2s; }
.menu-lines { top: 20px; }
.menu-lines::before { top: -6px; left: 0; right: 0; }
.menu-lines::after { top: 6px; left: 0; right: 0; }
.menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 24px; border: 1px solid var(--ink); background: transparent;
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: 0;
  transition: background-color .25s, color .25s, transform .25s var(--ease), border-color .25s;
}
.btn span[aria-hidden] { transition: transform .3s var(--ease); }
.btn:hover span[aria-hidden] { transform: translate(2px, -2px); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 13px; }
.btn-rust { background: var(--rust); border-color: var(--rust); color: #FBF6EC; }
.btn-rust:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-disabled { border-style: dashed; border-color: var(--muted); color: var(--muted); cursor: default; }
.text-link { font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--rust); text-underline-offset: 4px; }
.text-link span { display: inline-block; transition: transform .3s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 64px); }
.hero-copy { position: relative; text-align: center; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
.eyebrow-ruled { display: flex; align-items: center; justify-content: center; gap: 14px; }
.eyebrow-ruled::before, .eyebrow-ruled::after { content: ""; width: 44px; height: 1px; background: var(--ink-soft); }
.numeral { font-family: var(--serif); font-size: 14px; letter-spacing: .04em; color: var(--rust); margin-right: 6px; }

.hero-title { font-size: clamp(46px, 8.4vw, 96px); letter-spacing: -.055em; line-height: 1.04; }
.hero-title .line { display: block; }
.hero-em { position: relative; display: inline-block; color: var(--rust); padding-right: .04em; }
.underline { position: absolute; left: -2%; right: 4%; bottom: -.12em; width: 98%; height: .16em; overflow: visible; }
.underline path { fill: none; stroke: var(--rust); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.2s .7s var(--ease) forwards; vector-effect: non-scaling-stroke; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-title .line { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero-title .line:nth-child(2) { animation-delay: .15s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-sub { max-width: 30em; margin: 26px auto 26px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.aside-note { position: absolute; left: var(--gutter); top: 36%; transform: rotate(-7deg); font: italic 17px/1.15 var(--serif); color: var(--muted); text-align: left; margin: 0; }
.aside-arrow { width: 80px; margin: 8px 0 0 22px; fill: none; stroke: var(--muted); stroke-width: 1.3; stroke-linecap: round; }
.aside-arrow path { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 1s 1.4s var(--ease) forwards; }
.hero-star { position: absolute; right: calc(var(--gutter) + 6%); top: 12%; width: 38px; fill: var(--ink); animation: twinkle 7s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { transform: rotate(0) scale(1); } 50% { transform: rotate(45deg) scale(.86); } }

/* ---------- Plate I (panorama) ---------- */
.plate { margin: 22px 0 0; }
.pano { position: relative; overflow: hidden; }
.pano-inner { position: relative; width: max(100%, 820px); left: 50%; transform: translateX(-50%); }
.pano-img {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 88%, transparent 100%);
  transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1.03);
  transition: transform .9s var(--ease);
  filter: contrast(1.04);
  animation: inkin 1.4s .2s var(--ease) both;
}
@keyframes inkin { from { opacity: 0; filter: contrast(1.04) blur(2px) sepia(.4); } to { opacity: 1; } }

.hotspots { position: absolute; inset: 0; }
.hotspot {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink);
  font: italic 600 14px/1 var(--serif); cursor: pointer; display: grid; place-items: center;
  transition: transform .3s var(--ease), background-color .2s, color .2s;
}
.hotspot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--rust); opacity: 0; animation: ping 3.2s var(--d, 0s) ease-out infinite; }
.hotspot:hover, .hotspot:focus-visible, .hotspot[aria-expanded="true"] { background: var(--rust); border-color: var(--rust); color: #FBF6EC; transform: scale(1.14); }
@keyframes ping { 0% { transform: scale(.7); opacity: .8; } 60%,100% { transform: scale(1.5); opacity: 0; } }

.stamp { position: absolute; right: clamp(8px, 6vw, 96px); bottom: 6%; width: clamp(84px, 8vw, 116px); transform: rotate(-12deg); }
.stamp svg { animation: spin-slow 40s linear infinite; }
.stamp-bg { fill: var(--rust); }
.stamp-ring { fill: none; stroke: #F3E7D8; stroke-width: 1; stroke-dasharray: 2 2; }
.stamp-arc { fill: #F6EBDD; font: 700 9.5px var(--sans); letter-spacing: .2em; }
.stamp-word { fill: #FBF2E6; font: italic 26px var(--serif); letter-spacing: -.04em; }
@keyframes spin-slow { from { transform: rotate(0); } 50% { transform: rotate(8deg); } to { transform: rotate(0); } }

.plate-key { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 32px; padding-top: 6px; padding-bottom: 6px; }
.plate-caption { margin: 0; font: 15px/1.4 var(--serif); color: var(--ink-soft); }
.plate-num { font-variant: small-caps; letter-spacing: .06em; color: var(--rust); }
.key-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.key-list button { background: none; border: 0; padding: 4px 0; cursor: pointer; font: 13px var(--serif); color: var(--muted); }
.key-list button b { font-style: italic; color: var(--rust); margin-right: 4px; }
.key-list button:hover, .key-list button[aria-expanded="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rust); text-underline-offset: 3px; }

/* Museum label popover */
.label-pop {
  position: absolute; z-index: 60; width: min(330px, calc(100vw - 32px));
  background: var(--paper); border: 1px solid var(--ink); padding: 18px 20px 16px;
  box-shadow: 6px 6px 0 rgba(40,40,32,.12);
  transform-origin: top center; animation: label-in .35s var(--ease);
}
.label-pop[hidden] { display: none; }
@keyframes label-in { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.label-close { position: absolute; right: 8px; top: 6px; background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; color: var(--muted); }
.label-num { margin: 0 0 4px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--rust); font-weight: 700; }
.label-title { font-size: 22px; margin: 0 0 2px; }
.label-date { font: italic 14px var(--serif); color: var(--muted); margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.label-text { font-size: 14px; line-height: 1.55; margin: 0 0 10px; }
.label-source { font-size: 12px; color: var(--muted); margin: 0; }

/* Pillars strip */
.pillars { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: center; }
.pillars a { display: flex; align-items: center; gap: 12px; padding: 18px 0; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.pillars svg { width: 16px; height: 16px; fill: none; stroke: var(--rust); stroke-width: 1.8; transition: transform .35s var(--ease); }
.pillars a:hover svg { transform: rotate(-12deg) scale(1.15); }
.pillar-star { font-size: 10px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-paper { background: var(--paper-2); }
.section-sage { background: var(--sage); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-title { font-size: clamp(36px, 5.4vw, 60px); letter-spacing: -.04em; }
.section-title em { color: var(--rust); }
.section-sub { margin-top: 18px; color: var(--muted); font-size: 17px; max-width: 36em; }

.meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.meta-sep { color: var(--rust); }

/* Featured episode */
.featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-bottom: clamp(40px, 5vw, 56px); border-bottom: 1px solid var(--rule); margin-bottom: 32px; }
.featured-art { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--ink); background: var(--paper-2); overflow: hidden; }
.art-tag { position: absolute; left: 14px; top: 14px; background: var(--paper); border: 1px solid var(--ink); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; padding: 5px 9px; }
.featured-title { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
.featured-body > p:not(.meta) { color: var(--ink-soft); }
.featured-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 22px; }
.play-ico { font-size: 11px; }

/* Channel player — shorts from YouTube, swapped in place */
.screen { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; margin-bottom: 28px; }
.screen-frame { position: relative; aspect-ratio: 9 / 16; background: var(--ink); border: 1px solid var(--ink); overflow: hidden; }
.screen-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.screen-poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--ink); }
.screen-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.screen-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%; border: 1px solid var(--paper);
  background: var(--rust); color: #FBF6EC; display: grid; place-items: center;
  font-size: 18px; padding-left: 4px;
}
.screen-poster:hover .screen-play { background: var(--rust-dark); }
.screen-waiting { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 16px; text-align: center; color: var(--paper-2); font-size: 14px; }
.screen-title { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 12px; }
.screen-copy > p:not(.meta):not(.small-print) { color: var(--ink-soft); }
.screen-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.screen-nav .btn:disabled { opacity: .4; cursor: default; }
.reel { display: flex; gap: 14px; list-style: none; margin: 0 0 36px; padding: 0 0 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.reel:empty { display: none; }
.reel-btn { width: 132px; scroll-snap-align: start; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.reel-thumb { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border: 1px solid var(--rule); background: var(--paper-2); display: block; }
.reel-btn[aria-current="true"] .reel-thumb { border-color: var(--rust); box-shadow: inset 0 0 0 1px var(--rust); }
.reel-name { display: block; margin-top: 8px; font: 14px/1.25 var(--serif); letter-spacing: -.01em; }
.reel-btn[aria-current="true"] .reel-name { color: var(--rust); }

/* Card art (ink illustrations in CSS/SVG) */
.art { position: absolute; inset: 0; background-repeat: no-repeat; background-position: center; background-size: contain; transition: transform .8s var(--ease); }
.tilt:hover .art, .card:hover .art, .card:focus-within .art { transform: scale(1.04) rotate(-1deg); }
.art-pano { background-image: url("assets/panorama.webp"); background-size: auto 250%; }

/* Collection */
.collection-tools { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { background: none; border: 1px solid var(--rule); padding: 8px 14px; font-size: 13px; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.search { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--ink); min-width: min(280px, 100%); padding: 4px 0; }
.search svg { width: 16px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.search input { flex: 1; border: 0; background: transparent; font: 15px var(--sans); color: var(--ink); padding: 8px 0; outline: none; }
.search:focus-within { border-color: var(--rust); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { display: flex; flex-direction: column; border-top: 1px solid var(--ink); padding-top: 18px; animation: card-in .5s var(--ease) both; animation-delay: var(--i, 0s); }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } }
.card-art { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--rule); background: var(--paper-2); overflow: hidden; margin-bottom: 16px; }
.card-status { position: absolute; right: 10px; bottom: 10px; background: var(--paper); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; padding: 4px 8px; border: 1px solid var(--rule); }
.card h3 { font-size: 26px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card .meta { font-size: 10.5px; letter-spacing: .12em; }
.card-foot { margin-top: auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.card-link { background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; text-decoration: underline; text-decoration-color: var(--rust); text-underline-offset: 4px; }
.card-link span { transition: transform .3s var(--ease); }
.card-link:hover span { transform: translate(3px, -3px); }
.empty { border: 1px dashed var(--rule); padding: 28px; text-align: center; color: var(--muted); }

/* ---------- Reading room ---------- */
.reading { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.sheet { background: var(--paper); padding: clamp(28px, 4vw, 52px); box-shadow: 0 1px 0 var(--rule), 0 18px 40px -26px rgba(40,40,32,.35); position: relative; transform: rotate(-.4deg); }
.sheet::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--rule); pointer-events: none; }
.sheet-kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--rust); font-weight: 700; }
.sheet-title { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 20px; }
.dropcap { font: 18px/1.65 var(--serif); }
.dropcap::first-letter { float: left; font-size: 4.1em; line-height: .82; padding: 6px 10px 0 0; color: var(--rust); }
.ledger { border-top: 1px solid var(--ink); margin: 26px 0; }
.ledger-row { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.ledger-row p { margin: 0; font-size: 15px; }
.ledger-tag { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; padding-top: 3px; }
.tag-evidence { color: var(--olive); }
.tag-interp { color: var(--ink-soft); }
.tag-folk { color: var(--rust); }
.sheet-foot { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.source-note { font-size: 12.5px; color: var(--muted); }

.mini-head { font: 700 11px var(--sans); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; }
.story-list { list-style: none; margin: 0 0 20px; padding: 0; }
.story-list li { border-bottom: 1px solid var(--rule); }
.story-btn { display: grid; grid-template-columns: 72px 1fr; gap: 16px; width: 100%; text-align: left; background: none; border: 0; padding: 18px 0; cursor: pointer; align-items: center; color: inherit; text-decoration: none; }
.story-thumb { position: relative; width: 72px; height: 72px; border: 1px solid var(--rule); background: var(--paper); overflow: hidden; }
.story-btn strong { display: block; font: 21px/1.15 var(--serif); letter-spacing: -.02em; margin-bottom: 4px; transition: color .2s; }
.story-btn span.story-meta { font-size: 12px; color: var(--muted); }
.story-btn:hover strong { color: var(--rust); }
.story-btn:hover .art { transform: scale(1.1); }
.small-print { font-size: 13px; color: var(--muted); }

/* ---------- Activities ---------- */
.activities { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.activity { background: var(--paper); border: 1px solid var(--ink); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; }
.activity-head { border-bottom: 1px solid var(--rule); padding-bottom: 16px; margin-bottom: 20px; }
.activity-kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--olive); margin-bottom: 8px; }
.activity-ico { font-size: 14px; margin-right: 4px; }
.activity h3 { font-size: 32px; margin-bottom: 6px; }
.activity-meta { margin: 0; font-size: 13px; color: var(--muted); }

.quiz { flex: 1; display: flex; flex-direction: column; }
.q-progress { display: flex; gap: 6px; margin-bottom: 18px; }
.q-progress span { flex: 1; height: 3px; background: var(--rule); transition: background-color .4s; }
.q-progress span.done { background: var(--olive); }
.q-progress span.now { background: var(--ink); }
.q-count { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.q-claim { font: 24px/1.3 var(--serif); margin-bottom: 20px; letter-spacing: -.01em; }
.q-options { display: grid; gap: 10px; }
.q-opt { text-align: left; background: var(--paper); border: 1px solid var(--rule); padding: 13px 16px; cursor: pointer; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.q-opt:hover:not(:disabled) { border-color: var(--ink); transform: translateX(3px); }
.q-opt:disabled { cursor: default; }
.q-opt.correct { border-color: var(--olive); background: #E9EDE2; }
.q-opt.picked:not(.correct) { border-color: var(--rust); background: #F4E6DF; }
.q-opt .mark { font-weight: 700; }
.q-reveal { margin-top: 18px; padding: 12px 14px; background: color-mix(in srgb, var(--olive) 10%, var(--paper)); border: 1px solid color-mix(in srgb, var(--olive) 35%, var(--rule)); animation: reveal-in .45s var(--ease); }
.q-reveal.miss { border-color: var(--rust); }
.q-reveal h4 { margin: 0 0 6px; font: italic 20px var(--serif); }
.q-reveal p { font-size: 14.5px; margin-bottom: 8px; }
.q-reveal .src { font-size: 12.5px; color: var(--muted); }
@keyframes reveal-in { from { opacity: 0; transform: translateY(6px); } }
.q-next { margin-top: auto; padding-top: 18px; }
.q-result { text-align: center; padding: 10px 0; animation: reveal-in .5s var(--ease); }
.q-score { font: 64px/1 var(--serif); color: var(--olive); }
.q-score small { font-size: 28px; color: var(--muted); }
.q-result p { color: var(--ink-soft); max-width: 26em; margin: 12px auto 20px; }

.maker { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; flex: 1; }
.lantern-stage { position: relative; display: grid; place-items: center; padding: 8px; }
.lantern { width: 100%; max-width: 230px; overflow: visible; }
.turnip-leaf { fill: none; stroke: var(--olive); stroke-width: 2.4; stroke-linecap: round; }
.turnip-body { fill: #EFE4CC; stroke: var(--ink); stroke-width: 2; }
.turnip-band { fill: none; stroke: #8E5A7A; stroke-width: 1.6; opacity: .6; stroke-dasharray: 3 3; }
.turnip-root { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.face path, .face circle, .face polygon { fill: url(#glow); stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.face { animation: flicker 3.4s ease-in-out infinite; transform-origin: center; }
.face.pop { animation: face-pop .45s var(--ease), flicker 3.4s .45s ease-in-out infinite; }
@keyframes flicker { 0%,100% { filter: brightness(1); } 45% { filter: brightness(1.18); } 55% { filter: brightness(.92); } }
@keyframes face-pop { 0% { transform: scale(.85); opacity: .3; } 100% { transform: none; opacity: 1; } }
.maker-confirm { min-height: 1.4em; margin: 6px 0 0; font: italic 15px var(--serif); color: var(--olive); text-align: center; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
legend { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--paper); border: 1px solid var(--rule); padding: 7px 12px; font-size: 13px; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: #F4F1E8; }
.maker-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.lead { font: clamp(19px, 2vw, 23px)/1.5 var(--serif); margin: 22px 0 28px; }
.principles { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--ink); }
.principles li { padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
.principles strong { color: var(--ink); font-family: var(--serif); font-size: 18px; font-weight: 400; font-style: italic; margin-right: 6px; }
.about-art { text-align: center; }
.compass { width: min(300px, 80%); margin: 0 auto 18px; }
.compass svg { overflow: visible; }
.c-ring { fill: none; stroke: var(--ink); stroke-width: 1; }
.c-dash { stroke-dasharray: 1.5 4; }
.c-ticks line { stroke: var(--ink); stroke-width: .8; }
.c-star-a, .c-star-b { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.c-star-fill { fill: var(--ink); }
.c-hub { fill: var(--rust); }
.c-n { font: italic 14px var(--serif); fill: var(--rust); }
.c-needle { transform-origin: 100px 100px; transition: transform 1.2s var(--ease); }
.about-quote { font: italic 20px var(--serif); color: var(--muted); }

/* ---------- Follow & footer ---------- */
.follow { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 44px 0; }
.follow-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.follow-title { font-size: clamp(26px, 3vw, 36px); }
.follow-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer { padding: 40px 0 56px; }
.footer-row { display: grid; grid-template-columns: auto 1fr 1.4fr; gap: 24px 40px; align-items: center; }
.footer-line { margin: 0; font: 16px var(--serif); color: var(--ink-soft); }
.footer-small { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ---------- Dialog ---------- */
.dialog { border: 1px solid var(--ink); padding: 0; background: var(--paper); color: var(--ink); width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 10px 10px 0 rgba(40,40,32,.14); }
.dialog::backdrop { background: rgba(40,40,32,.55); }
.dialog[open] { animation: dlg-in .4s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px); } }
.dialog-inner { position: relative; padding: clamp(26px, 4vw, 48px); }
.dialog-close { position: absolute; right: 12px; top: 10px; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; padding: 6px 10px; }
.dialog h2 { font-size: clamp(28px, 4vw, 40px); margin: 6px 0 16px; padding-right: 30px; }
.dialog h3 { font-size: 21px; margin: 26px 0 8px; }
.dialog p, .dialog li { font-size: 16px; color: var(--ink-soft); }
.dialog .kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--rust); font-weight: 700; margin: 0; }
.dialog .tagline { font: italic 19px/1.45 var(--serif); color: var(--ink); }
.dialog .sources { border-top: 1px solid var(--rule); margin-top: 24px; padding-top: 14px; font-size: 13px; }
.dialog .sources p, .dialog .sources li { font-size: 13px; }
.dialog .note { background: var(--paper-2); border: 1px solid var(--rule); padding: 12px 16px; font-size: 14px; }
.surprise-card { text-align: center; padding: 10px 0; }
.surprise-type { display: inline-block; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; border: 1px solid currentColor; padding: 4px 10px; margin-bottom: 18px; }
.surprise-type.fact { color: var(--olive); }
.surprise-type.prompt { color: var(--rust); }
.surprise-text { font: clamp(24px, 3.2vw, 32px)/1.3 var(--serif); color: var(--ink) !important; letter-spacing: -.015em; animation: reveal-in .5s var(--ease); }
.surprise-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Motion off ---------- */
.motion-off *, .motion-off *::before, .motion-off *::after { animation: none !important; transition: none !important; }
.motion-off .reveal, .motion-off .hero-title .line { opacity: 1; transform: none; }
.motion-off .underline path, .motion-off .aside-arrow path { stroke-dashoffset: 0; }
.motion-off .pano-img { transform: none; }
.motion-off .hotspot::before { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero-title .line { opacity: 1; transform: none; }
  .underline path, .aside-arrow path { stroke-dashoffset: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .brand-line { display: none; }
  .aside-note { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .activities { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--ink); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; animation: reveal-in .3s var(--ease); }
  .nav a { font: 26px var(--serif); padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .masthead-tools .btn { display: none; }
  .featured, .reading, .about, .screen { grid-template-columns: 1fr; }
  .screen-stage { max-width: 280px; }
  .footer-row { grid-template-columns: 1fr; }
  .hero-star { top: 2%; right: var(--gutter); width: 28px; }
  .pillars { flex-direction: column; align-items: stretch; }
  .pillars a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .pillars li:last-child a { border-bottom: 0; }
  .pillar-star { display: none; }
}
@media (max-width: 620px) {
  .masthead-row { min-height: 70px; }
  .brand-mark { font-size: 22px; }
  .topbar { font-size: 9.5px; gap: 10px; letter-spacing: .14em; }
  .topbar-star, .topbar span:last-child { display: none; }
  .eyebrow-ruled::before, .eyebrow-ruled::after { width: 20px; }
  .eyebrow-ruled { font-size: 10px; letter-spacing: .16em; }
  .hero-star { display: none; }
  .cards { grid-template-columns: 1fr; }
  .maker { grid-template-columns: 1fr; }
  .ledger-row { grid-template-columns: 1fr; gap: 4px; }
  .hero-actions .btn { width: 100%; }
  .stamp { width: 72px; bottom: 4%; right: auto; left: 10px; }
  .motion-label { display: none; }
  .search { width: 100%; }
  .hotspot { width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: 12px; }
}


/* =================================================================
   INK & PAPER PLAY
================================================================= */

/* Splats */
.ink-layer { position: absolute; left: 0; top: 0; width: 0; height: 0; overflow: visible; pointer-events: none; z-index: 35; }
.splat { position: absolute; max-width: none; pointer-events: none; overflow: visible; transform: rotate(var(--rot)); animation: splat-in .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.splat g { opacity: .88; }
.splat-drop { animation: drop-fly .45s .05s var(--ease) both; }
.splat-drip { transform-box: fill-box; transform-origin: top; animation: drip 1.6s .35s cubic-bezier(.5, 0, .7, 1) both; }
.splat.fade { animation: splat-out .9s var(--ease) forwards; }
@keyframes splat-in { 0% { transform: rotate(var(--rot)) scale(.1); opacity: 0; } 60% { transform: rotate(var(--rot)) scale(1.15); opacity: 1; } 100% { transform: rotate(var(--rot)) scale(1); } }
@keyframes drop-fly { from { transform: translate(calc(var(--dx) * -1), calc(var(--dy) * -1)) scale(.2); opacity: 0; } }
@keyframes drip { from { transform: scaleY(0); } }
@keyframes splat-out { to { opacity: 0; transform: rotate(var(--rot)) scale(1.05); filter: blur(1.5px); } }

/* Buttons fill with ink */
.btn, .filter, .chip, .q-opt, .mode-btn { position: relative; overflow: hidden; isolation: isolate; }
.ink-ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .16; pointer-events: none; z-index: -1; transform: scale(0); animation: ink-ripple .65s var(--ease) forwards; }
@keyframes ink-ripple { 60% { opacity: .16; } to { transform: scale(1); opacity: 0; } }

/* Quill trail */
.hero { position: relative; }
.hero-copy, .plate, .hero .wrap { position: relative; z-index: 2; }
.hero-copy { pointer-events: none; }
.hero-copy a, .hero-copy button { pointer-events: auto; }

/* Handwritten aside writes itself on */
.aside-note { clip-path: inset(0 100% 0 0); animation: write-on 1.4s .9s steps(22, end) forwards; }
@keyframes write-on { to { clip-path: inset(0 0 0 0); } }

/* Brand: the question mark bounces */
.brand-mark .q { display: inline-block; transform-origin: 50% 90%; }
.brand:hover .q, .brand:focus-visible .q { animation: boing .7s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes boing { 0% { transform: translateY(0) scale(1); } 30% { transform: translateY(-9px) scale(.9, 1.15); } 55% { transform: translateY(0) scale(1.18, .82); } 75% { transform: translateY(-3px) scale(.96, 1.04); } 100% { transform: none; } }

/* Hero star bounces in */
.hero-star { animation: star-in .9s 1.2s cubic-bezier(.3, 1.7, .5, 1) backwards, twinkle 7s 2.1s ease-in-out infinite; }
@keyframes star-in { from { transform: scale(0) rotate(-180deg); opacity: 0; } }

/* Hotspots drop in like ink drops */
.hotspot { animation: hotspot-drop .8s calc(1.4s + var(--d, 0s) * .4) cubic-bezier(.3, 1.6, .5, 1) backwards; }
@keyframes hotspot-drop { 0% { transform: translateY(-40px) scale(.4); opacity: 0; } 60% { transform: translateY(3px) scale(1.1, .9); opacity: 1; } 100% { transform: none; } }

/* Stamp: a real button now */
.stamp { border: 0; padding: 0; background: none; cursor: pointer; z-index: 3; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.stamp:hover svg { animation-play-state: paused; }
.stamp:hover { transform: rotate(-12deg) scale(1.06); }
.stamp.thunk { animation: thunk .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes thunk { 0% { transform: rotate(-12deg) scale(1); } 30% { transform: rotate(-4deg) scale(.82); } 60% { transform: rotate(-16deg) scale(1.12); } 100% { transform: rotate(-12deg) scale(1); } }
.stamp-print { position: absolute; pointer-events: none; transform: rotate(var(--rot)); opacity: .55; mix-blend-mode: multiply; animation: print-in .35s cubic-bezier(.3, 1.6, .5, 1) both; z-index: 2; }
.stamp-print svg { animation: none !important; }
.stamp-print .stamp-bg { fill: none; stroke: var(--rust); stroke-width: 3; }
.stamp-print .stamp-ring { stroke: var(--rust); }
.stamp-print .stamp-arc, .stamp-print .stamp-word { fill: var(--rust); }
.stamp-print.fade { transition: opacity 1s; opacity: 0; }
@keyframes print-in { from { transform: rotate(var(--rot)) scale(1.4); opacity: 0; } }

/* Pillar icons bounce */
.pillars a:hover svg { animation: boing .7s cubic-bezier(.3, 1.8, .5, 1); transform: none; }

/* Brush swash under headline italics */
.section-title em { position: relative; display: inline-block; }
.swash { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .32em; overflow: visible; pointer-events: none; }
.swash path { fill: none; stroke: var(--rust); stroke-width: 5; stroke-linecap: round; opacity: .28; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.reveal.in .swash path { animation: swash-draw .9s .35s var(--ease) forwards; }
@keyframes swash-draw { to { stroke-dashoffset: 0; } }
.motion-off .swash path { stroke-dashoffset: 0; }

/* Cards wobble like jelly on hover */
.card:hover .art, .card:focus-within .art, .tilt:hover .art { animation: jelly .8s cubic-bezier(.3, 1.4, .5, 1); transform: scale(1.04); }
@keyframes jelly { 0% { transform: scale(1); } 30% { transform: scale(1.08, .95) rotate(-1.5deg); } 50% { transform: scale(.97, 1.05) rotate(1deg); } 70% { transform: scale(1.05, .98); } 100% { transform: scale(1.04); } }
.card-link span, .text-link span { display: inline-block; }
.card:hover .card-link span { animation: boing .7s cubic-bezier(.3, 1.8, .5, 1); }
.featured-art .art-face { transform-box: fill-box; transform-origin: center; animation: flicker 3.4s ease-in-out infinite; }

/* Quiz progress fills like ink flowing */
.q-progress span { background: linear-gradient(to right, var(--olive) 50%, var(--rule) 50%) right / 200% 100% no-repeat; transition: background-position .7s var(--ease); }
.q-progress span.done { background-position: left; background-color: transparent; }
.q-progress span.now { background: var(--ink); }
.q-opt.correct { animation: boing .6s cubic-bezier(.3, 1.6, .5, 1); }
.q-opt.picked:not(.correct) { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.q-score { display: inline-block; animation: boing .9s .2s cubic-bezier(.3, 1.8, .5, 1) backwards; }

/* Lantern faces ink themselves in */
.face.inking > * { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; animation: ink-line .55s var(--ease) forwards, ink-fill .4s .45s ease-out forwards; }
.face.inking > *:nth-child(2) { animation-delay: .15s, .6s; }
@keyframes ink-line { to { stroke-dashoffset: 0; } }
@keyframes ink-fill { to { fill-opacity: 1; } }
.lantern { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.lantern-stage:hover .lantern { transform: rotate(-3deg) scale(1.03); }

/* Lantern draw mode */
.lantern-box { position: relative; width: 100%; max-width: 230px; margin: 0 auto; }
.lantern-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; touch-action: none; }
.lantern-box.drawing .lantern-canvas { pointer-events: auto; cursor: crosshair; }
.lantern-box.drawing .face { display: none; }
.lantern-box.drawing .lantern { transform: none; }
.lantern-box:not(.drawing) .lantern-canvas { opacity: 0; }
.mode-switch { display: flex; border: 1px solid var(--ink); margin-bottom: 16px; }
.mode-btn { flex: 1; background: var(--paper); border: 0; padding: 9px 10px; font-size: 13px; cursor: pointer; }
.mode-btn + .mode-btn { border-left: 1px solid var(--ink); }
.mode-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.draw-hint { font: italic 16px/1.4 var(--serif); color: var(--ink-soft); }
.chip[aria-pressed="true"] { animation: boing .5s cubic-bezier(.3, 1.6, .5, 1); }

/* Paint the past */
.activity-wide { grid-column: 1 / -1; }
.painter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.paint-stage { position: relative; width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 520 / 640; border: 1px solid var(--rule); background: var(--paper); }
.paint-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.paint-layer { mix-blend-mode: multiply; cursor: crosshair; touch-action: none; }
.paint-tip { position: absolute; left: 8%; top: 8%; font: italic 20px var(--serif); color: var(--rust); transform: rotate(-8deg); pointer-events: none; animation: tip-bob 2.4s ease-in-out infinite; transition: opacity .4s; }
.paint-tip::after { content: "↘"; display: inline-block; margin-left: 4px; }
.paint-tip.gone { opacity: 0; }
@keyframes tip-bob { 50% { transform: rotate(-8deg) translateY(-6px); } }
.palette { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; max-width: 420px; }
.swatch { aspect-ratio: 1; border: 0; padding: 0; cursor: pointer; background: var(--c); border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.swatch:nth-child(2n) { border-radius: 55% 45% 48% 52% / 45% 55% 45% 55%; }
.swatch:hover { transform: scale(1.12) rotate(-6deg); }
.swatch[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 3px; transform: scale(1.08); }
.swatch.boing { animation: boing .6s cubic-bezier(.3, 1.8, .5, 1); }
.pigment-note { min-height: 4.2em; font-size: 14.5px; color: var(--ink-soft); padding: 8px 0; margin: 4px 0 18px; border-top: 1px solid var(--rule); }
.pigment-note strong { font: italic 400 18px var(--serif); color: var(--ink); }
.brushes { display: flex; gap: 8px; flex-wrap: wrap; }
.brush-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--rule); padding: 7px 12px; font-size: 13px; cursor: pointer; }
.brush-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--paper-2); }
.brush-dot { display: inline-block; border-radius: 50%; background: var(--ink); }

/* Compass: grab and spin */
.compass { cursor: grab; touch-action: none; user-select: none; }
.compass.grab { cursor: grabbing; }
.compass .c-needle { transition: none; }
.compass-hint { margin-top: -8px; }

/* Surprise text writes on */
.surprise-text { animation: write-in .9s var(--ease) both; }
@keyframes write-in { from { clip-path: inset(0 100% 0 0); opacity: .3; } to { clip-path: inset(0 0 0 0); opacity: 1; } }

@media (max-width: 860px) {
  .painter { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .palette { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 200px; }
}
.motion-off .aside-note { clip-path: none; }
.motion-off .ink-layer { display: none; }
@media (prefers-reduced-motion: reduce) {
  .aside-note { clip-path: none; }
  .swash path { stroke-dashoffset: 0; }
  .face.inking > * { stroke-dashoffset: 0; fill-opacity: 1; }
}


/* =================================================================
   FEATHER PEN, INK MARKS, SCRIBE SCHOOL, HISTORY ACTORS
================================================================= */

/* The feather pen replaces the cursor everywhere (mouse + motion on) */
.pen-on, .pen-on * { cursor: none !important; }
.pen-on input, .pen-on textarea, .pen-on select { cursor: text !important; }
.quill { position: fixed; left: 0; top: 0; width: 54px; height: 54px; z-index: 1000; pointer-events: none; opacity: 0; transform-origin: 0 100%; transition: opacity .15s; will-change: transform; }
.quill.show { opacity: 1; }
.quill svg { overflow: visible; transform-origin: 0 100%; transition: transform .12s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(2px 3px 0 rgba(40,40,32,.18)); }
.quill.press svg { transform: scale(.88) translate(-1px, 2px); }
.q-vane { fill: var(--ink); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.q-barbs { fill: none; stroke: var(--paper); stroke-width: 1.3; stroke-linecap: round; }
.q-shaft { fill: none; stroke: var(--paper); stroke-width: 1.6; stroke-linecap: round; }
.q-nib { fill: var(--ink); stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; }
.q-slit { stroke: var(--rust); stroke-width: 1; }
.pen-trail { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 999; mix-blend-mode: multiply; }
.motion-off .quill, .motion-off .pen-trail { display: none; }

/* Hand-drawn quiz marks */
.ink-mark { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ink-mark path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ink-line .5s var(--ease) forwards; filter: url(#ink-boil); }
.ink-mark.strike path { stroke-width: 3; animation-duration: .35s; }

/* Lantern sketch lines + boil */
.face .sketch { fill: none !important; stroke: var(--ink); stroke-width: 1 !important; opacity: .55; }
.lantern { filter: url(#ink-boil); }
.motion-off .lantern { filter: none; }

/* Scribe school */
.scribe { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.scribe-stage { position: relative; aspect-ratio: 3 / 2; border: 1px solid var(--rule); background: #F1E8D3; box-shadow: inset 0 0 40px rgba(163,120,60,.12); }
.scribe-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scribe-ink { touch-action: none; }
.scribe-seal { position: absolute; right: 4%; top: 6%; width: 116px; height: 116px; border-radius: 50%; background: var(--rust); color: #FBF2E6; display: grid; place-content: center; text-align: center; transform: rotate(-12deg); box-shadow: 0 0 0 4px #F1E8D3, 0 0 0 5px var(--rust); padding: 10px; }
.scribe-seal[hidden] { display: none; }
.scribe-seal strong { font: italic 40px/1 var(--serif); }
.scribe-seal span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; line-height: 1.25; margin-top: 4px; }
.scribe-seal.stamped { animation: seal-in .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes seal-in { 0% { transform: rotate(-30deg) scale(2.2); opacity: 0; } 60% { transform: rotate(-8deg) scale(.9); opacity: 1; } 100% { transform: rotate(-12deg) scale(1); } }
.glyph-note { font: 17px/1.5 var(--serif); color: var(--ink-soft); padding: 8px 0; margin: 6px 0 18px; min-height: 4.5em; border-top: 1px solid var(--rule); }

/* History actors */
.actors { position: fixed; bottom: 14px; z-index: 50; width: 200px; pointer-events: none; transition: left .01s, right .01s; }
.actors.side-left { left: 14px; }
.actors.side-right { right: 14px; }
.actors.off { display: none; }
.actors-card { background: var(--paper); border: 1.5px solid var(--ink); padding: 6px 8px 8px; box-shadow: 4px 4px 0 rgba(40,40,32,.14); transform: rotate(-1deg); }
.actors.side-right .actors-card { transform: rotate(1deg); }
.actors-svg { width: 100%; height: auto; overflow: visible; filter: url(#ink-boil); }
.actors-svg * { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.actors-svg text { stroke: none; fill: var(--ink); font: italic 14px Georgia, serif; }
.actors-svg .ground { stroke-width: 1.6; }
.actors-svg .grass { stroke-width: 1.2; }
.actors-svg .sky, .actors-svg .stars *, .actors-svg .moon { stroke: none; }
.actors-caption { margin: 2px 0 0; font: italic 12.5px/1.3 var(--serif); color: var(--ink-soft); }
.actors-close { position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); font-size: 16px; line-height: 1; cursor: pointer; pointer-events: auto; display: grid; place-items: center; padding: 0; }
.actors-close:hover { background: var(--ink); color: var(--paper); }
.footer-toggle { background: none; border: 0; padding: 0; margin-top: 8px; cursor: pointer; font-size: 12.5px; color: var(--muted); }

/* jump in / out between scenes */
.actors.entering .actors-card { animation: actor-in .6s cubic-bezier(.3, 1.6, .5, 1); }
.actors.leaving .actors-card { animation: actor-out .32s ease-in forwards; }
@keyframes actor-in { 0% { transform: translateY(120%) rotate(6deg); } 60% { transform: translateY(-8%) rotate(-2deg); } 100% { transform: translateY(0) rotate(-1deg); } }
@keyframes actor-out { to { transform: translateY(130%) rotate(-6deg); opacity: 0; } }

/* idle acting */
.actors .wave, .actors .carve, .actors .scribble, .actors .leg-l, .actors .leg-r, .actors .lean { transform-box: fill-box; }
.actors .hop { animation: hop 2.6s cubic-bezier(.3, 1.6, .5, 1) infinite; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-14px); } 80% { transform: translateY(0) scale(1.05, .95); } 86% { transform: translateY(-4px); } }
.actors .bob { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-2px); } }
.actors .wave { transform-origin: 0 0; animation: wave .5s ease-in-out infinite alternate; }
@keyframes wave { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
.actors .carve { transform-origin: 0 0; animation: carve .35s ease-in-out infinite alternate; }
@keyframes carve { from { transform: rotate(-8deg); } to { transform: rotate(10deg); } }
.actors .scribble { transform-origin: 0 0; animation: scribble .22s ease-in-out infinite alternate; }
@keyframes scribble { from { transform: rotate(-4deg); } to { transform: rotate(5deg) translateX(1px); } }
.actors .bubble { transform-box: fill-box; transform-origin: 0 100%; }
.actors .bubble.pop { animation: bubble-pop 3.2s cubic-bezier(.3, 1.6, .5, 1) infinite; }
@keyframes bubble-pop { 0%, 8% { transform: scale(0); } 18%, 85% { transform: scale(1); } 100% { transform: scale(0); } }
.actors .cut { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; }
.actors .glow { opacity: 0; filter: blur(6px); stroke: none !important; }
.actors .line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.actors .moon { opacity: 0; transition: opacity .4s; }
.actors .stars circle { animation: twinkle-star 2s ease-in-out infinite alternate; }
.actors .stars circle:nth-child(2n) { animation-delay: .7s; }
@keyframes twinkle-star { to { opacity: .3; } }
.actors .eureka-bubble { transform: scale(0); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.actors .eureka .eureka-bubble { transform: scale(1); }
.actors .splash { opacity: 0; }
.actors .splash circle { fill: #9DB7C4; stroke: none; }
.actors .eureka .splash { opacity: 1; animation: splash .7s ease-out infinite; }
@keyframes splash { from { transform: translateY(6px); opacity: 1; } to { transform: translateY(-8px); opacity: 0; } }
.actors .eureka .jumper { animation: hop 1.1s cubic-bezier(.3, 1.6, .5, 1) infinite; }
.actors .water { animation: slosh 1.6s ease-in-out infinite alternate; stroke: none !important; }
@keyframes slosh { to { transform: translateX(3px); } }
.actors .lean { transform-origin: 50% 100%; transform: rotate(-10deg); }
.actors .lean2 { transform: rotate(-8deg); }
.actors .walk .leg-l { transform-origin: 50% 0; animation: step .5s ease-in-out infinite alternate; }
.actors .walk .leg-r { transform-origin: 50% 0; animation: step .5s ease-in-out infinite alternate-reverse; }
@keyframes step { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
.actors .pour circle { animation: pour .9s linear infinite; }
.actors .pour circle:nth-child(2) { animation-delay: .3s; }
.actors .pour circle:nth-child(3) { animation-delay: .6s; }
@keyframes pour { from { transform: translateY(0); opacity: 1; } to { transform: translateY(56px); opacity: .2; } }
.motion-off .actors-svg { filter: none; }

@media (max-width: 860px) {
  .scribe { grid-template-columns: 1fr; }
  .actors { width: 150px; bottom: 10px; }
  .actors.side-left { left: 10px; } .actors.side-right { right: 10px; }
  .actors-caption { font-size: 11px; }
}
@media (max-width: 560px) {
  .actors { width: 104px; }
  .actors-caption { display: none; }
  .scribe-seal { width: 92px; height: 92px; }
  .scribe-seal strong { font-size: 30px; }
}
@media print { .actors, .quill, .pen-trail, .ink-layer { display: none !important; } }

/* ---------- Print: lantern only ---------- */
.print-sheet { display: none; }
@media print {
  body.printing-lantern > *:not(.print-sheet) { display: none !important; }
  body.printing-lantern .print-sheet { display: block; text-align: center; padding: 24px; }
  .print-sheet h1 { font-size: 30px; margin-bottom: 6px; }
  .print-sheet p { font-size: 13px; color: #444; }
  .print-sheet svg { width: 70%; max-width: 420px; margin: 24px auto; }
  .print-sheet .face { animation: none; }
}

/* motion-off wins over everything above */
.motion-off *, .motion-off *::before, .motion-off *::after { animation: none !important; }
.motion-off .face.inking > * { stroke-dashoffset: 0; fill-opacity: 1; }

/* ---------- Legal pages ---------- */
.legal-masthead { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.legal-masthead .masthead-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.legal-nav a { text-decoration: none; color: var(--ink-soft); }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { color: var(--rust); text-decoration: underline; text-underline-offset: 4px; }
.legal-page { padding: 48px 0 72px; }
.legal-page .legal-kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--rust); font-weight: 700; margin: 0 0 10px; }
.legal-page h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 12px; max-width: 18ch; }
.legal-lede { font: italic 19px/1.45 var(--serif); color: var(--ink-soft); max-width: 62ch; margin: 0 0 28px; }
.legal-meta { font-size: 13px; color: var(--muted); margin: 0 0 36px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: clamp(24px, 3vw, 30px); margin: 36px 0 12px; }
.legal-body h3 { font-size: 20px; margin: 24px 0 8px; }
.legal-body p, .legal-body li { font-size: 16px; color: var(--ink-soft); }
.legal-body ul, .legal-body ol { padding-left: 1.2em; margin: 0 0 1em; }
.legal-body li { margin-bottom: .45em; }
.legal-body a { color: var(--rust); text-decoration: underline; text-underline-offset: 3px; }
.legal-note { background: var(--paper-2); border: 1px solid var(--rule); padding: 14px 18px; margin: 24px 0; font-size: 14px; color: var(--ink-soft); }
.legal-note p:last-child { margin-bottom: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; font-size: 12.5px; }
.footer-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--rust); }
.footer-company { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.footer-company a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-company a:hover { color: var(--rust); }

/* ---------- Consent banner ---------- */
.consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 560px; margin: 0 auto;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(40,40,32,.12); padding: 18px 20px 16px;
}
.consent-banner[hidden] { display: none !important; }
.consent-banner h2 { font-size: 22px; margin: 0 0 8px; }
.consent-banner p { margin: 0 0 14px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.consent-banner a { color: var(--rust); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-actions .btn { min-height: 40px; padding: 0 16px; font-size: 13px; }
.consent-prefs { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.consent-prefs[hidden] { display: none !important; }
.consent-opt { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.consent-opt:last-child { border-bottom: 0; }
.consent-opt strong { display: block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.consent-opt span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.consent-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--rust); }
.consent-opt.is-locked strong::after { content: " · always on"; font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
@media (max-width: 620px) {
  .consent-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .consent-actions .btn { flex: 1 1 auto; }
  .legal-nav { display: none; }
}

/* ---------- Story / AEO pages ---------- */
.answer-box {
  background: var(--paper-2);
  border: 1px solid var(--ink);
  padding: 18px 20px;
  margin: 0 0 28px;
  max-width: 72ch;
}
.answer-box .answer-label {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rust);
}
.answer-box p { margin: 0; font-size: 17px; color: var(--ink); line-height: 1.55; }
.story-toc { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.story-toc a { color: var(--rust); }
.faq-list { max-width: 72ch; margin: 0; padding: 0; list-style: none; }
.faq-list li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.faq-list li:first-child { border-top: 1px solid var(--rule); }
.faq-list h3 { font-size: 20px; margin: 0 0 8px; }
.faq-list p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.faq-list a { color: var(--rust); }
.story-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }
.updated { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
