/* ==========================================================================
   Upanishad Ganga — main stylesheet
   Design: "Temple Theatre" — lamp-lit maroon darkness, saffron flame, gold rules
   Plain CSS, no framework. Layers keep the cascade predictable.
   ========================================================================== */

@layer reset, tokens, base, layout, components, pages, utilities;

/* ---------- Tokens ---------- */
@layer tokens {
  :root {
    color-scheme: dark;

    /* Colour */
    --ink-950: #2a120c;   /* lightened twice 2026-11-13 (orig #120806) */
    --ink-900: #34170f;
    --ink-850: #3e1d14;
    --ink-800: #4b2419;
    --maroon-700: #5c1a12;
    --maroon-600: #7d2416;
    --saffron-500: #e8761c;
    --flame-400: #f59a32;
    --gold-400: #d6a650;
    --gold-300: #ebc982;
    --cream-50: #fbf3e4;
    --cream-100: #f3e4c6;
    --cream-200: #e5cfa5;

    --color-bg: var(--ink-950);
    --color-surface: var(--ink-850);
    --color-surface-2: var(--ink-800);
    --color-text: var(--cream-50);
    --color-text-muted: color-mix(in oklab, var(--cream-50) 68%, transparent);
    --color-text-faint: color-mix(in oklab, var(--cream-50) 45%, transparent);
    --color-primary: var(--saffron-500);
    --color-primary-hover: var(--flame-400);
    --color-accent: var(--gold-300);
    --color-border: color-mix(in oklab, var(--gold-400) 22%, transparent);
    --color-border-strong: color-mix(in oklab, var(--gold-400) 45%, transparent);

    --gradient-flame: linear-gradient(135deg, var(--flame-400), var(--saffron-500) 45%, var(--maroon-600));
    --gradient-gold-text: linear-gradient(180deg, #fff1cf 0%, var(--gold-300) 45%, var(--gold-400) 100%);
    --glow-lamp: radial-gradient(ellipse at 50% 0%, color-mix(in oklab, var(--saffron-500) 22%, transparent), transparent 60%);

    /* Typography */
    --font-display: "Cormorant Garamond", "Times New Roman", serif;
    --font-body: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-sanskrit: "Tiro Devanagari Sanskrit", "Mukta", serif;

    --step--1: clamp(0.84rem, 0.81rem + 0.14vw, 0.92rem);
    --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
    --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
    --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
    --step-3: clamp(1.9rem, 1.55rem + 1.8vw, 3rem);
    --step-4: clamp(2.4rem, 1.8rem + 3.2vw, 4.4rem);
    --step-5: clamp(3rem, 2rem + 5.4vw, 6.8rem);

    /* Space */
    --space-3xs: 0.25rem;
    --space-2xs: 0.5rem;
    --space-xs: 0.75rem;
    --space-s: 1rem;
    --space-m: 1.5rem;
    --space-l: 2.25rem;
    --space-xl: 3.5rem;
    --space-2xl: 5.5rem;
    --space-3xl: 8rem;
    --section-space: clamp(4rem, 3rem + 5vw, 8rem);

    /* Shape, depth, motion */
    --radius-s: 6px;
    --radius-m: 12px;
    --radius-l: 20px;
    --radius-pill: 999px;
    --shadow-s: 0 2px 8px rgb(0 0 0 / 0.35);
    --shadow-m: 0 14px 40px -12px rgb(0 0 0 / 0.65);
    --shadow-glow: 0 10px 40px -10px color-mix(in oklab, var(--saffron-500) 55%, transparent);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --duration: 220ms;

    --container: 76rem;
    --container-narrow: 46rem;
    --header-h: 5.25rem;   /* was 4.5rem — navbar made a little bigger (user 2026-11-14) */
  }
}

/* ---------- Reset ---------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: none; text-size-adjust: none; }
  body { min-height: 100svh; line-height: 1.65; -webkit-font-smoothing: antialiased; }
  img, picture, video, svg, iframe { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; }
  p, h1, h2, h3, h4, li, figcaption { overflow-wrap: break-word; }
  h1, h2, h3, h4 { line-height: 1.12; text-wrap: balance; }
  p { text-wrap: pretty; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  dialog { margin: auto; }
  :target { scroll-margin-block: calc(var(--header-h) + 1.5rem); }
}

/* ---------- Base ---------- */
@layer base {
  html { scroll-behavior: smooth; }

  body {
    font-family: var(--font-body);
    font-size: var(--step-0);
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-bg);
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: minmax(0, 1fr);
  }
  main { min-width: 0; }

  /* subtle film grain over everything for a cinematic texture */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  h1, h2, h3, .stat__num, .ep-card__num, .not-found__code {
    font-variant-numeric: lining-nums; /* Cormorant's default old-style "1" looks like "I" */
  }
  h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-accent);
  }
  h1 { font-size: var(--step-4); }
  h2 { font-size: var(--step-3); }
  h3 { font-size: var(--step-1); }

  a { color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
  a:hover { color: var(--color-primary-hover); }

  strong { font-weight: 600; color: var(--cream-50); }

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

  ::selection { background: var(--saffron-500); color: var(--ink-950); }

  [lang="sa"], [lang="hi"] { font-family: var(--font-sanskrit); }
}

/* ---------- Layout ---------- */
@layer layout {
  .container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
  .container--narrow { width: min(100% - 2rem, var(--container-narrow)); margin-inline: auto; }

  .section { padding-block: var(--section-space); position: relative; }
  .section--tight { padding-block: calc(var(--section-space) * 0.6); }
  .section--surface { background: var(--color-surface); }
  .section--glow { background: var(--glow-lamp), var(--color-bg); }

  .flow > * + * { margin-block-start: var(--flow-space, 1em); }

  .grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 16rem)), 1fr));
    gap: var(--gap, var(--space-m));
  }

  .split {
    display: grid;
    gap: var(--space-xl);
    align-items: center;
  }
  @media (width >= 56rem) {
    .split { grid-template-columns: 1fr 1fr; }
    .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
  }

  /* ----- Header ----- */
  /* NOTE: the blur lives on ::before — backdrop-filter on the header itself would
     become the containing block for the position:fixed mobile menu and clip it. */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    border-bottom: 1px solid var(--color-border);
    transition: border-color 300ms;
  }
  .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: color-mix(in oklab, var(--ink-950) 85%, transparent);
    backdrop-filter: blur(14px);
    transition: opacity 300ms;
  }
  /* Over the home hero the header starts transparent */
  .site-header--overlay { position: fixed; inset-inline: 0; border-color: transparent; }
  .site-header--overlay::before { opacity: 0; }
  .site-header--overlay.is-scrolled { border-color: var(--color-border); }
  .site-header--overlay.is-scrolled::before { opacity: 1; }

  .site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-m);
  }

  .brand { display: flex; align-items: center; flex-shrink: 0; }
  .brand img { height: 4.1rem; width: auto; filter: drop-shadow(0 4px 12px rgb(0 0 0 / 0.5)); }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-pill);
    color: var(--cream-50);
    font-size: var(--step--1);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .nav-toggle__icon { width: 18px; height: 12px; position: relative; }
  .nav-toggle__icon::before, .nav-toggle__icon::after, .nav-toggle__icon span {
    content: ""; position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
    background: currentColor; transition: transform var(--duration) var(--ease-out), opacity var(--duration);
  }
  .nav-toggle__icon::before { top: 0; }
  .nav-toggle__icon span { top: 5px; }
  .nav-toggle__icon::after { bottom: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon span { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-5px) rotate(-45deg); }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--ink-950);
    background-image: var(--glow-lamp);
    padding: var(--space-l) var(--space-m);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    translate: 0 -0.5rem;
    transition: opacity 250ms var(--ease-out), translate 250ms var(--ease-out), visibility 0s 250ms;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; translate: 0 0; transition-delay: 0s; }

  .main-nav__list { list-style: none; padding: 0; display: grid; gap: var(--space-3xs); }
  .main-nav__list a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 500;
    color: var(--cream-50);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav__list a[aria-current="page"] { color: var(--flame-400); }
  .main-nav__cta { margin-top: var(--space-l); }

  @media (width >= 68rem) {
    .nav-toggle { display: none; }
    .main-nav {
      position: static;
      visibility: visible;
      opacity: 1;
      translate: none;
      background: none;
      padding: 0;
      overflow: visible;
      display: flex;
      align-items: center;
      gap: var(--space-m);
    }
    .main-nav__list { display: flex; gap: 0.15rem; }
    .main-nav__list a {
      position: relative;
      padding: 0.55rem 0.75rem;
      font-family: var(--font-body);
      font-size: 1.05rem;
      font-weight: 500;
      border: 0;
      color: color-mix(in oklab, var(--cream-50) 82%, transparent);
    }
    .main-nav__list a::after {
      content: "";
      position: absolute;
      left: 0.75rem; right: 0.75rem; bottom: 0.2rem;
      height: 2px;
      border-radius: 2px;
      background: var(--gradient-flame);
      scale: 0 1;
      transition: scale var(--duration) var(--ease-out);
    }
    .main-nav__list a:hover { color: var(--cream-50); }
    .main-nav__list a:hover::after, .main-nav__list a[aria-current="page"]::after { scale: 1 1; }
    .main-nav__list a[aria-current="page"] { color: var(--cream-50); }
    .main-nav__cta { margin: 0; font-size: 1.02rem; padding: 0.7rem 1.35rem; }
  }

  /* ----- Footer (redesigned 2026-11-14) ----- */
  .site-footer {
    position: relative;
    background:
      radial-gradient(60% 120% at 50% 0%, color-mix(in oklab, var(--saffron-500) 10%, transparent), transparent 70%),
      var(--ink-900);
    border-top: 1px solid var(--color-border);
    padding-block: var(--space-xl) var(--space-m);
    font-size: var(--step--1);
    color: var(--color-text-muted);
  }
  .site-footer::before {
    content: ""; position: absolute; inset: -1px 0 auto; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  }
  /* Watch CTA band */
  .site-footer__cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-m);
    padding: var(--space-m) var(--space-l);
    border-radius: var(--radius-l);
    background: linear-gradient(110deg, color-mix(in oklab, var(--maroon-600) 55%, var(--ink-850)), var(--ink-850));
    border: 1px solid color-mix(in oklab, var(--gold-400) 30%, transparent);
    box-shadow: 0 24px 50px -32px rgb(0 0 0 / 0.8);
  }
  .site-footer__cta-title { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; color: var(--gold-300); line-height: 1.15; }
  .site-footer__cta p + p { margin-top: 0.2rem; color: var(--cream-100); }

  .site-footer__grid { display: grid; gap: var(--space-l) var(--space-xl); margin-top: var(--space-xl); grid-template-columns: 1fr 1fr; }
  .site-footer__brand, .site-footer__contact { grid-column: 1 / -1; }
  @media (width >= 56rem) {
    .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.4fr; }
    .site-footer__brand, .site-footer__contact { grid-column: auto; }
  }
  .site-footer h2 {
    font-family: var(--font-body); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--flame-400); margin-bottom: var(--space-s);
  }
  .site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
  .site-footer a { color: var(--color-text-muted); text-decoration: none; transition: color var(--duration); }
  .site-footer a:hover { color: var(--gold-300); }
  .site-footer__brand img { height: 3.8rem; width: auto; }
  .site-footer__brand p { margin-top: var(--space-s); max-width: 22rem; line-height: 1.6; }
  .site-footer__social { display: flex !important; gap: 0.5rem !important; margin-top: var(--space-m); }
  .site-footer__social a {
    display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
    border: 1px solid var(--color-border-strong); color: var(--cream-50);
    transition: background-color var(--duration), border-color var(--duration), color var(--duration), translate 300ms var(--ease-out);
  }
  .site-footer__social a:hover { background: var(--saffron-500); border-color: var(--saffron-500); color: #1b0905; translate: 0 -2px; }
  .site-footer__social svg { width: 1rem; height: 1rem; }
  .site-footer__contact li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.6rem; align-items: start; line-height: 1.55; }
  .site-footer__contact svg { width: 1.05rem; height: 1.05rem; margin-top: 0.15rem; color: var(--flame-400); }
  .site-footer__contact a { overflow-wrap: anywhere; }

  .site-footer__bottom {
    margin-top: var(--space-xl); padding-top: var(--space-m);
    border-top: 1px solid var(--color-border);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-s) var(--space-l);
    color: var(--color-text-faint);
  }
  .site-footer__producers { display: flex; align-items: center; gap: 0.7rem; }
  .site-footer__producers span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
  .site-footer__producers img { height: 2.4rem; width: auto; }
  /* the CCMT logo is dark brown — give it a cream chip so it reads on the dark footer */
  .site-footer__ccmt { height: 2.4rem !important; padding: 0.35rem 0.7rem; border-radius: var(--radius-s); background: var(--cream-50); box-sizing: border-box; }
  .site-footer__top { font-weight: 600; color: var(--gold-300) !important; }
  .site-footer__top:hover { color: var(--cream-50) !important; }
  @media (width < 40rem) {
    .site-footer__cta { padding: var(--space-m); }
    .site-footer__cta .btn { width: 100%; justify-content: center; }
    .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  }
}

/* ---------- Components ---------- */
@layer components {
  /* Eyebrow label with gold diamond */
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--flame-400);
  }
  .eyebrow::before {
    content: "";
    width: 7px; height: 7px;
    rotate: 45deg;
    background: var(--gold-400);
    box-shadow: 0 0 12px var(--saffron-500);
  }

  /* Ornamental divider: line — diamond — line */
  .ornament {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    color: var(--gold-400);
    margin-block: var(--space-m);
  }
  .ornament::before, .ornament::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, currentColor);
  }
  .ornament::after { background: linear-gradient(90deg, currentColor, transparent); }
  .ornament span { width: 9px; height: 9px; rotate: 45deg; border: 1px solid currentColor; }
  .ornament--center { max-width: 18rem; margin-inline: auto; }

  .section-head { max-width: 44rem; margin-bottom: var(--space-xl); }
  .section-head--center { margin-inline: auto; text-align: center; }
  .section-head--center .eyebrow { justify-content: center; }
  .section-head h2 { margin-top: var(--space-xs); }
  .section-head p { margin-top: var(--space-s); color: var(--color-text-muted); font-size: var(--step-1); font-weight: 300; }

  .gold-text {
    background: var(--gradient-gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    padding: 0.85em 1.6em;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--duration) var(--ease-out), box-shadow var(--duration), background-color var(--duration), color var(--duration), border-color var(--duration);
  }
  .btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
  .btn--primary { background: var(--gradient-flame); color: #1b0905; box-shadow: var(--shadow-glow); }
  .btn--primary:hover { color: #1b0905; transform: translateY(-2px); box-shadow: 0 16px 48px -12px color-mix(in oklab, var(--saffron-500) 75%, transparent); }
  .btn--ghost { border-color: var(--color-border-strong); color: var(--cream-50); background: color-mix(in oklab, var(--ink-950) 35%, transparent); backdrop-filter: blur(6px); }
  .btn--ghost:hover { border-color: var(--gold-300); color: var(--gold-300); }
  .btn--small { padding: 0.6em 1.15em; font-size: 0.88rem; }
  .btn-row { display: flex; flex-wrap: wrap; gap: var(--space-s); }

  /* Pill / badge */
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-pill);
    font-size: var(--step--1);
    color: var(--cream-100);
    background: color-mix(in oklab, var(--ink-950) 45%, transparent);
    backdrop-filter: blur(6px);
  }
  .pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 0 rgb(255 59 48 / 0.6); animation: pulse 2s infinite; }
  @keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(255 59 48 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 59 48 / 0); } }

  .tag {
    display: inline-block;
    padding: 0.18rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-300);
    background: color-mix(in oklab, var(--gold-400) 14%, transparent);
    border: 1px solid var(--color-border);
  }

  /* ----- Episode card ----- */
  .ep-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-m);
    overflow: hidden;
    transition: transform 300ms var(--ease-out), border-color 300ms, box-shadow 300ms;
  }
  .ep-card:hover { transform: translateY(-6px); border-color: var(--color-border-strong); box-shadow: var(--shadow-m); }
  .ep-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-800); }
  .ep-card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 600ms var(--ease-out); }
  .ep-card:hover .ep-card__media img { scale: 1.06; }
  .ep-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgb(18 8 6 / 0.85));
  }
  .ep-card__num {
    position: absolute;
    left: var(--space-s);
    bottom: 0.35rem;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    background: var(--gradient-gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.6));
  }
  .ep-card__play {
    position: absolute;
    right: var(--space-s);
    bottom: var(--space-s);
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--gradient-flame);
    color: #1b0905;
    box-shadow: var(--shadow-glow);
    scale: 0.85;
    opacity: 0.9;
    transition: scale 300ms var(--ease-out), opacity 300ms;
  }
  .ep-card:hover .ep-card__play { scale: 1; opacity: 1; }
  .ep-card__play svg { width: 1rem; height: 1rem; margin-left: 2px; }
  .ep-card__body { display: grid; justify-items: start; gap: 0.35rem; padding: var(--space-s) var(--space-s) var(--space-m); }
  .ep-card__title { font-size: 1.32rem; color: var(--cream-50); }
  .ep-card__title a { color: inherit; text-decoration: none; }
  .ep-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; } /* whole card clickable */
  .ep-card__story { font-size: var(--step--1); color: var(--color-text-muted); }
  .ep-card__story::before { content: "Story · "; color: var(--flame-400); }

  /* ----- Home "Watch the episodes": 3D carousel (2026-11-14) -----
     JS (initCoverflow) adds .is-ready and sets on each item:
       --off  signed distance from the centre card (-2 … 2)
       --abs  |off|
     Without JS the stage is a plain swipeable row. */
  .cf { --cf-w: min(40rem, 76vw); --cf-step: calc(var(--cf-w) * 0.56); --cf-depth: 240px; position: relative; }
  .cf__stage {                                   /* no-JS fallback: swipe row */
    display: flex; gap: var(--space-m);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: var(--space-s) max(1rem, (100vw - var(--container)) / 2);
  }
  .cf__stage::-webkit-scrollbar { display: none; }
  .cf__item {
    position: relative; flex: 0 0 min(80%, 22rem);
    aspect-ratio: 16 / 9; overflow: hidden; scroll-snap-align: center;
    border-radius: var(--radius-m); background: var(--ink-800);
  }
  .cf__item img { width: 100%; height: 100%; object-fit: cover; }

  .cf.is-ready .cf__stage {
    display: block; position: relative;
    overflow-x: clip; overflow-y: visible;      /* clip side cards at the screen edge, keep shadows below */
    height: calc(var(--cf-w) * 9 / 16 + 3rem);
    padding: 0; perspective: 1600px; perspective-origin: 50% 45%;
    touch-action: pan-y;                         /* horizontal swipe handled in JS */
    user-select: none;
  }
  .cf.is-ready .cf__item {
    position: absolute; top: 1.25rem; left: 50%;
    width: var(--cf-w); margin-left: calc(var(--cf-w) / -2);
    z-index: calc(10 - var(--abs));
    transform:
      translateX(calc(var(--off) * var(--cf-step)))
      translateZ(calc(var(--abs) * var(--cf-depth) * -1))
      rotateY(calc(var(--off) * -34deg));
    filter: brightness(calc(1 - var(--abs) * 0.32)) saturate(calc(1 - var(--abs) * 0.25));
    box-shadow: 0 30px 50px -20px rgb(0 0 0 / 0.7);
    transition: transform 850ms cubic-bezier(0.22, 0.8, 0.24, 1), filter 850ms, opacity 600ms, box-shadow 600ms;
    -webkit-user-drag: none;
  }
  .cf.is-ready .cf__item img { pointer-events: none; }
  .cf.is-ready .cf__item.is-far { opacity: 0; pointer-events: none; }   /* |off| > 2 */
  .cf.is-ready .cf__item.is-current {
    box-shadow:
      0 0 0 1px var(--gold-300),
      0 0 0 6px color-mix(in oklab, var(--ink-950) 80%, transparent),
      0 0 0 7px color-mix(in oklab, var(--gold-400) 35%, transparent),
      0 40px 70px -25px rgb(0 0 0 / 0.85),
      0 0 70px -10px color-mix(in oklab, var(--saffron-500) 40%, transparent);
  }
  .cf__play {
    position: absolute; inset: 0; margin: auto;
    display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%;
    background: var(--gradient-flame); color: #1b0905; box-shadow: var(--shadow-glow);
    opacity: 0; scale: 0.6; transition: opacity 400ms, scale 500ms var(--ease-out);
  }
  .cf__play svg { width: 1.4rem; height: 1.4rem; margin-left: 3px; }
  .cf__item.is-current .cf__play { opacity: 1; scale: 1; }
  .cf__item.is-current:hover .cf__play { scale: 1.12; }
  .cf__item:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 4px; }

  .cf__caption { display: grid; justify-items: center; gap: 0.3rem; text-align: center; margin-top: var(--space-s); min-height: 7.5rem; transition: opacity 300ms, translate 400ms var(--ease-out); }
  .cf__caption.is-swapping { opacity: 0; translate: 0 8px; }
  .cf__label { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--flame-400); font-variant-numeric: lining-nums; }
  .cf__title { font-size: var(--step-3); color: var(--gold-300); line-height: 1.1; text-wrap: balance; }
  .cf__story { font-size: var(--step-0); color: var(--color-text-muted); }
  .cf__nav { display: none; align-items: center; justify-content: center; gap: var(--space-m); margin-top: var(--space-s); }
  .cf.is-ready .cf__nav { display: flex; }
  .cf__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; max-width: 60vw; }
  .cf__dots button {
    width: 0.5rem; height: 0.5rem; padding: 0; border-radius: var(--radius-pill);
    background: color-mix(in oklab, var(--cream-50) 25%, transparent);
    transition: width 400ms var(--ease-out), background-color 300ms;
  }
  .cf__dots button[aria-current="true"] { width: 1.6rem; background: var(--saffron-500); }
  .cf__all { margin-top: var(--space-l); }
  @media (width < 40rem) {
    .cf { --cf-w: 80vw; --cf-step: calc(var(--cf-w) * 0.5); --cf-depth: 180px; }
    .cf__dots { display: none; }                 /* 14 dots crowd a phone; arrows + swipe are enough */
  }
  @media (prefers-reduced-motion: reduce) {
    .cf.is-ready .cf__item, .cf__caption { transition: none; }
  }

  /* ----- Lite YouTube facade ----- */
  .yt {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: var(--radius-m);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-m), 0 0 0 1px var(--color-border);
  }
  .yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
  .yt__btn {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgb(0 0 0 / 0.05), rgb(0 0 0 / 0.45));
    transition: background-color var(--duration);
  }
  .yt__btn span {
    display: grid;
    place-items: center;
    width: clamp(3.8rem, 10vw, 5.4rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--gradient-flame);
    color: #1b0905;
    box-shadow: 0 0 0 10px rgb(232 118 28 / 0.18), var(--shadow-glow);
    transition: transform 300ms var(--ease-out);
  }
  .yt__btn svg { width: 38%; height: 38%; margin-left: 6%; }
  .yt__btn:hover span { transform: scale(1.08); }

  .video-missing {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-m);
    overflow: hidden;
    display: grid;
    place-items: center;
    text-align: center;
    padding: var(--space-m);
    box-shadow: var(--shadow-m), 0 0 0 1px var(--color-border);
  }
  .video-missing img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
  .video-missing > div { position: relative; display: grid; gap: var(--space-s); justify-items: center; }

  /* ----- Horizontal rail (scroll-snap carousel) ----- */
  .rail { position: relative; }
  .rail__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(78%, 20rem);
    gap: var(--space-m);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-block: var(--space-s) var(--space-l);
    padding-inline: max(1rem, (100vw - var(--container)) / 2);
    scroll-padding-inline: max(1rem, (100vw - var(--container)) / 2);
  }
  .rail__track::-webkit-scrollbar { display: none; }
  .rail__track > * { scroll-snap-align: start; }
  .rail__controls { display: flex; gap: var(--space-xs); }
  .rail__btn {
    display: grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    border: 1px solid var(--color-border-strong);
    color: var(--cream-50);
    transition: background-color var(--duration), border-color var(--duration), opacity var(--duration);
  }
  .rail__btn:hover:not(:disabled) { background: var(--saffron-500); border-color: var(--saffron-500); color: #1b0905; }
  .rail__btn:disabled { opacity: 0.3; cursor: default; }
  .rail__btn svg { width: 1.1rem; height: 1.1rem; }
  .rail-head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-m); flex-wrap: wrap; margin-bottom: var(--space-m); }
  .rail-head .section-head { margin-bottom: 0; }

  /* ----- Page hero (inner pages) ----- */
  .page-hero {
    position: relative;
    isolation: isolate;
    padding-block: clamp(4rem, 3rem + 6vw, 8rem) clamp(3rem, 2rem + 4vw, 5.5rem);
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
  }
  .page-hero__bg { position: absolute; inset: 0; z-index: -2; }
  .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center 35%); transform-origin: var(--pos, center 35%); }   /* intro zoom grows from the same anchor, so a top-anchored photo never loses its top */
  .page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      /* lightened 2026-11-14 (user: "less gradient") — was 94% / 78% / 55% side shade + solid bottom 45% */
      linear-gradient(90deg, color-mix(in oklab, var(--ink-950) 72%, transparent) 0%, color-mix(in oklab, var(--ink-950) 38%, transparent) 50%, color-mix(in oklab, var(--ink-950) 8%, transparent) 100%),
      linear-gradient(0deg, color-mix(in oklab, var(--ink-950) 70%, transparent) 0%, transparent 30%);
  }
  /* legibility now comes from soft shadows on the text (same recipe as the home banner) */
  .page-hero h1 { filter: drop-shadow(0 3px 18px color-mix(in oklab, var(--ink-950) 85%, transparent)); }
  .page-hero p, .page-hero .eyebrow, .page-hero .breadcrumb {
    text-shadow: 0 1px 2px color-mix(in oklab, var(--ink-950) 70%, transparent), 0 2px 16px color-mix(in oklab, var(--ink-950) 85%, transparent);
  }
  .page-hero h1 { margin-top: var(--space-xs); max-width: 18ch; }
  .page-hero p { margin-top: var(--space-s); max-width: 40rem; font-size: var(--step-1); font-weight: 300; color: var(--cream-100); }

  .breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: var(--step--1); color: var(--color-text-faint); margin-bottom: var(--space-s); }
  .breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
  .breadcrumb a:hover { color: var(--gold-300); }
  .breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.5; }
  .breadcrumb ol { display: contents; }

  /* ----- Prose ----- */
  .prose { color: var(--cream-100); font-size: var(--step-0); }
  .prose > * + * { margin-top: 1.1em; }
  .prose h2 { font-size: var(--step-2); margin-top: 1.8em; }
  .prose h3 { font-size: var(--step-1); margin-top: 1.5em; }
  .prose ul { padding-left: 1.2em; }
  .prose li + li { margin-top: 0.5em; }
  .prose li::marker { color: var(--flame-400); }
  .prose blockquote {
    position: relative;
    padding: var(--space-m) var(--space-l);
    border-left: 3px solid var(--saffron-500);
    background: color-mix(in oklab, var(--saffron-500) 7%, transparent);
    border-radius: 0 var(--radius-m) var(--radius-m) 0;
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-style: italic;
    color: var(--gold-300);
  }

  /* ----- Shloka (Sanskrit verse) ----- */
  .shloka { text-align: center; }
  .shloka__dev {
    font-family: var(--font-sanskrit);
    font-size: var(--step-2);
    line-height: 1.7;
    color: var(--gold-300);
    text-shadow: 0 0 30px color-mix(in oklab, var(--saffron-500) 40%, transparent);
  }
  .shloka__iast { margin-top: var(--space-s); font-style: italic; color: var(--cream-200); font-size: var(--step-0); }
  .shloka__meaning { margin-top: var(--space-s); color: var(--color-text-muted); max-width: 40rem; margin-inline: auto; }
  .shloka__src { margin-top: var(--space-xs); font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--flame-400); }

  /* ----- Cast card (cream manuscript card for white-background portraits) ----- */
  .cast-card {
    position: relative;
    border-radius: var(--radius-m);
    overflow: hidden;
    background: linear-gradient(180deg, var(--cream-50), var(--cream-100));
    color: var(--ink-950);
    box-shadow: var(--shadow-m);
    transition: transform 300ms var(--ease-out);
  }
  .cast-card:hover { transform: translateY(-6px) rotate(-0.4deg); }
  .cast-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; object-position: bottom center; padding-top: var(--space-s); mix-blend-mode: multiply; }
  .cast-card figcaption {
    padding: var(--space-xs) var(--space-s) var(--space-s);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    color: var(--maroon-700);
    border-top: 1px solid color-mix(in oklab, var(--maroon-700) 20%, transparent);
  }

  /* ----- Generic card ----- */
  .card {
    position: relative;
    padding: var(--space-l);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-l);
  }
  .card__icon {
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: color-mix(in oklab, var(--saffron-500) 16%, transparent);
    border: 1px solid color-mix(in oklab, var(--saffron-500) 40%, transparent);
    color: var(--flame-400);
    margin-bottom: var(--space-s);
  }
  .card__icon svg { width: 1.4rem; height: 1.4rem; }
  .card h3 { color: var(--cream-50); font-size: var(--step-1); }
  .card p { margin-top: var(--space-2xs); color: var(--color-text-muted); }

  /* ----- Chips (filter) ----- */
  .chips { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
  .chip {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border-strong);
    font-size: var(--step--1);
    font-weight: 500;
    color: var(--cream-100);
    transition: background-color var(--duration), color var(--duration), border-color var(--duration);
  }
  .chip:hover { border-color: var(--gold-300); }
  .chip[aria-pressed="true"] { background: var(--gold-300); border-color: var(--gold-300); color: var(--ink-950); }

  /* ----- Forms ----- */
  .field { display: grid; gap: 0.4rem; }
  .field label { font-size: var(--step--1); font-weight: 500; color: var(--cream-100); }
  .input, .field input, .field select, .field textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-s);
    border: 1px solid var(--color-border-strong);
    background: var(--ink-950);
    color: var(--cream-50);
    transition: border-color var(--duration), box-shadow var(--duration);
  }
  .input::placeholder, .field textarea::placeholder { color: var(--color-text-faint); }
  .input:focus, .field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--flame-400);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--saffron-500) 30%, transparent);
  }
  .field textarea { min-height: 9rem; resize: vertical; }
  .search { position: relative; }
  .search svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 1.1rem; height: 1.1rem; color: var(--color-text-faint); pointer-events: none; }
  .search .input { padding-left: 2.8rem; border-radius: var(--radius-pill); }
  .form-status { min-height: 1.5em; font-size: var(--step--1); color: var(--gold-300); }

  /* ----- Lightbox dialog ----- */
  .lightbox {
    margin: auto; /* the reset removes the UA margin that centres a modal dialog */
    width: min(100% - 1.5rem, 72rem);
    max-height: 92vh;
    padding: 0;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-m);
    background: var(--ink-950);
    color: var(--cream-50);
    overflow: hidden;
  }
  .lightbox::backdrop { background: rgb(8 3 2 / 0.88); backdrop-filter: blur(4px); }
  .lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: #000; }
  .lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-s); padding: var(--space-xs) var(--space-s); }
  .lightbox__close { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--color-border-strong); }
  .lightbox__close svg { width: 1rem; height: 1rem; }

  /* ----- Skip link ----- */
  .skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 200;
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-s);
    background: var(--saffron-500);
    color: var(--ink-950);
    font-weight: 600;
    text-decoration: none;
  }
  .skip-link:focus { top: 1rem; }
}

/* ---------- Pages ---------- */
@layer pages {
  /* ===== Home hero ===== */
  .hero {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    display: grid;
    align-items: end;
    overflow: hidden;
    padding-block: calc(var(--header-h) + var(--space-2xl)) clamp(3rem, 2rem + 5vw, 6rem);
  }
  .hero__slides { position: absolute; inset: 0; z-index: -2; }
  .hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.6s ease;
  }
  .hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); }
  .hero__slide.is-active { opacity: 1; }
  .hero__slide.is-active img { animation: kenburns 9s ease-out both; }
  @keyframes kenburns { from { scale: 1.12; } to { scale: 1; } }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      radial-gradient(ellipse at 20% 100%, rgb(232 118 28 / 0.28), transparent 55%),
      linear-gradient(0deg, var(--ink-950) 2%, color-mix(in oklab, var(--ink-950) 55%, transparent) 45%, color-mix(in oklab, var(--ink-950) 35%, transparent) 100%),
      linear-gradient(90deg, color-mix(in oklab, var(--ink-950) 85%, transparent) 0%, color-mix(in oklab, var(--ink-950) 15%, transparent) 70%);
  }

  .hero__content { max-width: 50rem; }
  .hero__dev {
    display: block;
    font-family: var(--font-sanskrit);
    font-size: var(--step-2);
    color: var(--flame-400);
    margin-top: var(--space-m);
    text-shadow: 0 0 24px rgb(232 118 28 / 0.55);
  }
  .hero__title {
    font-size: var(--step-5);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    background: var(--gradient-gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 6px 24px rgb(0 0 0 / 0.6));
  }
  .hero__lead { margin-top: var(--space-m); font-size: var(--step-1); font-weight: 300; color: var(--cream-100); max-width: 36rem; }
  .hero .btn-row { margin-top: var(--space-l); }
  .hero__meta { margin-top: var(--space-l); }

  .hero__dots { position: absolute; right: max(1rem, (100vw - var(--container)) / 2); bottom: clamp(3rem, 2rem + 5vw, 6rem); display: flex; gap: 0.5rem; }
  .hero__dot { width: 2.2rem; height: 3px; border-radius: 3px; background: rgb(251 243 228 / 0.3); overflow: hidden; position: relative; }
  .hero__dot[aria-current="true"]::after { content: ""; position: absolute; inset: 0; background: var(--flame-400); animation: dotfill 7s linear both; transform-origin: left; }
  @keyframes dotfill { from { scale: 0 1; } to { scale: 1 1; } }
  @media (width < 48rem) { .hero__dots { position: static; margin-top: var(--space-l); } }

  /* ===== Series in numbers: four temple arches ===== */
  .numbers { padding-block: var(--space-2xl); background: radial-gradient(60% 80% at 50% 100%, color-mix(in oklab, var(--saffron-500) 10%, transparent), transparent 70%); }
  .numbers__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-m); margin: 0; padding: 0; list-style: none; }
  @media (width >= 56rem) { .numbers__list { grid-template-columns: repeat(4, 1fr); gap: var(--space-l); } }
  .numbers__item {
    position: relative; display: grid; justify-items: center; align-content: start; gap: var(--space-2xs);
    padding: var(--space-xl) var(--space-s) var(--space-l); text-align: center;
    border: 1px solid var(--color-border);
    border-radius: 999px 999px var(--radius-m) var(--radius-m);           /* arch top */
    background: linear-gradient(180deg, color-mix(in oklab, var(--gold-400) 8%, transparent), transparent 65%);
    transition: border-color var(--duration, 250ms), translate var(--duration, 250ms);
  }
  .numbers__item::before {                                                 /* inner arch line */
    content: ""; position: absolute; inset: 6px; border-radius: inherit;
    border: 1px dashed color-mix(in oklab, var(--gold-400) 18%, transparent); pointer-events: none;
  }
  .numbers__item:hover { border-color: color-mix(in oklab, var(--gold-400) 55%, transparent); translate: 0 -4px; }
  .numbers__icon {
    display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: var(--space-2xs);
    border-radius: 50%; color: var(--flame-400);
    background: color-mix(in oklab, var(--flame-400) 12%, transparent);
    box-shadow: 0 0 24px color-mix(in oklab, var(--flame-400) 25%, transparent);
  }
  .numbers__icon svg { width: 1.4rem; height: 1.4rem; }
  .numbers__num { font-family: var(--font-display); font-size: var(--step-5, var(--step-4)); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
  .numbers__label { font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-300); }
  .numbers__note { max-width: 16ch; font-size: var(--step--1); line-height: 1.4; color: var(--color-text-muted); }
  @media (width < 30rem) { .numbers__note { display: none; } .numbers__item { padding-top: var(--space-l); } }
  @media (prefers-reduced-motion: reduce) { .numbers__item:hover { translate: none; } }

  /* ===== Series in numbers: river timeline (site.statsStyle = "river") ===== */
  .numbers--river { background: none; }   /* sits directly on the page background */

  /* Soft seams: no hard lines above or below the numbers section.
     The fades overlap the neighbours and use the theme's own background. */
  /* Section 2 → 3 seam: 88px + 96px stacked to ~185px; keep it ~half */
  .numbers { position: relative; z-index: 1; padding-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
  .numbers::before,
  .numbers::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    pointer-events: none;
  }
  .numbers::before {            /* top: banner photo dissolves into the page */
    bottom: 100%;
    height: clamp(8rem, 22vh, 14rem);
    background: linear-gradient(180deg, transparent 0%, color-mix(in oklab, var(--color-bg) 55%, transparent) 55%, var(--color-bg) 100%);
  }
  .numbers::after {             /* bottom: next section's lamp glow fades in */
    top: 100%;
    height: clamp(6rem, 16vh, 10rem);
    background: linear-gradient(180deg, var(--color-bg) 0%, color-mix(in oklab, var(--color-bg) 60%, transparent) 45%, transparent 100%);
  }
  .river__eyebrow { display: block; text-align: center; margin-bottom: var(--space-l); }
  /* Gradient text only paints inside the line box: give the old-style "5" room for its tail */
  .river .numbers__num {
    font-size: var(--step-4); line-height: 1.1; padding-block: 0.05em 0.18em;
    font-variant-numeric: lining-nums tabular-nums;
  }
  .river .numbers__note { max-width: 22ch; }
  .river { position: relative; --num-h: 4.5rem; --ghat: 3rem; --row-gap: 0.75rem; --above-ghat: 1.6rem; }
  .river__stops { position: relative; z-index: 1; display: grid; gap: var(--space-l); margin: 0; padding: 0; list-style: none; }
  .river__ghat {                                                   /* the stop on the water */
    position: relative; display: grid; place-items: center; width: var(--ghat); height: var(--ghat);
    border-radius: 50%; color: var(--gold-300);
    /* fine gold→flame ring: inner fill on padding-box, gradient on border-box */
    border: 1.5px solid transparent;
    background:
      radial-gradient(circle at 50% 35%, color-mix(in oklab, var(--flame-400) 14%, var(--color-bg)), var(--color-bg) 70%) padding-box,
      linear-gradient(135deg, var(--gold-300), var(--flame-400) 55%, color-mix(in oklab, var(--gold-400) 30%, transparent)) border-box;
    box-shadow: 0 0 0 7px var(--color-bg), 0 0 22px color-mix(in oklab, var(--flame-400) 22%, transparent);
  }
  .river__ghat svg { width: 1.35rem; height: 1.35rem; }
  .river__ghat::after {                                            /* soft ripple */
    content: ""; position: absolute; inset: -1px; border-radius: 50%;
    border: 1px solid var(--flame-400); opacity: 0; animation: ripple 3.2s var(--ease-out, ease-out) infinite;
  }
  .river__stop:nth-child(2) .river__ghat::after { animation-delay: 0.8s; }
  .river__stop:nth-child(3) .river__ghat::after { animation-delay: 1.6s; }
  .river__stop:nth-child(4) .river__ghat::after { animation-delay: 2.4s; }
  @keyframes ripple { 0% { scale: 1; opacity: 0.7; } 100% { scale: 1.9; opacity: 0; } }

  .river__water { position: absolute; inset-inline: 0; width: 100%; overflow: visible; }
  .river__halo, .river__line, .river__flow { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
  /* gradient stops (colours come from theme tokens) */
  .river__s0 { stop-color: var(--gold-300); stop-opacity: 0; }
  .river__s1 { stop-color: var(--gold-300); stop-opacity: 1; }
  .river__s2 { stop-color: var(--flame-400); stop-opacity: 1; }
  .river__f0 { stop-color: var(--cream-50); stop-opacity: 0; }
  .river__f1 { stop-color: var(--cream-50); stop-opacity: 1; }
  .river__halo { stroke: url(#river-light); stroke-width: 14; opacity: 0.16; filter: blur(3px); }
  .river__line { stroke: url(#river-light); stroke-width: 2; }
  .river__flow { stroke: url(#river-fade); stroke-width: 2; stroke-dasharray: 1 22; opacity: 0.85; animation: flow 2.4s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -23; } }
  /* Hierarchy: gold numbers lead, cream labels support, muted notes whisper */
  .river .numbers__label { color: var(--color-text); opacity: 0.92; }
  .river .numbers__note { color: var(--color-text-muted); }

  /* Phone / tablet: the river runs down the left, stops stacked */
  @media (width < 56rem) {
    .river__water { display: none; }
    .river__stops::before {
      content: ""; position: absolute; left: calc(var(--ghat) / 2 - 3px); top: 0; bottom: 0; width: 6px; border-radius: 6px;
      background:
        repeating-linear-gradient(180deg, color-mix(in oklab, var(--cream-50) 85%, transparent) 0 2px, transparent 2px 22px) center / 2px 22px repeat-y,
        linear-gradient(180deg, transparent, var(--gold-300) 10%, var(--flame-400) 50%, var(--gold-300) 90%, transparent) center / 2px 100% no-repeat;
      filter: drop-shadow(0 0 6px color-mix(in oklab, var(--flame-400) 45%, transparent));
      animation: flow-down 2.4s linear infinite;
    }
    @keyframes flow-down { to { background-position: center 22px, center 0; } }
    .river__stop {
      display: grid; grid-template-columns: var(--ghat) 1fr; column-gap: var(--space-m); align-items: center;
      grid-template-areas: "ghat num" "ghat label" "ghat note";
    }
    .river__stop .river__ghat { grid-area: ghat; align-self: center; }
    .river__stop .numbers__num { grid-area: num; }
    .river__stop .numbers__label { grid-area: label; }
    .river__stop .numbers__note { grid-area: note; max-width: none; }
  }

  /* Desktop: four stops across, numbers above the water, words below */
  @media (width >= 56rem) {
    .river__stops { grid-template-columns: repeat(4, 1fr); }
    .river__stop {
      display: grid; justify-items: center; text-align: center;
      grid-template-rows: var(--num-h) calc(var(--ghat) + var(--above-ghat) - var(--row-gap)) auto auto; row-gap: var(--row-gap);
    }
    .river__stop .river__ghat { align-self: end; }
    .river__stop .numbers__num { align-self: end; }
    .river__stop .numbers__label { margin-top: var(--space-2xs); }
    /* centre the 120-unit-tall wave (y 60) on the stops' row */
    .river__water { height: 8rem; top: calc(var(--num-h) + var(--above-ghat) + var(--ghat) / 2 - 4rem); }
  }

  @media (prefers-reduced-motion: reduce) {
    .river__flow, .river__stops::before, .river__ghat::after { animation: none; }
  }

  /* ===== Featured episode (redesigned 2026-11-13) ===== */
  .featured { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(2rem, 1.5rem + 2vw, 3rem); }
  /* Section 3 → 4 seam: the two paddings stacked to ~230px; keep it ~half */
  .featured + .section { padding-top: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
  .featured__grid { align-items: center; gap: clamp(2rem, 1rem + 4vw, 5rem); }

  /* Video in a lamp-lit gold frame: outer gold hairline, inner offset rule */
  .featured__media { margin: 0; position: relative; }
  .featured__media .yt {
    border-radius: var(--radius-l);
    box-shadow:
      0 0 0 1px color-mix(in oklab, var(--gold-400) 55%, transparent),
      0 0 0 8px color-mix(in oklab, var(--ink-850) 90%, transparent),
      0 0 0 9px color-mix(in oklab, var(--gold-400) 30%, transparent),
      0 30px 60px -20px rgb(0 0 0 / 0.7),
      0 0 80px -10px color-mix(in oklab, var(--saffron-500) 35%, transparent);
  }
  .featured__media .yt img { scale: 1.07; }          /* crops the thumbnail's own bevelled edge */
  .featured__media .yt__btn { background: radial-gradient(circle at center, transparent 30%, rgb(0 0 0 / 0.35)); }
  .featured__cap {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    margin-top: var(--space-m);
    font-size: var(--step--1); letter-spacing: 0.08em; color: var(--color-text-muted);
  }
  .featured__cap svg { width: 1.1rem; height: 1.1rem; color: #ff4b3e; }

  /* Text: number → title → Hindi name → tags → story → actions */
  .featured__num {
    margin-top: var(--space-m);
    font-size: var(--step--1); letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-text-muted);
  }
  .featured__num b {
    font-family: var(--font-display); font-size: 2.2em; font-weight: 700; letter-spacing: 0;
    color: var(--color-accent); vertical-align: -0.12em; margin-inline: 0.15em;
    font-variant-numeric: lining-nums tabular-nums;   /* Cormorant's old-style "01" reads as "OI" */
  }
  .featured__title { margin-top: var(--space-2xs); font-size: var(--step-4); line-height: 1.02; }
  .featured__alt {
    display: block; margin-top: 0.15em;
    font-size: 0.55em; font-style: italic; font-weight: 500; color: var(--flame-400);
  }
  .featured__meta { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-top: var(--space-m); }
  .featured__desc { margin-top: var(--space-m); max-width: 34rem; color: var(--color-text-muted); }
  .featured__actions { margin-top: var(--space-l); }

  @media (width < 56rem) {
    .featured__body { text-align: left; }
    .featured__title { font-size: var(--step-3); }
  }

  /* Section 4 → 5 seam: section 5 lost its surface colour, so the two paddings read as one ~250px void; tightened, then "give little gap" → ~90px desktop / ~55px phone */
  .section:has(> .container > .mv) { padding-bottom: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem); }
  .section:has(> .container > .mv) + .section { padding-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem); }

  /* ===== Section 4: five movements as expanding photo panels (2026-11-14) =====
     One panel is open at a time (.is-active, set by initMovements in main.js;
     the first is open in the markup so it works without JS). */
  .mv {
    --mv-gap: 0.625rem;
    --mv-ease: cubic-bezier(0.7, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: var(--mv-gap);
  }
  .mv__panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: block;
    height: 5.25rem;
    border-radius: var(--radius-l);
    border: 1px solid color-mix(in oklab, var(--gold-400) 18%, transparent);
    background: var(--ink-900);
    color: var(--cream-50);
    text-decoration: none;
    transition: height 700ms var(--mv-ease), flex-grow 700ms var(--mv-ease), border-color 400ms;
  }
  .mv__panel.is-active { height: 31rem; border-color: color-mix(in oklab, var(--gold-400) 45%, transparent); }
  .mv__panel:hover, .mv__panel:focus-visible { color: var(--cream-50); }
  .mv__panel:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; }
  .mv__panel { cursor: pointer; }
  .mv__panel.is-active { cursor: default; }

  .mv__img {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%; object-fit: cover;
    scale: 1.12;
    filter: saturate(0.6) brightness(0.55);
    transition: scale 1400ms var(--ease-out), filter 700ms;
  }
  .mv__panel:hover .mv__img { filter: saturate(0.8) brightness(0.7); }
  .mv__panel.is-active .mv__img { scale: 1; filter: none; }
  .mv__panel::after {               /* ink shade: strong at the foot where the text sits */
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
      linear-gradient(0deg, color-mix(in oklab, var(--ink-950) 96%, transparent) 0%, color-mix(in oklab, var(--ink-950) 78%, transparent) 38%, color-mix(in oklab, var(--ink-950) 10%, transparent) 72%),
      linear-gradient(90deg, color-mix(in oklab, var(--ink-950) 55%, transparent), transparent 60%);
  }

  .mv__num {
    position: absolute; left: 1.1rem; top: 50%; translate: 0 -50%;
    font-family: var(--font-display); font-weight: 700; line-height: 1;
    font-size: 2rem;
    background: linear-gradient(180deg, var(--gold-300), var(--saffron-500));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    padding-block: 0.1em; transition: top 700ms var(--mv-ease), translate 700ms var(--mv-ease), font-size 700ms var(--mv-ease);
  }
  .mv__panel.is-active .mv__num { top: 1.1rem; translate: 0 0; font-size: 3rem; }
  .mv__spine {
    position: absolute; left: 4.6rem; top: 50%; translate: 0 -50%;
    font-size: var(--step--1); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--gold-300); white-space: nowrap;
    transition: opacity 300ms;
  }
  .mv__panel.is-active .mv__spine { opacity: 0; }

  .mv__body {
    position: absolute; inset-inline: 0; bottom: 0;
    display: flex; flex-direction: column; gap: 0.6rem;
    padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
    opacity: 0; translate: 0 1.25rem; visibility: hidden;
    transition: opacity 300ms, translate 300ms, visibility 0s 300ms;
  }
  .mv__panel.is-active .mv__body {
    opacity: 1; translate: 0 0; visibility: visible;
    transition: opacity 600ms 300ms, translate 700ms 300ms var(--ease-out), visibility 0s;
  }
  .mv__range {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem;
    font-size: var(--step--1); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--flame-400);
  }
  .mv__range b {
    font-weight: 600; letter-spacing: 0.08em; color: var(--gold-300);
    padding: 0.15em 0.7em; border-radius: var(--radius-pill);
    border: 1px solid color-mix(in oklab, var(--gold-400) 40%, transparent);
  }
  .mv__title { font-size: var(--step-3); line-height: 1.05; color: var(--gold-300); text-wrap: balance; }
  .mv__desc { max-width: 34rem; font-size: var(--step--1); line-height: 1.6; color: color-mix(in oklab, var(--cream-50) 82%, transparent); }
  .mv__cta {
    display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start; margin-top: 0.4rem;
    font-weight: 600; font-size: var(--step--1); letter-spacing: 0.06em; color: var(--gold-300);
    padding-bottom: 0.2rem; border-bottom: 1px solid color-mix(in oklab, var(--gold-400) 50%, transparent);
  }
  .mv__cta svg { width: 1em; height: 1em; transition: translate 300ms var(--ease-out); }
  .mv__cta { text-decoration: none; cursor: pointer; transition: color 200ms, border-color 200ms; }
  .mv__cta:hover, .mv__cta:focus-visible { color: var(--cream-50); border-color: var(--saffron-500); }
  .mv__cta:hover svg, .mv__cta:focus-visible svg { translate: 0.3rem 0; }

  /* Desktop: side-by-side panels; the open one takes most of the width */
  @media (width >= 64rem) {
    .mv { flex-direction: row; height: clamp(30rem, 64vh, 38rem); }
    .mv__panel, .mv__panel.is-active { height: auto; flex: 1 1 0; min-width: 0; }
    .mv__panel.is-active { flex-grow: 5.5; }
    .mv__num { left: 50%; top: 1.4rem; translate: -50% 0; font-size: 2.4rem; }
    .mv__panel.is-active .mv__num { left: 1.75rem; top: 1.5rem; translate: 0 0; font-size: 4rem; }
    .mv__spine {
      left: 50%; top: auto; bottom: 1.75rem; translate: -50% 0;
      writing-mode: vertical-rl; rotate: 180deg;
    }
    .mv__body { width: max(30rem, 100%); max-width: 44rem; padding: 2.25rem; }   /* fixed width: no reflow while opening */
  }
  @media (prefers-reduced-motion: reduce) {
    .mv__panel, .mv__img, .mv__num, .mv__body, .mv__panel.is-active .mv__body { transition: none; }
  }

  /* ===== From the sets (banner gallery) ===== */
  /* From the sets: no card box — photo + caption sit on the page (user request 2026-11-14) */
  .sets-card { margin: 0; }
  .sets-card img {
    aspect-ratio: 2 / 1; width: 100%; object-fit: cover;
    border-radius: var(--radius-m);
    box-shadow: 0 18px 36px -18px rgb(0 0 0 / 0.6);
    transition: scale 600ms var(--ease-out), box-shadow 400ms;
  }
  .sets-card:hover img { scale: 1.02; box-shadow: 0 0 0 1px color-mix(in oklab, var(--gold-400) 50%, transparent), 0 24px 44px -18px rgb(0 0 0 / 0.7); }
  .sets-card figcaption { padding: var(--space-xs) 0.15rem 0; font-size: var(--step--1); color: var(--color-text-muted); }

  /* Auto-moving rail (initAutoRail in main.js): no snap (it fights the slow scroll),
     ends dissolve into the page */
  .rail--auto .rail__track {
    scroll-snap-type: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }

  /* ===== Verse band ===== */
  .verse-band { position: relative; isolation: isolate; overflow: hidden; }
  .verse-band__bg { position: absolute; inset: 0; z-index: -2; }
  .verse-band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
  /* Photo (+ its shade, ::after) dissolves into the page at top and bottom: no hard edge line (user request 2026-11-14).
     Top fade is very short (6%) and the photo is anchored higher so more of its top shows (user: "increase top image", "more top"); bottom fade 34%.
     Eased (smoothstep) ramp: a straight linear ramp showed a faint band where it met full opacity. */
  .verse-band__bg {
    -webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / 0) 0.0%, rgb(0 0 0 / 0.03) 0.6%, rgb(0 0 0 / 0.1) 1.2%, rgb(0 0 0 / 0.21) 1.8%, rgb(0 0 0 / 0.35) 2.4%, rgb(0 0 0 / 0.5) 3.0%, rgb(0 0 0 / 0.65) 3.6%, rgb(0 0 0 / 0.79) 4.2%, rgb(0 0 0 / 0.9) 4.8%, rgb(0 0 0 / 0.97) 5.4%, rgb(0 0 0 / 1) 6.0%, rgb(0 0 0 / 1) 66.0%, rgb(0 0 0 / 0.97) 69.4%, rgb(0 0 0 / 0.9) 72.8%, rgb(0 0 0 / 0.79) 76.2%, rgb(0 0 0 / 0.65) 79.6%, rgb(0 0 0 / 0.5) 83.0%, rgb(0 0 0 / 0.35) 86.4%, rgb(0 0 0 / 0.21) 89.8%, rgb(0 0 0 / 0.1) 93.2%, rgb(0 0 0 / 0.03) 96.6%, rgb(0 0 0 / 0) 100.0%);
    mask-image: linear-gradient(180deg, rgb(0 0 0 / 0) 0.0%, rgb(0 0 0 / 0.03) 0.6%, rgb(0 0 0 / 0.1) 1.2%, rgb(0 0 0 / 0.21) 1.8%, rgb(0 0 0 / 0.35) 2.4%, rgb(0 0 0 / 0.5) 3.0%, rgb(0 0 0 / 0.65) 3.6%, rgb(0 0 0 / 0.79) 4.2%, rgb(0 0 0 / 0.9) 4.8%, rgb(0 0 0 / 0.97) 5.4%, rgb(0 0 0 / 1) 6.0%, rgb(0 0 0 / 1) 66.0%, rgb(0 0 0 / 0.97) 69.4%, rgb(0 0 0 / 0.9) 72.8%, rgb(0 0 0 / 0.79) 76.2%, rgb(0 0 0 / 0.65) 79.6%, rgb(0 0 0 / 0.5) 83.0%, rgb(0 0 0 / 0.35) 86.4%, rgb(0 0 0 / 0.21) 89.8%, rgb(0 0 0 / 0.1) 93.2%, rgb(0 0 0 / 0.03) 96.6%, rgb(0 0 0 / 0) 100.0%);
  }
  /* shade lives inside the photo layer so both fade out together (as one mask) */
  /* Section 6 → 7 seam: user asked "little top less" (221px → ~170px desktop) */
  .verse-band + .section { padding-top: clamp(2.5rem, 1.75rem + 3vw, 4.5rem); }
  .verse-band__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, color-mix(in oklab, var(--ink-950) 72%, transparent), color-mix(in oklab, var(--ink-950) 94%, transparent) 70%); }

  /* ===== Support CTA ===== */
  .cta-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 1.5rem + 3vw, 4rem);
    border-radius: var(--radius-l);
    background: radial-gradient(ellipse at 100% 0%, rgb(232 118 28 / 0.35), transparent 60%), linear-gradient(135deg, var(--maroon-700), var(--ink-850));
    border: 1px solid var(--color-border-strong);
  }
  .cta-panel h2 { color: var(--cream-50); }
  .cta-panel p { margin-top: var(--space-s); color: var(--cream-100); max-width: 38rem; }
  .cta-panel .btn-row { margin-top: var(--space-l); }

  /* ===== Episodes page ===== */
  .toolbar {
    position: sticky;
    top: var(--header-h);
    z-index: 50;
    padding-block: var(--space-s);
    background: color-mix(in oklab, var(--ink-950) 92%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
  }
  .toolbar__inner { display: grid; gap: var(--space-s); }
  @media (width >= 60rem) { .toolbar__inner { grid-template-columns: 20rem 1fr; align-items: center; } }
  .toolbar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .toolbar .chip { flex-shrink: 0; }

  .arc-group + .arc-group { margin-top: var(--space-2xl); }
  .arc-group__head { display: grid; gap: var(--space-2xs); margin-bottom: var(--space-l); max-width: 46rem; }
  .arc-group__head h2 { font-size: var(--step-3); }
  .arc-group__head p { color: var(--color-text-muted); }
  .empty-state { padding: var(--space-2xl) 0; text-align: center; color: var(--color-text-muted); }

  /* ===== Episode detail ===== */
  /* ===== Episode page (redesigned 2026-11-14) ===== */
  /* Stage: the episode's own thumbnail, blurred, behind a gold-framed player.
     The backdrop dissolves into the page at the bottom (no hard edge). */
  .epx-stage { position: relative; isolation: isolate; padding-block: calc(var(--space-l)) var(--space-xl); overflow: hidden; }
  .epx-stage__bg { position: absolute; inset: -10% -5% 0; z-index: -1; }   /* bottom edge = section edge, so the fade finishes inside it */
  .epx-stage__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(48px) saturate(1.2) brightness(0.55); scale: 1.15; }
  .epx-stage__bg::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 45%, transparent, color-mix(in oklab, var(--ink-950) 55%, transparent));
  }
  .epx-stage__bg {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgb(0 0 0 / 0.65) 78%, rgb(0 0 0 / 0.2) 92%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgb(0 0 0 / 0.65) 78%, rgb(0 0 0 / 0.2) 92%, transparent 100%);
  }
  .epx-stage .breadcrumb { text-shadow: 0 1px 10px color-mix(in oklab, var(--ink-950) 80%, transparent); }
  .epx-stage__player { max-width: 62rem; margin: var(--space-m) auto 0; }
  .epx-stage__player :is(.yt, .video-missing) {
    border-radius: var(--radius-l);
    box-shadow:
      0 0 0 1px color-mix(in oklab, var(--gold-400) 55%, transparent),
      0 0 0 8px color-mix(in oklab, var(--ink-950) 85%, transparent),
      0 0 0 9px color-mix(in oklab, var(--gold-400) 30%, transparent),
      0 40px 80px -30px rgb(0 0 0 / 0.85),
      0 0 90px -20px color-mix(in oklab, var(--saffron-500) 45%, transparent);
  }
  .epx-stage__player .yt img { scale: 1.07; }          /* crop the thumbnail's own bevelled edge */

  /* Info: title + story on the left, details card on the right */
  .epx-info { display: grid; gap: var(--space-xl); padding-block: var(--space-l) var(--space-xl); }
  @media (width >= 64rem) { .epx-info { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; gap: var(--space-2xl); } }
  .epx-info__label { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-muted); }
  .epx-info__label b { font-family: var(--font-display); font-size: 1.6em; font-weight: 700; letter-spacing: 0; color: var(--gold-300); font-variant-numeric: lining-nums; vertical-align: -0.12em; }
  .epx-info__label a {
    color: var(--flame-400); text-decoration: none;
    padding: 0.25em 0.8em; border-radius: var(--radius-pill);
    border: 1px solid color-mix(in oklab, var(--saffron-500) 45%, transparent);
    transition: background-color var(--duration), color var(--duration);
  }
  .epx-info__label a:hover { background: var(--saffron-500); color: #1b0905; }
  .epx-info__title { margin-top: var(--space-xs); font-size: var(--step-5); line-height: 1.02; text-wrap: balance; }
  .epx-info__story { margin-top: var(--space-xs); font-family: var(--font-display); font-size: var(--step-2); font-style: italic; color: var(--gold-300); }
  .epx-info__desc { margin-top: var(--space-m); max-width: 44rem; font-size: var(--step-1); font-weight: 300; line-height: 1.7; color: var(--cream-100); }
  .epx-info .btn-row { margin-top: var(--space-l); }

  .epx-card {
    padding: var(--space-m);
    border-radius: var(--radius-l);
    background: linear-gradient(180deg, color-mix(in oklab, var(--ink-850) 85%, transparent), color-mix(in oklab, var(--ink-900) 85%, transparent));
    border: 1px solid color-mix(in oklab, var(--gold-400) 25%, transparent);
    box-shadow: 0 24px 50px -30px rgb(0 0 0 / 0.7);
  }
  .epx-card__progress span { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--flame-400); }
  .epx-card__bar { margin-top: 0.5rem; height: 4px; border-radius: 4px; background: color-mix(in oklab, var(--cream-50) 14%, transparent); overflow: hidden; }
  .epx-card__bar i { display: block; height: 100%; border-radius: inherit; background: var(--gradient-flame); }
  .epx-card dl { margin: var(--space-s) 0 0; display: grid; }
  .epx-card dl div { display: grid; gap: 0.15rem; padding-block: 0.7rem; border-top: 1px solid var(--color-border); }
  .epx-card dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); }
  .epx-card dd { margin: 0; color: var(--cream-50); }
  .epx-card dd a { color: var(--gold-300); }
  .epx-card dd small { display: block; font-size: var(--step--1); color: var(--color-text-muted); }

  /* Pager: previous / next as thumbnail cards */
  .epx-pager { display: grid; gap: var(--space-m); padding-bottom: var(--space-xl); }
  @media (width >= 48rem) { .epx-pager { grid-template-columns: 1fr 1fr; } }
  .epx-pager__card {
    display: flex; align-items: center; gap: var(--space-s);
    padding: 0.6rem; border-radius: var(--radius-l);
    border: 1px solid var(--color-border);
    background: color-mix(in oklab, var(--ink-850) 60%, transparent);
    text-decoration: none; color: var(--cream-50);
    transition: border-color 300ms, transform 300ms var(--ease-out), box-shadow 300ms;
  }
  .epx-pager__card--next { flex-direction: row-reverse; text-align: right; }
  .epx-pager__card:hover { border-color: var(--saffron-500); transform: translateY(-3px); color: var(--cream-50); box-shadow: 0 20px 40px -24px rgb(0 0 0 / 0.8); }
  .epx-pager__thumb { flex: 0 0 auto; width: clamp(6.5rem, 5rem + 6vw, 10rem); aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; background: var(--ink-800); }
  .epx-pager__thumb img { width: 100%; height: 100%; object-fit: cover; scale: 1.07; transition: scale 500ms var(--ease-out); }
  .epx-pager__card:hover .epx-pager__thumb img { scale: 1.14; }
  .epx-pager__text { display: grid; gap: 0.2rem; min-width: 0; padding-inline: 0.4rem; }
  .epx-pager__text small { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--flame-400); }
  .epx-pager__text strong { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; line-height: 1.2; }

  /* ===== Concept flow — compact (2026-11-14) =====
     One movement at a time (tabs) + 2-column cards; explanations clamped to
     3 lines with "Read more". Without JS (.cfx not .is-tabbed) all movements show. */
  .cfx { padding-top: var(--space-xl); }
  .cfx-intro { max-width: 50rem; margin-inline: auto; text-align: center; font-size: var(--step-1); font-weight: 300; line-height: 1.7; color: var(--cream-100); }

  .cfx-tabs {
    position: sticky; top: calc(var(--header-h) + 0.5rem); z-index: 20;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(10rem, 1fr);
    gap: 0.5rem; margin-top: var(--space-l); padding: 0.5rem;
    overflow-x: auto; scrollbar-width: none;
    border-radius: var(--radius-l);
    background: color-mix(in oklab, var(--ink-900) 88%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
  }
  .cfx-tabs::-webkit-scrollbar { display: none; }
  .cfx-tab {
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.6rem; align-items: center;
    padding: 0.6rem 0.9rem; border-radius: var(--radius-m);
    text-decoration: none; color: var(--cream-50);
    border: 1px solid transparent;
    transition: background-color var(--duration), border-color var(--duration);
  }
  .cfx-tab b { grid-row: span 2; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: var(--gold-400); min-width: 1.6ch; text-align: center; }
  .cfx-tab span { font-weight: 600; font-size: var(--step--1); line-height: 1.2; }
  .cfx-tab small { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--color-text-muted); }
  .cfx-tab:hover { background: color-mix(in oklab, var(--cream-50) 6%, transparent); color: var(--cream-50); }
  .cfx-tab[aria-selected="true"] { background: var(--gradient-flame); color: #1b0905; }
  .cfx-tab[aria-selected="true"] b, .cfx-tab[aria-selected="true"] small { color: #1b0905; }

  .cfx-move { margin-top: var(--space-xl); scroll-margin-top: calc(var(--header-h) + 6rem); }
  .cfx.is-tabbed .cfx-move[hidden] { display: none; }
  .cfx.is-tabbed .cfx-move { animation: cfxIn 500ms var(--ease-out); }
  @keyframes cfxIn { from { opacity: 0; translate: 0 12px; } }
  .cfx-move__head { display: grid; grid-template-columns: auto 1fr; gap: var(--space-m); align-items: center; padding-bottom: var(--space-m); border-bottom: 1px solid color-mix(in oklab, var(--gold-400) 25%, transparent); }
  .cfx-move__num {
    font-family: var(--font-display); font-weight: 700; line-height: 0.9;
    font-size: clamp(3.2rem, 2.5rem + 3vw, 5.5rem);
    background: linear-gradient(180deg, var(--gold-300), var(--saffron-500));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    padding-block: 0.05em; min-width: 1.4ch; text-align: center;
  }
  .cfx-move__head h2 { margin-top: 0.2rem; font-size: var(--step-3); }
  .cfx-move__head p { margin-top: 0.3rem; max-width: 46rem; font-size: var(--step--1); color: var(--color-text-muted); }

  .cfx-grid { display: grid; gap: var(--space-m); margin-top: var(--space-l); }
  @media (width >= 56rem) { .cfx-grid { grid-template-columns: 1fr 1fr; } }
  .cfx-card {
    display: flex; flex-direction: column; gap: var(--space-s);
    padding: var(--space-s); border-radius: var(--radius-l);
    background: color-mix(in oklab, var(--ink-850) 55%, transparent);
    border: 1px solid var(--color-border);
    transition: border-color 300ms, box-shadow 300ms;
  }
  .cfx-card:hover { border-color: color-mix(in oklab, var(--gold-400) 45%, transparent); box-shadow: 0 20px 40px -26px rgb(0 0 0 / 0.8); }
  .cfx-card__top { display: grid; grid-template-columns: clamp(7rem, 5rem + 6vw, 9.5rem) 1fr; gap: var(--space-s); align-items: start; }
  .cfx-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; background: var(--ink-800); }
  .cfx-card__thumb img { width: 100%; height: 100%; object-fit: cover; scale: 1.07; transition: scale 500ms var(--ease-out); }
  .cfx-card:hover .cfx-card__thumb img { scale: 1.14; }
  .cfx-card__thumb span {
    position: absolute; left: 0.35rem; bottom: 0.2rem;
    font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1; color: var(--gold-300);
    font-variant-numeric: lining-nums; text-shadow: 0 2px 8px rgb(0 0 0 / 0.8);
  }
  .cfx-card__ep { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--flame-400); }
  .cfx-card__title { margin-top: 0.2rem; font-size: var(--step-1); line-height: 1.2; color: var(--gold-300); }
  .cfx-card__chars { margin-top: 0.25rem; font-size: var(--step--1); color: var(--cream-100); }
  .cfx-card__chars span { margin-right: 0.3rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
  .cfx-card__desc { font-size: var(--step--1); line-height: 1.65; color: var(--cream-100); }
  .cfx-card__desc.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
  .cfx-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); }
  .cfx-card__more { font-size: var(--step--1); font-weight: 600; color: var(--flame-400); padding: 0; }
  .cfx-card__more:hover { color: var(--cream-50); }
  .cfx-card__link { margin-left: auto; display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--step--1); font-weight: 600; color: var(--gold-300); text-decoration: none; }
  .cfx-card__link svg { width: 1em; height: 1em; transition: translate 300ms var(--ease-out); }
  .cfx-card__link:hover { color: var(--cream-50); }
  .cfx-card__link:hover svg { translate: 0.25rem 0; }
  @media (width < 30rem) {
    .cfx-move__head { grid-template-columns: 1fr; gap: 0; }
    .cfx-move__num { text-align: left; }
    .cfx-tabs { grid-auto-columns: minmax(8.5rem, 1fr); }
  }
  @media (prefers-reduced-motion: reduce) { .cfx.is-tabbed .cfx-move { animation: none; } }

  /* ===== Wallpapers ===== */
  .wall-card { position: relative; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--color-border); background: var(--ink-850); }
  .wall-card button { display: block; width: 100%; }
  .wall-card img { width: 100%; aspect-ratio: 1684 / 1097; object-fit: cover; transition: scale 500ms var(--ease-out); }
  .wall-card:hover img { scale: 1.05; }

  /* ===== Books ===== */
  .book { display: grid; gap: var(--space-m); align-items: start; }
  @media (width >= 40rem) { .book { grid-template-columns: 9rem 1fr; } }
  .book img { width: 9rem; border-radius: 4px; box-shadow: var(--shadow-m); }
  .book h3 { color: var(--cream-50); }
  .book__author { color: var(--flame-400); font-size: var(--step--1); margin-top: 0.2rem; }
  .book p { margin-top: var(--space-xs); color: var(--color-text-muted); font-size: var(--step--1); }

  /* ===== Contact ===== */
  .contact-grid { display: grid; gap: var(--space-xl); }
  @media (width >= 60rem) { .contact-grid { grid-template-columns: 1.2fr 0.8fr; } }
  /* no form any more (2026-11-14): details card + map side by side, same height */
  @media (width >= 60rem) { .contact-grid--noform { grid-template-columns: 1fr 1fr; align-items: stretch; } }
  .contact-grid--noform .map { height: 100%; min-height: 20rem; aspect-ratio: auto; }
  /* Support → Contact on the merged page: two paddings stacked to 240px; halve it */
  #support { padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
  #support + #contact { padding-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
  .form-grid { display: grid; gap: var(--space-m); }
  @media (width >= 40rem) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .field--full { grid-column: 1 / -1; } }
  .map { aspect-ratio: 4 / 3; width: 100%; border: 0; border-radius: var(--radius-m); filter: grayscale(0.6) sepia(0.25) brightness(0.9); }
  .contact-list { list-style: none; padding: 0; display: grid; gap: var(--space-s); }
  .contact-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-s); align-items: start; }
  .contact-list svg { width: 1.25rem; height: 1.25rem; color: var(--flame-400); margin-top: 0.2rem; }

  /* ===== 404 ===== */
  .not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; }
  .not-found__code { font-family: var(--font-display); font-size: clamp(6rem, 20vw, 12rem); font-weight: 700; line-height: 1; }
}

/* ---------- Utilities ---------- */
@layer utilities {
  .visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .text-center { text-align: center; }
  .muted { color: var(--color-text-muted); }
  .mt-s { margin-top: var(--space-s); }
  .mt-m { margin-top: var(--space-m); }
  .mt-l { margin-top: var(--space-l); }
  .mt-xl { margin-top: var(--space-xl); }
  [hidden] { display: none !important; }

  /* Reveal on scroll (JS adds .is-visible); content stays visible without JS */
  .js [data-reveal] { opacity: 0; translate: 0 1.5rem; transition: opacity 800ms var(--ease-out), translate 800ms var(--ease-out); }
  .js [data-reveal].is-visible { opacity: 1; translate: 0 0; }
}

@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; translate: none; }
}
