/* =============================================================
 * tnrasv.com · AI Drama Editorial Stylesheet
 * Theme: 妈妈陪儿子高考 第5至6集
 * Palette: 墨夜 (Ink Night) · 晨光 (Dawn Lamp) · 朱印 (Crimson Seal)
 * Concept: long nights at the study desk, warmth of a lamp at dawn,
 *          the quiet pressure of family bloodlines
 * ============================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

/* ---------- Tokens ---------- */
:root {
  /* Surfaces — deep ink night */
  --ink-0:  #0c1014;   /* outer page */
  --ink-1:  #131820;   /* raised panel */
  --ink-2:  #1b212b;   /* card */
  --ink-3:  #232a35;   /* hovered surface */
  --ink-4:  #2d3543;   /* outline emphasis */

  /* Lines */
  --line-1: rgba(236, 226, 207, 0.07);
  --line-2: rgba(236, 226, 207, 0.14);
  --line-3: rgba(236, 226, 207, 0.22);

  /* Paper (warm cream, not theatrical gold) */
  --paper:   #ece4d2;
  --paper-2: #d6cdb6;
  --paper-3: #b9af96;
  --muted:   #8c8473;
  --muted-2: #6f6757;

  /* Crimson Seal — dusty plum red, family blood, the breaking point */
  --seal:    #a8353e;
  --seal-2:  #c14a55;
  --seal-3:  #7c2129;
  --seal-soft: rgba(168, 53, 62, 0.14);

  /* Dawn Lamp — warm amber, lamp at the desk */
  --lamp:    #c8a25a;
  --lamp-2:  #d8b878;
  --lamp-3:  #a07c40;
  --lamp-soft: rgba(200, 162, 90, 0.16);

  /* Cool ink — secondary */
  --cool:    #6b7585;

  /* Metrics */
  --radius:   12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-1: 0 10px 30px -16px rgba(0, 0, 0, 0.55);
  --shadow-2: 0 28px 60px -28px rgba(0, 0, 0, 0.65);
  --ease: cubic-bezier(.2, .7, .15, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --max: 1280px;
  --pad: clamp(16px, 2.4vw, 28px);

  /* Fonts */
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STZhongsong",
           "FZShuSong-Z01S", "FangSong", "Times New Roman", serif;
  --sans:  "Inter", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont,
           "Helvetica Neue", "Hiragino Sans GB", Arial, sans-serif;
  --mono:  "JetBrains Mono", "SFMono-Regular", "Menlo", monospace;
}

/* ---------- Base ---------- */
html, body { min-height: 100%; }
body {
  background-color: var(--ink-0);
  background-image:
    radial-gradient(1100px 700px at 78% -8%, rgba(200, 162, 90, 0.06), transparent 60%),
    radial-gradient(900px 600px at -8% 28%, rgba(168, 53, 62, 0.08), transparent 60%),
    radial-gradient(800px 600px at 50% 90%, rgba(200, 162, 90, 0.04), transparent 65%),
    linear-gradient(180deg, var(--ink-0) 0%, var(--ink-1) 100%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
/* Subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.92  0 0 0 0 0.88  0 0 0 0 0.78  0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .35;
  mix-blend-mode: overlay;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; transition: color .25s var(--ease), opacity .25s var(--ease); }
a:hover { color: var(--lamp-2); }
a:focus-visible { outline: 2px solid var(--lamp-2); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--paper);
  line-height: 1.25;
}

::selection { background: var(--seal); color: var(--paper); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-0); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--seal-3); }

/* ---------- Utility / Page chrome ---------- */
.skip-link {
  position: fixed;
  top: -120px; left: 16px;
  background: var(--seal);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 1000;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }

.progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--lamp), var(--seal), var(--lamp));
  background-size: 200% 100%;
  z-index: 999;
  transition: width .12s linear;
  animation: progressShift 6s linear infinite;
}
@keyframes progressShift { 0% { background-position: 0 0; } 100% { background-position: 200% 0; } }

.dotnav {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 60;
  padding: 14px 8px;
  border-radius: 999px;
  background: rgba(19, 24, 32, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
}
.dotnav a {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--paper-3);
  opacity: .5;
  position: relative;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.dotnav a:hover { opacity: 1; transform: scale(1.4); background: var(--lamp); }
.dotnav a.active { opacity: 1; background: var(--seal-2); box-shadow: 0 0 0 4px var(--seal-soft); }
.dotnav a span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 11px; letter-spacing: .12em; color: var(--paper-2); background: var(--ink-2); border: 1px solid var(--line-2); padding: 4px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.dotnav a:hover span { opacity: 1; transform: translate(-4px, -50%); }
@media (max-width: 720px) { .dotnav { display: none; } }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(12, 16, 20, 0.72);
  border-bottom: 1px solid var(--line-2);
  z-index: 80;
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  color: var(--paper);
  letter-spacing: 0.05em;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background:
    linear-gradient(145deg, var(--seal-2), var(--seal-3));
  color: var(--paper);
  font-size: 17px;
  font-weight: 700;
  font-family: var(--serif);
  box-shadow:
    0 8px 18px -10px rgba(168, 53, 62, 0.6),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -2px 6px rgba(0,0,0,0.3);
  border: 1px solid rgba(255, 233, 200, 0.15);
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.32em;
  color: var(--lamp);
  margin-top: 3px;
  text-transform: uppercase;
}
.topnav { display: flex; gap: clamp(10px, 2vw, 26px); font-size: 13.5px; }
.topnav a {
  position: relative;
  padding: 8px 2px;
  color: var(--paper-2);
  letter-spacing: 0.05em;
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--lamp);
  transition: right .35s var(--ease);
}
.topnav a:hover { color: var(--paper); }
.topnav a:hover::after { right: 0; }
@media (max-width: 720px) { .topnav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) var(--pad) clamp(40px, 5vw, 72px);
  max-width: var(--max);
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero-content { position: relative; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--lamp);
  border: 1px solid rgba(200, 162, 90, 0.3);
  padding: 7px 14px;
  border-radius: 999px;
  margin: 0 0 24px 0;
  background: rgba(200, 162, 90, 0.05);
  font-weight: 500;
}
.hero-kicker::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 8px var(--lamp);
  animation: lamp 2.8s ease-in-out infinite;
}
@keyframes lamp { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.hero-title {
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: 0.04em;
  margin: 0 0 24px 0;
  color: var(--paper);
  font-weight: 600;
  position: relative;
}
.hero-title::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  background: var(--seal);
  border-radius: 50%;
  opacity: 0.85;
  vertical-align: middle;
  transform: translateY(-12px);
  box-shadow: 0 0 24px var(--seal-2);
}
.hero-sub {
  font-size: clamp(14.5px, 1.6vw, 17px);
  line-height: 1.95;
  color: var(--paper-2);
  margin: 0 0 30px 0;
  max-width: 60ch;
}
.hero-sub br + br { display: block; content: ""; margin-top: 4px; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0 0 30px 0;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-meta > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  font-size: 13px;
  background: rgba(19, 24, 32, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .3s var(--ease);
}
.hero-meta > div:hover { background: rgba(27, 33, 43, 0.85); }
.hero-meta .l { color: var(--lamp); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500; }
.hero-meta .v { color: var(--paper); font-weight: 500; font-size: 14px; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line-3);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .25s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: translateX(-100%);
  transition: transform .7s var(--ease);
  z-index: -1;
}
.btn:hover { transform: translateY(-1px); border-color: var(--lamp); color: var(--lamp-2); }
.btn:hover::before { transform: translateX(100%); }
.btn.primary {
  background: linear-gradient(135deg, var(--seal-2), var(--seal-3));
  border-color: transparent;
  box-shadow: 0 14px 30px -12px rgba(168, 53, 62, 0.55), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn.primary:hover { color: var(--paper); background: linear-gradient(135deg, var(--seal), var(--seal-2)); border-color: transparent; box-shadow: 0 18px 36px -12px rgba(168, 53, 62, 0.7); }

.hero-cover {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2), 0 0 0 1px var(--line-2);
  aspect-ratio: 4 / 5;
  isolation: isolate;
  background: var(--ink-2);
}
.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.95);
  transition: transform 8s linear, filter .6s var(--ease);
}
.hero-cover:hover img { transform: scale(1.05); filter: saturate(1) brightness(1); }
.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 16, 20, 0) 40%, rgba(12, 16, 20, 0.85) 100%),
    radial-gradient(120% 80% at 50% 100%, rgba(0,0,0,0.4), transparent 60%);
  pointer-events: none;
}
.hero-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(12, 16, 20, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-cover-stamp {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  padding: 7px 16px;
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--paper);
  background: rgba(168, 53, 62, 0.88);
  border: 1px solid rgba(236, 226, 207, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-cover-tag {
  position: absolute;
  left: 20px; right: 20px;
  bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--paper);
  z-index: 3;
}
.hero-cover-tag .l { color: var(--lamp-2); font-weight: 600; }
.hero-cover-tag .r { color: var(--paper-2); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-cover { aspect-ratio: 16/11; order: -1; }
  .hero-meta { grid-template-columns: 1fr; }
}

/* ---------- Facts strip ---------- */
.facts {
  max-width: var(--max);
  margin: 20px auto 10px;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(236, 226, 207, 0.025), transparent);
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 16px;
  border-right: 1px solid var(--line-1);
  position: relative;
}
.fact:last-child { border-right: 0; }
.fact::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--lamp);
  transition: width .35s var(--ease), left .35s var(--ease);
}
.fact:hover::before { left: 0; width: 100%; }
.fact .k { color: var(--lamp); font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 500; }
.fact .v { color: var(--paper); font-family: var(--serif); font-size: 14.5px; font-weight: 500; line-height: 1.5; }
.fact .v em { font-style: normal; color: var(--lamp-2); }

@media (max-width: 960px) { .facts { grid-template-columns: repeat(2, 1fr); } .fact { border-right: 0; border-bottom: 1px solid var(--line-1); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Section ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--pad);
  position: relative;
}
.section-head {
  max-width: 920px;
  margin: 0 auto clamp(28px, 4vw, 52px);
  text-align: center;
  position: relative;
}
.section-head::before {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lamp), transparent);
  margin: 0 auto 22px;
}
.eyebrow {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--lamp);
  border: 1px solid rgba(200, 162, 90, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 16px 0;
  background: rgba(200, 162, 90, 0.05);
  font-weight: 500;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.25;
  margin: 0 0 16px 0;
  color: var(--paper);
  font-weight: 600;
}
.section-head h2 + p { margin-top: 4px; }
.section-head p {
  color: var(--paper-2);
  font-size: 14.5px;
  line-height: 1.9;
  max-width: 62ch;
  margin: 0 auto;
}

/* ---------- Story chapter ---------- */
.story {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  background:
    linear-gradient(160deg, rgba(27, 33, 43, 0.6), rgba(19, 24, 32, 0.8));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  margin: 0 0 clamp(28px, 4vw, 44px) 0;
  position: relative;
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.story:hover { border-color: rgba(200, 162, 90, 0.3); }
.story::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--lamp) 50%, transparent 100%);
  opacity: 0.5;
}
.story::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 30%, var(--seal-3) 50%, transparent 70%);
  opacity: 0.4;
}
.story.reverse { grid-template-columns: 1.15fr 0.85fr; direction: rtl; }
.story.reverse > * { direction: ltr; }

.story-image {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 20px 40px -22px rgba(0,0,0,0.7), 0 0 0 1px var(--line-2);
  background: var(--ink-2);
}
.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.96);
  transition: transform 1.2s var(--ease), filter .35s var(--ease);
}
.story-image:hover img { transform: scale(1.04); filter: saturate(1.05) brightness(1); }
.story-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 16, 20, 0) 60%, rgba(12, 16, 20, 0.45) 100%);
  pointer-events: none;
}
.story-image-tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--paper);
  padding: 6px 12px;
  background: rgba(12, 16, 20, 0.72);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.story-image-num {
  position: absolute;
  bottom: 14px; right: 16px;
  z-index: 2;
  font-family: var(--serif);
  font-size: 84px;
  font-weight: 700;
  line-height: 1;
  color: rgba(236, 226, 207, 0.85);
  text-shadow: 0 6px 30px rgba(0,0,0,0.6);
  letter-spacing: 0;
}
.story-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--lamp);
  text-transform: uppercase;
  margin: 0 0 12px 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.story-num::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--lamp);
}
.story-title {
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.3;
  margin: 0 0 8px 0;
  color: var(--paper);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.story-title em { font-style: normal; color: var(--lamp-2); }
.story-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 24px 0;
}
.story-text p {
  color: var(--paper-2);
  font-size: 14.5px;
  line-height: 1.95;
  margin: 0 0 14px 0;
  letter-spacing: 0.02em;
}
.story-text p strong { color: var(--paper); font-weight: 600; }
.story-text .lead {
  font-size: 16.5px;
  color: var(--paper);
  font-weight: 500;
  line-height: 1.85;
  border-left: 2px solid var(--seal);
  padding-left: 16px;
  margin: 4px 0 22px 0;
}
.pull {
  margin: 24px 0 0 0;
  padding: 18px 22px;
  border-left: 3px solid var(--lamp);
  background: linear-gradient(90deg, rgba(200, 162, 90, 0.08), transparent);
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--lamp-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  letter-spacing: 0.02em;
}
.pull::before {
  content: """;
  font-family: var(--serif);
  font-size: 42px;
  color: var(--seal-2);
  line-height: 0;
  vertical-align: -22px;
  margin-right: 4px;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .story, .story.reverse { grid-template-columns: 1fr; direction: ltr; }
  .story-image { aspect-ratio: 16/10; max-height: 360px; }
  .story-image-num { font-size: 64px; bottom: 8px; right: 12px; }
}

/* ---------- Dialogue ---------- */
.dialogue {
  max-width: 880px;
  margin: clamp(40px, 6vw, 80px) auto;
  padding: 0 var(--pad);
  text-align: center;
}
.dialogue blockquote {
  position: relative;
  margin: 0;
  padding: 36px clamp(20px, 4vw, 44px) 32px;
  font-family: var(--serif);
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.95;
  color: var(--lamp-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 220px at 50% 0%, rgba(200, 162, 90, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(27, 33, 43, 0.55), rgba(19, 24, 32, 0.7));
  letter-spacing: 0.02em;
}
.dialogue cite {
  display: block;
  margin-top: 18px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- Cast cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: linear-gradient(165deg, rgba(27, 33, 43, 0.75), rgba(19, 24, 32, 0.9));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 162, 90, 0.35);
  box-shadow: 0 26px 60px -28px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(200, 162, 90, 0.15);
}
.card-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-2);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter .35s var(--ease);
  filter: saturate(0.92) brightness(0.96);
}
.card:hover .card-image img { transform: scale(1.05); filter: saturate(1.05) brightness(1); }
.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12, 16, 20, 0.65) 100%);
  pointer-events: none;
}
.card-role {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  padding: 6px 12px;
  background: rgba(12, 16, 20, 0.78);
  color: var(--lamp-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card-body { padding: 24px 22px 28px; }
.card-name {
  font-size: 21px;
  margin: 0 0 4px 0;
  color: var(--paper);
}
.card-tagline {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: var(--lamp);
  text-transform: uppercase;
  margin: 0 0 14px 0;
}
.card-body p {
  color: var(--paper-2);
  font-size: 13.5px;
  line-height: 1.85;
  margin: 0 0 16px 0;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tags span {
  display: inline-block;
  padding: 5px 11px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--paper-2);
  background: rgba(236, 226, 207, 0.06);
  border: 1px solid var(--line-1);
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.card-tags span:hover { background: rgba(200, 162, 90, 0.1); color: var(--lamp-2); }

/* ---------- Highlights ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}
@media (max-width: 900px) { .highlights { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .highlights { grid-template-columns: 1fr; } }
.highlight {
  position: relative;
  padding: 28px 24px 26px;
  background:
    linear-gradient(165deg, rgba(27, 33, 43, 0.7), rgba(19, 24, 32, 0.92));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease), background .35s var(--ease);
}
.highlight::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--seal-2), var(--lamp));
  transform: translateX(-100%);
  transition: transform .65s var(--ease);
}
.highlight:hover { transform: translateY(-3px); border-color: rgba(200, 162, 90, 0.32); }
.highlight:hover::before { transform: translateX(0); }
.highlight .num {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--lamp);
  display: block;
  margin-bottom: 14px;
  line-height: 1;
  opacity: 0.85;
}
.highlight h3 {
  font-size: 17.5px;
  margin: 0 0 12px 0;
  color: var(--paper);
}
.highlight p {
  color: var(--paper-2);
  font-size: 13.5px;
  line-height: 1.85;
  margin: 0;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 920px; margin: 0 auto; padding: 10px 0 0 0; }
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 24px;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--seal-3) 8%, var(--lamp) 92%, transparent 100%);
  opacity: 0.7;
}
.timeline-item {
  position: relative;
  padding: 8px 0 32px 64px;
}
.timeline-item:last-child { padding-bottom: 8px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 16px; top: 14px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ink-0);
  border: 2px solid var(--lamp);
  box-shadow: 0 0 0 4px rgba(200, 162, 90, 0.15), inset 0 0 0 2px var(--ink-0);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.timeline-item:hover::before {
  transform: scale(1.1);
  border-color: var(--seal-2);
}
.timeline-item:nth-child(odd)::before {
  border-color: var(--seal-2);
  box-shadow: 0 0 0 4px rgba(168, 53, 62, 0.18), inset 0 0 0 2px var(--ink-0);
}
.timeline-item h3 {
  font-size: 17.5px;
  margin: 0 0 8px 0;
  color: var(--paper);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.timeline-item h3 em {
  font-family: var(--mono);
  font-style: normal;
  color: var(--lamp);
  font-size: 11px;
  letter-spacing: 0.26em;
  vertical-align: middle;
  text-transform: uppercase;
}
.timeline-item p {
  color: var(--paper-2);
  font-size: 13.5px;
  line-height: 1.9;
  margin: 0;
  max-width: 70ch;
}

/* ---------- Finale ---------- */
.finale {
  max-width: 920px;
  margin: clamp(40px, 6vw, 90px) auto;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px);
  text-align: center;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(168, 53, 62, 0.10), transparent 70%),
    radial-gradient(500px 240px at 50% 100%, rgba(200, 162, 90, 0.06), transparent 70%),
    linear-gradient(180deg, rgba(27, 33, 43, 0.85), rgba(19, 24, 32, 0.95));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.finale::before, .finale::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 220px;
  height: 1px;
  transform: translateX(-50%);
}
.finale::before { top: 14px; background: linear-gradient(90deg, transparent, var(--seal-2), transparent); }
.finale::after { bottom: 14px; background: linear-gradient(90deg, transparent, var(--lamp), transparent); }
.finale h2.big {
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, var(--lamp-2) 0%, var(--seal-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 20px 0;
  font-weight: 600;
}
.finale p.small {
  color: var(--paper-2);
  font-size: 14.5px;
  line-height: 1.95;
  margin: 0 auto 28px;
  max-width: 60ch;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 32px 0;
}
.badges span {
  font-size: 12px;
  padding: 6px 14px;
  color: var(--paper);
  background: rgba(236, 226, 207, 0.05);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  letter-spacing: 0.08em;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.badges span:hover { background: rgba(200, 162, 90, 0.1); color: var(--lamp-2); border-color: rgba(200, 162, 90, 0.3); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line-2);
  padding: 36px var(--pad) 32px;
  background: linear-gradient(180deg, transparent, rgba(12, 16, 20, 0.6));
  margin-top: 60px;
}
footer .row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
}
footer p { margin: 0; font-size: 13px; color: var(--muted); }
footer .domain { color: var(--lamp); font-family: var(--serif); font-size: 14px; letter-spacing: 0.12em; font-weight: 500; }
footer .links { display: flex; gap: 22px; }
footer .links a { font-size: 13px; color: var(--paper-2); position: relative; }
footer .links a:hover { color: var(--lamp-2); }
footer .links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -3px;
  height: 1px;
  background: var(--lamp);
  transition: right .3s var(--ease);
}
footer .links a:hover::after { right: 0; }
footer .copy {
  max-width: var(--max);
  margin: 18px auto 0;
  text-align: center;
  border-top: 1px solid var(--line-1);
  padding-top: 20px;
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: grid;
  place-items: center;
  z-index: 200;
  padding: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(236, 226, 207, 0.08);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 24px;
  cursor: pointer;
  border: 1px solid var(--line-3);
  transition: background .25s var(--ease);
}
.lightbox-close:hover { background: var(--seal); }

/* ---------- Print ---------- */
@media print {
  .topbar, .progress, .dotnav, .hero-cta, .finale .hero-cta, footer, .lightbox { display: none !important; }
  body { background: #fff; color: #111; }
  body::before { display: none; }
  .section, .story, .dialogue, .finale { background: transparent; border: 0; box-shadow: none; }
  h1, h2, h3, p { color: #111; }
  .reveal { opacity: 1; transform: none; }
}
