/* D. R. Berlin — redesign concept v2 ("From case file to cinema")
   Concept: a classified file left on a desk in a dark manor — now lit like a film.
   Two worlds: Book One is rain at the manor; Book Two is ember light at the mountain door. */

:root {
  --ink: #0b1117;
  --ink-2: #111a22;
  --ink-3: #1a2530;
  --felt: #141a1f;
  --on-ink: #ebe4d5;
  --fog: #9faab4;
  --line-ink: rgba(235, 228, 213, 0.14);

  --paper: #ece5d6;
  --paper-2: #e2d9c6;
  --newsprint: #f3eee2;
  --on-paper: #17150f;
  --paper-mute: #5a5246;
  --line-paper: rgba(23, 21, 15, 0.16);

  --lamp: #e6a84b;
  --on-lamp: #1a1206;
  --ember: #a63a16;
  --ember-bright: #e0652f;
  --string: #c23a22;
  --redaction: #121110;

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-file: "Courier Prime", "Courier New", Courier, monospace;

  --fs-hero: clamp(3rem, 1.2rem + 6vw, 7rem);
  --fs-h2: clamp(2.3rem, 1.3rem + 3.6vw, 4.6rem);
  --fs-h3: clamp(2.6rem, 1.4rem + 4vw, 5.6rem);
  --fs-lede: clamp(1.2rem, 1.02rem + 0.7vw, 1.55rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-file: 0.8125rem;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --section: clamp(88px, 11vw, 168px);

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-wipe: cubic-bezier(0.75, 0, 0.2, 1);

  --torn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='18' viewBox='0 0 600 18' preserveAspectRatio='none'%3E%3Cpath fill='%23ece5d6' d='M0 18 L0 10 L11 5 L23 13 L29 4 L43 4 L54 12 L60 11 L69 3 L76 9 L88 4 L97 4 L111 9 L117 12 L124 6 L139 3 L154 12 L166 3 L175 3 L189 5 L199 9 L207 11 L214 12 L224 11 L232 4 L247 12 L256 8 L263 11 L270 12 L276 12 L285 10 L299 9 L310 10 L325 10 L336 7 L345 15 L353 14 L362 4 L377 7 L391 10 L402 14 L415 7 L430 4 L437 11 L449 5 L460 5 L473 9 L479 13 L486 15 L500 12 L511 8 L522 12 L535 12 L548 4 L555 7 L568 14 L575 3 L585 13 L600 10 L600 18 Z'/%3E%3C/svg%3E");
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }
.on-paper :focus-visible { outline-color: var(--on-paper); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--lamp); color: var(--on-lamp); padding: 10px 16px;
  font-weight: 700; text-decoration: none; transition: top 0.2s;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Shared type ---------- */

.file-label {
  font-family: var(--font-file);
  font-size: var(--fs-file);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}
.display { font-family: var(--font-display); font-optical-sizing: auto; letter-spacing: -0.02em; }
.display em { font-style: italic; }

.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 14px; border-bottom: 1px solid currentColor; margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head .file-label:last-child { opacity: 0.7; }

.on-paper { background: var(--paper); color: var(--on-paper); }
.on-paper .muted { color: var(--paper-mute); }
.muted-ink { color: var(--fog); }

/* Torn paper edges */
.torn { position: relative; }
.torn::before, .torn::after {
  content: ""; position: absolute; left: 0; right: 0; height: 18px; pointer-events: none;
  background: var(--torn) repeat-x; background-size: 600px 18px; z-index: 2;
}
.torn::before { top: -17px; }
.torn::after { bottom: -17px; transform: scaleY(-1); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: 0.01em;
  text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color 0.18s var(--ease-out), color 0.18s var(--ease-out), border-color 0.18s;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.2s var(--ease-out); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--lamp { background: var(--lamp); color: var(--on-lamp); }
.btn--lamp:hover { background: #f0b964; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size 0.25s var(--ease-out);
}
.text-link:hover { background-size: 0% 1px; background-position: right bottom; }
.text-link svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(11, 17, 23, 0.6), rgba(11, 17, 23, 0)); border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-solid { background: var(--ink); border-bottom-color: var(--line-ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.wordmark {
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.nav-list { display: flex; gap: clamp(16px, 2.2vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav-list a {
  font-size: 0.9375rem; text-decoration: none; color: rgba(235, 228, 213, 0.82);
  padding: 10px 0; position: relative; transition: color 0.15s;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--lamp);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease-out);
}
.nav-list a:hover { color: var(--on-ink); }
.nav-list a:hover::after { transform: scaleX(1); }
.header-cta { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }

.menu-btn {
  display: none; min-height: 44px; min-width: 44px; padding: 0 14px;
  background: rgba(11, 17, 23, 0.5); color: var(--on-ink); border: 1px solid var(--line-ink);
  font-family: var(--font-file); font-size: var(--fs-file); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.mobile-menu {
  position: fixed; inset: 72px 0 0; z-index: 49; background: var(--ink);
  padding: 32px var(--gutter); display: none; flex-direction: column; gap: 4px; overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 2.25rem; text-decoration: none; padding: 10px 0;
  border-bottom: 1px solid var(--line-ink);
}
.mobile-menu .btn { margin-top: 24px; justify-content: center; font-family: var(--font-body); font-size: 1rem; }

/* ---------- 1 · Hero: two worlds ---------- */

.hero { position: relative; min-height: max(100svh, 760px); overflow: hidden; isolation: isolate; display: flex; }
.worlds { position: absolute; inset: 0; z-index: -1; }
.world { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease-out); overflow: hidden; }
.world.is-active { opacity: 1; }
.world > img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 40%; }
.world--manor > img { object-position: 62% 40%; }
.world--tango > img { object-position: 62% 45%; }
.world--tango .tint { position: absolute; inset: 0; background: radial-gradient(ellipse at 75% 25%, rgba(224, 101, 47, 0.22), transparent 60%); mix-blend-mode: screen; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 17, 23, 0.95) 0%, rgba(11, 17, 23, 0.8) 32%, rgba(11, 17, 23, 0.25) 66%, rgba(11, 17, 23, 0.4) 100%),
    linear-gradient(0deg, rgba(11, 17, 23, 0.96) 0%, rgba(11, 17, 23, 0) 40%),
    linear-gradient(180deg, rgba(11, 17, 23, 0.6) 0%, rgba(11, 17, 23, 0) 20%);
}

/* Rain over the manor */
.rain {
  position: absolute; inset: -20% 0 0; opacity: 0.35; pointer-events: none;
  background-image:
    repeating-linear-gradient(104deg, transparent 0 22px, rgba(200, 215, 230, 0.22) 22px 23px, transparent 23px 61px),
    repeating-linear-gradient(101deg, transparent 0 37px, rgba(200, 215, 230, 0.14) 37px 38px, transparent 38px 89px);
  background-size: 100% 160px, 100% 240px;
}
.lightning { position: absolute; inset: 0; background: rgba(190, 215, 255, 0.9); opacity: 0; mix-blend-mode: overlay; pointer-events: none; }

/* Embers at the mountain door */
.embers { position: absolute; inset: 0; pointer-events: none; }
.embers i {
  position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%;
  background: #ffb36b; box-shadow: 0 0 6px 2px rgba(255, 140, 60, 0.6); opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .world.is-active > img { animation: kenburns 28s ease-in-out infinite alternate; }
  .rain { animation: rain 0.55s linear infinite; }
  .world--manor.is-active .lightning { animation: lightning 9s 2.5s infinite; }
  .embers i { animation: ember var(--d, 9s) var(--delay, 0s) linear infinite; }
  @keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
  @keyframes rain { from { background-position: 0 0, 0 0; } to { background-position: -36px 160px, -36px 240px; } }
  @keyframes lightning { 0%, 91%, 100% { opacity: 0; } 92% { opacity: 0.55; } 93% { opacity: 0.05; } 94.5% { opacity: 0.4; } 96% { opacity: 0; } }
  @keyframes ember {
    0% { transform: translate(0, 0) scale(1); opacity: 0; }
    10% { opacity: 0.9; }
    80% { opacity: 0.7; }
    100% { transform: translate(var(--dx, 40px), -90vh) scale(0.4); opacity: 0; }
  }
}

.hero__inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px;
  padding-top: 128px; padding-bottom: clamp(32px, 5vw, 56px);
}
.hero__label { display: flex; align-items: center; gap: 12px; color: var(--fog); margin-bottom: 24px; }
.hero__label::before { content: ""; width: 28px; height: 1px; background: var(--lamp); }
.hero h1 { font-size: var(--fs-hero); line-height: 0.92; font-weight: 500; max-width: 12ch; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5); }
.hero h1 em { font-weight: 400; }
.hero__lede { margin-top: 26px; max-width: 32rem; font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); line-height: 1.5; color: #c7ced5; }
.hero__lede strong { color: var(--on-ink); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }

/* A24-style title index — hover or focus a title to change the world */
.titles { list-style: none; margin: clamp(40px, 6vh, 72px) 0 0; padding: 0; max-width: 780px; border-top: 1px solid rgba(235, 228, 213, 0.25); }
.titles li { border-bottom: 1px solid rgba(235, 228, 213, 0.25); }
.titles a {
  display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; align-items: baseline; gap: 12px;
  padding: 14px 0; text-decoration: none; color: rgba(235, 228, 213, 0.5); transition: color 0.3s;
}
.titles__n { font-family: var(--font-file); font-size: var(--fs-file); letter-spacing: 0.14em; }
.titles__t { font-family: var(--font-display); font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3.3rem); line-height: 1; letter-spacing: -0.02em; }
.titles__tag { font-family: var(--font-file); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.titles a.is-active, .titles a:hover, .titles a:focus-visible { color: var(--on-ink); }
.titles a.is-active .titles__t { font-style: italic; }
.titles a.is-active .titles__tag { color: var(--lamp); }

/* Exhibit photo that follows the active world */
.hero__photo { position: relative; width: clamp(220px, 21vw, 320px); margin: 0 0 6px; transform: rotate(3deg); }
.hero__photo .frame { position: relative; background: #f4efe3; padding: 10px 10px 44px; box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.8); }
.hero__photo .swap { position: relative; }
.hero__photo .swap img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero__photo .swap img + img { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s var(--ease-out); }
.hero[data-world="tango"] .hero__photo .swap img + img { opacity: 1; }
.hero__photo figcaption { position: absolute; left: 12px; right: 12px; bottom: 13px; color: #3a352c; display: flex; justify-content: space-between; font-size: 0.6875rem; }
.tape {
  position: absolute; width: 96px; height: 28px; background: rgba(236, 229, 214, 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.hero__photo .tape { top: -12px; left: 50%; transform: translateX(-50%) rotate(-4deg); }
.hero__photo .stamp { position: absolute; right: -16px; top: 22px; background: rgba(244, 239, 227, 0.9); font-size: 0.6875rem; }

.hero__edge {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; color: rgba(235, 228, 213, 0.4); font-size: 0.6875rem; margin: 0;
}

/* ---------- 2 · Seal band ---------- */

.honors { padding: 30px 0 28px; overflow: hidden; z-index: 3; }
.honors__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.honors__tab {
  position: relative; z-index: 3; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 0 clamp(20px, 3vw, 40px) 0 var(--gutter); background: var(--paper);
  box-shadow: 24px 0 24px -8px var(--paper);
}
.honors__tab b { font-family: var(--font-display); font-size: clamp(3.4rem, 2rem + 4vw, 5.6rem); font-weight: 500; line-height: 0.85; letter-spacing: -0.04em; font-variant-numeric: lining-nums; }
.honors__tab .file-label { color: var(--paper-mute); max-width: 16ch; }
.honors__controls { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 4px; }
.honors__controls a, .honors__controls button {
  min-height: 36px; padding: 0; background: none; border: 0; color: var(--on-paper); cursor: pointer;
  font-family: var(--font-file); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px;
}
.marquee { display: grid; gap: 12px; min-width: 0; background: var(--paper); padding-block: 4px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee__row { display: flex; width: max-content; background: var(--paper); }
.marquee__set { display: flex; gap: 22px; padding-right: 22px; margin: 0; padding-left: 0; list-style: none; }
.seal-chip { flex: none; width: 92px; height: 92px; margin: 0; }
.seal-chip img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__row { animation: marquee var(--speed, 150s) linear infinite; }
  .marquee__row--rev { animation-direction: reverse; }
  .honors:hover .marquee__row, .honors:focus-within .marquee__row, .honors.is-paused .marquee__row { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee__set[aria-hidden="true"] { display: none; }
  .honors__controls button { display: none; }
}

/* ---------- 3 · Case board ---------- */

.case { padding-block: calc(var(--section) + 10px) var(--section); background: radial-gradient(ellipse at 50% 30%, #1d252c 0%, var(--felt) 60%, #0e1317 100%); }
.case .section-head { border-color: var(--line-ink); }
.case__intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.case__intro h2 { font-size: var(--fs-h2); line-height: 1; max-width: 13ch; }
.case__intro .lede { font-size: var(--fs-lede); line-height: 1.5; margin-bottom: 20px; color: #cfd5da; }
.declassify-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.declassify-btn {
  min-height: 44px; padding: 0 14px; background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 0;
  font-family: var(--font-file); font-size: var(--fs-file); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.declassify-btn:hover { background: var(--on-ink); color: var(--ink); }
.declassify-btn:disabled { opacity: 0.5; cursor: default; }

/* Signature: redaction bars */
.redact {
  cursor: pointer; border-radius: 1px; color: transparent;
  background-image: linear-gradient(var(--redaction), var(--redaction));
  background-repeat: no-repeat; background-position: right center; background-size: 100% 86%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 0.5s var(--ease-wipe), color 0.2s 0.2s;
}
.redact:hover { background-size: 100% 64%; }
.redact[aria-pressed="true"] { color: inherit; background-size: 0% 86%; cursor: default; text-decoration: underline; text-decoration-color: var(--ember-bright); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.case__intro .redact, .book .redact { --redaction: #000; box-shadow: 0 0 0 1px rgba(235, 228, 213, 0.12); }
.case__intro .redact[aria-pressed="true"], .book .redact[aria-pressed="true"] { box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .redact { transition: none; } }

/* The evidence board */
.board { position: relative; aspect-ratio: 1240 / 780; }
.board__strings { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.board__strings path { fill: none; stroke: var(--string); stroke-width: 1.6; opacity: 0.85; transition: opacity 0.3s, stroke-width 0.3s, stroke 0.3s; }
.board.is-tracing .board__strings path { opacity: 0.15; }
.board.is-tracing .board__strings path.is-hot { opacity: 1; stroke: #ff5a36; stroke-width: 2.6; }
.pin {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); z-index: 2; margin: 0;
  transform: rotate(var(--r, 0deg)); transition: transform 0.35s var(--ease-out), opacity 0.3s, filter 0.3s;
}
.pin::before {
  content: ""; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; z-index: 3;
  background: radial-gradient(circle at 35% 35%, #ff8a6a, #c23a22 55%, #6d1608);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.6);
}
.pin:hover, .pin:focus-visible { transform: rotate(0deg) scale(1.03); z-index: 4; }
.board.is-tracing .pin:not(.is-linked) { opacity: 0.4; filter: saturate(0.3); }
.pin:focus-visible { outline-offset: 6px; }

.pin--photo { background: #f4efe3; padding: 9px 9px 0; box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.75); color: var(--on-paper); }
.pin--photo img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: contrast(1.05) saturate(0.9); }
.pin--photo figcaption { padding: 10px 2px 12px; font-size: 0.8125rem; line-height: 1.35; }
.pin--photo figcaption b { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.1; margin-bottom: 2px; }
.pin--photo figcaption span { color: var(--paper-mute); }

.pin--card {
  background: var(--newsprint); color: var(--on-paper); padding: 20px 22px 18px; box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.75);
  background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(80, 120, 170, 0.18) 27px 28px);
  background-position: 0 46px;
}
.pin--card h3 { font-family: var(--font-file); font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 2px solid #c23a22; padding-bottom: 6px; margin-bottom: 8px; }
.pin--card p { font-family: var(--font-file); font-size: 0.9375rem; line-height: 1.8; margin: 0; }

.pin--note { background: #efe2b8; color: #2b2410; padding: 18px 18px 16px; box-shadow: 0 16px 26px -12px rgba(0, 0, 0, 0.7); }
.pin--note p { font-family: var(--font-file); font-size: 0.875rem; line-height: 1.55; margin: 0; }
.pin--note b { display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px; }

.pin--folder { color: var(--on-paper); filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.6)); }
.pin--folder::before { top: 22px; }
.folder__tab { display: inline-block; margin-left: 18px; padding: 6px 18px 4px; background: #d7c08f; border-radius: 6px 6px 0 0; font-family: var(--font-file); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.14em; }
.folder__body { position: relative; background: linear-gradient(170deg, #dcc797, #cdb47e); padding: 26px 24px 24px; border-radius: 0 4px 4px 4px; }
.folder__body h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.4rem); line-height: 1; margin-bottom: 10px; }
.folder__body p { font-size: 0.9375rem; line-height: 1.5; margin: 0; max-width: 26ch; }
.folder__body .stamp { position: absolute; right: 14px; bottom: 14px; }
.folder__body p { padding-right: 100px; max-width: none; }

.stamp {
  display: inline-block; font-family: var(--font-file); font-weight: 700; font-size: 0.8125rem;
  letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.25; text-align: center;
  color: var(--ember); border: 3px double currentColor; padding: 6px 12px; transform: rotate(-7deg);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 1 1 1 1 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 1 1 1 1 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: no-preference) {
  .board.is-armed .pin { opacity: 0; transform: translateY(-24px) rotate(calc(var(--r, 0deg) * 3)); }
  .board.is-armed.is-in .pin { opacity: 1; transform: rotate(var(--r, 0deg)); transition: transform 0.6s var(--ease-out) calc(var(--i, 0) * 90ms), opacity 0.4s calc(var(--i, 0) * 90ms), filter 0.3s; }
  .board.is-armed.is-in .pin:hover, .board.is-armed.is-in .pin:focus-visible { transform: rotate(0deg) scale(1.03); transition-delay: 0s; }
  .board.is-armed .board__strings path { stroke-dasharray: 2400; stroke-dashoffset: 2400; }
  .board.is-armed.is-in .board__strings path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-out) 0.7s, opacity 0.3s, stroke-width 0.3s; }
}

/* ---------- 4 · Book panels ---------- */

.book { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(96px, 12vw, 180px); }
.book__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.book::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.book--manor { --accent: #9cc0e4; }
.book--tango { --accent: var(--ember-bright); }
.book--manor::before {
  background:
    linear-gradient(90deg, rgba(8, 14, 22, 0.97) 0%, rgba(8, 14, 22, 0.88) 46%, rgba(8, 14, 22, 0.42) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 20%), linear-gradient(180deg, #0e1317 0%, transparent 18%);
}
.book--tango::before {
  background:
    linear-gradient(270deg, rgba(20, 10, 6, 0.97) 0%, rgba(20, 10, 6, 0.86) 48%, rgba(20, 10, 6, 0.38) 100%),
    linear-gradient(0deg, #07090b 0%, transparent 20%), linear-gradient(180deg, var(--ink) 0%, transparent 18%);
}
.book__bg--manor { object-position: 80% 45%; }
.book__bg--tango { object-position: 22% 45%; }

.fog {
  position: absolute; inset: -10% -30%; z-index: -1; pointer-events: none; opacity: 0.4;
  background:
    radial-gradient(ellipse 40% 20% at 20% 75%, rgba(200, 215, 230, 0.3), transparent 70%),
    radial-gradient(ellipse 35% 18% at 70% 85%, rgba(200, 215, 230, 0.26), transparent 70%),
    radial-gradient(ellipse 30% 15% at 45% 65%, rgba(200, 215, 230, 0.2), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .fog { animation: fog 38s ease-in-out infinite alternate; }
  @keyframes fog { to { transform: translateX(14%); } }
}

.book__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.book--tango .book__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.book--tango .book__photo { order: -1; }

.book__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--fog); margin-bottom: 26px; }
.book__meta .start { color: var(--accent); font-weight: 700; }
.book__series { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--accent); margin-bottom: 0; }
.book h3 { font-size: var(--fs-h3); line-height: 0.92; margin-bottom: 30px; }
.book__logline { font-family: var(--font-display); font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2.05rem); line-height: 1.28; font-style: italic; margin-bottom: 24px; max-width: 30ch; }
.book__body { max-width: 38rem; color: #c9cfd4; }
.book details { max-width: 38rem; margin-bottom: 28px; color: #c9cfd4; }
.book summary {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; color: var(--on-ink);
  font-family: var(--font-file); font-size: var(--fs-file); letter-spacing: 0.14em; text-transform: uppercase;
}
.book summary::-webkit-details-marker { display: none; }
.book summary::before { content: "+"; font-family: var(--font-body); font-size: 1.25rem; line-height: 1; width: 14px; color: var(--accent); }
.book details[open] summary::before { content: "−"; }
.book details[open] > div { padding-top: 12px; animation: unfold 0.35s var(--ease-out); }
@keyframes unfold { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .book details[open] > div { animation: none; } }

.book__quote { margin: 0 0 30px; padding-left: 20px; border-left: 2px solid var(--accent); max-width: 34rem; }
.book__quote p { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.3; margin-bottom: 6px; }
.book__quote cite { font-style: normal; color: var(--fog); }

/* Format tickets */
.tickets-label { color: var(--fog); margin-bottom: 12px; }
.tickets { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 40rem; }
.ticket {
  position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 96px; padding: 14px 18px 12px; text-decoration: none;
  background: rgba(235, 228, 213, 0.07); border: 1px solid rgba(235, 228, 213, 0.3); color: var(--on-ink);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
  -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.ticket:hover { background: rgba(235, 228, 213, 0.14); border-color: var(--on-ink); transform: translateY(-2px); }
.ticket b { font-size: 1rem; }
.ticket span { font-size: 0.8125rem; color: var(--fog); }
.ticket em { margin-top: auto; padding-top: 8px; border-top: 1px dashed rgba(235, 228, 213, 0.3); font-style: normal; font-family: var(--font-file); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }
.ticket em svg { width: 12px; height: 12px; }
.ticket--primary { background: var(--lamp); border-color: var(--lamp); color: var(--on-lamp); }
.ticket--primary span { color: #4a3510; }
.ticket--primary em { border-top-color: rgba(26, 18, 6, 0.35); }
.ticket--primary:hover { background: #f0b964; border-color: #f0b964; }
.book__extras { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* Cover as a taped evidence photo */
.book__photo { position: relative; margin: 0; justify-self: center; width: min(100%, 460px); transform: rotate(var(--r, 2deg)); }
.book--tango .book__photo { --r: -2.5deg; }
.book__photo .frame { position: relative; background: #f4efe3; padding: 14px 14px 58px; box-shadow: 0 40px 70px -24px rgba(0, 0, 0, 0.85); }
.book__photo .tape { top: -14px; left: 18%; transform: rotate(-6deg); }
.book__photo .tape + .tape { left: auto; right: 14%; transform: rotate(5deg); }
.book__photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 18px; display: flex; justify-content: space-between; color: #3a352c; }
.book__photo .stamp { position: absolute; right: -18px; top: 28px; background: rgba(244, 239, 227, 0.9); }
@media (prefers-reduced-motion: no-preference) {
  .book__photo { transition: transform 0.6s var(--ease-out); }
  .book__photo:hover { transform: rotate(0deg) translateY(-4px); }
}

/* ---------- 5 · Screening room ---------- */

.screening { position: relative; padding-block: calc(var(--section) + 20px); background: #07090b; }
.screening::before, .screening::after {
  content: ""; position: absolute; left: 0; right: 0; height: 30px; background-color: #000;
  background-image: repeating-linear-gradient(90deg, transparent 0 14px, rgba(235, 228, 213, 0.7) 14px 28px, transparent 28px 40px);
  background-size: 40px 12px; background-repeat: repeat-x; background-position: 0 center;
}
.screening::before { top: 0; }
.screening::after { bottom: 0; }
.screening .section-head { border-color: var(--line-ink); }
.screening h2 { font-size: var(--fs-h2); line-height: 1; margin-bottom: clamp(36px, 5vw, 56px); max-width: 14ch; }
.now-showing { display: inline-flex; align-items: center; gap: 10px; color: var(--lamp); }
.now-showing::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff4a2e; box-shadow: 0 0 10px #ff4a2e; }
@media (prefers-reduced-motion: no-preference) { .now-showing::before { animation: rec 1.6s steps(2) infinite; } @keyframes rec { 50% { opacity: 0.2; } } }
.reels { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px clamp(20px, 3vw, 40px); }
.reels__side { display: grid; gap: 28px; align-content: start; }
.reel { margin: 0; }
.reel__frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; box-shadow: 0 0 0 1px #1d2329, 0 30px 80px -30px rgba(230, 168, 75, 0.3); }
.reel__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel__play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; color: var(--on-ink); }
.reel__play img { width: 100%; height: 100%; object-fit: cover; opacity: 0.86; transition: opacity 0.3s, transform 0.6s var(--ease-out); }
.reel__play:hover img { opacity: 1; transform: scale(1.015); }
.reel__btn {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px; background: var(--lamp); color: var(--on-lamp); font-weight: 700; font-size: 0.9375rem;
}
.reel__btn svg { width: 12px; height: 12px; }
.reel figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.reel figcaption strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }

/* ---------- 6 · Verdict: press clippings ---------- */

.verdict { padding-block: var(--section); }
.verdict__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.verdict__big { margin: 0; position: sticky; top: 110px; }
.verdict__big p { font-family: var(--font-display); font-size: clamp(2.1rem, 1.2rem + 3vw, 4rem); line-height: 1.06; letter-spacing: -0.015em; margin-bottom: 28px; }
.verdict__big p::before { content: "“"; display: block; font-size: 1.6em; line-height: 0.6; height: 0.45em; color: var(--ember); }
.verdict__big cite { font-style: normal; }
.clippings { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 22px; }
.clipping {
  break-inside: avoid; position: relative; margin: 0 0 26px; padding: 22px 20px 18px; background: var(--newsprint);
  box-shadow: 0 14px 24px -16px rgba(23, 21, 15, 0.55); transform: rotate(var(--r, 0deg));
  clip-path: polygon(0 2%, 4% 0, 30% 1.5%, 58% 0, 86% 1.2%, 100% 0, 99% 30%, 100% 62%, 99% 100%, 70% 98.5%, 40% 100%, 12% 98.6%, 0 100%, 1% 64%);
}
.clipping blockquote { margin: 0; }
.clipping .kicker { font-family: var(--font-file); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember); margin-bottom: 8px; }
.clipping p { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; margin-bottom: 12px; }
.clipping cite { font-style: normal; display: block; padding-top: 10px; border-top: 1px solid var(--line-paper); color: var(--paper-mute); }
.clipping:nth-child(1) { --r: -1.2deg; }
.clipping:nth-child(2) { --r: 1deg; }
.clipping:nth-child(3) { --r: 0.6deg; }
.clipping:nth-child(4) { --r: -0.8deg; }
.clipping:nth-child(5) { --r: 1.2deg; }
.clipping:nth-child(6) { --r: -0.5deg; }
.verdict__more { margin-top: 8px; }

/* ---------- 7 · Distinctions: the trophy cabinet ---------- */

.ledger { padding-block: var(--section); background: radial-gradient(ellipse at 50% 0%, #17212b, var(--ink) 60%); }
.ledger .section-head { border-color: var(--line-ink); }
.ledger__top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.ledger__count { color: var(--on-ink); margin: 0; font-family: var(--font-display); font-size: clamp(7rem, 4rem + 14vw, 17rem); line-height: 0.78; font-weight: 400; letter-spacing: -0.05em; font-variant-numeric: lining-nums tabular-nums; }
.ledger__top h2 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem); line-height: 1.08; max-width: 18ch; margin-bottom: 16px; }
.ledger__top div p { color: var(--fog); max-width: 36rem; margin: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  min-height: 44px; padding: 0 16px; background: transparent; color: var(--fog); border: 1px solid var(--line-ink); border-radius: 0;
  font-family: var(--font-file); font-size: var(--fs-file); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.filter:hover { color: var(--on-ink); border-color: var(--fog); }
.filter[aria-pressed="true"] { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.filter b { font-weight: 700; margin-left: 6px; font-variant-numeric: tabular-nums; }

.cabinet { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line-ink); border-left: 1px solid var(--line-ink); }
.trophy {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 28px 14px 22px; border-right: 1px solid var(--line-ink); border-bottom: 1px solid var(--line-ink);
  background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(230, 168, 75, 0.09), transparent 70%);
  transition: background-color 0.25s;
}
.trophy:hover { background-color: rgba(235, 228, 213, 0.04); }
.medallion {
  width: clamp(96px, 8vw, 128px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; margin-bottom: 12px;
  background: radial-gradient(circle at 40% 35%, #fbf7ee, #ebe2cf 68%, #d8cbb0);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 16px 26px -10px rgba(0, 0, 0, 0.85), inset 0 -4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s var(--ease-out);
}
.medallion img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.medallion--text { font-family: var(--font-display); color: var(--on-paper); font-size: 0.9375rem; line-height: 1.1; padding: 18px; text-align: center; }
.trophy:hover .medallion { transform: translateY(-4px) rotate(-4deg); }
.trophy__result { font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.2; }
.trophy.is-win .trophy__result { color: var(--lamp); }
.trophy__program { font-size: 0.8125rem; line-height: 1.35; color: var(--fog); }
.trophy__year { font-family: var(--font-file); font-size: 0.75rem; letter-spacing: 0.12em; color: #8b96a0; }
.ledger__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; }
.ledger__foot .btn { border-color: var(--on-ink); color: var(--on-ink); background: transparent; }
.ledger__foot .btn:hover { background: var(--on-ink); color: var(--ink); }

/* ---------- 8 · Personnel file ---------- */

.personnel { padding-block: calc(var(--section) + 10px) var(--section); }
.personnel__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.portrait { margin: 0; position: relative; transform: rotate(-2deg); background: #fbf8f1; padding: 14px 14px 56px; box-shadow: 0 30px 50px -28px rgba(23, 21, 15, 0.7); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: sepia(0.06) contrast(1.02); }
.portrait .tape { top: -14px; left: 50%; transform: translateX(-50%) rotate(3deg); background: rgba(214, 200, 168, 0.8); }
.portrait figcaption { position: absolute; left: 16px; right: 16px; bottom: 18px; display: flex; justify-content: space-between; color: var(--paper-mute); }
.personnel h2 { font-size: var(--fs-h2); line-height: 1; margin-bottom: 32px; max-width: 14ch; }
.personnel .lede { font-size: var(--fs-lede); line-height: 1.5; max-width: 36rem; }
.record { width: 100%; border-collapse: collapse; margin-top: 36px; }
.record th, .record td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--line-paper); }
.record tr:last-child th, .record tr:last-child td { border-bottom: 1px solid var(--line-paper); }
.record th { font-family: var(--font-file); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-mute); width: 30%; padding-top: 18px; }
.record td { font-size: 1.0625rem; }
.record td em { font-family: var(--font-display); font-size: 1.25rem; }

/* ---------- 9 · FAQ ---------- */

.faq { padding-block: 0 var(--section); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.faq h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1.02; max-width: 10ch; }
.faq__list details { border-top: 1px solid var(--line-paper); }
.faq__list details:last-child { border-bottom: 1px solid var(--line-paper); }
.faq__list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 16px 0;
  font-family: var(--font-display); font-size: 1.375rem; line-height: 1.25; cursor: pointer; list-style: none;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font-family: var(--font-body); font-size: 1.5rem; font-weight: 300; flex: none; transition: transform 0.25s var(--ease-out); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details > div { padding: 0 0 24px; max-width: 40rem; color: var(--paper-mute); }

/* ---------- 10 · Inner circle ---------- */

.inner-circle { position: relative; overflow: hidden; isolation: isolate; padding-block: calc(var(--section) + 20px) clamp(72px, 9vw, 120px); border-bottom: 1px solid var(--line-ink); }
.inner-circle__bg { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.inner-circle::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, var(--ink) 0%, rgba(11, 17, 23, 0.8) 28%, rgba(11, 17, 23, 0.9) 100%); }
.inner-circle .rain { z-index: -1; opacity: 0.22; }
.inner-circle__title { font-family: var(--font-display); font-size: clamp(2.8rem, 1rem + 7vw, 8.5rem); line-height: 0.92; letter-spacing: -0.035em; font-weight: 400; }
.inner-circle__title .indent { display: block; padding-left: clamp(0px, 14vw, 220px); font-style: italic; }
.signup { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); margin-top: clamp(40px, 6vw, 72px); align-items: start; }
.signup__copy { color: #c7ced5; max-width: 28rem; }
.signup__copy a { color: var(--on-ink); }
.field-row { display: flex; gap: 0; border-bottom: 2px solid var(--on-ink); }
.field-row input {
  flex: 1; min-width: 0; min-height: 60px; padding: 0 4px; background: transparent; border: 0; border-radius: 0;
  color: var(--on-ink); font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.field-row input::placeholder { color: #8b96a0; }
.field-row input:focus { outline: none; }
.field-row:focus-within { border-bottom-color: var(--lamp); }
.field-row .btn { min-height: 60px; }
.signup label { display: block; margin-bottom: 8px; color: var(--fog); }
.field-hint { margin-top: 12px; font-size: var(--fs-small); color: var(--fog); }
.field-error { margin-top: 12px; font-size: var(--fs-small); color: #f08a62; font-weight: 600; }
.field-error[hidden] { display: none; }
.signup [aria-invalid="true"] { color: #f6b49a; }
.signup-success { border-top: 2px solid var(--lamp); padding-top: 20px; }
.signup-success p:first-child { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.2; margin-bottom: 8px; }

/* ---------- Footer ---------- */

.site-footer { padding-block: 56px 120px; color: var(--fog); font-size: var(--fs-small); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer__grid h2 { font-family: var(--font-file); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; color: var(--fog); }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer__grid a { color: var(--on-ink); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.footer__grid a:hover { color: var(--lamp); }
.footer__brand .wordmark { font-size: 1.75rem; color: var(--on-ink); display: inline-block; margin-bottom: 12px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-ink); font-size: 0.8125rem; }
.concept-note { color: #8b96a0; }

/* ---------- Mobile buy bar ---------- */

.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none;
  align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--ink-2); border-top: 1px solid var(--line-ink);
  transform: translateY(110%); transition: transform 0.3s var(--ease-out);
}
.buybar.is-visible { transform: none; }
.buybar img { width: 44px; height: 44px; flex: none; }
.buybar__text { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 0.875rem; line-height: 1.25; }
.buybar__text strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.buybar .btn { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; flex: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .cabinet { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .nav-list, .header-cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo { display: none; }
}

@media (max-width: 860px) {
  :root { --fs-body: 1rem; }
  .hero { min-height: 100svh; }
  .hero__inner { padding-top: 108px; }
  .hero__shade { background: linear-gradient(0deg, rgba(11, 17, 23, 0.97) 0%, rgba(11, 17, 23, 0.78) 55%, rgba(11, 17, 23, 0.5) 100%); }
  .hero__edge { display: none; }
  .titles a { grid-template-columns: 2.2rem minmax(0, 1fr); row-gap: 4px; }
  .titles__tag { grid-column: 2; }
  .case__intro, .verdict__grid, .personnel__grid, .faq__grid, .signup, .ledger__top { grid-template-columns: 1fr; }
  .book__grid, .book--tango .book__grid { grid-template-columns: 1fr; }
  .book--tango .book__photo { order: 0; }
  .book__photo { width: min(78%, 360px); justify-self: start; }
  .book--manor::before, .book--tango::before { background: linear-gradient(0deg, rgba(11, 17, 23, 0.97) 0%, rgba(11, 17, 23, 0.86) 50%, rgba(11, 17, 23, 0.72) 100%); }

  .board { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 18px; padding-top: 12px; }
  .board__strings { display: none; }
  .pin { position: relative; left: auto; top: auto; width: auto; }
  .pin--card, .pin--folder { grid-column: 1 / -1; }

  .verdict__big { position: static; }
  .clippings { columns: 1; }
  .reels { grid-template-columns: 1fr; }
  .cabinet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .buybar { display: flex; }
  .section-head { flex-direction: column; gap: 4px; }
  .honors__grid { grid-template-columns: 1fr; }
  .honors__tab { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: baseline; gap: 6px 14px; padding: 0 var(--gutter) 16px; box-shadow: none; }
  .honors__controls { width: 100%; }
}

@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; justify-content: center; }
  .tickets { grid-template-columns: 1fr; }
  .ticket { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .ticket em { width: 100%; }
  .field-row { flex-direction: column; border-bottom: 0; gap: 12px; }
  .field-row input { border-bottom: 2px solid var(--on-ink); }
  .field-row:focus-within input { border-bottom-color: var(--lamp); }
  .field-row .btn { justify-content: center; }
  .cabinet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seal-chip { width: 72px; height: 72px; }
}

/* Seals printed on a dark or colored square: show them as round discs instead of multiplying */
.seal-chip.is-tile img, .medallion.is-tile img { mix-blend-mode: normal; border-radius: 50%; }
.medallion.is-tile img { width: 90%; height: 90%; }
.record td { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .record tr { display: block; border-top: 1px solid var(--line-paper); padding: 12px 0; }
  .record th, .record td { display: block; width: auto; border: 0 !important; padding: 0; }
  .record th { margin-bottom: 4px; }
}
