/* ─────────────────────────────────────────────────────────────────────────────
   Boundless Fiction — homepage design system (v3)
   "Night Shelf": violet night sky, a 3D-tilted wall of real covers drifting
   past like a bookshelf at dusk, a white paper roadmap that snakes through
   five stops, Bengali serif as first-class identity.
   Used by index.html ONLY — secondary pages keep the legacy style.css.
   ──────────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #0b0914;
  --surface: #14111f;
  --surface-2: #1b1729;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --violet: #7b5cf0;
  --violet-deep: #6344d4;
  --glow: #ba9eff;
  --live: #2bd99f;
  --amber: #f0b35c;
  --white: #ffffff;
  --text: #f4f1fc;
  --dim: #c9c1e0;
  --mute: #8b83a6;
  /* light "paper" card (roadmap) */
  --paper: #f7f5fe;
  --paper-2: #ffffff;
  --ink: #191327;
  --ink-dim: #5b5472;
  --display: "Unbounded", "Albert Sans", sans-serif;
  --body: "Albert Sans", "Segoe UI", sans-serif;
  --bengali: "Noto Serif Bengali", serif;
  --radius: 18px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain — one fixed layer, unifies every section */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.045;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--violet); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--violet), var(--violet-deep));
  border-radius: 8px;
  border: 2px solid var(--bg);
}

a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible, .tab:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 6px;
}

img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; position: relative; z-index: 2; }

.bn-f { font-family: var(--bengali); }

/* reading progress hairline (injected by JS) */
#progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 90;
  background: linear-gradient(90deg, var(--violet), var(--glow) 60%, var(--amber));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* flowing petals — quiet, brand-tinted sakura drift over the whole page */
.petals {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.petals i {
  position: absolute;
  top: -6vh;
  width: calc(15px * var(--s, 1));
  height: calc(15px * var(--s, 1));
}
.petals i::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 150% 0 150% 0;
  background: linear-gradient(135deg, rgba(186, 158, 255, 0.55), rgba(123, 92, 240, 0.22));
}
.petals i:nth-child(3n)::before {
  border-radius: 0 150% 0 150%;
  background: linear-gradient(135deg, rgba(207, 89, 200, 0.45), rgba(123, 92, 240, 0.2));
}
.petals i:nth-child(5n)::before {
  background: linear-gradient(135deg, rgba(240, 179, 92, 0.38), rgba(207, 89, 200, 0.16));
}
@media (prefers-reduced-motion: no-preference) {
  .petals i { animation: petalFall var(--t, 22s) linear var(--d, 0s) infinite; }
  .petals i::before { animation: petalFlutter 3.6s ease-in-out infinite alternate; }
  @keyframes petalFall {
    0%   { transform: translate3d(0, -6vh, 0); }
    25%  { transform: translate3d(4vw, 22vh, 0); }
    50%  { transform: translate3d(-3vw, 50vh, 0); }
    75%  { transform: translate3d(5vw, 78vh, 0); }
    100% { transform: translate3d(-1vw, 110vh, 0); }
  }
  @keyframes petalFlutter {
    from { transform: rotateZ(-35deg) rotateY(0deg); }
    to   { transform: rotateZ(55deg) rotateY(180deg); }
  }
}
@media (max-width: 640px) {
  .petals i:nth-child(2n) { display: none; }
}

/* trailing cursor glow — an accent ring, the native cursor stays (injected by JS) */
#cursor-glow {
  position: fixed;
  left: -18px; top: -18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(186, 158, 255, 0.45);
  background: radial-gradient(circle, rgba(123, 92, 240, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 95;
  opacity: 0;
  will-change: transform;
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease, border-color 0.25s ease, opacity 0.35s ease;
}
#cursor-glow.live { opacity: 1; }
#cursor-glow.on {
  width: 54px; height: 54px;
  margin: -9px 0 0 -9px;
  border-color: rgba(186, 158, 255, 0.85);
}

/* section dot navigation — right edge, labels appear on hover */
.dot-nav {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dot-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 0;
}
.dot-nav .dn-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.dot-nav a:hover .dn-dot { background: rgba(186, 158, 255, 0.6); transform: scale(1.25); }
.dot-nav a.act .dn-dot {
  background: var(--violet);
  border-color: var(--glow);
  transform: scale(1.35);
  box-shadow: 0 0 12px rgba(123, 92, 240, 0.9);
}
.dot-nav .dn-label {
  position: absolute;
  right: 22px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.dot-nav a:hover .dn-label, .dot-nav a.act .dn-label { opacity: 1; transform: none; }
.dot-nav a.act .dn-label { color: var(--glow); }
@media (max-width: 1180px) { .dot-nav { display: none; } }

/* ── Header ────────────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 9, 20, 0.72);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
header.scrolled {
  background: rgba(11, 9, 20, 0.9);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 66px;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: var(--white);
}
.logo img.mark {
  width: 32px; height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 3px 12px rgba(123, 92, 240, 0.55));
  transition: transform 0.4s var(--ease-out);
}
.logo:hover img.mark { transform: rotate(-8deg) scale(1.08); }
.logo em { font-style: normal; color: var(--glow); }

.nav-right { display: flex; align-items: center; gap: 10px; order: 3; }

/* Language pill — always visible, thumb-sized */
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--white);
  min-width: 52px;
  height: 38px;
  padding: 0 14px;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(123, 92, 240, 0.3), rgba(123, 92, 240, 0.08));
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.lang-btn:hover, .lang-btn:focus-visible {
  border-color: rgba(186, 158, 255, 0.55);
  box-shadow: 0 0 18px rgba(123, 92, 240, 0.4);
}
.lang-btn:active { transform: scale(0.96); }
.lang-btn svg { flex: none; opacity: 0.85; }

nav.links { display: flex; gap: 24px; font-size: 0.88rem; font-weight: 600; }
nav.links a { color: var(--dim); position: relative; padding: 6px 0; transition: color 0.22s; }
nav.links a:hover, nav.links a[aria-current] { color: var(--white); }
nav.links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--glow));
  transition: right 0.25s ease;
}
nav.links a:hover::after, nav.links a[aria-current]::after { right: 0; }

.menu-toggle { display: none; }
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 11px;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.menu-btn span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle:checked ~ .nav-right .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle:checked ~ .nav-right .menu-btn span:nth-child(2) { opacity: 0; }
.menu-toggle:checked ~ .nav-right .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(48px, 8vh, 88px) 0 clamp(44px, 7vh, 80px);
  overflow: hidden;
  min-height: clamp(540px, 78vh, 760px);
  display: flex;
  align-items: center;
}
.hero > .wrap { width: 100%; }

/* optional generated video loop sits behind the sky */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  pointer-events: none;
}

/* Ambient motion sky — video-like, zero bytes */
.sky { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.blob.b1 {
  width: 640px; height: 640px;
  left: -180px; top: -220px;
  background: radial-gradient(circle, rgba(123, 92, 240, 0.4), transparent 65%);
}
.blob.b2 {
  width: 720px; height: 720px;
  right: -260px; top: 12%;
  background: radial-gradient(circle, rgba(99, 68, 212, 0.34), rgba(240, 179, 92, 0.07) 60%, transparent 72%);
}
.blob.b3 {
  width: 540px; height: 540px;
  left: 30%; bottom: -300px;
  background: radial-gradient(circle, rgba(186, 158, 255, 0.22), transparent 65%);
}
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 28%, rgba(255,255,255,0.9), transparent 55%),
    radial-gradient(1.2px 1.2px at 34% 12%, rgba(255,255,255,0.7), transparent 55%),
    radial-gradient(1.6px 1.6px at 58% 34%, rgba(255,255,255,0.8), transparent 55%),
    radial-gradient(1.1px 1.1px at 76% 18%, rgba(255,255,255,0.6), transparent 55%),
    radial-gradient(1.5px 1.5px at 88% 42%, rgba(255,255,255,0.85), transparent 55%),
    radial-gradient(1.2px 1.2px at 22% 62%, rgba(255,255,255,0.7), transparent 55%),
    radial-gradient(1.3px 1.3px at 68% 70%, rgba(255,255,255,0.75), transparent 55%),
    radial-gradient(1.1px 1.1px at 44% 86%, rgba(255,255,255,0.6), transparent 55%);
}
.stars.s2 {
  background-image:
    radial-gradient(1.2px 1.2px at 8% 48%, rgba(186,158,255,0.8), transparent 55%),
    radial-gradient(1.4px 1.4px at 28% 82%, rgba(255,255,255,0.7), transparent 55%),
    radial-gradient(1.1px 1.1px at 52% 8%, rgba(186,158,255,0.7), transparent 55%),
    radial-gradient(1.5px 1.5px at 82% 78%, rgba(255,255,255,0.8), transparent 55%),
    radial-gradient(1.2px 1.2px at 94% 12%, rgba(186,158,255,0.75), transparent 55%);
}
/* the occasional shooting star — stories are stars here */
.shoot {
  position: absolute;
  width: 96px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9));
  opacity: 0;
  transform: rotate(-32deg);
}
.shoot.sh1 { top: 16%; left: 64%; }
.shoot.sh2 { top: 7%; left: 26%; }
@media (prefers-reduced-motion: no-preference) {
  .blob.b1 { animation: drift1 44s ease-in-out infinite alternate; }
  .blob.b2 { animation: drift2 56s ease-in-out infinite alternate; }
  .blob.b3 { animation: drift1 64s ease-in-out infinite alternate-reverse; }
  .stars.s1 { animation: twinkle 5.5s ease-in-out infinite alternate; }
  .stars.s2 { animation: twinkle 7.5s ease-in-out infinite alternate-reverse; }
  .shoot.sh1 { animation: shoot 11s ease-in 3.5s infinite; }
  .shoot.sh2 { animation: shoot 17s ease-in 9s infinite; }
  @keyframes drift1 {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(90px, 60px, 0) scale(1.12); }
  }
  @keyframes drift2 {
    from { transform: translate3d(0, 0, 0) scale(1.06); }
    to   { transform: translate3d(-110px, -50px, 0) scale(0.96); }
  }
  @keyframes twinkle {
    from { opacity: 0.35; }
    to   { opacity: 1; }
  }
  @keyframes shoot {
    0%    { transform: translate3d(0, 0, 0) rotate(-32deg); opacity: 0; }
    1.5%  { opacity: 0.9; }
    6%    { transform: translate3d(-300px, 190px, 0) rotate(-32deg); opacity: 0; }
    100%  { transform: translate3d(-300px, 190px, 0) rotate(-32deg); opacity: 0; }
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 34rem;
}
/* giant outlined Bengali word behind the copy — the subject, literally */
.hero-glyph {
  position: absolute;
  left: -4%;
  top: 48%;
  transform: translateY(-50%) rotate(-7deg);
  font-weight: 800;
  font-size: clamp(10rem, 24vw, 20rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(186, 158, 255, 0.13);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--live);
  padding: 9px 16px;
  border: 1px solid rgba(43, 217, 159, 0.35);
  border-radius: 100px;
  background: rgba(43, 217, 159, 0.08);
  margin-bottom: 24px;
}
.live-badge .dot {
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--live);
}
.live-badge .dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--live);
  opacity: 0.8;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  0%   { transform: scale(0.6); opacity: 0.8; }
  75%, 100% { transform: scale(2.1); opacity: 0; }
}

.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.9rem, 4.3vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 14px;
  text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--glow) 0%, var(--violet) 35%, #ffffff 60%, var(--glow) 85%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .grad { animation: shimmer 7s ease-in-out infinite; }
  @keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
  }
}
.bn-display {
  font-family: var(--bengali);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  color: var(--glow);
  margin-bottom: 14px;
}
.bn-display.big { font-size: clamp(1.3rem, 3.4vw, 1.9rem); margin-bottom: 8px; }
.lede {
  color: var(--dim);
  font-size: clamp(0.98rem, 2vw, 1.1rem);
  max-width: 34rem;
  margin: 0 0 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

/* Google Play badge button — glossy, magnetic, real link */
.btn-play {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px 13px 18px;
  border-radius: 14px;
  background: linear-gradient(160deg, #1b1727, #0d0a16);
  border: 1px solid rgba(186, 158, 255, 0.4);
  box-shadow: 0 10px 34px rgba(123, 92, 240, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  transition: transform 0.35s var(--ease-out), box-shadow 0.22s ease, border-color 0.22s;
}
.btn-play:hover, .btn-play:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 44px rgba(123, 92, 240, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-play:active { transform: scale(0.97); }
.btn-play::after {
  content: "";
  position: absolute;
  top: -40%; bottom: -40%;
  width: 42%;
  left: -60%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-18deg);
  animation: sheen 5.5s ease-in-out infinite;
}
@keyframes sheen {
  0%, 55% { left: -60%; }
  75%, 100% { left: 130%; }
}
.btn-play .lines { display: flex; flex-direction: column; line-height: 1.18; text-align: left; }
.btn-play .small { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; color: var(--dim); text-transform: uppercase; }
.btn-play .big { font-family: var(--display); font-weight: 700; font-size: 1.02rem; color: var(--white); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  transition: background 0.2s, border-color 0.2s, transform 0.35s var(--ease-out);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:active { transform: scale(0.97); }

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--mute);
  font-weight: 600;
}

/* scroll cue — a quiet "there's more" at the hero's feet */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}
.scroll-cue.off { opacity: 0; }
.scroll-cue .sc-track {
  position: relative;
  width: 20px; height: 32px;
  border: 1.5px solid rgba(186, 158, 255, 0.45);
  border-radius: 12px;
}
.scroll-cue .sc-dot {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--glow);
}
.scroll-cue .sc-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue .sc-dot { animation: cueDrop 1.8s ease-in-out infinite; }
  @keyframes cueDrop {
    0%   { transform: translateY(0); opacity: 1; }
    70%  { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
  }
}
@media (max-width: 880px) { .scroll-cue { display: none; } }
.hero-note .dot {
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 10px rgba(43, 217, 159, 0.8);
}

/* ── The night shelf — the whole right side of the screen, moving ──────── */
.shelf {
  --tilt-x: 10deg;
  --tilt-y: -16deg;
  --tilt-z: 3deg;
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: clamp(320px, calc(100vw - 37rem - 70px), 820px);
  z-index: 1;
  /* fade the wall's left edge into the night; it bleeds off-screen right */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 36%);
  mask-image: linear-gradient(90deg, transparent, #000 36%);
}
/* violet floor glow behind the wall */
.shelf::before {
  content: "";
  position: absolute;
  left: 55%; top: 52%;
  width: 120%;
  height: 70%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(123, 92, 240, 0.26), transparent 72%);
  filter: blur(30px);
}
.shelf-tilt {
  position: absolute;
  left: 55%; top: 50%;
  width: 116%;
  display: flex;
  gap: clamp(14px, 1.6vw, 20px);
  transform:
    translate(-50%, calc(-50% + var(--sy, 0px)))
    perspective(1200px)
    rotateX(calc(var(--tilt-x) + var(--py, 0) * -2.5deg))
    rotateY(calc(var(--tilt-y) + var(--px, 0) * 2.5deg))
    rotateZ(var(--tilt-z));
}
.lane { flex: 1; min-width: 0; }
/* stagger the lanes so the wall reads like a real shelf, not a grid */
.lane:nth-child(1) { margin-top: -36px; }
.lane:nth-child(3) { margin-top: -84px; }
.lane-track { will-change: transform; }
/* the loop runs on three identical sets stepping one set (-1/3) per cycle —
   with equal 4-card lanes this keeps every phase of the window painted.
   JS builds the two clone sets, so the animation is gated to .js. */
@media (prefers-reduced-motion: no-preference) {
  .js .lane-track { animation: laneUp var(--t, 50s) linear infinite; }
  .js .lane.rev .lane-track { animation-direction: reverse; }
  .lane:hover .lane-track { animation-play-state: paused; }
  @keyframes laneUp { to { transform: translateY(-33.333%); } }
}

.shelf-card {
  display: block;
  position: relative;
  margin-bottom: clamp(14px, 1.6vw, 20px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.8);
  background: var(--surface);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
}
.shelf-card img { display: block; width: 100%; height: auto; }
.shelf-card .plate {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  padding: 30px 12px 9px;
  background: linear-gradient(180deg, rgba(8, 6, 16, 0), rgba(8, 6, 16, 0.92));
  line-height: 1.4;
}
.shelf-card .plate strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shelf-card .plate em {
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--glow);
}
.shelf-card:hover, .shelf-card:focus-visible {
  transform: scale(1.05);
  border-color: rgba(186, 158, 255, 0.65);
  box-shadow: 0 30px 60px -14px rgba(0, 0, 0, 0.9), 0 0 40px rgba(123, 92, 240, 0.45);
  z-index: 2;
}

/* the invitation card — one slot on the shelf belongs to the reader */
.shelf-cta {
  aspect-ratio: 3 / 4;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(186, 158, 255, 0.55);
  background: radial-gradient(120% 90% at 50% 0%, rgba(123, 92, 240, 0.35), rgba(17, 14, 27, 0.94) 72%);
}
.shelf-cta .cta-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 16px 14px;
}
.shelf-cta .cta-face img {
  width: 46px; height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(123, 92, 240, 0.8));
}
.shelf-cta .cta-face strong {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--white);
}
.shelf-cta .cta-face em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--dim);
  line-height: 1.7;
}

/* soft night at the top and bottom edges so cards emerge from the dark */
.shelf-fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 9, 20, 0.6), rgba(11, 9, 20, 0) 16%),
    linear-gradient(0deg, rgba(11, 9, 20, 0.7), rgba(11, 9, 20, 0) 20%);
}

/* ── Marquee strip ─────────────────────────────────────────────────────── */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(20, 17, 31, 0.75);
  overflow: hidden;
  padding: 13px 0;
}
.strip .track {
  display: flex;
  gap: 30px;
  width: max-content;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--dim);
}
.strip .bn-f { font-weight: 700; color: var(--glow); }
.strip .star { color: var(--amber); }
@media (prefers-reduced-motion: no-preference) {
  .strip .track { animation: marquee 30s linear infinite; }
  .strip:hover .track { animation-play-state: paused; }
  @keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
}

/* ── Sections shared ───────────────────────────────────────────────────── */
.section { padding: clamp(56px, 9vh, 104px) 0; }
.kicker {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 14px;
}
.section h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.6vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 42rem;
  margin-bottom: 14px;
}
.section-lede { color: var(--ink-dim); max-width: 36rem; margin-bottom: 34px; }
.bn-echo {
  display: inline-block;
  font-family: var(--bengali);
  font-weight: 600;
  font-size: 0.86rem;
  color: rgba(123, 92, 240, 0.85);
  margin-top: 10px;
}

/* shared cursor spotlight for cards (position fed by JS via --mx/--my) */
.why-card::before, .panel::before, .step::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(186, 158, 255, 0.14), transparent 65%);
}
.why-card:hover::before, .panel:hover::before, .step:hover::before { opacity: 1; }
.step::before {
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(123, 92, 240, 0.1), transparent 65%);
}

/* ── Why Boundless Fiction ─────────────────────────────────────────────── */
.why {
  position: relative;
  background:
    radial-gradient(760px 380px at 15% 0%, rgba(123, 92, 240, 0.14), transparent 65%),
    radial-gradient(600px 320px at 100% 100%, rgba(99, 68, 212, 0.12), transparent 65%);
  text-align: center;
}
.why .kicker { text-align: center; }
.why h2.bn-lead {
  font-family: var(--bengali);
  font-weight: 800;
  font-size: clamp(1.9rem, 5.6vw, 3.2rem);
  line-height: 1.35;
  color: var(--white);
  max-width: none;
  margin: 0 auto 10px;
}
.why-sub {
  color: var(--mute);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  margin-bottom: 44px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  text-align: left;
  max-width: 880px;
  margin: 0 auto 26px;
  perspective: 1100px;
}
.why-card {
  position: relative;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  backdrop-filter: blur(6px);
  transform: translateY(var(--lift, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s ease-out;
}
.why-card:hover {
  --lift: -4px;
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 18px 46px rgba(123, 92, 240, 0.2);
}
.why-card .w-ic {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 14px;
  border-radius: 14px;
  color: var(--glow);
  background: rgba(123, 92, 240, 0.16);
  border: 1px solid rgba(123, 92, 240, 0.35);
}
.why-card h3 {
  font-weight: 700;
  font-size: 1.14rem;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 8px;
}
.why-card p { font-size: 0.96rem; color: var(--dim); line-height: 1.85; }
.w-en {
  font-size: 0.82rem !important;
  color: var(--mute) !important;
  line-height: 1.6 !important;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  font-family: var(--body) !important;
}
.why-answer {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(30px, 5vw, 46px) clamp(22px, 5vw, 56px);
  border-radius: 24px;
  border: 1px solid rgba(186, 158, 255, 0.45);
  background:
    radial-gradient(420px 200px at 50% 0%, rgba(255, 255, 255, 0.1), transparent 70%),
    linear-gradient(150deg, rgba(123, 92, 240, 0.32), rgba(99, 68, 212, 0.16));
  box-shadow: 0 26px 70px rgba(123, 92, 240, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.why-answer .big {
  font-weight: 800;
  font-size: clamp(1.25rem, 3.2vw, 1.7rem);
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 10px;
}
.why-answer .big strong { color: var(--glow); }
.why-answer p.bn-f { color: var(--text); font-size: 1.02rem; line-height: 2; max-width: 620px; margin: 0 auto; }
.why-answer .w-en { border-top-color: rgba(255, 255, 255, 0.2); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── Roadmap — white paper, snake path ─────────────────────────────────── */
.roadmap { padding-top: 20px; }
.road-card {
  background:
    radial-gradient(circle at 1px 1px, rgba(123, 92, 240, 0.07) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(175deg, #ffffff, #f5f1ff 55%, #fdf5e9);
  color: var(--ink);
  border-radius: 30px;
  padding: clamp(34px, 6vw, 64px) clamp(20px, 5vw, 60px) clamp(44px, 6vw, 72px);
  box-shadow:
    0 40px 110px rgba(123, 92, 240, 0.28),
    0 6px 26px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
}
.road-card .kicker { color: var(--violet-deep); }
.road-card h2 { color: var(--ink); margin-left: auto; margin-right: auto; }
.road-card .section-lede { margin-left: auto; margin-right: auto; }

.tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 14px;
  border-radius: 100px;
  border: 1px solid rgba(123, 92, 240, 0.25);
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(25, 19, 39, 0.08);
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink-dim);
  min-height: 44px;
  padding: 10px 24px;
  border: none;
  border-radius: 100px;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, background 0.25s, box-shadow 0.25s;
}
.tab[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  box-shadow: 0 8px 26px rgba(123, 92, 240, 0.4);
}
.tab:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.tab .t-ic { flex: none; }

.track-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--violet-deep);
  margin: 10px 0 18px;
}
.js .track-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js .track[hidden] { display: none; }
.track + .track { margin-top: 46px; }
.js .track + .track { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .roadmap .track.tab-in { animation: panelIn 0.5s var(--ease-out) both; }
  @keyframes panelIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }
}

/* Snake layout: SVG path + absolutely-placed stops (desktop) */
.snake {
  position: relative;
  max-width: 860px;
  height: 1060px;
  margin: 18px auto 0;
  text-align: left;
}
.snake-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.snake-path .rail {
  fill: none;
  stroke: rgba(123, 92, 240, 0.16);
  stroke-width: 4px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.snake-path .flow {
  fill: none;
  /* stroke comes from the SVG gradient attribute (violet → magenta → amber) */
  stroke-width: 5px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 7px rgba(123, 92, 240, 0.45));
  /* JS drives dashoffset from scroll position — this smooths the steps */
  transition: stroke-dashoffset 0.25s linear;
}
/* no-JS / reduced-motion: path fully drawn */
html:not(.js) .snake-path .flow { stroke-dashoffset: 0; }

.stops { list-style: none; position: absolute; inset: 0; }
.stop { position: absolute; top: var(--y); left: 0; right: 0; height: 0; }
/* scroll-lit: each stop wakes up as the flow reaches it, dims when it
   leaves. Only the CARD fades — the node stays fully opaque so the
   road (and the phone fill line) always passes under it, never through. */
.js .roadmap .stop { --ns: 0.85; }
.js .roadmap .stop .step { opacity: 0.35; transition: opacity 0.5s ease, box-shadow 0.35s ease, border-color 0.45s ease; }
.js .roadmap .stop.lit { --ns: 1; }
.js .roadmap .stop.lit .step { opacity: 1; }
.js .roadmap .node { border-color: #ded8f0; color: #b3abcc; }
.js .roadmap .stop.lit .node {
  border-color: var(--nc, var(--violet));
  color: var(--nc, var(--violet-deep));
}
.node {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--nc, var(--violet-deep));
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--nc, var(--violet));
  box-shadow: 0 0 0 7px var(--paper), 0 10px 26px rgba(123, 92, 240, 0.4);
  transform: translate(-50%, -50%) scale(var(--ns, 1));
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s ease;
}
.stop.lit .node {
  box-shadow: 0 0 0 7px var(--paper), 0 14px 34px -6px var(--nc, var(--violet));
}
.stop.right .node { left: 78%; }
.stop.left  .node { left: 22%; }

.step {
  position: absolute;
  top: 0;
  transform: translateY(-50%);
  width: 52%;
  background: #ffffff;
  border: 1px solid rgba(25, 19, 39, 0.08);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 14px 40px rgba(25, 19, 39, 0.1);
  transition: box-shadow 0.35s ease, border-color 0.45s ease;
}
/* the step's accent arrives as a soft color wash, not a hard line */
.step::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(150deg, var(--ncs, rgba(123, 92, 240, 0.14)), rgba(255, 255, 255, 0) 55%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.stop.lit .step::after { opacity: 1; }
.stop.lit .step {
  border-color: var(--ncs, rgba(123, 92, 240, 0.25));
  box-shadow: 0 18px 46px rgba(25, 19, 39, 0.09), 0 14px 36px -10px var(--ncs, rgba(123, 92, 240, 0.3));
}
.stop.right .step { left: 4%; }
.stop.left  .step { left: 44%; }
.step:hover {
  border-color: var(--ncs, rgba(123, 92, 240, 0.35));
  box-shadow: 0 22px 56px rgba(123, 92, 240, 0.2);
}
.step strong { display: block; font-size: 1.04rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.step p { color: var(--ink-dim); font-size: 0.94rem; }

/* ── Feature panels ────────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; perspective: 1100px; }
.panels .section-lede { color: var(--dim); }
.panel {
  position: relative;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 26px 24px;
  overflow: hidden;
  transform: translateY(var(--lift, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s ease-out;
}
.panel::after {
  content: "";
  position: absolute;
  top: -60%; bottom: -60%;
  width: 40%;
  left: -70%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.panel:hover::after { left: 140%; }
.panel:hover {
  --lift: -4px;
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 18px 46px rgba(123, 92, 240, 0.2);
}
.panel .ic {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  color: var(--glow);
  background: rgba(123, 92, 240, 0.16);
  border: 1px solid rgba(123, 92, 240, 0.35);
}
.panel h3 { font-family: var(--display); font-weight: 700; font-size: 1.02rem; color: var(--white); margin-bottom: 10px; }
.panel p { color: var(--dim); font-size: 0.94rem; }
.in-link { color: var(--glow); font-weight: 700; white-space: nowrap; }
.in-link:hover { text-decoration: underline; }

/* ── Formats ───────────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.chip {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  padding: 11px 18px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.22s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
}
.chip:hover {
  transform: translateY(-3px) rotate(-1.5deg) scale(1.04);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 26px rgba(123, 92, 240, 0.25);
}
.chip.more { color: var(--glow); border-style: dashed; }
.globe-line { color: var(--dim); max-width: 38rem; }

/* ── CTA band ──────────────────────────────────────────────────────────── */
.cta-band { padding-top: 12px; }
.band {
  position: relative;
  text-align: center;
  padding: clamp(40px, 7vw, 72px) 24px;
  border-radius: 26px;
  border: 1px solid rgba(186, 158, 255, 0.35);
  background:
    radial-gradient(480px 240px at 50% 0%, rgba(123, 92, 240, 0.26), transparent 70%),
    linear-gradient(160deg, rgba(27, 23, 41, 0.96), rgba(13, 10, 22, 0.92));
  box-shadow: 0 30px 80px rgba(123, 92, 240, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
/* slow aurora drifting through the band */
.band::before, .band::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.band::before {
  left: -140px; top: -180px;
  background: radial-gradient(circle, rgba(123, 92, 240, 0.35), transparent 65%);
}
.band::after {
  right: -160px; bottom: -220px;
  background: radial-gradient(circle, rgba(240, 179, 92, 0.16), transparent 65%);
}
@media (prefers-reduced-motion: no-preference) {
  .band::before { animation: drift2 26s ease-in-out infinite alternate; }
  .band::after  { animation: drift1 32s ease-in-out infinite alternate-reverse; }
}
.band h2 { margin: 0 auto 10px; }
.band p { color: var(--dim); margin-bottom: 26px; }
.band .btn-play { margin: 0 auto; }
.band > * { position: relative; z-index: 1; }

/* ── Footer ────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  background: rgba(13, 10, 20, 0.92);
  padding: 34px 0 42px;
}
.foot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.socials { display: flex; gap: 10px; }
.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  color: var(--dim);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.18s;
}
.socials a:hover, .socials a:focus-visible {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 24px rgba(123, 92, 240, 0.35);
  transform: translateY(-2px);
}
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--mute);
}
.foot-bottom .links { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 600; }
.foot-bottom .links a { color: var(--dim); transition: color 0.2s; }
.foot-bottom .links a:hover { color: var(--white); }

/* ── Scroll reveals (JS + motion-ok only) ──────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js .rv {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    filter: blur(6px);
    transition:
      opacity 0.8s ease var(--d, 0s),
      transform 0.9s var(--ease-out) var(--d, 0s),
      filter 0.7s ease var(--d, 0s);
  }
  .js .rv.in { opacity: 1; transform: none; filter: none; }
}

/* ── Bangla mode typography ────────────────────────────────────────────── */
:root.lang-bn .lede,
:root.lang-bn .section-lede,
:root.lang-bn .step p,
:root.lang-bn .panel p,
:root.lang-bn .globe-line,
:root.lang-bn .band p,
:root.lang-bn .why-sub,
:root.lang-bn .hero-note,
:root.lang-bn nav.links a,
:root.lang-bn .foot-bottom .links a,
:root.lang-bn .step strong,
:root.lang-bn .panel h3,
:root.lang-bn .tab,
:root.lang-bn .btn-ghost {
  font-family: var(--bengali);
}
:root.lang-bn .hero h1,
:root.lang-bn .section h2,
:root.lang-bn .band h2 {
  font-family: var(--bengali);
  font-weight: 800;
  line-height: 1.35;
}
:root.lang-bn .lede, :root.lang-bn .step p, :root.lang-bn .panel p { line-height: 1.95; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  /* ── phone performance: cut the expensive paint work ─────────────────
     No backdrop blur (re-blurs every scroll frame), no film grain layer,
     no blur in reveals (per-frame re-raster), fewer sky layers, and the
     below-fold sections don't render until they're near. */
  header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11, 9, 20, 0.94); }
  body::after { display: none; }
  .js .rv { filter: none !important; }
  .blob.b3, .stars.s2 { display: none; }
  .why, .roadmap, .panels, .formats, .cta-band {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
  }

  /* compact single-row header — logo, language pill, hamburger, no wrap */
  .nav { flex-wrap: nowrap; height: 58px; gap: 8px; }
  .logo { font-size: 0.9rem; gap: 8px; min-width: 0; }
  .logo img.mark { width: 26px; height: 26px; }
  .nav-right { gap: 8px; flex: none; }
  .lang-btn { min-width: 0; height: 36px; padding: 0 11px; gap: 6px; font-size: 0.78rem; }
  .menu-btn { display: flex; width: 40px; height: 40px; padding: 10px; }

  nav.links {
    display: none;
    position: absolute;
    top: 58px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 10px 22px 18px;
    background: rgba(11, 9, 20, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(186, 158, 255, 0.22);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  }
  nav.links a {
    padding: 14px 2px 14px 12px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 2px solid transparent;
  }
  nav.links a:last-child { border-bottom: none; }
  /* the desktop underline animation reads wrong in a stacked list */
  nav.links a::after { display: none; }
  nav.links a[aria-current] {
    color: var(--glow);
    border-left-color: var(--violet);
    background: linear-gradient(90deg, rgba(123, 92, 240, 0.12), transparent 60%);
  }
  nav.links a.hide-sm { display: block; }
  .menu-toggle:checked ~ .links { display: flex; animation: menuDrop 0.22s ease both; }
  @keyframes menuDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
  }

  /* hero stacks: copy first, shelf below as a full-width window */
  .hero { text-align: center; display: block; min-height: 0; }
  .hero-glyph { display: none; }
  .hero-copy {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-note { justify-content: center; }
  .shelf {
    position: relative;
    top: auto; bottom: auto; right: auto;
    width: 100%;
    height: clamp(330px, 44vh, 430px);
    margin-top: 20px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 84%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 10%, #000 84%, transparent);
  }
  /* flat drift on phones — no perspective, so the GPU composites cheap
     2D layers instead of re-rasterizing a 3D scene */
  .shelf-tilt {
    width: 112%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-3deg);
  }
  .shelf::before { filter: none; opacity: 0.8; }
  .shelf-card { box-shadow: none; border-color: rgba(255, 255, 255, 0.12); }
  .lane:nth-child(1) { margin-top: -20px; }
  .lane:nth-child(3) { margin-top: -48px; }
}

/* Snake → simple vertical timeline on small screens */
@media (max-width: 760px) {
  .snake { height: auto; }
  .snake-path { display: none; }
  .stops {
    position: static;
    padding-left: 0;
  }
  /* dim rail + a vivid fill that grows with scroll, so you can see
     exactly how far along the road you are */
  .stops::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 10px; bottom: 10px;
    width: 3px;
    border-radius: 3px;
    background: rgba(123, 92, 240, 0.22);
  }
  .stops::after {
    content: "";
    position: absolute;
    left: 25px;
    top: 10px;
    width: 3px;
    height: clamp(0px, calc(var(--mpx, 0px) - 10px), calc(100% - 20px));
    border-radius: 3px;
    background: linear-gradient(180deg, var(--violet), #cf59c8, var(--amber));
    box-shadow: 0 0 12px rgba(123, 92, 240, 0.75);
    transition: height 0.2s linear;
  }
  .snake { position: relative; }
  .stop {
    position: relative;
    top: auto !important;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    height: auto;
    margin-bottom: 18px;
  }
  .stop:last-child { margin-bottom: 0; }
  .node {
    position: relative;
    left: auto !important;
    transform: scale(var(--ns, 1));
    box-shadow: 0 6px 18px rgba(123, 92, 240, 0.35);
  }
  .step {
    position: relative;
    transform: none;
    width: auto;
    left: auto !important;
  }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .shelf { height: clamp(300px, 40vh, 380px); }
  .shelf-tilt { width: 122%; gap: 12px; }
  .shelf-card { margin-bottom: 12px; }
  .shelf-card .plate { padding: 22px 8px 7px; }
  .shelf-card .plate strong { font-size: 0.68rem; }
  .shelf-card .plate em { font-size: 0.6rem; }
  .tabs { width: 100%; justify-content: center; }
  .tab { flex: 1; justify-content: center; padding: 10px 12px; }
  .foot-top, .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 430px) {
  .wrap { padding: 0 16px; }
  .logo { font-size: 0.82rem; gap: 7px; }
  .lang-btn { padding: 0 9px; }
  .lang-btn svg { display: none; }
  .shelf { height: 300px; }
  .btn-play, .btn-ghost { width: 100%; justify-content: center; }
  .strip .track { font-size: 0.72rem; }
  .road-card { border-radius: 22px; }
}

/* ── Reduced motion: kill everything animated ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
  .snake-path .flow { stroke-dashoffset: 0 !important; }
  .petals { display: none !important; }
}
