/* ============================================================
   BROTHERHOOD IN THE BITTER COLD — styles
   Type:  Cormorant Garamond (display) · Spectral (prose) · IBM Plex Mono (labels)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; }

/* ---------- THEME TOKENS ---------- */
.site {
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Spectral", Georgia, serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  /* default palette: Bitter Cold (dark) */
  --bg:    #0e0f11;
  --bg-2:  #15171a;
  --bg-3:  #1c1f23;
  --ink:   #e9e7e1;
  --muted: #9a9892;
  --faint: #6f6e69;
  --line:  rgba(233,231,225,0.13);
  --line-2:rgba(233,231,225,0.07);
  --paper: #e9e4d8;          /* reading page */
  --paper-ink: #20201c;
  --paper-muted: #6a665b;
  --leather: #6b513a;
  --scrim: rgba(10,11,13,0.55);

  /* accent — brass (oklch, shared L/C, hue varies between options) */
  --accent: oklch(0.75 0.092 78);
  --accent-soft: oklch(0.75 0.092 78 / 0.16);
  --accent-line: oklch(0.75 0.092 78 / 0.34);

  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
}

/* palette: Whiteout (pale fog, light) */
.site[data-palette="whiteout"] {
  --bg: #e7e6e2; --bg-2: #efeeea; --bg-3: #dedcd5;
  --ink: #1a1b1d; --muted: #56555014; /* placeholder, overridden below */
  --muted: #565550; --faint: #8a877f;
  --line: rgba(26,27,29,0.14); --line-2: rgba(26,27,29,0.07);
  --scrim: rgba(231,230,226,0.40);
  --accent: oklch(0.55 0.10 74);
  --accent-soft: oklch(0.55 0.10 74 / 0.14);
  --accent-line: oklch(0.55 0.10 74 / 0.34);
}

/* palette: Dossier (archival sepia paper) */
.site[data-palette="dossier"] {
  --bg: #ddd6c6; --bg-2: #e6e0d2; --bg-3: #d2cab6;
  --ink: #2a2517; --muted: #6a6045; --faint: #948a6c;
  --line: rgba(42,37,23,0.16); --line-2: rgba(42,37,23,0.08);
  --scrim: rgba(221,214,198,0.42);
  --paper: #efe7d4; --paper-ink: #2a2517; --paper-muted: #7c7256;
  --accent: oklch(0.50 0.13 38);
  --accent-soft: oklch(0.50 0.13 38 / 0.13);
  --accent-line: oklch(0.50 0.13 38 / 0.34);
}

/* accent overrides */
.site[data-accent="rust"]  { --accent: oklch(0.62 0.13 42);  --accent-soft: oklch(0.62 0.13 42 / 0.16);  --accent-line: oklch(0.62 0.13 42 / 0.34); }
.site[data-accent="steel"] { --accent: oklch(0.66 0.066 232); --accent-soft: oklch(0.66 0.066 232 / 0.16); --accent-line: oklch(0.66 0.066 232 / 0.34); }
.site[data-palette="whiteout"][data-accent="rust"]  { --accent: oklch(0.50 0.15 40); }
.site[data-palette="whiteout"][data-accent="steel"] { --accent: oklch(0.48 0.08 234); }

/* ---------- ATMOSPHERE (grain + vignette + snow) ---------- */
.atmos { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 59;
  background: radial-gradient(120% 90% at 50% 30%, transparent 55%, rgba(0,0,0,0.42) 100%); }
.site[data-palette="whiteout"] .vignette,
.site[data-palette="dossier"] .vignette {
  background: radial-gradient(120% 95% at 50% 35%, transparent 60%, rgba(40,36,24,0.18) 100%); }
.grain { position: fixed; inset: -50%; pointer-events: none; z-index: 61; opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grain 7s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-4%)} 60%{transform:translate(-3%,2%)} 80%{transform:translate(4%,-2%)} 100%{transform:translate(0,0)} }
#snow { position: fixed; inset: 0; pointer-events: none; z-index: 58; }
.no-grain .grain { display: none; }

/* ---------- TYPE PRIMITIVES ---------- */
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; }
.label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--faint); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
.display { font-weight: 500; line-height: 0.94; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
em, i { font-style: italic; }

/* section title block */
.shead { display: flex; flex-direction: column; gap: 18px; margin-bottom: 56px; }
.shead h2 { font-size: clamp(34px, 5.2vw, 68px); }
.shead .lede { font-size: clamp(18px, 1.5vw, 22px); color: var(--muted); max-width: 56ch; line-height: 1.6; }

/* ---------- LAYOUT ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 40px; }
section { position: relative; }
.band { padding: clamp(86px, 11vw, 168px) 0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.bg-2 { background: var(--bg-2); }
.bg-3 { background: var(--bg-3); }

/* ---------- BUTTONS ---------- */
.btn { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; cursor: pointer;
  border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--ink);
  text-decoration: none; transition: all 0.35s cubic-bezier(.2,.6,.2,1); line-height: 1; }
.btn:hover { background: var(--accent); color: #14110a; border-color: var(--accent); }
.site[data-palette="dossier"] .btn:hover, .site[data-palette="whiteout"] .btn:hover { color: #f4efe2; }
.btn-solid { background: var(--accent); color: #14110a; border-color: var(--accent); }
.btn-solid:hover { filter: brightness(1.12); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn svg { width: 14px; height: 14px; }

/* ---------- NAV (floating plate + stamp) ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 16px; transition: padding 0.4s ease; }
.nav > * { pointer-events: auto; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px;
  width: min(1180px, calc(100% - 40px));
  padding: 11px 12px 11px 22px;
  background: color-mix(in srgb, var(--bg) 30%, transparent);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 18px 44px -26px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }
.nav.scrolled { padding-top: 10px; }
.nav.scrolled .nav-inner { background: color-mix(in srgb, var(--bg) 52%, transparent);
  border-color: var(--accent-line);
  box-shadow: 0 22px 50px -22px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.05); }
.nav .btn { padding: 13px 20px; border-radius: 10px; }
.brandmark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brandmark .btn-glyph { width: 30px; height: 30px; flex: 0 0 auto; }
.brandmark .bt { font-family: var(--serif); font-size: 20px; letter-spacing: 0.01em; line-height: 1; }
.navlinks { display: flex; gap: 30px; }
.navlinks a { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.25s; white-space: nowrap; }
.navlinks a:hover { color: var(--ink); }

/* stamp plate under the menu */
.nav-stamp { margin-top: 10px; display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 13px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 66%, transparent);
  border: 1px solid var(--accent-line);
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 12px 30px -22px rgba(0,0,0,0.7); }
.sb-stamp { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.stamp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 auto;
  animation: stampPulse 2.6s ease-out infinite; }
@keyframes stampPulse {
  0% { box-shadow: 0 0 0 0 var(--accent-line); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 880px) { .navlinks { display: none; } .nav-inner { gap: 14px; } .nav-burger { display: flex; } .nav-cta { display: none; } }
@media (max-width: 460px) { .sb-stamp { letter-spacing: 0.14em; } }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; isolation: isolate; }
.hero-img { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; filter: saturate(0.82) contrast(1.02); }

/* two-column hero: text left, trailer window right */
.hero[data-hero="poster"] .hero-grid { display: grid; grid-template-columns: 1fr 0.86fr;
  gap: clamp(28px, 4vw, 64px); align-items: center; width: 100%; }
.hero[data-hero="poster"] .hero-left { max-width: 620px; }
.hero[data-hero="poster"] .hero-title { font-size: clamp(33px, 3.7vw, 64px); }
@media (max-width: 900px) {
  .hero[data-hero="poster"] .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
  .hero-grid > * { min-width: 0; }
  .hero[data-hero="poster"] .hero-content { padding-bottom: 64px; }
}

/* the trailer window card */
.hero-trailer { display: flex; flex-direction: column; gap: 12px; }
.htw-frame { position: relative; aspect-ratio: 16 / 10; width: 100%;
  border: 1px solid var(--accent-line); background: #05060a; overflow: hidden;
  box-shadow: 0 30px 70px -28px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.05); }
.htw-poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer;
  background: none; display: grid; place-items: center; }
.htw-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 30%; filter: saturate(0.8) contrast(1.02); transition: transform 0.6s cubic-bezier(.2,.6,.2,1); }
.htw-poster:hover img { transform: scale(1.04); }
.htw-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,10,0.15), rgba(5,6,10,0.55)); }
.htw-ring { position: relative; z-index: 2; width: 66px; height: 66px; border-radius: 50%;
  border: 1px solid rgba(240,238,232,0.6); display: grid; place-items: center;
  background: rgba(10,12,16,0.34); backdrop-filter: blur(2px); transition: all 0.4s cubic-bezier(.2,.6,.2,1); }
.htw-ring::before { content:""; position:absolute; inset:-1px; border-radius:50%; border:1px solid var(--accent);
  transform: scale(1.2); opacity:0; transition: all 0.5s; }
.htw-poster:hover .htw-ring { border-color: var(--accent); transform: scale(1.08); }
.htw-poster:hover .htw-ring::before { transform: scale(1); opacity: 0.55; }
.htw-ring svg { width: 20px; height: 20px; margin-left: 3px; fill: #f0eee8; }
.htw-poster:hover .htw-ring svg { fill: var(--accent); }
.htw-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.htw-close { position: absolute; top: 8px; right: 8px; z-index: 4; width: 30px; height: 30px;
  font-family: var(--mono); font-size: 13px; background: rgba(8,10,14,0.72); border: 1px solid rgba(255,255,255,0.32);
  color: #fff; cursor: pointer; transition: all 0.3s; }
.htw-close:hover { background: #fff; color: #000; }
.htw-cap { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 9px; }
.htw-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: stampPulse 2.6s ease-out infinite; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; }

/* variant: POSTER (full-bleed, content bottom-left) */
.hero[data-hero="poster"] .hero-scrim {
  background: linear-gradient(180deg, rgba(8,9,11,0.55) 0%, rgba(8,9,11,0.05) 26%, rgba(8,9,11,0.2) 55%, rgba(8,9,11,0.92) 100%); }
.hero[data-hero="poster"] .hero-content { align-self: center; max-width: 1240px; padding-top: 120px; padding-bottom: clamp(40px, 6vh, 90px); }

/* variant: SPLIT (image panel left, text right) */
.hero[data-hero="split"] { display: grid; grid-template-columns: 1.05fr 1fr; }
.hero[data-hero="split"] .hero-img { position: relative; inset: auto; }
.hero[data-hero="split"] .hero-img img { object-position: 50% 38%; }
.hero[data-hero="split"] .hero-scrim { background: linear-gradient(90deg, transparent 60%, var(--bg) 100%); }
.hero[data-hero="split"] .hero-panel { display: flex; align-items: center; background: var(--bg); border-left: 1px solid var(--line); }
.hero[data-hero="split"] .hero-content { padding: 64px clamp(40px,5vw,88px); max-width: 640px; }
.hero[data-hero="split"] .hero-title { font-size: clamp(46px, 5vw, 92px); }
@media (max-width: 900px) { .hero[data-hero="split"] { grid-template-columns: 1fr; } .hero[data-hero="split"] .hero-img { min-height: 46svh; } }

/* variant: MINIMAL (type over fog, framed plate) */
.hero[data-hero="minimal"] { background: var(--bg); }
.hero[data-hero="minimal"] .hero-img { inset: 0; opacity: 0.16; }
.hero[data-hero="minimal"] .hero-img img { filter: grayscale(0.5) contrast(1.05); object-position: 50% 40%; }
.hero[data-hero="minimal"] .hero-scrim { background: radial-gradient(110% 80% at 50% 30%, transparent 40%, var(--bg) 95%); }
.hero[data-hero="minimal"] .hero-content { align-self: center; margin: 0 auto; text-align: center; max-width: 1100px; padding-top: 90px; }
.hero[data-hero="minimal"] .hero-title { font-size: clamp(54px, 10vw, 168px); }
.hero[data-hero="minimal"] .hero-meta, .hero[data-hero="minimal"] .hero-actions { justify-content: center; }
.hero[data-hero="minimal"] .hero-logline { margin-left: auto; margin-right: auto; }
.hero[data-hero="minimal"] .hero-plate { display: block; }

/* shared hero content */
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero .wrap { width: 100%; }
.hero-eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.hero[data-hero="poster"] .hero-eyebrow .eyebrow { text-shadow: 0 1px 16px rgba(0,0,0,0.6); }
.hero-eyebrow .eyebrow { white-space: nowrap; }
.hero-eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.hero-genre { background: oklch(0.50 0.085 248); color: oklch(0.96 0.012 240); padding: 2px 6px; border-radius: 3px;
  white-space: normal; box-decoration-break: clone; -webkit-box-decoration-break: clone; text-shadow: none; }
.hero-title { font-family: var(--serif); font-weight: 500; line-height: 0.9; letter-spacing: -0.02em;
  text-wrap: balance; margin-bottom: 22px; }
.hero-title .row2 { display: block; font-style: italic; font-weight: 400; }
.hero-ro { font-family: var(--serif); font-style: italic; font-size: clamp(18px,2vw,26px); color: var(--muted); margin-bottom: 26px; }
.hero-logline { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: var(--ink); max-width: 60ch; margin: 0 0 36px; }
.hero[data-hero="poster"] .hero-logline { color: #e9e7e1; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.hero-meta .m { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.hero-meta .m b { color: var(--ink); font-weight: 500; }
.hero-plate { display: none; width: 230px; margin: 0 auto 40px; border: 1px solid var(--accent-line); padding: 10px; background: rgba(0,0,0,0.2); }
.hero-plate img { width: 100%; display: block; filter: saturate(0.85); }

@media (max-width: 760px) { .hero-playbtn { right: 50%; top: 38%; transform: translate(50%, -50%); } }
.scrollcue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scrollcue .line { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100%{transform:scaleY(0.3); opacity:0.4} 50%{transform:scaleY(1); opacity:1} }

/* ---------- STORY ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
@media (max-width: 880px) { .story-grid { grid-template-columns: 1fr; gap: 44px; } }
.story-lede { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; }
.story-lede .accent { color: var(--accent); font-style: italic; }
.story-doc { margin-top: 34px; max-width: 100%; }
.story-doc img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 3px; filter: grayscale(0.25) contrast(1.03); box-shadow: 0 18px 44px rgba(0,0,0,0.42); }
.story-doc figcaption { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-top: 12px; line-height: 1.5; }
.story-body p { font-size: 19px; color: var(--muted); }
.story-body p:first-child::first-letter { font-family: var(--serif); font-size: 3.4em; line-height: 0.78; float: left;
  padding: 6px 12px 0 0; color: var(--ink); font-weight: 500; }
.pullquote { font-family: var(--serif); font-style: italic; font-size: clamp(24px,3vw,38px); line-height: 1.3;
  color: var(--ink); border-left: 2px solid var(--accent); padding-left: 28px; margin: 8px 0 0; }

/* ---------- THE FIVE ---------- */
.five-list { border-top: 1px solid var(--line); }
.five-row { display: grid; grid-template-columns: 90px 1fr; gap: 28px; align-items: start;
  padding: 36px 0; border-bottom: 1px solid var(--line); transition: background 0.4s; position: relative; }
.five-row:hover { background: var(--bg-2); }
.five-sil { width: 64px; height: 90px; position: relative; color: var(--faint); transition: color 0.4s; }
.five-row:hover .five-sil { color: var(--accent); }
.five-sil svg { width: 100%; height: 100%; display: block; }
.five-sil img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; border-radius: 2px; filter: grayscale(0.55) contrast(1.03); opacity: 0.9; transition: filter 0.45s ease, opacity 0.45s ease; }
.five-row:hover .five-sil img { filter: grayscale(0); opacity: 1; }
.five-main { display: grid; grid-template-columns: 1fr 1.5fr 0.8fr; gap: 30px; align-items: baseline; }
@media (max-width: 820px){ .five-main { grid-template-columns: 1fr; gap: 10px; } .five-row{ grid-template-columns: 56px 1fr; gap:18px;} }
.five-name { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; line-height: 1; }
.five-role { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-top: 12px; }
.five-desc { color: var(--muted); font-size: 17px; line-height: 1.6; }
.five-fate { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.five-fate::before { content: "· "; }

/* ---------- READ SAMPLE ---------- */
.read-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px){ .read-grid { grid-template-columns: 1fr; } }
.read-card { border: 1px solid var(--line); padding: 40px; background: var(--bg-2); cursor: pointer;
  transition: all 0.4s cubic-bezier(.2,.6,.2,1); position: relative; overflow: hidden; }
.read-card::after { content:""; position:absolute; inset:0; background: var(--accent); transform: scaleX(0); transform-origin: left; height: 2px; top: auto; bottom: 0; transition: transform 0.4s; }
.read-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.read-card:hover::after { transform: scaleX(1); }
.read-card .num { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.read-card .ttl { font-family: var(--serif); font-size: clamp(26px,2.6vw,38px); font-weight: 500; margin: 16px 0 14px; line-height: 1.05; }
.read-card .excerpt { color: var(--muted); font-size: 16px; line-height: 1.6; margin-bottom: 26px; }
.read-card .go { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); display: inline-flex; gap: 10px; align-items: center; }
.read-card .go svg { width: 13px; transition: transform 0.3s; }
.read-card:hover .go svg { transform: translateX(5px); }
.read-note { margin-top: 30px; text-align: center; color: var(--faint); font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; }

/* ---------- READER OVERLAY ---------- */
.reader { position: fixed; inset: 0; z-index: 200; background: var(--paper); color: var(--paper-ink);
  display: flex; flex-direction: column; animation: rfade 0.45s ease; }
@keyframes rfade { from{opacity:0} to{opacity:1} }
.reader-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 32px; border-bottom: 1px solid rgba(0,0,0,0.1); position: sticky; top: 0; background: var(--paper); z-index: 3; }
.reader-bar .rb-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper-muted); }
.reader-x { background: none; border: 1px solid rgba(0,0,0,0.18); width: 40px; height: 40px; cursor: pointer; color: var(--paper-ink); font-size: 17px; transition: all 0.3s; display: grid; place-items: center; }
.reader-x:hover { background: var(--paper-ink); color: var(--paper); }
.reader-scroll { overflow-y: auto; flex: 1; scroll-behavior: smooth; }
.reader-prog { position: sticky; top: 0; height: 2px; background: var(--accent); width: 0%; z-index: 4; }
.reader-page { max-width: 680px; margin: 0 auto; padding: clamp(48px,8vw,104px) 32px 120px; }
.reader-page .r-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); }
.reader-page .r-title { font-family: var(--serif); font-size: clamp(38px,6vw,72px); font-weight: 500; line-height: 0.98; margin: 18px 0 8px; }
.reader-page .r-place { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--paper-muted); margin-bottom: 8px; }
.reader-page .r-divider { width: 60px; height: 1px; background: var(--paper-ink); opacity: 0.4; margin: 40px 0 44px; }
.reader-page .r-body { font-family: var(--body); font-size: 1.24rem; line-height: 1.85; }
.reader-page .r-body p { margin: 0 0 1.35em; text-wrap: pretty; }
.reader-page .r-body p.r-dialogue { padding-left: 1.4em; color: #34302a; }
.reader-page .r-body p:first-of-type::first-letter { font-family: var(--serif); font-size: 3.6em; line-height: 0.72; float: left; padding: 8px 14px 0 0; font-weight: 500; }
.reader-page .r-figure { margin: 2.4em 0; }
.reader-page .r-figure img { width: 100%; height: auto; display: block; border-radius: 2px; box-shadow: 0 14px 34px rgba(0,0,0,0.22); }
.reader-foot { border-top: 1px solid rgba(0,0,0,0.12); margin-top: 60px; padding-top: 40px; display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.reader-foot .rf-q { font-family: var(--serif); font-style: italic; font-size: 24px; max-width: 30ch; line-height: 1.4; }
.reader-nav { display: flex; gap: 14px; }
.reader-fontbtns { display: flex; gap: 6px; align-items: center; }
.reader-fontbtns button { font-family: var(--mono); border: 1px solid rgba(0,0,0,0.2); background: none; cursor: pointer; width: 30px; height: 30px; color: var(--paper-ink); }
.reader-fontbtns button:hover { background: rgba(0,0,0,0.06); }

/* ---------- EPISODIC / SUBSCRIBE ---------- */
.epi-top { display: grid; grid-template-columns: 1fr 0.9fr; gap: 70px; align-items: end; }
@media (max-width: 880px){ .epi-top { grid-template-columns: 1fr; gap: 36px; } }
.signup { display: flex; gap: 10px; flex-wrap: wrap; max-width: 460px; }
.signup input { flex: 1; min-width: 200px; background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  padding: 16px 18px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; }
.site[data-palette="whiteout"] .signup input, .site[data-palette="dossier"] .signup input { background: rgba(255,255,255,0.4); }
.signup input:focus { outline: none; border-color: var(--accent); }
.signup input::placeholder { color: var(--faint); letter-spacing: 0.08em; }
.signup-note { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--faint); margin-top: 14px; }
.signup-ok { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--accent); padding: 16px 0; }

.chapters { margin-top: 72px; border-top: 1px solid var(--line); }
.chap-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 24px; align-items: center;
  padding: 19px 4px; border-bottom: 1px solid var(--line-2); transition: all 0.3s; }
.chap-row.locked { color: var(--faint); }
.chap-row.free:hover { background: var(--bg-2); padding-left: 14px; cursor: pointer; }
.chap-row .c-num { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.chap-row.locked .c-num { color: var(--faint); }
.chap-row .c-title { font-family: var(--serif); font-size: clamp(19px,2vw,27px); font-weight: 500; }
.chap-row .c-state { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.chap-row.free .c-state { color: var(--accent); }
.chap-row.locked .c-state { color: var(--faint); }
.chap-row .c-state svg { width: 12px; height: 12px; }

/* ---------- BOOK ---------- */
.book-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(40px,7vw,96px); align-items: center; }
@media (max-width: 820px){ .book-grid { grid-template-columns: 1fr; gap: 48px; } }
.book-cover { position: relative; }
.book-cover img { width: 100%; display: block; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7); border: 1px solid var(--line); }
.book-cover .spine-glow { position: absolute; inset: -30px; background: radial-gradient(closest-side, var(--accent-soft), transparent 70%); z-index: -1; }
.book-formats { display: flex; gap: 30px; margin: 30px 0 36px; flex-wrap: wrap; }
.book-formats .bf { }
.book-formats .bf .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.book-formats .bf .v { font-family: var(--serif); font-size: 22px; margin-top: 4px; }
.amazon-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- AUTHOR ---------- */
.author-card { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: start; max-width: 820px; margin: 0 auto; text-align: left; }
@media (max-width: 680px){ .author-card { grid-template-columns: 1fr; gap: 20px; text-align: center; } }
.author-photo { width: 120px; height: 150px; overflow: hidden; border: 1px solid var(--accent-line); border-radius: 2px; }
.author-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; filter: grayscale(1) contrast(1.03); }
@media (max-width: 680px){ .author-photo { margin: 0 auto; } }
.author-q { font-family: var(--serif); font-style: italic; font-size: clamp(24px,3.4vw,40px); line-height: 1.3; margin-bottom: 28px; text-wrap: balance; }
.author-body { color: var(--muted); font-size: 18px; line-height: 1.7; }
.author-body p { margin: 0 0 15px; }
.author-body p:first-child { color: var(--ink); }
.dedication { text-align: center; margin-top: 80px; }
.ded-photo { width: clamp(180px, 42%, 250px); margin: 0 auto 24px; }
.ded-photo img { width: 100%; height: auto; display: block; border: 1px solid var(--accent-line); border-radius: 2px; filter: grayscale(1) contrast(1.02); }
.dedication .ded-line { font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.dedication .ded-name { font-family: var(--serif); font-style: italic; font-size: clamp(22px,2.6vw,32px); color: var(--ink); margin-top: 14px; }

/* ---------- FOOTER ---------- */
.foot { padding: 80px 0 50px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 64px; }
@media (max-width: 760px){ .foot-grid { grid-template-columns: 1fr; gap: 36px; } }
.foot h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); margin: 0 0 18px; font-weight: 500; }
.foot a { color: var(--muted); text-decoration: none; display: block; margin-bottom: 10px; transition: color 0.25s; font-size: 15px; }
.foot a:hover { color: var(--accent); }
.foot-title { font-family: var(--serif); font-size: 28px; margin-bottom: 16px; }
.foot-laurels { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.laurel { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line); padding: 8px 12px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line-2); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--faint); }

/* ---------- TRAILER MODAL ---------- */
.tmodal { position: fixed; inset: 0; z-index: 210; background: rgba(6,7,9,0.92); display: grid; place-items: center; padding: 40px; animation: rfade 0.4s ease; backdrop-filter: blur(8px); }
.tmodal-inner { width: min(1100px, 100%); }
.tmodal-frame { position: relative; aspect-ratio: 16/9; border: 1px solid var(--accent-line); background: #000; }
.tmodal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tmodal-x { position: absolute; top: -46px; right: 0; background: none; border: 1px solid rgba(255,255,255,0.3); color: #fff; width: 38px; height: 38px; cursor: pointer; transition: all 0.3s; }
.tmodal-x:hover { background: #fff; color: #000; }

/* trailer band */
.trailer-band { position: relative; min-height: 78svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.trailer-band .tb-img { position: absolute; inset: 0; z-index: -2; }
.trailer-band .tb-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(0.7) brightness(0.7); }
.trailer-band .tb-scrim { position: absolute; inset: 0; z-index: -1; background: rgba(8,9,11,0.46); }
.play-btn { display: flex; flex-direction: column; align-items: center; gap: 26px; cursor: pointer; background: none; border: 0; color: #f0eee8; }
.play-ring { width: 104px; height: 104px; border-radius: 50%; border: 1px solid rgba(240,238,232,0.5); display: grid; place-items: center; transition: all 0.45s cubic-bezier(.2,.6,.2,1); position: relative; }
.play-ring::before { content:""; position:absolute; inset:-1px; border-radius:50%; border:1px solid var(--accent); transform: scale(1.18); opacity:0; transition: all 0.5s; }
.play-btn:hover .play-ring { border-color: var(--accent); transform: scale(1.05); }
.play-btn:hover .play-ring::before { transform: scale(1); opacity: 0.5; }
.play-ring svg { width: 28px; height: 28px; margin-left: 5px; fill: #f0eee8; }
.play-btn:hover .play-ring svg { fill: var(--accent); }
.play-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; }
.play-sub { font-family: var(--serif); font-style: italic; font-size: 21px; color: rgba(240,238,232,0.8); }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(.2,.6,.2,1), transform 0.9s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }

/* ---------- MISC ---------- */
.section-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--faint); }
::selection { background: var(--accent); color: #14110a; }
@media (max-width: 620px){ .wrap, .wrap-narrow, .nav-inner { padding-left: 22px; padding-right: 22px; } }

/* ---------- CONTACT MODAL ---------- */
.cmodal { position: fixed; inset: 0; z-index: 200; background: rgba(8,9,11,0.82); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 24px; }
.cmodal-inner { position: relative; width: min(540px, 100%); background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 38px clamp(22px,4vw,44px); box-shadow: 0 30px 80px rgba(0,0,0,0.55); }
.cmodal-x { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--faint); font-size: 18px; cursor: pointer; line-height: 1; }
.cmodal-x:hover { color: var(--ink); }
.cmodal-title { font-family: var(--serif); font-size: clamp(26px,3.4vw,36px); font-weight: 500; margin: 10px 0 22px; }
.cform { display: grid; gap: 12px; }
.cform input, .cform textarea { width: 100%; background: rgba(0,0,0,0.25); border: 1px solid var(--line); border-radius: 3px; color: var(--ink); font-family: inherit; font-size: 15px; padding: 13px 14px; transition: border-color .2s; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--accent); }
.cform textarea { resize: vertical; min-height: 110px; }
.cform .btn { margin-top: 6px; justify-self: start; }
.cf-turnstile-box { flex-basis: 100%; margin-top: 8px; min-height: 65px; }
.btn.is-soon { opacity: 0.5; pointer-events: none; cursor: not-allowed; }
.soon-tag { display: inline-block; margin-left: 9px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; padding: 3px 7px; border: 1px solid currentColor; border-radius: 999px; opacity: 0.9; }

/* ---------- MOBILE NAV ---------- */
.site { overflow-x: clip; }
.nav-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; padding: 9px; }
.nav-burger span { display: block; height: 1.5px; width: 100%; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-mobile { display: flex; flex-direction: column; padding: 6px 22px 20px; background: color-mix(in srgb, var(--bg) 95%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-mobile a { font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.nav-mobile a:hover { color: var(--ink); }
.nav-mobile .btn { margin-top: 16px; justify-content: center; }
@media (min-width: 881px) { .nav-mobile { display: none; } .nav-burger { display: none; } }
