
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;1,9..144,400&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─────────────────────────────────────────
   VIEW TRANSITIONS — card → detail morph
   Progressive enhancement: Chrome/Edge 126+
   ───────────────────────────────────────── */
@view-transition { navigation: auto; }
.card .barcode-strip { view-transition-name: var(--vt-name); }
.anime-cinema-header .bc-bg { view-transition-name: var(--vt-name); }
@media (prefers-reduced-motion: reduce) {
  .card .barcode-strip,
  .anime-cinema-header .bc-bg { view-transition-name: none !important; }
}
::view-transition-old(*),
::view-transition-new(*) {
  animation-duration: 380ms;
  animation-timing-function: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ─────────────────────────────────────────
   TOKENS — premium dark editorial
   ───────────────────────────────────────── */
:root {
  /* surfaces */
  --bg:           #0a0a0c;
  --surface-1:    #121215;
  --surface-2:    #1c1c20;
  --border:       #26262c;
  --border-hi:    #3a3a42;

  /* type colors */
  --fg:           #f1ece4;
  --fg-muted:     #8a8a93;
  --fg-dim:       #5a5a63;

  /* accent */
  --accent:       #e8a44a;
  --accent-hi:    #f6c074;
  --accent-ink:   #1a1208;

  /* legacy aliases — don't break inline styles in templates */
  --surface:      var(--surface-1);
  --card:         var(--surface-1);
  --card2:        var(--surface-2);
  --text:         var(--fg);
  --text-dim:     var(--fg-muted);
  --muted:        var(--fg-dim);
  --accent2:      var(--accent-hi);
  --accent-glow:  rgba(232,164,74,0.16);
  --red: #d95f5f; --green: #5fac80; --blue: #5f8eac;

  /* cinematic veil for hero overlays */
  --cine-veil: linear-gradient(180deg,
    rgba(10,10,12,0.18) 0%,
    rgba(10,10,12,0.55) 55%,
    rgba(10,10,12,0.94) 100%);

  /* type stack */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* type scale (rem) */
  --t-xs:   0.78rem;
  --t-sm:   0.875rem;
  --t-base: 1rem;
  --t-lg:   1.125rem;
  --t-xl:   1.375rem;
  --t-2xl:  1.75rem;
  --t-3xl:  clamp(1.85rem, 3vw, 2.6rem);
  --t-4xl:  clamp(2.4rem, 4vw, 3.4rem);
  --t-hero: clamp(3rem, 6.5vw, 5.6rem);

  /* spacing scale — tightened for archive density (was editorial-magazine wide) */
  --s1:  0.25rem;
  --s2:  0.5rem;
  --s3:  0.75rem;
  --s4:  1rem;
  --s5:  1.5rem;
  --s6:  2rem;
  --s7:  2.5rem;
  --s8:  3.5rem;
  --s9:  4.5rem;
  --s10: 6rem;

  /* easing & duration */
  --ease:       cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-out:   cubic-bezier(0.83, 0, 0.17, 1);
  --d-fast:     150ms;
  --d-mid:      300ms;
  --d-slow:     600ms;
}

/* ─────────────────────────────────────────
   RESET
   ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* every numeric value across the site */
.num, .b-bar-val, .stat-box .num,
.year-display, .num-mono,
td:has(> a[href^="year-"]) ~ td,
[class*="num"] {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum", "lnum";
}

h1, h2, h3, h4, .serif {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.018em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
p { text-wrap: pretty; }

a { color: var(--accent); text-decoration: none; transition: color var(--d-fast) var(--ease); }
a:hover { color: var(--accent-hi); }

img { max-width: 100%; display: block; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─────────────────────────────────────────
   NAV — confident, content-led
   brand · links · range/count text-meta
   ───────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 12, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; gap: var(--s6);
  height: 56px;
}
.nav-brand {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-transform: uppercase;
}
.nav-brand::before {
  content: ''; display: inline-block;
  width: 0.45rem; height: 0.45rem; border-radius: 50%;
  background: var(--accent);
  margin-right: 0.55rem;
  vertical-align: 0.16em;
}
.nav-links {
  display: flex; gap: 1.4rem; flex-wrap: nowrap;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: -0.005em;
  text-transform: none;
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a[href^="year-"] {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
}
.nav-links a[href^="year-"]:hover { color: var(--accent); }
.nav-links a.nav-feature {
  font-family: var(--font-mono);
  font-size: 0.74rem; font-weight: 500;
  color: #6FA8FF;
  letter-spacing: 0.04em;
  border: 1px solid rgba(111,168,255,0.18);
  padding: 0.32rem 0.7rem;
  margin-left: 0.4rem;
  transition: background 0.15s, border-color 0.15s;
}
.nav-links a.nav-feature:hover {
  color: #E8E4DD; background: rgba(111,168,255,0.08);
  border-color: rgba(111,168,255,0.5);
}

/* Year-jump select in nav */
.nav-year-jump {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.32rem 1.6rem 0.32rem 0.7rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-muted) 50%),
                    linear-gradient(135deg, var(--fg-muted) 50%, transparent 50%);
  background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.nav-year-jump:hover, .nav-year-jump:focus {
  color: var(--fg);
  border-color: var(--accent);
  background-color: rgba(232,164,74,0.05);
  outline: none;
}
.nav-year-jump option { background: #15151a; color: var(--fg); }
.nav-year-jump option:disabled { color: var(--fg-dim); }

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  width: 36px; height: 32px;
  padding: 0;
  cursor: pointer;
  position: relative;
  margin-left: auto;
}
.nav-toggle span {
  position: absolute;
  left: 7px; right: 7px; height: 1.5px;
  background: var(--fg-muted);
  transition: transform 0.2s, opacity 0.2s, top 0.2s;
}
.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 21px; }
nav.nav-open .nav-toggle span:nth-child(1) { top: 15px; transform: rotate(45deg); }
nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-toggle span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

/* ─────────────────────────────────────────
   HERO — full-bleed, barcode IS the hero
   ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 62vh;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 5rem) clamp(2rem, 5vh, 3.5rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.hero::before { content: none; }
.hero-barcode-bg {
  position: absolute; inset: 0;
  display: flex; overflow: hidden;
  opacity: 1;
  z-index: -2;
  pointer-events: none;
}
.hero-barcode-bg img {
  flex: 1; width: 0; min-width: 0;
  object-fit: cover;
  filter: saturate(1.15) brightness(1.0);
  mix-blend-mode: normal;
}
.hero-barcode-bg img:nth-child(even) { mix-blend-mode: screen; opacity: 0.65; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: var(--cine-veil);
  z-index: -1;
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 880px;
  display: flex; flex-direction: column; gap: var(--s5);
}
.hero-eyebrow {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: none;
  border-left: 2px solid var(--accent);
  padding: 0.2rem 0 0.2rem 0.7rem;
  margin: 0;
  border-radius: 0;
  background: none;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--t-hero);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.034em;
  color: var(--fg);
  max-width: 14ch;
  text-wrap: balance;
}
.hero h1 em {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.hero .subtitle {
  margin: 0;
  color: var(--fg-muted);
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 54ch;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* stat-row — moved out of the hero visually, into a band */
.stat-row {
  display: flex;
  margin: 0 auto;
  margin-top: 0;
  flex-wrap: wrap;
  border: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  max-width: none;
  width: 100vw;
  position: relative;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  background: var(--surface-1);
  backdrop-filter: none;
  overflow: visible;
}
.hero .stat-row {
  width: auto; left: auto; right: auto;
  margin: var(--s7) 0 0 0;
  border: 1px solid var(--border);
  background: rgba(18, 18, 21, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 760px;
}
.stat-box {
  text-align: left;
  padding: var(--s5) var(--s6);
  flex: 1;
  min-width: 140px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.stat-box + .stat-box::before {
  content: '';
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: var(--border);
}
.stat-box .num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--fg);
  line-height: 1;
  letter-spacing: -0.034em;
  font-variant-numeric: tabular-nums lining-nums;
}
.stat-box .lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-transform: none;
  margin-top: 0;
}

/* ─────────────────────────────────────────
   SECTION
   ───────────────────────────────────────── */
.section {
  max-width: 1480px;
  margin: 0 auto;
  padding: var(--s9) clamp(1.25rem, 4vw, 2.5rem);
}
.section-eyebrow {
  width: 2.25rem;
  height: 1px;
  background: var(--accent);
  margin-bottom: var(--s4);
  border-radius: 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  font-weight: 500;
  color: var(--fg);
  line-height: 1.05;
  letter-spacing: -0.028em;
  margin-bottom: var(--s2);
  max-width: 22ch;
  text-wrap: balance;
}
.section-sub {
  font-family: var(--font-body);
  color: var(--fg-muted);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: var(--s7);
  max-width: 56ch;
}

/* ─────────────────────────────────────────
   GRID
   ───────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s5) var(--s5);
}
.grid-sm {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s4);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
.grid-year {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--s3);
}
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
}
.extreme-slot { display: flex; flex-direction: column; gap: var(--s3); }
.extreme-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  border-left: 2px solid var(--accent);
  padding-left: var(--s2);
  font-weight: 500;
}

/* ─────────────────────────────────────────
   CARDS — image is the card (no chrome)
   ───────────────────────────────────────── */
.card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  position: relative;
  transition: none;
  display: block;
}
.card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}
.card .barcode-strip {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: #000;
  border-radius: 2px;
  transition: filter var(--d-mid) var(--ease), box-shadow var(--d-mid) var(--ease);
}
.card:hover .barcode-strip {
  box-shadow: 0 8px 32px -8px rgba(0,0,0,0.55), 0 0 0 1px var(--accent-veil, transparent);
}
.card .barcode-strip::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right var(--d-mid) var(--ease);
}
.card:hover .barcode-strip::after { right: 0; }
.card .barcode-strip .bc-main {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--d-slow) var(--ease), opacity 220ms var(--ease);
  will-change: transform;
}
.card:hover .barcode-strip .bc-main { transform: scale(1.015); }
@media (prefers-reduced-motion: reduce) {
  .card .barcode-strip .bc-main,
  .card .barcode-strip,
  .card .barcode-strip::after { transition: none !important; }
  .card:hover .barcode-strip .bc-main { transform: none; }
}
.card .barcode-strip .bc-avg-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.card .barcode-strip .bc-avg-overlay img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
}

.card-body {
  padding: var(--s4) 0 var(--s2);
}
.card-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--fg-dim);
  letter-spacing: 0;
  text-transform: none;
}
.card-title {
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 600;
  margin-top: var(--s1);
  line-height: 1.32;
  letter-spacing: -0.007em;
  color: var(--fg);
  transition: color var(--d-fast) var(--ease);
}
.card:hover .card-title { color: var(--accent-hi); }
.card-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--fg-muted);
  margin-top: var(--s2);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.card-hue {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  margin-top: var(--s3);
  letter-spacing: 0.02em;
  text-transform: none;
}

/* ─────────────────────────────────────────
   PALETTE STRIP — promoted from 5px hairline
   ───────────────────────────────────────── */
.palette {
  display: flex;
  height: 14px;
  overflow: hidden;
  margin-top: var(--s2);
}
.palette span {
  flex: 1;
  transition: flex var(--d-mid) var(--ease);
}
.card:hover .palette span:hover { flex: 1.6; }

/* ─────────────────────────────────────────
   ANIME CINEMA HEADER — full-strength art
   ───────────────────────────────────────── */
.anime-cinema-header {
  position: relative;
  min-height: clamp(360px, 50vh, 520px);
  overflow: hidden;
  isolation: isolate;
}
.anime-cinema-header .bc-bg {
  position: absolute; inset: 0;
  display: flex;
  overflow: hidden;
  z-index: -2;
}
.anime-cinema-header .bc-bg img {
  flex: 1;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) brightness(0.92);
  mix-blend-mode: normal;
}
.anime-cinema-header .bc-bg img:nth-child(2) { mix-blend-mode: screen; opacity: 0.7; }
.anime-cinema-header .bc-bg img:nth-child(3) { mix-blend-mode: overlay; opacity: 0.55; }
.anime-cinema-header::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 8% 100%, var(--accent-glow, transparent), transparent 70%),
    var(--cine-veil);
  z-index: -1;
}
.anime-cinema-header > .accent-rule {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent) 18%,
    var(--accent-hi) 50%,
    var(--accent) 82%,
    transparent 100%);
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
}
.anime-cinema-header .header-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1.5rem, 5vw, 3rem) clamp(2rem, 5vh, 3rem);
  z-index: 1;
  max-width: 1480px;
  margin: 0 auto;
}
.anime-cinema-header .tags {
  display: flex; gap: var(--s2); flex-wrap: wrap;
  margin-bottom: var(--s4);
}
.anime-cinema-header h1 {
  font-family: var(--font-display);
  font-size: var(--t-4xl);
  font-weight: 400;
  color: var(--fg);
  text-shadow: none;
  line-height: 1.04;
  letter-spacing: -0.022em;
  max-width: 24ch;
}

.anime-hero {
  padding: var(--s7) clamp(1.5rem, 4vw, 3rem) 0;
  max-width: 1480px;
  margin: 0 auto;
}
.anime-hero .tags {
  display: flex; gap: var(--s2); flex-wrap: wrap;
  margin-top: var(--s3);
}

/* ─────────────────────────────────────────
   TAGS — minimal, score gets emphasis
   ───────────────────────────────────────── */
.tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 400;
  padding: 0.28rem 0.6rem;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  transition: all var(--d-fast) var(--ease);
}
.tag.accent {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 600;
}
a.tag:hover {
  border-color: var(--accent-hi);
  color: var(--accent-hi);
  text-decoration: none;
  background: rgba(232, 164, 74, 0.06);
}

/* ─────────────────────────────────────────
   SORT CONTROLS (year pages)
   ───────────────────────────────────────── */
.sort-controls { display:flex; align-items:center; margin-bottom:1.2rem; flex-wrap:wrap; gap:0.4rem; }
.sort-btn { background:var(--surface); border:1px solid var(--border); color:var(--muted); padding:0.3rem 0.8rem; border-radius:20px; font-size:0.72rem; cursor:pointer; font-family:inherit; transition:all 0.15s; }
.sort-btn:hover, .sort-btn.active { background:var(--accent); color:#000; border-color:var(--accent); }

/* ─────────────────────────────────────────
   BARCODE GRID (per-anime page) — the work
   ───────────────────────────────────────── */
.barcode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  margin-top: var(--s6);
}
.bc-wrap {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color var(--d-mid) var(--ease);
}
.bc-wrap:hover { border-color: var(--border-hi); }
.bc-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg-muted);
  padding: var(--s4) var(--s5) 0;
  letter-spacing: 0;
  text-transform: none;
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.bc-label::before {
  content: '';
  width: 0.4rem; height: 0.4rem;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.bc-wrap img {
  width: 100%;
  display: block;
  margin-top: var(--s3);
}

/* ─────────────────────────────────────────
   ANALYSIS CARDS
   ───────────────────────────────────────── */
.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  margin-top: var(--s7);
}
.analysis-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: var(--s6);
}
.analysis-card h3,
.chart-box h3 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--s5);
}

/* ─────────────────────────────────────────
   COMMENTARY — editorial prose
   ───────────────────────────────────────── */
.commentary {
  max-width: 62ch;
  margin: var(--s6) 0 0;
  padding: 0;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 1.025rem;
  line-height: 1.65;
  letter-spacing: -0.003em;
  color: var(--fg);
  position: relative;
  font-weight: 400;
  text-wrap: pretty;
}
.commentary::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--accent);
  margin-bottom: var(--s5);
  opacity: 0.9;
}
.commentary p + p { margin-top: var(--s4); }
.commentary p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 500;
  float: left;
  line-height: 0.88;
  margin: 0.32rem 0.55rem 0 -0.05em;
  color: var(--accent);
  font-variant-numeric: lining-nums;
}
.commentary strong {
  font-weight: 600;
  color: var(--fg);
}
.commentary em {
  font-style: italic;
  color: var(--fg);
}

/* ─────────────────────────────────────────
   CHARTS
   ───────────────────────────────────────── */
.chart-box {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: var(--s6);
}
canvas { max-width: 100%; }

/* ─────────────────────────────────────────
   YEAR PAGE — editorial header
   big ghost numeral + eyebrow + headline + body
   ───────────────────────────────────────── */
.year-header {
  padding: var(--s8) clamp(1.25rem, 4vw, 2.5rem) var(--s6);
  max-width: 1480px;
  margin: 0 auto;
  position: relative;
}
.year-display {
  font-family: var(--font-display);
  font-size: clamp(8rem, 24vw, 18rem);
  font-weight: 500;
  color: var(--fg);
  opacity: 0.06;
  line-height: 0.82;
  letter-spacing: -0.058em;
  margin-bottom: -2.4rem;
  font-variant-numeric: lining-nums;
  user-select: none;
  pointer-events: none;
}
.year-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: var(--s3);
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
}
.year-decade-link {
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.78rem;
  text-decoration: none;
  border-left: 1px solid var(--border);
  padding-left: var(--s4);
  font-weight: 400;
  transition: color var(--d-fast) var(--ease);
}
.year-decade-link:hover { color: var(--accent); }
.year-headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.022em;
  font-variant-numeric: tabular-nums;
  text-wrap: balance;
}
.year-context {
  max-width: 60ch;
  margin-top: var(--s4);
  color: var(--fg);
  font-size: 1.04rem;
  line-height: 1.65;
  font-family: var(--font-body);
  text-wrap: pretty;
}
.year-context::first-letter {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 500;
  float: left;
  line-height: 0.86;
  margin: 0.32rem 0.55rem 0 -0.05em;
  color: var(--accent);
  font-variant-numeric: lining-nums;
}
.year-tags {
  display: flex;
  gap: 0.55rem;
  margin-top: var(--s5);
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────
   DEFINING WORKS — magazine-feature callout
   ───────────────────────────────────────── */
.defining-works {
  max-width: 1480px;
  margin: 0 auto;
  padding: var(--s7) clamp(1.25rem, 4vw, 2.5rem) var(--s4);
}
.defining-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--border-hi);
  margin-bottom: var(--s5);
}
.defining-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
@media (max-width: 880px) {
  .defining-grid { grid-template-columns: 1fr; }
}
.defining-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: transparent;
  transition: transform 240ms var(--ease);
}
.defining-card:hover { transform: translateY(-2px); }
.defining-art {
  height: 180px;
  overflow: hidden;
  border-radius: 2px;
  background: #000;
  position: relative;
  box-shadow: 0 8px 28px -10px rgba(0,0,0,0.55);
}
.defining-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease);
}
.defining-card:hover .defining-art img { transform: scale(1.02); }
.defining-art::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right 320ms var(--ease);
}
.defining-card:hover .defining-art::after { right: 0; }
.defining-body { padding: var(--s4) 0 var(--s2); }
.defining-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: var(--s3);
  text-wrap: balance;
}
.defining-blurb {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fg-muted);
  font-style: italic;
  max-width: 38ch;
  text-wrap: pretty;
}

/* ─────────────────────────────────────────
   INSIGHTS
   ───────────────────────────────────────── */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  margin-top: var(--s6);
}
.section > div[style*="max-width:820px"] {
  font-family: var(--font-body) !important;
  line-height: 1.7 !important;
  font-size: var(--t-base) !important;
  color: var(--fg) !important;
  max-width: 64ch !important;
}
.section > div[style*="max-width:820px"] p { margin-bottom: var(--s5); }
.section > div[style*="max-width:820px"] strong {
  color: var(--fg);
  font-weight: 600;
}
.section > div[style*="max-width:820px"] p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 400;
  float: left;
  line-height: 0.85;
  margin: 0.35rem 0.5rem 0 0;
  color: var(--accent);
  font-variant-numeric: lining-nums;
}

/* ─────────────────────────────────────────
   TABLE — research-paper density
   ───────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}
th {
  text-align: left;
  padding: var(--s3) var(--s4);
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-hi);
}
td {
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  vertical-align: middle;
}
td a { color: var(--fg); }
td a:hover { color: var(--accent); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.018); }

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
footer {
  text-align: left;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: var(--s8) clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid var(--border);
  letter-spacing: 0;
  line-height: 1.7;
  max-width: 1480px;
  margin: 0 auto;
  font-variant-numeric: tabular-nums;
}
footer p { color: var(--fg-muted); }
footer p:first-child { color: var(--fg); margin-bottom: var(--s2); }

/* ─────────────────────────────────────────
   BREADCRUMB
   ───────────────────────────────────────── */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-dim);
  padding: var(--s5) clamp(1.5rem, 4vw, 3rem);
  max-width: 1480px;
  margin: 0 auto;
  letter-spacing: 0;
}
.breadcrumb a { color: var(--fg-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 var(--s2); opacity: 0.5; color: var(--fg-dim); }

/* ─────────────────────────────────────────
   BRIGHTNESS BAR
   ───────────────────────────────────────── */
.b-bar-wrap {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s2);
}
.b-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0;
  overflow: hidden;
}
.b-bar-fill {
  height: 100%;
  border-radius: 0;
  background: var(--accent);
  transition: width var(--d-slow) var(--ease);
}
.b-bar-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg);
  width: 3.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.b-bar-wrap > span:first-child {
  font-family: var(--font-body) !important;
  font-size: 0.74rem !important;
  color: var(--fg-muted) !important;
  font-weight: 500;
}

/* ─────────────────────────────────────────
   INLINE-STYLE NORMALIZERS
   (the templates ship ~641 inline style attrs;
    these selectors quietly upgrade them)
   ───────────────────────────────────────── */

/* hero subtitle in insights — span emphasis */
.hero h1 span {
  font-style: italic;
  background: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* per-anime "year ghost" inline */
[style*="font-family:'DM Serif Display'"] {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
}

/* "Score 8.75" tags should look like data, not chips */
.tag:not(.accent) {
  background: rgba(255, 255, 255, 0.03);
}

/* small-card year nav tiles on home — inline-styled in build_index */
.section .grid-sm a > .card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 2px;
}
.section .grid-sm a > .card:hover { border-color: var(--accent); }
.section .grid-sm a > .card > div:first-child {
  height: 64px !important;
}
.section .grid-sm a > .card > div:first-child img {
  opacity: 1 !important;
  filter: saturate(1.1);
}
.section .grid-sm a > .card > div:last-child > div:first-child {
  font-family: var(--font-display) !important;
  font-size: 1.6rem !important;
  font-weight: 400 !important;
  color: var(--fg) !important;
  letter-spacing: -0.018em !important;
}
.section .grid-sm a > .card > div:last-child > div:last-child {
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0 !important;
  color: var(--fg-dim) !important;
}

/* color palette grid on per-anime page */
[style*="grid-template-columns:repeat(4,1fr)"] > div {
  position: relative;
}
[style*="grid-template-columns:repeat(4,1fr)"] > div > span {
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  color: var(--fg-muted) !important;
  letter-spacing: 0;
}
[style*="grid-template-columns:repeat(4,1fr)"] > div > div {
  border-radius: 2px !important;
}

/* 3-act color story */
.analysis-card[style*="margin-top:1.5rem"] > div > div > div:first-child {
  font-family: var(--font-body) !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  color: var(--fg-muted) !important;
  letter-spacing: 0.16em !important;
}
.analysis-card[style*="margin-top:1.5rem"] > div > div > div:last-child > div {
  border-radius: 2px !important;
}

/* insights table progress-bar inline */
td > div[style*="display:flex"] > div[style*="background:var(--accent)"] {
  background: var(--accent) !important;
  height: 3px !important;
  border-radius: 0 !important;
}
td > div[style*="display:flex"] > span {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--fg);
}

/* ─────────────────────────────────────────
   MOBILE
   ───────────────────────────────────────── */
@media (max-width: 760px) {
  body { font-size: 16px; }

  nav {
    padding: 0 1rem;
    gap: 0.6rem;
    height: 56px;
    overflow: visible;
    flex-wrap: nowrap;
  }
  .nav-brand { font-size: 0.78rem; flex-shrink: 0; }
  .nav-toggle { display: block; flex-shrink: 0; }
  .nav-links {
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: rgba(10, 10, 12, 0.985);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  nav.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .nav-links a.nav-feature {
    margin-left: 0;
    border: none; border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav-meta {
    margin-left: 0; margin-right: 0.4rem;
    flex-shrink: 0;
  }

  .hero {
    min-height: 70vh;
    padding: 4rem 1.25rem 2rem;
  }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero .subtitle { font-size: 1rem; }
  .hero .stat-row { margin-top: var(--s5); }

  .stat-box {
    padding: var(--s4) var(--s4);
    min-width: 50%;
    flex: 0 0 50%;
  }
  .stat-box:nth-child(2)::before,
  .stat-box:nth-child(4)::before { display: none; }
  .stat-box:nth-child(3),
  .stat-box:nth-child(4) { border-top: 1px solid var(--border); }
  .stat-box .num { font-size: 2rem; }

  .section { padding: var(--s7) 1.25rem; }
  .section-title { font-size: clamp(1.6rem, 6vw, 2rem); }

  .grid { grid-template-columns: 1fr; gap: var(--s4); }
  .grid-sm { grid-template-columns: repeat(2, 1fr); }
  .grid-year { grid-template-columns: repeat(2, 1fr); }

  .card .barcode-strip { height: 180px; }

  .anime-cinema-header {
    min-height: 320px;
  }
  .anime-cinema-header .header-content {
    padding: 1.25rem 1.25rem 1.5rem;
  }
  .anime-cinema-header h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }

  .anime-hero { padding: var(--s5) 1.25rem 0; }
  .barcode-grid { gap: var(--s4); margin-top: var(--s5); }

  .commentary {
    font-size: 1.05rem;
    padding-left: var(--s4);
  }

  .analysis-grid,
  .insights-grid {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }

  .year-header { padding: var(--s7) 1.25rem var(--s5); }
  .year-display { font-size: clamp(5rem, 28vw, 8rem); margin-bottom: -1rem; }

  table { font-size: 0.8rem; }
  th, td { padding: var(--s2) var(--s3); }

  footer { padding: var(--s7) 1.25rem; }
}

/* ─────────────────────────────────────────
   REDUCED MOTION
   ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─────────────────────────────────────────
   NAV-META — right-side text block (replaces in-nav scrubber)
   ───────────────────────────────────────── */
.nav-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s4);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.nav-meta .nav-range { color: var(--fg-muted); }
.nav-meta .nav-count {
  border-left: 1px solid var(--border);
  padding-left: var(--s4);
}
.nav-brand-dot { color: var(--accent); margin: 0 0.05em; }
@media (max-width: 760px) {
  .nav-meta .nav-count { display: none; }
  .nav-meta .nav-range { font-size: 0.7rem; }
}

/* ─────────────────────────────────────────
   YEAR TIMELINE — full-width data-viz
   bars: height = avg brightness, color = dominant hue
   labels at 5-year ticks always visible
   ───────────────────────────────────────── */
.year-timeline {
  max-width: 1480px;
  margin: 0 auto;
  padding: var(--s7) clamp(1.25rem, 4vw, 2.5rem) var(--s8);
}
.ytl-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s5);
  margin-bottom: var(--s4);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--border);
}
.ytl-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ytl-cap {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--fg-muted);
  letter-spacing: 0;
}
.ytl-bars {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 2px;
  align-items: flex-end;
  height: 88px;
  padding-bottom: 18px;
  position: relative;
}
.ytl-bar {
  position: relative;
  height: var(--h, 50%);
  min-height: 6px;
  background: var(--c, var(--accent));
  opacity: 0.7;
  border-radius: 1px;
  transition: opacity 160ms var(--ease), filter 160ms var(--ease), transform 160ms var(--ease);
}
.ytl-bar:hover {
  opacity: 1;
  transform: scaleY(1.06);
  transform-origin: bottom;
}
.ytl-bar[aria-current="page"] {
  opacity: 1;
  filter: brightness(1.12) saturate(1.2);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--accent);
}
.ytl-bar.empty {
  opacity: 0.16;
  background: var(--fg-dim);
  height: 14px !important;
}
.ytl-label {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 160ms var(--ease), color 160ms var(--ease);
}
.ytl-bar[data-labeled="1"] .ytl-label { opacity: 1; }
.ytl-bar:hover .ytl-label,
.ytl-bar[aria-current="page"] .ytl-label {
  opacity: 1;
  color: var(--fg);
}
.ytl-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg);
  background: var(--surface-2);
  border: 1px solid var(--border-hi);
  padding: 0.35rem 0.6rem;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
  transition: opacity 140ms var(--ease);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.5);
}
.ytl-tooltip strong { color: var(--accent); font-weight: 600; }
.ytl-bar:hover .ytl-tooltip { opacity: 1; }
@media (max-width: 760px) {
  .ytl-bars { gap: 1px; height: 60px; padding-bottom: 14px; }
  .ytl-label { font-size: 0.58rem; bottom: -14px; }
  .ytl-tooltip { font-size: 0.62rem; }
}

/* ─────────────────────────────────────────
   DECADE PAGES — long-form editorial
   ───────────────────────────────────────── */
.decade-cinema {
  position: relative;
  min-height: clamp(360px, 50vh, 540px);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 3rem) clamp(2.5rem, 6vh, 4rem);
}
.decade-bg {
  position: absolute; inset: 0;
  display: flex;
  z-index: -2;
}
.decade-bg img {
  flex: 1; height: 100%;
  object-fit: cover;
  filter: saturate(1.1) brightness(0.85);
}
.decade-bg img:nth-child(2) { mix-blend-mode: screen; opacity: 0.7; }
.decade-bg img:nth-child(4) { mix-blend-mode: overlay; opacity: 0.55; }
.decade-cinema::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--cine-veil);
  z-index: -1;
}
.decade-content {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
}
.decade-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: var(--s3);
}
.decade-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.046em;
  line-height: 0.94;
  color: var(--fg);
  margin-bottom: var(--s5);
}
.decade-stats {
  display: flex;
  gap: var(--s6);
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--s4);
  max-width: 920px;
}
.decade-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.decade-stat .ds-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
}
.decade-stat .ds-lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* Decade essay typography — magazine-feature register */
.decade-essay {
  max-width: 64ch;
  margin: var(--s10) auto var(--s8);
  padding: 0 clamp(1.5rem, 5vw, 2.5rem);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.72;
  color: var(--fg);
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.decade-essay p { margin-bottom: var(--s4); }
.decade-essay p.lede {
  font-size: 1.32rem;
  line-height: 1.55;
  color: var(--fg);
  font-weight: 400;
  margin-bottom: var(--s7);
  letter-spacing: -0.012em;
}
.decade-essay p.lede::first-letter {
  font-family: var(--font-display);
  font-size: 4.4rem;
  font-weight: 500;
  float: left;
  line-height: 0.85;
  margin: 0.32rem 0.55rem 0 -0.05em;
  color: var(--accent);
  font-variant-numeric: lining-nums;
}
.decade-essay h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.024em;
  line-height: 1.12;
  color: var(--fg);
  margin: var(--s8) 0 var(--s4);
  position: relative;
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
  text-wrap: balance;
}
.decade-essay h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.decade-essay strong {
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums lining-nums;
}
.decade-essay em { font-style: italic; color: var(--fg); }
.decade-essay blockquote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--fg);
  margin: var(--s7) 0 var(--s7) calc(-1 * var(--s5));
  padding: 0 0 0 var(--s5);
  border-left: 2px solid var(--accent);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.decade-essay blockquote em { color: var(--accent-hi); }

/* Decades index */
.decade-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s5);
}
@media (max-width: 880px) {
  .decade-index-grid { grid-template-columns: 1fr; }
}
.decade-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color var(--d-mid) var(--ease), transform var(--d-mid) var(--ease);
}
.decade-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.decade-card-strip {
  display: flex;
  height: 140px;
  background: #000;
  overflow: hidden;
}
.decade-card-strip img {
  flex: 1;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}
.decade-card-strip img:nth-child(2) { mix-blend-mode: screen; opacity: 0.75; }
.decade-card-body {
  padding: var(--s5);
}
.decade-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--s2);
}
.decade-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  color: var(--fg);
  margin-bottom: var(--s3);
}
.decade-card:hover .decade-card-title { color: var(--accent-hi); }
.decade-card-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

/* ─────────────────────────────────────────
   LIGHTBOX
   ───────────────────────────────────────── */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5,5,7,0.96);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  display: flex; align-items: center; justify-content: center;
  padding: 6vh 4vw 8vh;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
}
.lightbox-overlay.lightbox-open { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.06);
  filter: contrast(1.05);
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
  cursor: zoom-out;
  transition: transform 0.22s ease;
}
.lightbox-overlay.lightbox-open .lightbox-img {
  transform: scale(1);
}
.lightbox-overlay:not(.lightbox-open) .lightbox-img { transform: scale(0.96); }
.lightbox-close {
  position: absolute; top: 16px; right: 18px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.78);
  width: 38px; height: 38px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 22px; line-height: 1; padding: 0;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  z-index: 2;
}
.lightbox-close:hover {
  color: #fff; border-color: #fff;
  background: rgba(255,255,255,0.04);
}
.lightbox-cap {
  position: absolute; bottom: 18px; left: 16px; right: 16px;
  text-align: center;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  pointer-events: none;
}
/* zoom cursor on zoomable images */
img.bc-main, .atlas-item img, .kf-strip img, .big-img img,
.hero-circle img, .layer-strip img,
.anime-cinema-art img, .anime-cinema-header img,
img[data-zoom] {
  cursor: zoom-in;
}

/* ─────────────────────────────────────────
   PRINT
   ───────────────────────────────────────── */
@media print {
  nav, footer, .breadcrumb, .lightbox-overlay { display: none; }
  body { background: white; color: black; }
  .hero::after { display: none; }
}
