/* ─── DARSHAN · global atmosphere ─────────────────────────────────────── */
:root {
  --night:    #0a0a10;
  --night-2:  #11101a;
  --shade:    #1a1722;
  --violet:   #2d2438;
  --violet-2: #4a3d68;
  --aura:     #6a5a8a;
  --gold:     #c9a96a;
  --gold-2:   #d4b87a;
  --ink:      #ede6d4;
  --ink-mute: #b9b0a0;
  --whisper:  #6e6577;
  --line:     rgba(201, 169, 106, 0.18);
  --line-2:   rgba(237, 230, 212, 0.08);

  --serif:    "Cormorant Garamond", "Cormorant", "EB Garamond", serif;
  --display:  "Cormorant Garamond", "Cormorant", serif;
  --dev:      "Tiro Devanagari Hindi", "Cormorant Garamond", serif;
  --mono:     "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow: hidden; /* the experience controls its own scroll */
}
body {
  min-height: 100vh;
  cursor: none; /* we draw our own */
}

/* a faint radial wash behind everything */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(74, 61, 104, 0.35), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(201, 169, 106, 0.06), transparent 55%),
    var(--night);
  pointer-events: none;
  z-index: 0;
}

/* film grain — animated SVG noise overlay */
.grain {
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: 60;
  opacity: var(--grain-opacity, 0.22);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.92  0 0 0 0 0.85  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grainShift 1.4s steps(6) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -2%); }
  60%  { transform: translate(-2%, -3%); }
  80%  { transform: translate(3%, 2%); }
  100% { transform: translate(0,0); }
}

/* vignette */
.vignette {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 55;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.55) 100%);
}

/* cursor — a small breathing aura */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,106,0.95), rgba(201,169,106,0) 70%);
  pointer-events: none;
  z-index: 100;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  transition: width 0.4s ease, height 0.4s ease, opacity 0.5s ease;
}
.cursor.dot {
  width: 6px; height: 6px;
}
.cursor-halo {
  position: fixed;
  top: 0; left: 0;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106,90,138,0.16), rgba(106,90,138,0) 65%);
  pointer-events: none;
  z-index: 99;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  transition: opacity 0.6s ease;
}

/* drifting whispers */
.whispers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}
.whisper {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--whisper);
  opacity: 0;
  white-space: nowrap;
  animation: whisperDrift 22s ease-in-out forwards;
  text-shadow: 0 0 30px rgba(106,90,138,0.4);
}
@keyframes whisperDrift {
  0%   { opacity: 0; transform: translate(0, 8px); filter: blur(8px); }
  18%  { opacity: 0.7; filter: blur(0); }
  82%  { opacity: 0.7; filter: blur(0); transform: translate(0, -8px); }
  100% { opacity: 0; transform: translate(0, -20px); filter: blur(10px); }
}

/* ─── Top chrome — barely there ─────────────────────────────────────── */
.chrome {
  position: fixed;
  top: 28px; left: 36px; right: 36px;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px 20px;
  z-index: 80;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.chrome > * { pointer-events: auto; }
.chrome .left { display: flex; gap: 14px; align-items: baseline; }
.brand-home {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: inherit;
  text-align: left;
  transition: color 0.3s ease;
}
.brand-home:hover {
  color: var(--gold);
}
.chrome .sig {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink);
}
.chrome .sig .dev {
  font-family: var(--dev);
  margin-right: 8px;
  color: var(--gold);
}
.chrome .right {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-left: auto;
}
.scene-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10,10,16,0.44);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  overflow: hidden;
}
.chrome .right .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* sound toggle */
.sound-toggle {
  background: rgba(10,10,16,0.44);
  border: 1px solid var(--line);
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 999px;
  min-height: 36px;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.4s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sound-toggle:hover { border-color: var(--gold); color: var(--gold); }
.sound-toggle .wave {
  display: inline-flex; gap: 2px; align-items: flex-end;
  height: 10px;
}
.sound-toggle .wave i {
  width: 2px; background: currentColor;
  display: inline-block;
  animation: waveBar 1.4s ease-in-out infinite;
}
.sound-toggle .wave i:nth-child(1) { height: 30%; animation-delay: 0s; }
.sound-toggle .wave i:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.sound-toggle .wave i:nth-child(3) { height: 50%; animation-delay: 0.3s; }
.sound-toggle .wave i:nth-child(4) { height: 90%; animation-delay: 0.45s; }
.sound-toggle.off .wave i { animation: none; height: 10%; }

/* ─── Scenes ────────────────────────────────────────────────────────── */
.scene {
  position: fixed;
  inset: 0;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.6s cubic-bezier(0.4, 0.0, 0.2, 1),
              filter 1.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  filter: blur(20px) brightness(0.5);
}
.scene.active {
  opacity: 1;
  pointer-events: auto;
  filter: blur(0) brightness(1);
}

/* ─── Portal (Home) · multi-act guided scroll ──────────────────────── */
.portal-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.portal-scroll::-webkit-scrollbar { display: none; }

/* Scroll-revealed sections fade in from below */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Act I · HERO with deep parallax ─── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}

/* Layer 0: floating photos at varying depth */
.hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-floats .float {
  position: absolute;
  width: 22vw;
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d;
  transition: filter 0.4s ease;
}
.hero-floats .float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.75),
    0 0 0 1px var(--line-2);
}
.hero-floats .float-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse, rgba(106,90,138,0.25), transparent 60%);
  z-index: -1;
  pointer-events: none;
}
/* nudge specific floats to interesting shapes */
.float.fp-1 { aspect-ratio: 3 / 4; }
.float.fp-2 { aspect-ratio: 4 / 5; }
.float.fp-3 { aspect-ratio: 1 / 1; }
.float.fp-4 { aspect-ratio: 4 / 3; }
.float.fp-5 { aspect-ratio: 3 / 2; }
.float.fp-6 { aspect-ratio: 2 / 3; }

/* gentle independent float animation, layered on top of parallax transform */
@keyframes floatDrift {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}
.hero-floats .float img {
  animation: floatDrift 9s ease-in-out infinite;
}
.hero-floats .float.fp-2 img { animation-delay: -2s; animation-duration: 11s; }
.hero-floats .float.fp-3 img { animation-delay: -4s; animation-duration: 8s; }
.hero-floats .float.fp-4 img { animation-delay: -1s; animation-duration: 10s; }
.hero-floats .float.fp-5 img { animation-delay: -3s; animation-duration: 12s; }
.hero-floats .float.fp-6 img { animation-delay: -5s; animation-duration: 9.5s; }

/* Layer 1: enormous translucent ॐ */
.hero-om {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: var(--dev);
  font-size: clamp(360px, 60vh, 720px);
  color: var(--gold);
  opacity: 0.08;
  line-height: 1;
  text-shadow: 0 0 100px rgba(201, 169, 106, 0.4);
  pointer-events: none;
  z-index: 2;
  font-weight: 400;
}

/* Layer 2: dark ink wash to keep text readable over photos */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(10,10,16,0.55) 0%, rgba(10,10,16,0.75) 60%, rgba(10,10,16,0.90) 100%);
}

/* Layer 3: centered welcome content */
.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  width: 100%;
  max-width: 880px;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.92;
  margin-bottom: 48px;
  display: flex; justify-content: center; align-items: center; gap: 18px;
}
.hero-eyebrow .rule {
  height: 1px; width: 56px; background: var(--gold); opacity: 0.6;
}
.hero-message {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(40px, 6.8vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 36px;
  max-width: 17ch;
  text-wrap: balance;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.hero-message > span { display: block; }
.hero-message .line-2 em {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.hero-message .line-3 { opacity: 0.88; font-style: italic; font-weight: 300; }
.hero-blessing {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.7;
  color: var(--ink-mute);
  max-width: 540px;
  margin: 0 0 36px;
  text-wrap: pretty;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.hero-mutate {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--whisper);
  letter-spacing: 0.02em;
  min-height: 24px;
  transition: opacity 1.2s ease, filter 1.2s ease;
}
.hero-mutate.fading { opacity: 0; filter: blur(8px); }

/* Hero composition wrappers (referenced by Portal) */
.hero-stage {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 900px;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  will-change: transform, opacity;
}
.hero-om-small {
  font-family: var(--dev);
  font-size: clamp(80px, 12vw, 140px);
  color: var(--gold);
  opacity: 0.18;
  line-height: 1;
  margin-bottom: 28px;
  text-shadow: 0 0 60px rgba(201, 169, 106, 0.35);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hero-om-small::before {
  content: "ॐ";
}
.hero-message .line-1 { opacity: 0.92; font-style: italic; font-weight: 300; }

/* ─── Act II · the twenty — editorial preface ─────────────────────── */
.twenty {
  position: relative;
  width: 100%;
  padding: 160px 0 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 96px;
}
.twenty-head {
  max-width: 760px;
  padding: 0 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.twenty-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex; gap: 14px;
  opacity: 0.9;
}
.twenty-title {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(36px, 5vw, 68px);
  color: var(--ink);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.twenty-title em {
  font-style: italic;
  color: var(--gold);
}
.twenty-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.7;
  max-width: 600px;
  text-wrap: pretty;
}

/* shared figure styling for editorial spreads */
.sp-fig {
  margin: 0;
  cursor: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.sp-fig:hover { transform: translateY(-6px); }
.sp-fig-img {
  position: relative;
  overflow: hidden;
  background: var(--shade);
  aspect-ratio: 4 / 5;
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--line-2);
  transition: filter 0.6s ease;
  filter: saturate(0.88) brightness(0.94);
}
.sp-fig:hover .sp-fig-img {
  filter: saturate(1.04) brightness(1.02);
}
.sp-fig-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.sp-fig:hover .sp-fig-img img { transform: scale(1.05); }
.sp-fig figcaption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 18px;
  padding: 0 2px;
}
.sp-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.78;
  white-space: nowrap;
}
.sp-cap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.sp-cap .sp-dev {
  font-family: var(--dev);
  font-size: 22px;
  color: var(--gold);
  line-height: 1;
  flex: 0 0 auto;
}
.sp-cap .sp-ttl {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.sp-place {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--whisper);
  text-align: right;
  line-height: 1.4;
  white-space: nowrap;
}

/* Spread container shared */
.spreads {
  width: 100%;
  max-width: 1280px;
  padding: 0 56px;
  display: flex;
  flex-direction: column;
  gap: 140px;
}
.spread { width: 100%; }

/* Spread I — asymmetric pair, large left + smaller right offset down */
.spread-pair {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: start;
}
.spread-pair .sp-feature .sp-fig-img { aspect-ratio: 4 / 5; }
.spread-pair .sp-side {
  margin-top: 96px;
}
.spread-pair .sp-side .sp-fig-img { aspect-ratio: 3 / 4; }

/* Spread II — single wide bleed */
.spread-bleed .sp-bleed .sp-fig-img {
  aspect-ratio: 16 / 7;
}
.spread-bleed .sp-bleed {
  margin: 0;
}
.spread-bleed .sp-bleed figcaption {
  padding-top: 2px;
}

/* Spread III — third + epigraph + third */
.spread-tryp {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.spread-tryp .sp-third .sp-fig-img { aspect-ratio: 4 / 5; }
.spread-tryp .sp-third:nth-of-type(2) { margin-top: 64px; }
.sp-epigraph {
  margin: 48px 0 0;
  padding: 0 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: center;
}
.sp-epigraph .sp-quote-mark {
  font-family: var(--display);
  font-style: italic;
  font-size: 96px;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.55;
  margin-bottom: -28px;
}
.sp-epigraph p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.sp-epigraph p em {
  color: var(--gold);
  font-style: italic;
}
.sp-epigraph .sp-quote-attr {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--whisper);
  margin-top: 8px;
}

/* Drift band — all twenty pass past */
.drift-band {
  width: 100%;
  padding: 24px 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(45, 36, 56, 0.30), transparent 65%);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.drift-band-head {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.drift-band-head .rule {
  width: 64px; height: 1px;
  background: var(--gold);
  opacity: 0.4;
}
.drift-band-head .dev {
  font-family: var(--dev);
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}

/* CTA at the close of Act II */
.twenty-cta {
  background: rgba(201, 169, 106, 0.04);
  border: 1px solid var(--gold);
  color: var(--gold);
  font: inherit;
  cursor: none;
  padding: 18px 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  margin-top: 16px;
}
.twenty-cta:hover {
  background: rgba(201, 169, 106, 0.14);
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(201, 169, 106, 0.18);
}
.twenty-cta .dev {
  font-family: var(--dev);
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
}
.twenty-cta .arrow {
  transition: transform 0.5s ease;
  font-size: 14px;
}
.twenty-cta:hover .arrow { transform: translateX(6px); }

/* Chrome refinements */
.chrome .sig {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.chrome .sig .dev {
  font-family: var(--dev);
  font-size: 22px;
  color: var(--gold);
  line-height: 1;
}
.chrome .sig .sig-name {
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  line-height: 1;
}

@media (max-width: 980px) {
  .spreads { padding: 0 24px; gap: 88px; }
  .spread-pair { grid-template-columns: 1fr; gap: 48px; }
  .spread-pair .sp-side { margin-top: 0; }
  .spread-bleed .sp-bleed .sp-fig-img { aspect-ratio: 16 / 9; }
  .spread-tryp { grid-template-columns: 1fr; gap: 48px; }
  .spread-tryp .sp-third:nth-of-type(2) { margin-top: 0; }
  .sp-epigraph { margin: 16px 0; padding: 24px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
  .chrome .sig .sig-name { display: none; }
}

/* Scroll cue */
.hero-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-mute);
  opacity: 0.75;
}
.hero-down .line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

/* ─── Act II · Invocation — long full-bleed text breath ─── */
.invocation {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px 32px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(74, 61, 104, 0.15), transparent 70%);
}
.invocation-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 48px;
  display: flex; gap: 16px; align-items: center;
  opacity: 0.9;
}
.invocation-text {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(28px, 4.6vw, 64px);
  line-height: 1.16;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
  max-width: 16ch;
}
.invocation-text > span { display: block; }
.invocation-text em {
  font-style: italic;
  color: var(--gold);
  font-family: var(--display);
}
.invocation-foot {
  margin-top: 56px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  max-width: 540px;
}

/* ─── Section common: head & section-title (NON-ITALIC primary) ─── */
.section-head {
  text-align: center;
  margin-bottom: 64px;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.section-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex; gap: 14px;
  opacity: 0.9;
}
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(34px, 4.4vw, 60px);
  color: var(--ink);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.section-title em {
  font-style: italic;
  color: var(--gold);
  font-family: var(--display);
}
.section-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-mute);
  margin: 0;
  max-width: 540px;
  text-wrap: pretty;
}

/* ─── Act III · the drifting archive (marquee) ─── */
.drift {
  position: relative;
  width: 100%;
  padding: 140px 0 140px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(45, 36, 56, 0.30), transparent 65%);
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 32px;
  width: max-content;
  will-change: transform;
  animation: marqueeRoll var(--speed, 80s) linear infinite;
}
.marquee-right .marquee-track {
  animation-direction: reverse;
}
@keyframes marqueeRoll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-33.333%, 0, 0); }
}
.marquee-card {
  position: relative;
  margin: 0;
  flex: 0 0 auto;
  width: clamp(220px, 22vw, 320px);
  height: clamp(160px, 16vw, 220px);
  overflow: hidden;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px var(--line-2);
  transition: filter 0.6s ease, box-shadow 0.6s ease;
  filter: saturate(0.85) brightness(0.92);
}
.marquee-card:nth-child(3n) { transform: translateY(8px); }
.marquee-card:nth-child(3n+1) { transform: translateY(-6px); }
.marquee-card:hover {
  filter: saturate(1.1) brightness(1.05);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(201, 169, 106, 0.18),
    0 0 0 1px var(--line);
}
.marquee-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.marquee-card figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 14px 12px;
  background: linear-gradient(to top, rgba(10,10,16,0.88), transparent);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.marquee-card:hover figcaption { opacity: 1; }
.marquee-card .dev {
  font-family: var(--dev);
  font-size: 20px;
  color: var(--gold);
  line-height: 1;
}
.marquee-card .place {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: right;
  line-height: 1.4;
}

.drift-foot {
  margin-top: 56px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--whisper);
  letter-spacing: 0.04em;
}

/* ─── Act IV · the five themes ─── */
.themes {
  position: relative;
  width: 100%;
  padding: 140px 32px 140px;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
}
.theme-card {
  background: none;
  border: none;
  cursor: none;
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: inherit;
  font: inherit;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.theme-card:hover { transform: translateY(-6px); }
.theme-card .theme-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.55),
    0 0 0 1px var(--line-2);
}
.theme-card .theme-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
  filter: saturate(0.85) brightness(0.92);
}
.theme-card:hover .theme-img img {
  transform: scale(1.06);
  filter: saturate(1.05) brightness(1);
}
.theme-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(10,10,16,0.55));
  pointer-events: none;
}
.theme-meta {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.theme-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--gold);
  opacity: 0.8;
}
.theme-titles {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex: 1;
}
.theme-titles .dev {
  font-family: var(--dev);
  font-size: 24px;
  color: var(--gold);
  line-height: 1;
}
.theme-titles .en {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.theme-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* ─── Act V · the yantra portal ─── */
.act-yantra {
  position: relative;
  width: 100%;
  padding: 160px 32px 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.yantra-foot {
  margin-top: 56px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--whisper);
  letter-spacing: 0.04em;
}

/* Sacred-geometry threshold ring */
.threshold-ring {
  position: relative;
  width: min(680px, 84vw, 70vh);
  height: min(680px, 84vw, 70vh);
  margin: 0 auto;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ─── Act VI · the witness ─── */
.witness {
  position: relative;
  width: 100%;
  padding: 160px 32px 140px;
}
.witness-body {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.4fr);
  gap: 80px;
  align-items: center;
}
.witness-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.7),
    0 0 0 1px var(--line-2);
}
.witness-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) brightness(0.9);
}
.witness-photo-tag {
  position: absolute;
  bottom: 24px; left: 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.witness-photo-tag .dev {
  font-family: var(--dev);
  font-size: 24px;
  color: var(--gold);
  line-height: 1;
}
.witness-photo-tag span:last-child {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.witness-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.witness-name {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(36px, 4.4vw, 56px);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1;
}
.witness-bio {
  font-family: var(--serif);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--ink-mute);
  margin: 0;
  text-wrap: pretty;
}
.witness-bio em {
  font-style: italic;
  color: var(--gold);
}
.witness-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line-2);
}
.witness-stats > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.witness-stats b {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: 40px;
  color: var(--gold);
  line-height: 1;
}
.witness-stats span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ─── Final invitation ─── */
.final {
  position: relative;
  width: 100%;
  min-height: 90vh;
  padding: 140px 32px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(74, 61, 104, 0.22), transparent 60%);
}
.final-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
  margin-bottom: 48px;
}
.final-call {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(36px, 5.4vw, 76px);
  color: var(--ink);
  margin: 0 0 48px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.final-call em {
  font-style: italic;
  color: var(--gold);
}
.final-cta {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  font: inherit;
  cursor: none;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  margin-bottom: 80px;
  background: rgba(201, 169, 106, 0.04);
}
.final-cta:hover {
  background: rgba(201, 169, 106, 0.14);
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(201, 169, 106, 0.2);
}
.final-cta .dev {
  font-family: var(--dev);
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
}
.final-cta .arrow {
  font-family: var(--mono);
  font-size: 14px;
  transition: transform 0.5s ease;
}
.final-cta:hover .arrow { transform: translateX(6px); }
.final-signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.signature-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.signature-name .dev {
  font-family: var(--dev);
  font-size: 28px;
  color: var(--gold);
}
.signature-name .en {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
}
.signature-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.signature-foot {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--whisper);
  opacity: 0.6;
  max-width: 640px;
  text-wrap: balance;
}

@media (max-width: 880px) {
  .witness-body { grid-template-columns: 1fr; gap: 48px; }
  .witness-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-floats .float { width: 32vw !important; }
}
.threshold-ring .yantra {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
}
.threshold-ring .center {
  position: relative;
  width: clamp(120px, 22%, 200px);
  height: clamp(120px, 22%, 200px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,106,0.16), rgba(201,169,106,0) 70%);
  display: grid; place-items: center;
  font-family: var(--dev);
  font-size: clamp(32px, 5vh, 44px);
  color: var(--gold);
  text-shadow: 0 0 40px rgba(201,169,106,0.4);
  animation: centerBreath 6s ease-in-out infinite;
}
@keyframes centerBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.threshold-ring .center::before {
  content: "";
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.threshold-ring .center::after {
  content: "";
  position: absolute; inset: -28px;
  border-radius: 50%;
  border: 1px dashed var(--line-2);
  animation: spin 90s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.threshold {
  position: absolute;
  width: clamp(96px, 16vmin, 140px);
  text-align: center;
  cursor: none;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}
.threshold::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 24px var(--gold);
  transition: all 0.5s ease;
  opacity: 0;
}
.threshold:hover { transform: scale(1.04); }
.threshold:hover::before { opacity: 0; }
.threshold .label-dev {
  font-family: var(--dev);
  font-size: clamp(18px, 2.6vh, 24px);
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
  opacity: 0.85;
  transition: all 0.5s ease;
  text-shadow: 0 0 20px rgba(201,169,106,0.3);
  line-height: 1.1;
}
.threshold .label-en {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(13px, 1.8vh, 17px);
  color: var(--ink);
  display: block;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.threshold .label-meta {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
  white-space: nowrap;
  pointer-events: none;
}
.threshold:hover .label-meta { opacity: 0.8; }
.threshold:hover .label-dev {
  text-shadow: 0 0 36px rgba(201,169,106,0.7);
}

/* Bottom drifting quote (legacy single-screen — kept for non-scroll fallback, unused now) */
.portal-foot {
  display: none;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.9; }
}

/* ─── Gallery v2 · Full-bleed parallax ──────────────────────────────── */
.gallery-v2 {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.gallery-topbar {
  position: absolute;
  top: 24px;
  left: 36px;
  right: 36px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
}
.gallery-topbar > * { pointer-events: auto; }

.stage-v2 {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.stage-v2 .layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.stage-v2 .layer img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: transform, opacity, filter;
}

/* Keep the gallery motion restrained so the photograph stays sharp. */
.stage-v2 .layer-in {
  animation: photoIn 0.5s ease-out forwards;
}
.stage-v2 .layer-in img {
  animation: photoInImg 0.5s ease-out forwards;
}
@keyframes photoIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes photoInImg {
  from { transform: scale(0.985); opacity: 0.92; }
  to   { transform: scale(1); opacity: 1; }
}

/* Outgoing photo simply fades; no extra blur layer. */
.stage-v2 .layer-out {
  animation: photoOut 0.45s ease-out forwards;
  z-index: 2;
}
.stage-v2 .layer-out img {
  animation: photoOutImg 0.45s ease-out forwards;
}
@keyframes photoOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes photoOutImg {
  from { transform: scale(1); }
  to   { transform: scale(1); }
}

/* Keep text readable without muddying the photograph. */
.stage-v2::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(8, 6, 14, 0.78) 0%, rgba(8, 6, 14, 0.2) 20%, transparent 38%),
    linear-gradient(to bottom, rgba(8, 6, 14, 0.42) 0%, transparent 18%);
  z-index: 3;
}

/* Film burn flash during transition */
.stage-flash {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 40% 60%, rgba(201, 169, 106, 0.18), transparent 60%);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}
.stage-flash.active {
  animation: stageFlash 1.4s ease forwards;
}
@keyframes stageFlash {
  0%   { opacity: 0; }
  30%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Back-to-threshold button */
.gallery-back {
  position: relative;
  background: none; border: none;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: none;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0;
  flex: 1 1 260px;
  min-width: 220px;
  text-align: left;
  line-height: 1;
  transition: color 0.4s ease;
}
.gallery-back:hover { color: var(--gold); }
.gallery-back .dash {
  display: inline-block;
  width: 18px; height: 1px;
  background: currentColor;
  margin-top: 11px;
}
.gallery-back-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gallery-back-label {
  white-space: nowrap;
}
.gallery-back-name {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  line-height: 1;
}

/* Side rail — large numeral */
.rail-num {
  position: absolute;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-style: normal;
  color: var(--gold);
  text-shadow: 0 4px 24px rgba(0,0,0,0.7);
  pointer-events: none;
}
.rail-current {
  font-size: clamp(64px, 9vw, 132px);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.04em;
}
.rail-divider {
  width: 1px;
  height: 32px;
  background: var(--gold);
  opacity: 0.5;
}
.rail-total {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
  opacity: 0.7;
}

/* Devanagari watermark — drifts behind the caption */
.dev-watermark {
  position: absolute;
  bottom: 80px;
  right: 0;
  z-index: 5;
  font-family: var(--dev);
  font-size: clamp(180px, 32vw, 480px);
  font-weight: 400;
  color: var(--gold);
  opacity: 0.03;
  line-height: 0.85;
  pointer-events: none;
  white-space: nowrap;
  transform: translateX(20%);
  animation: watermarkIn 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  letter-spacing: -0.04em;
}
@keyframes watermarkIn {
  from { opacity: 0; transform: translateX(40%); }
  to   { opacity: 0.06; transform: translateX(20%); }
}

/* Caption v2 — minimal, two-tier */
.caption-v2 {
  position: absolute;
  bottom: 96px;
  left: 36px;
  right: 36px;
  z-index: 7;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: capIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.caption-v2.fading {
  animation: capOut 0.6s ease forwards;
}
@keyframes capIn {
  from { opacity: 0; transform: translateY(20px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);     filter: blur(0); }
}
@keyframes capOut {
  to   { opacity: 0; transform: translateY(-12px); filter: blur(8px); }
}
.cap-place {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 14px;
}
.cap-place .rule {
  height: 1px; flex: 0 0 32px;
  background: var(--gold);
  opacity: 0.6;
}
.cap-title {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 68px);
  color: var(--ink);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  text-shadow: 0 4px 32px rgba(0,0,0,0.6);
}
.cap-line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-mute);
  max-width: 580px;
  margin: 0;
  text-wrap: pretty;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}

/* Index strip v2 — bottom-right vertical dots */
.index-strip-v2 {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  display: flex; flex-direction: column;
  gap: 7px;
}
.index-strip-v2 button {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.4;
  border: none;
  padding: 0;
  cursor: none;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.index-strip-v2 button:hover {
  background: var(--gold);
  opacity: 1;
}
.index-strip-v2 button.active {
  background: var(--gold);
  width: 3px; height: 22px;
  border-radius: 3px;
  opacity: 1;
  box-shadow: 0 0 12px var(--gold);
}

/* Gallery nav v2 */
.gallery-nav-v2 {
  position: absolute;
  bottom: 28px; left: 36px; right: 36px;
  z-index: 9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.gallery-nav-v2 button {
  background: none; border: none; color: inherit;
  font: inherit; cursor: none;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0;
  transition: color 0.4s ease;
}
.gallery-nav-v2 button:hover { color: var(--gold); }
.gallery-nav-v2 .arrow {
  width: 32px; height: 1px; background: currentColor;
  position: relative;
}
.gallery-nav-v2 .prev .arrow::before,
.gallery-nav-v2 .next .arrow::before {
  content: ""; position: absolute;
  width: 7px; height: 7px;
  border-left: 1px solid currentColor;
  border-top: 1px solid currentColor;
  top: -3.5px;
}
.gallery-nav-v2 .prev .arrow::before { left: 0; transform: rotate(-45deg); }
.gallery-nav-v2 .next .arrow::before { right: 0; transform: rotate(135deg); }
.gallery-nav-v2 .nav-center {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--whisper);
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Progress thread (shared with v2) */
.thread {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line-2);
  z-index: 10;
}
.thread .fill {
  height: 100%;
  background: linear-gradient(to right, transparent, var(--gold), var(--gold-2));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px var(--gold);
}

/* (legacy v1 gallery classes are no longer used — left out) */

/* Section-stub overlay (Themes, Prints, Journal, About, Feedback) */
.stub {
  display: grid;
  place-items: center;
  height: 100%;
  text-align: center;
}
.stub-inner { max-width: 640px; padding: 0 32px; }
.stub-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 36px;
}
.stub-dev {
  font-family: var(--dev);
  font-size: 72px;
  color: var(--gold);
  line-height: 1;
  margin: 0 0 24px;
  text-shadow: 0 0 50px rgba(201,169,106,0.3);
}
.stub-title {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 300;
  color: var(--ink);
  margin: 0 0 28px;
  line-height: 1;
}
.stub-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-mute);
  line-height: 1.5;
  text-wrap: pretty;
}
.stub-coming {
  margin-top: 56px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--whisper);
}
.stub-back {
  margin-top: 24px;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 14px 28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  cursor: none;
  transition: all 0.4s ease;
  border-radius: 999px;
}
.stub-back:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,169,106,0.06);
}

/* Loading veil */
.veil {
  position: fixed; inset: 0;
  z-index: 200;
  background: var(--night);
  display: grid; place-items: center;
}
.veil-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.veil-sig {
  display: flex;
  align-items: baseline;
  gap: 16px;
  opacity: 0;
  animation: veilIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
.veil-mark {
  font-family: var(--dev);
  font-size: 48px;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 50px rgba(201,169,106,0.4);
}
.veil-name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 36px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
}
.veil-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-mute);
  opacity: 0;
  animation: veilIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
  margin-top: 8px;
}
.veil-progress {
  margin-top: 36px;
  width: 200px;
  height: 1px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}
.veil-progress::after {
  content: "";
  position: absolute;
  left: 0; top: 0; height: 100%;
  width: 100%;
  background: var(--gold);
  transform: translateX(-100%);
  animation: veilFill 2.4s ease 1.0s forwards;
}
@keyframes veilIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes veilFill {
  to { transform: translateX(0); }
}
/* (legacy veil styles removed — see top of file) */

/* Hint chip at corner */
.hint-chip {
  position: fixed;
  bottom: 24px;
  left: 36px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--whisper);
  z-index: 70;
  display: flex; align-items: center; gap: 10px;
  pointer-events: none;
}
.hint-chip kbd {
  font-family: var(--mono);
  font-size: 10px;
  border: 1px solid var(--line);
  color: var(--ink-mute);
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.02);
}

/* Tweaks panel overrides — keep within atmosphere */
.tweaks-panel {
  background: rgba(15, 13, 22, 0.92) !important;
  border: 1px solid var(--line) !important;
  backdrop-filter: blur(20px);
}

/* responsive */
@media (max-width: 980px) {
  .gallery-frame {
    grid-template-columns: 1fr;
    inset: 80px 24px 96px;
    gap: 28px;
  }
  .photo-card img { max-width: 88vw; max-height: 50vh; }
  .index-strip { display: none; }
  .chrome { left: 18px; right: 18px; top: 18px; gap: 10px; }
  .chrome .right { width: 100%; justify-content: space-between; gap: 8px; }
  .scene-pill { max-width: 100%; padding: 8px 12px; letter-spacing: 0.2em; white-space: normal; line-height: 1.3; }
  .sound-toggle { padding: 8px 12px; }
  .gallery-topbar { top: 18px; left: 18px; right: 18px; gap: 14px; }
  .gallery-back { min-width: 0; }
  .gallery-back-name { font-size: 16px; }
  .caption-v2 { left: 18px; right: 18px; bottom: 86px; max-width: none; gap: 14px; }
  .cap-place { letter-spacing: 0.28em; gap: 10px; }
  .gallery-nav-v2 { left: 18px; right: 18px; bottom: 20px; font-size: 9px; letter-spacing: 0.22em; }
  .gallery-nav-v2 .nav-center { display: none; }
  .rail-num, .dev-watermark, .index-strip-v2 { display: none; }
  .hint-chip {
    left: 18px;
    right: 18px;
    bottom: 16px;
    gap: 8px;
    letter-spacing: 0.18em;
    white-space: normal;
    text-wrap: pretty;
  }
  .threshold { width: 130px; }
  .threshold .label-en { font-size: 16px; }
  .threshold .label-dev { font-size: 22px; }
}
