/* ═══════════════════════════════════════
   RESET & ROOT
═══════════════════════════════════════ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --void:        #02010a;
  --navy-deep:   #06051a;
  --navy:        #0b0a2e;
  --purple-dark: #1a0a42;
  --purple:      #2d0f6b;
  --violet:      #5b1fc8;
  --violet-sat:  #7c3aed;
  --glow:        #9b59f7;
  --gold:        #c9973a;
  --gold-hi:     #e8c97a;
  --red:         #cc3333;
  --fd: 'Cinzel', serif;
  --fb: 'EB Garamond', Georgia, serif;
  --fc: 'Cormorant Garamond', Georgia, serif;
  --fp: 'Playfair Display', Georgia, serif;
  --fj: 'Josefin Sans', sans-serif;
  --ease-snap: cubic-bezier(0.25, 0, 0.30, 1);
  --ease-spr:  cubic-bezier(0.34, 1.52, 0.64, 1);
  --rim:        rgba(167,139,250,.13);
  --rim-bright: rgba(196,181,253,.26);
  --text:       #ede9fe;
  --text-dim:   #c4b5fd;
  --nav-btn-size: 46px;
  --nav-h: 64px;
}

html, body {
  width:100%; min-height:100vh;
  scrollbar-gutter: stable;
  background: var(--void);
  color:#fff;
  overflow-x:hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { position: relative; background-color: var(--void); }

/* ═══════════════════════════════════════
   BACKGROUND SYSTEM
═══════════════════════════════════════ */
.bg-root {
  transform: translateZ(0);
  backface-visibility: hidden;
  position:fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none;
}
.bg-base {
  transform: translateZ(0);
  backface-visibility: hidden;
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%,   #1a0845 0%, transparent 60%),
    radial-gradient(ellipse 80%  60% at 0%  40%,  #0d0535 0%, transparent 55%),
    radial-gradient(ellipse 70%  50% at 100% 60%, #120840 0%, transparent 55%),
    radial-gradient(ellipse 100% 100% at 50% 100%,#080530 0%, transparent 70%),
    linear-gradient(175deg, #06051a 0%, #02010a 40%, #04020f 100%);
}
.nebula {
  transform: translateZ(0);
  backface-visibility: hidden;
  position:absolute; border-radius:50%;
  filter:blur(80px); mix-blend-mode:screen; will-change:transform,opacity;
}
.nebula-1 {
  width:70vw; height:70vw; top:-20vw; left:-15vw;
  background:radial-gradient(circle, rgba(88,28,220,.22) 0%, rgba(50,10,140,.10) 50%, transparent 75%);
  animation:nebula-drift-1 28s ease-in-out infinite;
}
.nebula-2 {
  width:60vw; height:60vw; top:30vh; right:-20vw;
  background:radial-gradient(circle, rgba(110,20,200,.18) 0%, rgba(60,5,120,.08) 55%, transparent 78%);
  animation:nebula-drift-2 35s ease-in-out infinite;
}
.nebula-3 {
  width:50vw; height:50vw; bottom:-10vh; left:20vw;
  background:radial-gradient(circle, rgba(70,10,170,.15) 0%, rgba(30,5,90,.06) 55%, transparent 80%);
  animation:nebula-drift-3 42s ease-in-out infinite;
}
.lumi {
  transform: translateZ(0);
  backface-visibility: hidden;
  position:absolute; border-radius:50%; filter:blur(100px); pointer-events:none;
}
.lumi-1 {
  width:40vw; height:25vw; top:5vh; left:50%; transform:translateX(-50%);
  background:radial-gradient(ellipse, rgba(255,255,255,.055) 0%, rgba(200,180,255,.02) 50%, transparent 75%);
  animation:lumi-pulse 18s ease-in-out infinite;
}
.lumi-2 {
  width:25vw; height:18vw; top:45vh; right:10vw;
  background:radial-gradient(ellipse, rgba(255,255,255,.04) 0%, transparent 70%);
  animation:lumi-pulse 24s ease-in-out infinite reverse;
}
.lumi-3 {
  width:20vw; height:15vw; bottom:20vh; left:8vw;
  background:radial-gradient(ellipse, rgba(200,160,255,.05) 0%, transparent 70%);
  animation:lumi-pulse 20s ease-in-out infinite 5s;
}
.bg-grain {
  transform: translateZ(0);
  backface-visibility: hidden;
  position:absolute; inset:0; opacity:.028; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:200px 200px;
}
.bg-seam {
  transform: translateZ(0);
  backface-visibility: hidden;
  position:absolute; top:0; left:0; right:0; height:1px;
  background:linear-gradient(90deg, transparent 0%, rgba(140,80,255,.4) 30%, rgba(200,150,255,.7) 50%, rgba(140,80,255,.4) 70%, transparent 100%);
  box-shadow:0 0 60px 8px rgba(160,80,255,.15);
}

.floating-toolbar {
      position: fixed;
      top: 10px;
      left: 50%;
      transform: translate3d(-50%, 0, 0);
      width: min(1160px, calc(100% - 20px));
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 14px;
      padding: 10px 14px;
      border-radius: 999px;
      z-index: 50;
      /* NO overflow:hidden — so tooltips can break out below */

      background:
        radial-gradient(ellipse 70% 130% at 50% -15%, rgba(109,40,217,.28) 0%, transparent 62%),
        linear-gradient(175deg, rgba(24,18,52,.97) 0%, rgba(9,7,20,.98) 55%, rgba(3,2,8,.99) 100%);

      border: 1px solid var(--rim);
      box-shadow:
        0 0 0 1px rgba(109,40,217,.08),
        0 2px 4px  rgba(0,0,0,.65),
        0 8px 28px rgba(0,0,0,.55),
        0 24px 64px rgba(0,0,0,.45),
        inset 0 1px 0 rgba(255,255,255,.055),
        inset 0 -1px 0 rgba(0,0,0,.40);

      backdrop-filter: blur(28px) saturate(145%);
      -webkit-backdrop-filter: blur(28px) saturate(145%);
      animation: toolbar-enter .75s cubic-bezier(.22,1,.36,1) both;
    }

    .floating-toolbar::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 999px;
      background:
        radial-gradient(circle at 50% 0%,  rgba(139,92,246,.24) 0%, transparent 54%),
        radial-gradient(circle at 12% 50%, rgba(109,40,217,.09) 0%, transparent 38%),
        radial-gradient(circle at 88% 50%, rgba(109,40,217,.09) 0%, transparent 38%);
      pointer-events: none;
    }

    .floating-toolbar::after {
      content: "";
      position: absolute;
      inset: 1px;
      border-radius: 999px;
      border: 1px solid rgba(196,181,253,.065);
      pointer-events: none;
    }

    @keyframes toolbar-enter {
      from { opacity:0; transform: translateX(-50%) translateY(-22px) scale(.95); }
      to   { opacity:1; transform: translateX(-50%) translateY(0) scale(1); }
    }

    /* ── BUTTON WRAPPER ── */
    .btn-wrap {
      position: relative;
      z-index: 2;
      display: grid;
      place-items: center;
      width: var(--nav-btn-size);
      height: var(--nav-btn-size);
    }

    /* ── CIRCLE BUTTONS ── */
    .circle-btn {
      appearance: none;
      border: none;
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      cursor: pointer;
      color: var(--text);
      line-height: 1.25;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;

      background:
        radial-gradient(circle at 38% 30%, rgba(139,92,246,.17) 0%, transparent 58%),
        linear-gradient(170deg, rgba(28,20,56,.98) 0%, rgba(8,6,18,.99) 100%);

      border: 1px solid var(--rim);
      box-shadow:
        0 0 0 1px rgba(109,40,217,.06),
        0 4px 14px rgba(0,0,0,.48),
        0 10px 28px rgba(0,0,0,.30),
        inset 0 1px 0 rgba(255,255,255,.04);

      transition:
        transform    .22s cubic-bezier(0.16, 1, 0.3, 1),
        border-color .20s ease,
        box-shadow   .20s ease,
        filter       .20s ease;
    }

    #langToggleTop,
    #phase1LangToggle {
      font-family: 'Noto Serif Devanagari', 'Cormorant Garamond', serif;
      font-weight: 600;
      font-size: 10.5px;
      letter-spacing: .02em;
    }

    #infoBtnTop,
    #phase1InfoBtn {
      font-family: 'Cormorant Garamond', serif;
      font-style: italic;
      font-weight: 600;
      font-size: 22px;
      padding-top: 1px;
    }

    .circle-btn:hover,
    .circle-btn:focus-visible {
      transform: translateY(-2px) scale(1.06);
      border-color: var(--rim-bright);
      box-shadow:
        0 0 0 1px rgba(109,40,217,.22),
        0 0 22px rgba(109,40,217,.34),
        0 0 52px rgba(109,40,217,.16),
        0 8px 24px rgba(0,0,0,.42),
        inset 0 1px 0 rgba(255,255,255,.09);
      outline: none;
      filter: brightness(1.14);
    }

    .circle-btn:active {
      transform: scale(.92);
      transition:
        transform    .08s var(--ease-snap),
        border-color .08s ease,
        box-shadow   .08s ease,
        filter       .08s ease;
    }

    /* ── DIVINE RIPPLE (injected via JS) ── */
    .ripple-ring {
      position: absolute;
      border-radius: 50%;
      width: 100%;
      height: 100%;
      top: 0; left: 0;
      background: radial-gradient(circle, rgba(196,181,253,.60) 0%, rgba(109,40,217,.22) 45%, transparent 70%);
      transform: scale(0);
      pointer-events: none;
      animation: divine-ripple .65s cubic-bezier(.22,1,.36,1) forwards;
    }

    @keyframes divine-ripple {
      0%   { transform: scale(0);   opacity: 1; }
      65%  { transform: scale(2.8); opacity: .50; }
      100% { transform: scale(3.6); opacity: 0; }
    }

    /* burst glow keyframe */
    @keyframes burst-glow {
      0%   { filter: brightness(1);    box-shadow: 0 0 0 1px rgba(109,40,217,.06), 0 4px 14px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.04); }
      28%  { filter: brightness(1.32); box-shadow: 0 0 0 5px rgba(139,92,246,.38), 0 0 36px rgba(109,40,217,.70), 0 0 88px rgba(109,40,217,.35); }
      100% { filter: brightness(1);    box-shadow: 0 0 0 1px rgba(109,40,217,.06), 0 4px 14px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.04); }
    }

    .circle-btn.burst {
      animation: burst-glow .60s ease forwards;
    }

    /* ── SPARKS ── */
    .spark {
      position: fixed;
      border-radius: 50%;
      pointer-events: none;
      z-index: 9999;
      animation: spark-fly var(--dur,.7s) ease-out forwards;
    }

    @keyframes spark-fly {
      0%   { opacity: 1; transform: translate(0,0) scale(1); }
      100% { opacity: 0; transform: translate(var(--dx,0px), var(--dy,0px)) scale(0); }
    }

    /* ── TOOLTIP ── */
    .nav-tooltip {
      position: absolute;
      /* top of btn-wrap = top of navbar inner. tooltip goes below navbar */
      top: calc(100% + 20px);
      left: 50%;
      transform: translateX(-50%) translateY(-8px);
      white-space: nowrap;

      font-family: 'Jost', sans-serif;
      font-weight: 300;
      font-size: 11px;
      letter-spacing: .16em;
      text-transform: uppercase;
      color: var(--text-dim);

      background:
        radial-gradient(ellipse 90% 100% at 50% 0%, rgba(109,40,217,.20) 0%, transparent 70%),
        linear-gradient(170deg, rgba(22,16,48,.97) 0%, rgba(8,6,18,.97) 100%);

      border: 1px solid rgba(139,92,246,.24);
      border-radius: 999px;
      padding: 5px 15px 6px;

      box-shadow:
        0 0 0 1px rgba(109,40,217,.06),
        0 6px 22px rgba(0,0,0,.52),
        0 0 24px rgba(109,40,217,.16);

      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition:
        opacity .22s ease,
        visibility .22s ease,
        transform .26s cubic-bezier(.34,1.56,.64,1);

      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      z-index: 200;
    }

    /* caret arrow up */
    .nav-tooltip::before {
      content: "";
      position: absolute;
      top: -5px;
      left: 50%;
      transform: translateX(-50%);
      width: 8px; height: 5px;
      clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
      background: rgba(139,92,246,.35);
    }

    /* show on desktop hover — navbar AND phase1 buttons */
    .btn-wrap:hover .nav-tooltip,
    .btn-wrap.tooltip-show .nav-tooltip,
    .phase1-btn-wrap:hover .nav-tooltip,
    .phase1-btn-wrap.tooltip-show .nav-tooltip {
      opacity: 1;
      visibility: visible;
      transform: translateX(-50%) translateY(0);
    }

    /* ── MINI LOGO ── */
    .mini-logo {
      justify-self: center;
      position: relative;
      z-index: 2;
      width: 54px;
      height: 54px;
      border-radius: 50%;
      display: grid;
      place-items: center;

      background:
        radial-gradient(circle at 38% 32%, rgba(139,92,246,.28) 0%, rgba(255,255,255,.04) 50%, rgba(0,0,0,.06) 100%);

      border: 1px solid rgba(167,139,250,.16);
      box-shadow:
        0 0 0 1px rgba(109,40,217,.08),
        0 0 18px rgba(109,40,217,.28),
        0 0 52px rgba(109,40,217,.14),
        inset 0 1px 0 rgba(255,255,255,.06);

      transition: box-shadow .35s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
      cursor: default;
    }

    .mini-logo::before {
      content: "";
      position: absolute;
      inset: -3px;
      border-radius: 50%;
      background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(109,40,217,.30) 20%,
        rgba(167,139,250,.18) 38%,
        transparent 54%,
        rgba(139,92,246,.22) 76%,
        transparent 100%
      );
      animation: logo-spin 9s linear infinite;
      mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 100%);
      -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 100%);
    }

    @keyframes logo-spin { to { transform: rotate(360deg); } }

    .mini-logo:hover {
      transform: scale(1.07);
      box-shadow:
        0 0 0 1px rgba(109,40,217,.18),
        0 0 30px rgba(109,40,217,.52),
        0 0 72px rgba(109,40,217,.24),
        inset 0 1px 0 rgba(255,255,255,.10);
    }

    .mini-logo img {
      width: 38px;
      height: 38px;
      object-fit: contain;
      display: block;
      filter:
        drop-shadow(0 0 8px rgba(139,92,246,.55))
        drop-shadow(0 0 22px rgba(109,40,217,.38));
      transition: filter .35s ease;
    }

    .mini-logo:hover img {
      filter:
        drop-shadow(0 0 14px rgba(196,181,253,.82))
        drop-shadow(0 0 36px rgba(139,92,246,.58));
    }

    /* ═══════════════════════════════════════
       INFO MODAL
    ═══════════════════════════════════════ */
    .info-modal {
      position: fixed;
      inset: 0;
      z-index: 80;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(2,1,8,.65);
      backdrop-filter: blur(16px) saturate(130%);
      -webkit-backdrop-filter: blur(16px) saturate(130%);
      opacity: 0;
      visibility: hidden;
      transition: opacity .28s ease, visibility .28s ease;
    }

    .info-modal.show { opacity: 1; visibility: visible; }

    /* ── FRAME: holds gradient border, NO overflow ── */
    .info-card-frame {
      position: relative;
      width: min(560px, 100%);
      border-radius: 28px;
      box-shadow:
        0 0 0 1px rgba(109,40,217,.12),
        0 0 44px rgba(109,40,217,.20),
        0 36px 88px rgba(0,0,0,.72);
      transform: translateY(30px) scale(.95);
      opacity: 0;
      transition: transform .38s cubic-bezier(.22,1,.36,1), opacity .30s ease;
    }

    .info-modal.show .info-card-frame {
      transform: translateY(0) scale(1);
      opacity: 1;
    }

    .info-card-frame::before {
      content: "";
      position: absolute;
      inset: 0;
      padding: 1px;
      border-radius: 28px;
      background: linear-gradient(
        140deg,
        rgba(167,139,250,.60) 0%,
        rgba(76,29,149,.18) 40%,
        rgba(109,40,217,.52) 72%,
        rgba(196,181,253,.32) 100%
      );
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      pointer-events: none;
      z-index: 2;
    }

    /* ── CARD: scrollable, no border, no ::before ── */
    .info-card {
      position: relative;
      max-height: min(72vh, 640px);
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      border-radius: 28px;
      color: var(--text);
      padding: 26px 24px 24px;

      background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(109,40,217,.22) 0%, transparent 60%),
        linear-gradient(175deg, rgba(20,14,44,.99) 0%, rgba(7,5,16,.99) 60%, rgba(3,2,8,1) 100%);
    }

    .close-row {
      display: flex;
      justify-content: flex-end;
      margin-bottom: 14px;
      position: sticky;
      top: 0;
      z-index: 2;
    }

    .close-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 1px solid rgba(139,92,246,.24);
      background:
        radial-gradient(circle at 38% 32%, rgba(139,92,246,.14) 0%, transparent 60%),
        linear-gradient(170deg, rgba(28,20,56,.98) 0%, rgba(8,6,18,.99) 100%);
      color: var(--text-dim);
      cursor: pointer;
      font-family: 'Josefin Sans', sans-serif;
      font-weight: 300;
      font-size: 1.2rem;
      line-height: 1;
      display: grid;
      place-items: center;
      box-shadow: 0 4px 12px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.04);
      transition: transform .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease;
    }

    .close-btn:hover {
      transform: scale(1.10) rotate(90deg);
      border-color: rgba(167,139,250,.42);
      color: #fff;
      box-shadow:
        0 0 0 1px rgba(109,40,217,.20),
        0 0 18px rgba(109,40,217,.34),
        0 4px 12px rgba(0,0,0,.36);
    }

    .info-card h3 {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 700;
      font-style: italic;
      font-size: 1.55rem;
      letter-spacing: .04em;
      color: #fff;
      margin: 0 0 18px;
      text-shadow: 0 0 28px rgba(167,139,250,.45);
    }

    .info-card h4 {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 600;
      font-size: 1rem;
      letter-spacing: .03em;
      color: var(--text);
      margin: 18px 0 6px;
    }

    .info-card h4:first-of-type { margin-top: 0; }

    .info-card p {
      margin: 0 0 14px;
      color: var(--text-dim);
      line-height: 1.88;
      font-size: 14.5px;
      font-family: 'Jost', sans-serif;
      font-weight: 300;
      font-style: italic;
      white-space: pre-line;
    }

    .info-card p:last-child { margin-bottom: 0; }

    .info-card::-webkit-scrollbar { width: 6px; }
    .info-card::-webkit-scrollbar-track { background: rgba(255,255,255,.02); border-radius: 999px; }
    .info-card::-webkit-scrollbar-thumb {
      background: linear-gradient(180deg, rgba(139,92,246,.68), rgba(109,40,217,.42));
      border-radius: 999px;
    }

    /* ═══════════════════════════════════════
       INFO TOC NAV
    ═══════════════════════════════════════ */
    .info-toc {
      display: flex;
      flex-direction: column;
      gap: 7px;
      margin: 4px 0 20px;
    }

    .info-toc-item {
      appearance: none;
      display: flex;
      align-items: center;
      gap: 12px;
      width: 100%;
      padding: 13px 16px;
      background: rgba(109,40,217,.07);
      border: 1px solid rgba(139,92,246,.16);
      border-radius: 14px;
      color: var(--text);
      cursor: pointer;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 15px;
      font-weight: 400;
      letter-spacing: .025em;
      text-align: left;
      -webkit-tap-highlight-color: transparent;
      transition:
        background    .18s ease,
        border-color  .18s ease,
        transform     .15s ease,
        box-shadow    .18s ease;
    }

    .info-toc-item:hover {
      background: rgba(109,40,217,.14);
      border-color: rgba(139,92,246,.30);
      box-shadow: 0 0 18px rgba(109,40,217,.16);
    }

    .info-toc-item:active {
      transform: scale(0.97);
      background: rgba(139,92,246,.20);
      border-color: rgba(167,139,250,.45);
      box-shadow: 0 0 26px rgba(139,92,246,.28);
    }

    @keyframes toc-flash-anim {
      0%   { background: rgba(139,92,246,.30); box-shadow: 0 0 30px rgba(139,92,246,.38); }
      100% { background: rgba(109,40,217,.07); box-shadow: none; }
    }

    .info-toc-item.toc-flash {
      animation: toc-flash-anim .40s ease forwards;
    }

    .toc-dot {
      font-size: 9px;
      color: var(--glow);
      flex-shrink: 0;
      opacity: .75;
    }

    .toc-label {
      flex: 1;
      line-height: 1.3;
    }

    .toc-chevron {
      font-size: 22px;
      color: var(--glow);
      opacity: .60;
      flex-shrink: 0;
      line-height: 1;
      transition: opacity .18s ease, transform .18s ease;
    }

    .info-toc-item:hover .toc-chevron,
    .info-toc-item:active .toc-chevron {
      opacity: 1;
      transform: translateX(4px);
    }

    /* ── TOC → CONTENT DIVIDER ── */
    .info-toc-divider {
      width: 100%;
      height: 1px;
      background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(139,92,246,.38) 25%,
        rgba(196,181,253,.55) 50%,
        rgba(139,92,246,.38) 75%,
        transparent 100%
      );
      margin: 4px 0 28px;
      position: relative;
    }

    .info-toc-divider::before {
      content: '\2726';
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      font-size: 8px;
      color: var(--glow);
      background: var(--navy-deep);
      padding: 0 6px;
      opacity: .7;
    }

    /* ═══════════════════════════════════════
       INFO SECTIONS
    ═══════════════════════════════════════ */
    .info-section {
      scroll-margin-top: 16px;
      margin-bottom: 30px;
      padding-top: 4px;
    }

    .info-section:last-child {
      margin-bottom: 6px;
    }

    .info-sec-title {
      font-family: 'Cinzel', serif !important;
      font-weight: 600 !important;
      font-style: normal !important;
      font-size: 10.5px !important;
      letter-spacing: .16em !important;
      text-transform: uppercase;
      color: var(--glow) !important;
      margin: 0 0 10px !important;
      text-shadow: 0 0 20px rgba(139,92,246,.50);
    }

    .info-sec-sub {
      margin-top: 26px !important;
    }

    .info-sec-rule {
      width: 38px;
      height: 1px;
      background: linear-gradient(90deg, var(--glow), transparent);
      margin-bottom: 14px;
      opacity: .55;
    }

    /* ═══════════════════════════════════════
       ACCORDION — collapse / expand
    ═══════════════════════════════════════ */
    .info-acc-item {
      display: flex;
      flex-direction: column;
    }

    /* collapsed body — zero height via grid trick */
    .info-acc-body {
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows .38s cubic-bezier(.22,1,.36,1);
      overflow: hidden;
    }

    .info-acc-body.acc-open {
      grid-template-rows: 1fr;
    }

    /* inner must have overflow:hidden for the grid trick to work */
    .info-acc-inner {
      overflow: hidden;
      padding: 0 4px;
      transition: padding .38s cubic-bezier(.22,1,.36,1);
    }

    .info-acc-body.acc-open .info-acc-inner {
      padding: 14px 4px 22px;
    }

    .info-acc-inner p {
      margin: 0 0 10px;
      color: rgba(210,195,255,.72);
      line-height: 1.90;
      font-size: 14px;
      font-family: 'Jost', sans-serif;
      font-weight: 300;
      font-style: italic;
      white-space: pre-line;
    }

    .info-acc-inner p:last-child { margin-bottom: 0; }

    .info-acc-subhead {
      font-family: 'Cinzel', serif;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--glow);
      margin: 20px 0 8px;
      text-shadow: 0 0 18px rgba(139,92,246,.40);
    }

    /* chevron rotates when open */
    .info-toc-item .toc-chevron {
      transition: transform .30s cubic-bezier(.22,1,.36,1), opacity .18s ease;
    }

    .info-toc-item.acc-active .toc-chevron {
      transform: rotate(90deg);
      opacity: 1;
    }

    /* active button subtle highlight */
    .info-toc-item.acc-active {
      background: rgba(109,40,217,.16);
      border-color: rgba(167,139,250,.36);
      box-shadow: 0 0 20px rgba(109,40,217,.18);
    }

    /* remove bottom radius when body is open — looks connected */
    .info-acc-body.acc-open ~ * { }
    .info-acc-item:has(.acc-open) .info-toc-item {
      border-bottom-left-radius: 6px;
      border-bottom-right-radius: 6px;
    }

    /* ── MOBILE ── */
    @media (max-width: 640px) {
      .floating-toolbar { top: 8px; padding: 8px 11px; gap: 10px; }
      .circle-btn { width: 42px; height: 42px; }
      #infoBtnTop, #phase1InfoBtn  { font-size: 20px; }
      #langToggleTop, #phase1LangToggle { font-size: 10px; }
      .mini-logo { width: 50px; height: 50px; }
      .mini-logo img { width: 34px; height: 34px; }
      .info-card-frame { border-radius: 22px; }
      .info-card { max-height: 72vh; padding: 20px 16px 18px; border-radius: 22px; }
      .info-card-frame::before { border-radius: 22px; }
    }

/* ═══════════════════════════════════════
   PAGE WRAPPER
═══════════════════════════════════════ */
.page {
  position:relative; z-index:1;
  padding-top:calc(var(--nav-h) + 52px);
  padding-bottom:80px;
  min-height:100vh;
}

/* ═══════════════════════════════════════
   HERO — TITLE & SEARCH
═══════════════════════════════════════ */
.hero {
  text-align:center;
  padding:0 24px 56px;
  max-width:900px;
  margin:0 auto;
}

.hero-eyebrow {
  font-family: var(--fj);
  font-size: 10px; font-weight: 300;
  letter-spacing: .52em; text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(201,151,58,.60);
  margin-bottom: 12px;
  opacity: .90;
  animation: fadeUp .80s cubic-bezier(.16,1,.3,1) both;
}

.hero-title {
  font-family: var(--fp);
  font-size: clamp(44px, 8vw, 86px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: .02em;
  line-height: 1.08;
  color: #fff;
  text-shadow:
    0 0 40px rgba(255,255,255,.60),
    0 0 80px rgba(210,170,255,.35),
    0 0 140px rgba(155,89,247,.22);
  animation: fadeUp .90s cubic-bezier(.16,1,.3,1) .06s both;
  margin-bottom: 10px;
}
.hero-title em {
  font-style: italic;
  color: rgba(255,255,255,.92);
  font-weight: 300;
}

.hero-subtitle-label {
  font-family: var(--fj);
  font-size: clamp(9px, 1.3vw, 11px);
  font-weight: 300; letter-spacing: .50em; text-transform: uppercase;
  color: rgba(200,182,255,.48);
  margin-bottom: 42px;
  animation: fadeUp 1s cubic-bezier(.16,1,.3,1) .12s both;
}

/* ─── SEARCH BAR ─── */
.search-wrap {
  position:relative;
  width:100%; max-width:760px;
  margin:0 auto;
  animation:fadeUp 1.1s cubic-bezier(.16,1,.3,1) .20s both;
}

.search-wrap::before {
  content:'';
  position:absolute; inset:-1px; border-radius:999px;
  background:linear-gradient(90deg,
    rgba(140,80,255,.18) 0%,
    rgba(200,150,255,.28) 50%,
    rgba(140,80,255,.18) 100%
  );
  z-index:0;
  transition:background .28s ease;
}
.search-wrap:focus-within::before {
  background:linear-gradient(90deg,
    rgba(140,80,255,.40) 0%,
    rgba(210,160,255,.60) 50%,
    rgba(140,80,255,.40) 100%
  );
  box-shadow:0 0 40px rgba(155,89,247,.22);
}

.search-bar {
  position:relative; z-index:1;
  display:flex; align-items:center;
  background:linear-gradient(180deg,
    rgba(28,14,70,.72) 0%,
    rgba(12,10,40,.66) 100%
  );
  backdrop-filter:blur(32px) saturate(1.5);
  -webkit-backdrop-filter:blur(32px) saturate(1.5);
  border-radius:999px;
  border:1px solid rgba(160,110,255,.18);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 12px 32px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.08);
  overflow:hidden;
  transition:border-color .28s ease, box-shadow .28s ease;
}
.search-wrap:focus-within .search-bar {
  border-color:rgba(180,130,255,.38);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 16px 44px rgba(0,0,0,.50),
    0 0 32px rgba(155,89,247,.14),
    inset 0 1px 0 rgba(255,255,255,.10);
}

.search-icon {
  padding:0 18px 0 22px;
  color:rgba(180,150,255,.48);
  flex-shrink:0;
  transition:color .22s ease;
}
.search-wrap:focus-within .search-icon { color:rgba(210,180,255,.75); }

.search-icon svg { display:block; }

.search-input {
  flex:1;
  background:none; border:none; outline:none;
  font-family:var(--fb);
  font-size:clamp(14px, 2vw, 17px);
  font-style:italic;
  color:rgba(240,235,255,.88);
  padding:14px 18px 14px 0;
  caret-color: rgba(200,160,255,.8);
}
.search-input::placeholder {
  color:rgba(180,155,255,.35);
  font-style:italic;
}


@media(max-width:520px) {
  .search-icon { padding:0 12px 0 16px; }
}

/* ═══════════════════════════════════════
   CARDS SECTION
═══════════════════════════════════════ */
.cards-section {
  padding:0 20px;
  max-width:1100px;
  margin:0 auto;
}

.section-label {
  text-align:center;
  font-family:var(--fd);
  font-size:9px; font-weight:600;
  letter-spacing:.44em; text-transform:uppercase;
  color:rgba(200,170,255,.34);
  margin-bottom:36px;
}

.cards-grid {
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:32px 28px;
}

@media(max-width:700px) {
  .cards-grid {
    grid-template-columns:1fr;
    gap:28px;
  }
}

/* ═══════════════════════════════════════
   EPISODE CARD — full styles from divine_ep-card.html
═══════════════════════════════════════ */
.card-wrap {
  position:relative;
  width:100%;
  isolation:isolate;
  contain:layout style;
  will-change:transform;
  transition:transform .32s cubic-bezier(0.16, 1, 0.3, 1);
  cursor:pointer;
}

/* Glow halo */
.card-wrap::before {
  content:"";
  position:absolute; inset:-40px; border-radius:64px;
  background:radial-gradient(
    ellipse 118% 104% at 50% 54%,
    rgba(155,89,247,.80) 0%,
    rgba(128,54,238,.52) 16%,
    rgba(105,42,210,.28) 32%,
    rgba(70,20,150,.12) 52%,
    rgba(35,10,85,.05) 70%,
    transparent 86%
  );
  filter:blur(36px);
  opacity:0;
  transform:translateY(16px) scale(0.86);
  transition:opacity .44s ease, transform .44s ease;
  pointer-events:none; z-index:0;
  animation:glowPulse 4.5s ease-in-out infinite paused;
}

.card-wrap:hover::before,
.card-wrap.is-active::before {
  opacity:1;
  transform:translateY(10px) scale(1.10);
  animation-play-state:running;
}

.card-wrap.is-pressed {
  transform:scale(0.968) !important;
  transition:transform .10s var(--ease-snap) !important;
}
.card-wrap.is-lifting {
  transform:translateY(-12px) scale(1.018) !important;
  transition:transform .32s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.card-wrap.is-active,
.card-wrap:hover:not(.is-pressed):not(.is-lifting) {
  transform:translateY(-12px) scale(1.018);
}

/* Episode card shell */
.episode-card {
  position:relative; z-index:1;
  border-radius:32px; overflow:hidden;
  background:linear-gradient(180deg,
    rgba(22,11,55,.96) 0%,
    rgba(10,8,32,.98) 100%
  );
  border:1px solid rgba(175,135,255,.20);
  box-shadow:
    0  0  0 1px rgba(255,255,255,.045),
    0 20px 52px rgba(0,0,0,.64),
    0  6px 18px rgba(0,0,0,.40),
    inset 0  1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.22);

  /* ── SCROLL REVEAL — start hidden, slightly sunk ── */
  opacity: 0;
  transform: translateY(38px) scale(0.96);
  will-change: transform, opacity;
  transition:
    box-shadow    .44s ease,
    border-color  .30s ease,
    opacity       .68s cubic-bezier(.22, 1, .36, 1),
    transform     .68s cubic-bezier(.22, 1, .36, 1);
}

/* Revealed state — smooth rise into place */
.card-wrap.card-visible .episode-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.card-wrap.is-active .episode-card,
.card-wrap:hover    .episode-card {
  border-color:rgba(200,158,255,.46);
  box-shadow:
    0  0  0 1px rgba(255,255,255,.06),
    0 52px 100px rgba(0,0,0,.80),
    0 28px  52px rgba(102,56,220,.28),
    0  0   46px  rgba(155,89,247,.18),
    inset 0  1px 0 rgba(255,255,255,.12),
    inset 0 -1px 0 rgba(0,0,0,.26);
}

/* Gold top seam */
.episode-card::before {
  content:''; position:absolute; top:0; left:8%; right:8%; height:1px; z-index:8;
  background:linear-gradient(90deg,
    transparent,
    rgba(200,150,60,.52) 28%,
    rgba(232,201,122,.90) 50%,
    rgba(200,150,60,.52) 72%,
    transparent
  );
  transition:background .28s ease;
}
.card-wrap.is-active .episode-card::before,
.card-wrap:hover    .episode-card::before {
  background:linear-gradient(90deg,
    transparent,
    rgba(230,180,90,.76) 25%,
    rgba(252,222,148,1.0) 50%,
    rgba(230,180,90,.76) 75%,
    transparent
  );
}

/* Sheen sweep */
.episode-card::after {
  content:''; position:absolute; inset:0; z-index:9; pointer-events:none;
  background:linear-gradient(108deg,
    transparent 35%,
    rgba(255,255,255,.04) 48%,
    rgba(255,255,255,.08) 52%,
    transparent 65%
  );
  transform:translateX(-160%) skewX(-12deg);
  animation:sweep 28s ease-in-out infinite;
}

/* Header */
.card-header { position:relative; z-index:2; padding:22px 22px 12px; }
.ep-number {
  font-family:var(--fd); font-size:9px; font-weight:600;
  letter-spacing:.44em; text-transform:uppercase; color:var(--gold);
  margin-bottom:8px; transition:color .28s ease;
}
.card-wrap.is-active .ep-number {
  color: var(--gold-hi);
  text-shadow:
    0 0 8px  rgba(232,201,122,.95),
    0 0 20px rgba(201,151,58,.75),
    0 0 40px rgba(180,120,30,.45),
    0 0 64px rgba(160,100,20,.20);
}
.card-wrap:hover .ep-number { color:var(--gold-hi); }
.ep-title {
  font-family:var(--fd); font-size:clamp(17px, 2.6vw, 24px); font-weight:700;
  color:#fff; letter-spacing:.05em; line-height:1.18;
  text-shadow:0 0 28px rgba(165,105,255,.22);
  transition:text-shadow .32s ease;
}
.card-wrap.is-active .ep-title,
.card-wrap:hover    .ep-title { text-shadow:0 0 40px rgba(190,120,255,.46); }

/* Divider */
.card-divider {
  position:relative; z-index:2; margin:0 20px 14px; height:1px;
  background:linear-gradient(90deg, transparent, rgba(160,120,255,.22), transparent);
  transition:background .24s ease;
}
.card-wrap.is-active .card-divider,
.card-wrap:hover    .card-divider {
  background:linear-gradient(90deg, transparent, rgba(200,158,255,.32), transparent);
}

/* Video */
.video-wrap {
  position:relative; z-index:2;
  margin:0 16px 14px; border-radius:16px;
  overflow:hidden; aspect-ratio:16/9;
  border:1px solid rgba(148,108,255,.18);
  box-shadow:0 10px 28px rgba(0,0,0,.48);
  transition:border-color .30s ease, box-shadow .30s ease;
  background: linear-gradient(180deg, rgba(12,10,40,.88) 0%, rgba(6,5,26,.95) 100%);
  contain: paint;
  transform: translateZ(0);
}
.card-wrap.is-active .video-wrap,
.card-wrap:hover    .video-wrap {
  border-color:rgba(192,145,255,.28);
  box-shadow:0 18px 44px rgba(0,0,0,.58), 0 0 24px rgba(118,58,218,.16);
}
.video-wrap iframe { width:100%; height:100%; display:block; border:none; background: var(--void); }


.video-thumb {
  appearance: none;
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.video-thumb:focus-visible {
  outline: 2px solid rgba(232,201,122,.55);
  outline-offset: -2px;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
}

.video-thumb-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(2,1,10,.18) 0%, rgba(2,1,10,.35) 100%),
    radial-gradient(circle at 50% 50%, rgba(109,40,217,.16) 0%, transparent 70%);
}

.video-thumb-play {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(2,1,10,.50);
  border: 1px solid rgba(232,201,122,.28);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 0 24px rgba(109,40,217,.25),
    inset 0 1px 0 rgba(255,255,255,.08);
  color: #fff;
  font-size: 18px;
  text-indent: 2px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card-wrap.is-active .video-thumb-play,
.card-wrap:hover .video-thumb-play {
  transform: scale(1.06);
  border-color: rgba(232,201,122,.42);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05),
    0 0 32px rgba(109,40,217,.34),
    inset 0 1px 0 rgba(255,255,255,.10);
}

.video-wrap.loaded .video-thumb { display: none; }

/* Subtitle label */
.sub-info { position:relative; z-index:2; padding:0 20px 11px; text-align:center; }
.sub-langs {
  font-family:var(--fd); font-size:10.5px; font-weight:600;
  letter-spacing:.16em; color:rgba(215,205,255,.74);
}
.sub-langs .dot { color:var(--gold); opacity:.75; margin:0 4px; }

/* Buttons */
.btn-row {
  position:relative; z-index:2;
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:6px; padding:0 16px 20px;
}
.btn {
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  width:100%; padding:11px 4px; border-radius:13px;
  font-family:var(--fd); font-size:9px; font-weight:700;
  letter-spacing:.04em; text-transform:uppercase; cursor:pointer;
  border:1px solid transparent; outline:none;
  white-space:normal; word-break:break-word; line-height:1.30;
  overflow:hidden; position:relative;
  text-decoration:none;
  transition:
    transform    .22s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow   .20s ease,
    background   .20s ease,
    border-color .20s ease,
    color        .20s ease;
  will-change:transform;
}
.btn::before {
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:radial-gradient(circle at 50% 0%, rgba(255,255,255,.18), transparent 60%);
  opacity:.35;
}
.btn.tapped {
  transform:scale(0.88) !important;
  transition:transform .10s var(--ease-snap) !important;
}
.btn.spring-back {
  transform:scale(1.04) !important;
  transition:transform .38s cubic-bezier(0.34, 1.20, 0.64, 1) !important;
}
.btn-hindi, .btn-english {
  background:linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.05));
  border-color:rgba(255,255,255,.14); color:rgba(236,230,255,.84);
  box-shadow:0 8px 16px rgba(0,0,0,.20),
             inset 0  1px 0 rgba(255,255,255,.10),
             inset 0 -1px 0 rgba(0,0,0,.16);
}
.btn-both {
  background:linear-gradient(148deg, #8a46f7 0%, #5f27cf 52%, #35109b 100%);
  color:#fff; border-color:rgba(200,158,255,.36);
  box-shadow:0 0 12px rgba(125,58,230,.20), 0 8px 18px rgba(0,0,0,.28),
             inset 0  1px 0 rgba(255,255,255,.18),
             inset 0 -1px 0 rgba(0,0,0,.18);
}
.btn:hover { transform:translateY(-3px); }
.btn-hindi:hover, .btn-english:hover {
  background:linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
  border-color:rgba(255,255,255,.22); color:#fff;
  box-shadow:0 12px 22px rgba(0,0,0,.26),
             inset 0  1px 0 rgba(255,255,255,.12),
             inset 0 -1px 0 rgba(0,0,0,.16);
}
.btn-both:hover {
  background:linear-gradient(148deg, #9b59f7 0%, #6c32e2 52%, #4318b8 100%);
  box-shadow:0 0 20px rgba(145,70,255,.28), 0 12px 24px rgba(0,0,0,.34),
             inset 0  1px 0 rgba(255,255,255,.20),
             inset 0 -1px 0 rgba(0,0,0,.16);
}

/* Card footer — tilak symbol */
.card-foot {
  position:relative; z-index:2;
  display:flex; align-items:center; justify-content:center;
  gap:10px; padding:0 22px 18px;
}
.cf-line {
  flex:1; height:1px;
  background:linear-gradient(90deg, transparent, rgba(172,132,255,.16));
  transition:background .24s ease;
}
.cf-line.r { background:linear-gradient(90deg, rgba(172,132,255,.16), transparent); }
.card-wrap.is-active .cf-line,
.card-wrap:hover    .cf-line { background:linear-gradient(90deg, transparent, rgba(202,162,255,.26)); }
.card-wrap.is-active .cf-line.r,
.card-wrap:hover    .cf-line.r { background:linear-gradient(90deg, rgba(202,162,255,.26), transparent); }
.cf-tilak {
  display:flex; flex-direction:column; align-items:center; gap:3px; opacity:.30;
  transition:opacity .24s ease, transform .44s var(--ease-spr);
}
.card-wrap.is-active .cf-tilak,
.card-wrap:hover    .cf-tilak { opacity:.60; transform:scale(1.08); }
.cf-s  { width:18px; height:1.5px; background:rgba(225,215,255,.85); border-radius:2px; }
.cf-s.sm { width:11px; }
.cf-dot {
  width:6px; height:6px; border-radius:50%;
  background:var(--red); box-shadow:0 0 8px rgba(200,50,50,.52);
  margin:-4px 0; transition:box-shadow .24s ease;
}
.card-wrap.is-active .cf-dot,
.card-wrap:hover    .cf-dot { box-shadow:0 0 14px rgba(220,60,60,.68), 0 0 22px rgba(200,50,50,.26); }

/* ═══════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════ */
@keyframes nebula-drift-1 {
  0%   { transform:translate(0,0) scale(1); }
  33%  { transform:translate(4vw,3vh) scale(1.05); }
  66%  { transform:translate(-2vw,5vh) scale(0.97); }
  100% { transform:translate(0,0) scale(1); }
}
@keyframes nebula-drift-2 {
  0%   { transform:translate(0,0) scale(1); }
  40%  { transform:translate(-5vw,-4vh) scale(1.06); }
  70%  { transform:translate(3vw,2vh) scale(0.96); }
  100% { transform:translate(0,0) scale(1); }
}
@keyframes nebula-drift-3 {
  0%   { transform:translate(0,0) scale(1); }
  30%  { transform:translate(3vw,-3vh) scale(1.04); }
  60%  { transform:translate(-4vw,4vh) scale(1.02); }
  100% { transform:translate(0,0) scale(1); }
}
@keyframes lumi-pulse {
  0%,100% { opacity:.7; }
  50%     { opacity:1; }
}
@keyframes glowPulse {
  0%,100% { opacity:1;   transform:translateY(10px) scale(1.10); }
  50%     { opacity:.70; transform:translateY(7px)  scale(1.06); }
}
@keyframes sweep {
  0%          { transform:translateX(-160%) skewX(-12deg); opacity:0; }
  1%          { opacity:.72; }
  5%          { transform:translateX(230%)  skewX(-12deg); opacity:0; }
  5.01%,100%  { transform:translateX(-160%) skewX(-12deg); opacity:0; }
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(22px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes cardIn {
  from { opacity:0; transform:translateY(28px) scale(.96); }
  to   { opacity:1; transform:translateY(0)    scale(1.00); }
}

/* ═══════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════ */
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:var(--void); }
::-webkit-scrollbar-thumb { background:rgba(120,60,220,.38); border-radius:3px; }

/* ═══════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════ */
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}

/* ═══════════════════════════════
   PHASE 1 INTRO (merged)
═══════════════════════════════ */
.phase1-screen {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
}

.phase1-btn-wrap {
  position: fixed;
  z-index: 60;
  width: var(--nav-btn-size);
  height: var(--nav-btn-size);
  top: calc(20px + env(safe-area-inset-top));
  display: grid;
  place-items: center;
}

.phase1-btn-wrap.left  { left: 24px; }
.phase1-btn-wrap.right { right: 24px; }

.phase1-controls {
  position: relative;
  z-index: 60;
  transition: opacity .25s ease, visibility .25s ease;
}

.phase1-controls.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-content {
  position:relative; z-index:1;
  min-height:100vh; min-height:100svh;
  display:flex; flex-direction:column;
  align-items:center;

  /* sec-bot uses margin-top:auto to push to bottom */
  justify-content:flex-start;

  padding: calc(80px + env(safe-area-inset-top)) 28px
           calc(44px + env(safe-area-inset-bottom));
  text-align:center;
}

/* ── SECTION 1: Logo + Title (no divider here) ── */
.sec-top {
  display:flex; flex-direction:column; align-items:center;
  margin-bottom:clamp(20px,4vh,44px);
  opacity:0; animation:fade-drop 1.1s cubic-bezier(.22,1,.36,1) .15s forwards;
}

/* glow wrapper — purple bloom behind the logo */
.logo-wrap {
  position:relative;
  width:min(400px, 80vw);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:clamp(20px,3.2vh,36px); /* more gap so title doesn't stick */
}
/* purple radial glow layer behind logo */
.logo-glow {
  position:absolute;
  inset:10% 5%;
  border-radius:50%;
  background:radial-gradient(ellipse 85% 65% at 50% 50%,
    rgba(150,55,255,.50) 0%,
    rgba(120,35,235,.28) 40%,
    rgba(90,15,210,.10) 65%,
    transparent 80%);
  filter:blur(22px);
  z-index:0;
  pointer-events:none;
  animation:logo-glow-pulse 3.5s ease-in-out infinite;
}
@keyframes logo-glow-pulse {
  0%,100% { opacity:.75; transform:scale(1); }
  50%      { opacity:1;   transform:scale(1.08); }
}
.logo-img {
  position:relative; z-index:1;
  width:100%; height:auto; display:block;
  mix-blend-mode:screen;
  filter:brightness(1.15) contrast(1.08);
  pointer-events:none; user-select:none; -webkit-user-drag:none;
}

.hero-heading {
  font-family:'Cinzel',serif;
  width:min(400px, 80vw);
  font-size:clamp(28px,6.8vw,54px);
  font-weight:600; letter-spacing:.05em; line-height:1.18;
  color:rgba(230,215,255,.96);
  text-shadow:0 0 60px rgba(130,60,255,.35),0 2px 20px rgba(0,0,0,.5);
}
/* title-main — prevents "Devon ke Dev" from ever wrapping */
.title-main { display:block; white-space:nowrap; }

.hero-heading em {
  display:block; font-style:italic; font-weight:300;
  font-size:1.15em; color:rgba(210,190,255,.78);
  letter-spacing:.03em; margin-top:4px;
}

/* ── SECTION 2: Divider (above notes) + Notes ── */
.sec-mid {
  display:flex; flex-direction:column; align-items:center;
  opacity:0; animation:fade-rise 1.2s cubic-bezier(.22,1,.36,1) .55s forwards;
}

/* divider sits right above notes */
.divider-top {
  width:56px; height:1px;
  background:linear-gradient(90deg,transparent,rgba(160,100,255,.72),transparent);
  margin-bottom:clamp(14px,2.2vh,24px);
}

.notes-text {
  font-family:'Cormorant Garamond',serif;
  width:min(460px, 84vw);
  font-size:clamp(14.5px,1.9vw,18px);
  font-weight:400; line-height:1.92;
  color:rgba(182,162,232,.68);
  letter-spacing:.015em;
}
.notes-text .accent { color:rgba(215,195,255,.92); font-style:italic; }

/* ── SECTION 3: Divider + Mantra ── */
.sec-bot {
  display:flex; flex-direction:column; align-items:center; gap:0;
  margin-top:auto;
  opacity:0; animation:fade-rise 1.2s cubic-bezier(.22,1,.36,1) .92s forwards;
}

.divider-bot {
  width:72px; height:1px;
  background:linear-gradient(90deg,transparent,rgba(140,80,255,.50),transparent);
  margin-bottom:clamp(16px,2.6vh,28px);
}

.om-symbol {
  font-family:'Noto Serif Devanagari',serif;
  font-size:clamp(26px,4.8vw,40px);
  font-weight:400;
  color:rgba(220,200,255,.92);
  text-shadow:
    0 0 12px rgba(180,100,255,1),
    0 0 28px rgba(150,60,255,.90),
    0 0 55px rgba(120,40,240,.70),
    0 0 90px rgba(100,20,220,.50),
    0 0 140px rgba(80,0,200,.30);
  letter-spacing:.06em; line-height:1;
  margin-bottom:clamp(8px,1.2vh,14px);
}

.mantra-text {
  font-family:'Cinzel',serif;
  font-size:clamp(9.5px,1.5vw,12px);
  font-weight:400;
  color:rgba(190,165,240,.52);
  letter-spacing:.22em;
  text-transform:uppercase;
  text-shadow:0 0 18px rgba(140,70,255,.40);
}



/* ═══════════════════════════════
   KEYFRAMES
═══════════════════════════════ */
@keyframes ndrift1 {
  0%{transform:translate(0,0) scale(1)} 33%{transform:translate(4vw,3vh) scale(1.05)}
  66%{transform:translate(-2vw,5vh) scale(.97)} 100%{transform:translate(0,0) scale(1)}
}
@keyframes ndrift2 {
  0%{transform:translate(0,0) scale(1)} 40%{transform:translate(-5vw,-4vh) scale(1.06)}
  70%{transform:translate(3vw,2vh) scale(.96)} 100%{transform:translate(0,0) scale(1)}
}
@keyframes ndrift3 {
  0%{transform:translate(0,0) scale(1)} 30%{transform:translate(3vw,-3vh) scale(1.04)}
  60%{transform:translate(-4vw,4vh) scale(1.02)} 100%{transform:translate(0,0) scale(1)}
}
@keyframes lumipulse { 0%,100%{opacity:.7} 50%{opacity:1} }
@keyframes fade-rise { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
@keyframes fade-drop { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:translateY(0)} }



/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
/* ═══════════════════════════════
   DESKTOP — fit one screen, evenly spaced
═══════════════════════════════ */
@media (min-width:769px) {

  .phase1-btn-wrap,
  .btn-wrap { width: var(--nav-btn-size); height: var(--nav-btn-size); }

  /* Lock to one screen */
  .page-content {
    height:100svh;
    overflow:hidden;
    padding-top:calc(68px + env(safe-area-inset-top));
    padding-bottom:calc(36px + env(safe-area-inset-bottom));
    /* Distribute the 3 sections evenly — no random gap */
    justify-content:space-evenly;
  }

  /* sec-top: remove bottom margin, space-evenly handles spacing */
  .sec-top { margin-bottom:0; }

  /* sec-bot: remove the auto-push, space-evenly handles it */
  .sec-bot { margin-top:0; }

  /* Logo — smaller so it doesn't dominate */
  .logo-wrap {
    width:min(200px,17vw);
    margin-bottom:clamp(12px,1.6vh,20px);
  }

  /* Heading — one line, comfortable size */
  .hero-heading {
    width:auto;          /* no width cap — let nowrap breathe */
    white-space:nowrap;  /* Devon ke Dev stays on one line */
    font-size:clamp(30px,3vw,42px);
  }

  /* Notes — readable, not cramped */
  .notes-text {
    width:min(520px,60vw);
    font-size:clamp(14.5px,1.18vw,16.5px);
    line-height:1.82;
  }

  /* Subtle divider margin tweaks */
  .divider-top { margin-bottom:clamp(12px,1.6vh,20px); }
  .divider-bot { margin-bottom:clamp(12px,1.6vh,18px); }

  /* OM symbol */
  .om-symbol {
    font-size:clamp(24px,2.8vw,36px);
    margin-bottom:clamp(6px,0.8vh,12px);
  }
}


@media (max-width:480px) {
  :root { --nav-btn-size: 42px; }
  .btn-wrap { width:var(--nav-btn-size); height:var(--nav-btn-size); }
  .phase1-btn-wrap { width:var(--nav-btn-size); height:var(--nav-btn-size); }
  .phase1-btn-wrap.left  { top:calc(20px + env(safe-area-inset-top)); left:24px; }
  .phase1-btn-wrap.right { top:calc(20px + env(safe-area-inset-top)); right:24px; }
  .btn-wrap.left  { top:calc(14px + env(safe-area-inset-top)); left:14px; }
  .btn-wrap.right { top:calc(14px + env(safe-area-inset-top)); right:14px; }
  #infoBtnTop, #phase1InfoBtn    { font-size:20px; }
  #langToggleTop, #phase1LangToggle { font-size:10px; }

  .page-content {
    padding: calc(72px + env(safe-area-inset-top)) 20px
             calc(36px + env(safe-area-inset-bottom));
  }

  /* logo & title same width — aligned */
  .logo-wrap,
  .hero-heading { width:min(290px, 82vw); }

  /* title size on mobile */
  .hero-heading { font-size:clamp(26px,8vw,42px); }

  /* notes a little wider for readability */
  .notes-text { width:min(340px, 88vw); font-size:clamp(13.5px,3.8vw,16.5px); }

  .om-symbol   { font-size:clamp(22px,5.5vw,32px); }
  .mantra-text { font-size:clamp(9px,2.5vw,11px); letter-spacing:.18em; }
}

@media (max-width:360px) {
  .logo-wrap,
  .hero-heading { width:82vw; }
  .hero-heading  { font-size:clamp(23px,7.5vw,36px); }
  .notes-text    { width:90vw; }
}


/* ═══════════════════════════════
   SITE FOOTER
═══════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 56px 24px calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(139,92,246,.12);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: min(280px, 70%); height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(155,89,247,.55) 30%,
    rgba(210,180,255,.80) 50%,
    rgba(155,89,247,.55) 70%,
    transparent
  );
}

.footer-tilak {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.footer-tilak-line {
  width: 36px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155,89,247,.45));
}

.footer-tilak-line.r {
  transform: scaleX(-1);
}

.footer-tilak-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,181,253,.90) 0%, rgba(139,92,246,.60) 100%);
  box-shadow: 0 0 8px rgba(155,89,247,.60);
}

.footer-copyright {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(196,181,253,.55);
  margin-bottom: 20px;
}

.footer-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(14px, 3.5vw, 17px);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(210,195,255,.60);
  letter-spacing: .015em;
  max-width: 480px;
  margin: 0 auto 24px;
}

.footer-mantra {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-om {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: clamp(13px, 3vw, 15px);
  font-weight: 400;
  color: rgba(220,200,255,.65);
  letter-spacing: .04em;
  text-shadow:
    0 0 10px rgba(155,89,247,.55),
    0 0 28px rgba(120,40,240,.35);
}

.footer-sep {
  color: rgba(155,89,247,.45);
  font-size: 12px;
}

.footer-hhm {
  font-family: 'Cinzel', serif;
  font-size: clamp(10px, 2.5vw, 11.5px);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(196,181,253,.50);
  text-shadow: 0 0 18px rgba(155,89,247,.35);
}

@media (max-width: 480px) {
  .site-footer { padding: 44px 20px calc(32px + env(safe-area-inset-bottom)); }
  .footer-tilak-line { width: 26px; }
}



/* ═══════════════════════════════════════
   SCROLL HINT — Phase 1 bottom
═══════════════════════════════════════ */
.scroll-hint {
  position: absolute;
  bottom: calc(22px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
  opacity: 0;
  animation: scroll-hint-appear 1s ease .8s forwards;
  pointer-events: none;
}
@keyframes scroll-hint-appear {
  to { opacity: 1; }
}
.scroll-hint-track {
  width: 2px;
  height: 28px;
  border-radius: 999px;
  background: rgba(155,89,247,.18);
  position: relative;
  overflow: hidden;
}
.scroll-hint-dot {
  width: 2px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(196,181,253,.90), rgba(139,92,246,.55));
  position: absolute;
  top: 0;
  animation: scroll-dot-fall 1.6s cubic-bezier(.4,0,.6,1) 1s infinite;
  box-shadow: 0 0 6px rgba(155,89,247,.70);
}
@keyframes scroll-dot-fall {
  0%   { top: -10px; opacity: 0; }
  15%  { opacity: 1; }
  80%  { opacity: .6; }
  100% { top: 28px;  opacity: 0; }
}
.scroll-hint-arrow {
  color: rgba(196,181,253,.42);
  display: block;
  animation: arrow-bounce 1.6s ease-in-out 1s infinite;
}
@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); opacity: .42; }
  50%       { transform: translateY(4px); opacity: .70; }
}

/* ═══════════════════════════════════════
   EPISODE COUNT BADGE
═══════════════════════════════════════ */
.ep-count {
  font-family: var(--fd);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .18em;
  color: rgba(155,89,247,.55);
  vertical-align: middle;
  margin-left: 4px;
}

/* ═══════════════════════════════════════
   EMPTY SEARCH STATE
═══════════════════════════════════════ */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeUp .6s cubic-bezier(.16,1,.3,1) both;
}
.empty-om {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 42px;
  color: rgba(155,89,247,.40);
  text-shadow: 0 0 24px rgba(155,89,247,.30);
  line-height: 1;
  animation: empty-pulse 3s ease-in-out infinite;
}
@keyframes empty-pulse {
  0%, 100% { opacity: .40; }
  50%       { opacity: .70; }
}
.empty-title {
  font-family: var(--fd);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: rgba(196,181,253,.55);
}
.empty-sub {
  font-family: var(--fc);
  font-size: 14px;
  font-style: italic;
  color: rgba(180,160,230,.36);
  letter-spacing: .02em;
}

/* ═══════════════════════════════════════
   COMING SOON CARD
═══════════════════════════════════════ */
.card-coming-soon .episode-card {
  opacity: 1 !important;
  transform: none !important;
  background: linear-gradient(180deg,
    rgba(16,8,42,.92) 0%,
    rgba(7,5,22,.96) 100%
  );
  border-color: rgba(155,89,247,.12);
}
.coming-soon-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 24px;
  gap: 8px;
  min-height: 120px;
}
.cs-om {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 32px;
  color: rgba(155,89,247,.38);
  text-shadow: 0 0 20px rgba(155,89,247,.25);
  line-height: 1;
  animation: empty-pulse 3.5s ease-in-out infinite;
}
.cs-label {
  font-family: var(--fd);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: rgba(196,181,253,.44);
}
.cs-sub {
  font-family: var(--fc);
  font-style: italic;
  font-size: 12.5px;
  color: rgba(180,160,230,.28);
  letter-spacing: .02em;
}

/* ═══════════════════════════════════════
   TOAST NOTIFICATION
═══════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: calc(28px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 12px;
  border-radius: 999px;
  border: 1px solid rgba(167,139,250,.22);
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(109,40,217,.28) 0%, transparent 65%),
    linear-gradient(170deg, rgba(22,16,50,.97) 0%, rgba(8,6,18,.98) 100%);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 0 0 1px rgba(109,40,217,.10),
    0 8px 28px rgba(0,0,0,.55),
    0 0 32px rgba(109,40,217,.14),
    inset 0 1px 0 rgba(255,255,255,.06);
  opacity: 0;
  transform: translateY(14px) scale(.94);
  transition:
    opacity .30s cubic-bezier(.22,1,.36,1),
    transform .30s cubic-bezier(.34,1.52,.64,1);
  white-space: nowrap;
}
.toast.toast-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.toast-icon {
  font-size: 9px;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(201,151,58,.70);
}
.toast-msg {
  font-family: var(--fd);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .14em;
  color: rgba(210,195,255,.82);
  text-transform: uppercase;
}
.toast-msg strong {
  color: rgba(232,201,122,.90);
  font-weight: 700;
}

/* ═══════════════════════════════
   PHASE 2 TOGGLE / MERGE OVERRIDES
═══════════════════════════════ */
.floating-toolbar {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-50%, -22px, 0) scale(.95);
  animation: none !important;
  transition: opacity .28s ease, visibility .28s ease, transform .28s ease;
  will-change: transform, opacity;
}

.floating-toolbar.show-toolbar {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0) scale(1);
}
