/* ════════════════════════════════════════════════════
   DHIMIT — "The Lamp & The Village" landing page
   A fable told in indigo night, marigold fire & Warli chalk
   ════════════════════════════════════════════════════ */

:root {
  --ink: #14122b;          /* deep indigo night */
  --ink-deep: #0b0a1d;
  --paper: #f7f1e3;        /* old-page cream */
  --paper-dim: #ece2cc;
  --fire: #f59e0b;         /* marigold */
  --fire-hot: #fb5607;     /* sindoor orange */
  --fire-soft: #fde68a;
  --peacock: #0f766e;
  --rani: #d81b60;         /* rani pink accent */
  --chalk: #f6e7c8;

  --font-serif: "Playfair Display", Georgia, serif;  /* classic display */
  --font-sans: "Lora", Georgia, serif;               /* classic book body */
  --font-dev: "Yatra One", "Rasa", "Tiro Devanagari Hindi", serif;
  --font-dev-body: "Tiro Devanagari Hindi", "Rasa", serif;

  /* theme tokens (dark is default) */
  --bg: var(--ink);
  --bg-deep: var(--ink-deep);
  --fg: var(--paper);
}

/* ── light mode: classic paper, ink & marigold ── */
html[data-theme="light"] {
  --bg: #f7f1e3;
  --bg-deep: #efe6d0;
  --fg: #14122b;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  overflow-x: hidden;
  cursor: none;
}

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

/* ─────────── grain overlay ─────────── */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9998;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(10) infinite;
}
@keyframes grain-shift {
  0%,100% { transform: translate(0,0); } 10% { transform: translate(-5%,-8%); }
  20% { transform: translate(-12%,3%); } 30% { transform: translate(6%,-10%); }
  40% { transform: translate(-4%,12%); } 50% { transform: translate(-10%,4%); }
  60% { transform: translate(10%,0); }  70% { transform: translate(0,10%); }
  80% { transform: translate(-12%,0); } 90% { transform: translate(8%,4%); }
}

/* ─────────── custom cursor ─────────── */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--fire);
  box-shadow: 0 0 12px 2px rgba(245,158,11,.8);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(245,158,11,.5);
  transition: width .25s, height .25s, border-color .25s;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  border-color: var(--fire);
}
@media (hover: none) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ─────────── preloader ─────────── */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ink-deep);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  transition: opacity .8s ease, visibility .8s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.pl-flame {
  transform-origin: 60px 60px;
  animation: flicker 1s ease-in-out infinite alternate;
}
.preloader-word {
  font-family: var(--font-dev);
  font-size: 2.4rem;
  color: var(--paper);
  letter-spacing: .05em;
  display: flex;
}
.preloader-word span {
  opacity: 0;
  animation: pl-rise .6s cubic-bezier(.22,1,.36,1) forwards;
}
.preloader-word span:nth-child(1) { animation-delay: .15s; }
.preloader-word span:nth-child(2) { animation-delay: .3s; }
.preloader-word span:nth-child(3) { animation-delay: .45s; }
.preloader-word span:nth-child(4) { animation-delay: .6s; }
.pl-dot { color: var(--fire); }
.pl-ai { color: var(--fire); font-family: var(--font-sans); font-weight: 600; }
@keyframes pl-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes flicker {
  0% { transform: scale(1) rotate(-2deg); opacity: .95; }
  50% { transform: scale(1.08) rotate(1.5deg); }
  100% { transform: scale(.96) rotate(-1deg); opacity: 1; }
}

/* ─────────── nav ─────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 64px);
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.nav.scrolled {
  background: rgba(11,10,29,.75);
  backdrop-filter: blur(14px);
  padding-top: 12px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(245,158,11,.12);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--paper);
}
.nav-logo-mark {
  font-family: var(--font-dev);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--fire), var(--fire-hot));
  color: var(--ink-deep);
  border-radius: 10px;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(251,86,7,.35);
}
.nav-logo-text { font-weight: 600; font-size: 1.15rem; letter-spacing: .02em; }
.accent { color: var(--fire); }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 34px); }
.nav-links a {
  color: var(--paper); text-decoration: none;
  font-size: .92rem; opacity: .8;
  transition: opacity .2s, color .2s;
}
.nav-links a:hover { opacity: 1; color: var(--fire-soft); }
.lang-switch {
  display: flex;
  border: 1px solid rgba(247,241,227,.22);
  border-radius: 999px;
  overflow: hidden;
}
.lang-btn {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--paper);
  opacity: .55;
  font: inherit;
  font-size: .8rem;
  padding: 6px 12px;
  cursor: pointer;
  transition: opacity .2s, background .2s, color .2s;
}
.lang-btn + .lang-btn { border-left: 1px solid rgba(247,241,227,.14); }
.lang-btn:hover { opacity: .9; }
.lang-btn.is-on {
  opacity: 1;
  background: rgba(245,158,11,.18);
  color: var(--fire-soft);
}
.nav-cta {
  padding: 9px 18px;
  border: 1px solid rgba(245,158,11,.5);
  border-radius: 999px;
  opacity: 1 !important;
  transition: background .25s, box-shadow .25s;
}
.nav-cta:hover {
  background: rgba(245,158,11,.12);
  box-shadow: 0 0 24px rgba(245,158,11,.25);
}
.theme-toggle {
  appearance: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid rgba(247,241,227,.22);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s;
}
.theme-toggle:hover { border-color: var(--fire); background: rgba(245,158,11,.1); transform: rotate(20deg); }
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ─────────── hero ─────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, #241f4d 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(251,86,7,.10) 0%, transparent 60%),
    var(--bg);
  overflow: hidden;
}
html[data-theme="light"] .hero {
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, #fdf6e5 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(251,86,7,.08) 0%, transparent 60%),
    var(--bg);
}
/* slow-drifting nebula — the "space" behind the village */
.hero::before {
  content: "";
  position: absolute; inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 34% 26% at 22% 30%, rgba(129,90,213,.16), transparent 70%),
    radial-gradient(ellipse 30% 24% at 78% 24%, rgba(245,158,11,.10), transparent 70%),
    radial-gradient(ellipse 26% 22% at 60% 72%, rgba(15,118,110,.12), transparent 70%);
  animation: nebula-drift 26s ease-in-out infinite alternate;
  filter: blur(2px);
}
html[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse 34% 26% at 22% 30%, rgba(216,27,96,.06), transparent 70%),
    radial-gradient(ellipse 30% 24% at 78% 24%, rgba(245,158,11,.10), transparent 70%),
    radial-gradient(ellipse 26% 22% at 60% 72%, rgba(15,118,110,.07), transparent 70%);
}
@keyframes nebula-drift {
  from { transform: translate3d(-2%, -1.5%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.08); }
}
#fireflies { position: absolute; inset: 0; width: 100%; height: 100%; }

.glyph-field { position: absolute; inset: 0; pointer-events: none; }
.glyph {
  position: absolute;
  font-family: var(--font-dev);
  color: rgba(247,241,227,.10);
  font-size: clamp(1.6rem, 4vw, 3.6rem);
  will-change: transform;
  user-select: none;
}
.glyph:nth-child(1)  { top: 12%; left: 8%; }
.glyph:nth-child(2)  { top: 24%; left: 84%; }
.glyph:nth-child(3)  { top: 68%; left: 6%;  font-size: clamp(1rem,2vw,1.8rem); }
.glyph:nth-child(4)  { top: 15%; left: 62%; }
.glyph:nth-child(5)  { top: 58%; left: 90%; }
.glyph:nth-child(6)  { top: 78%; left: 74%; }
.glyph:nth-child(7)  { top: 40%; left: 4%; }
.glyph:nth-child(8)  { top: 8%;  left: 34%; font-size: clamp(1rem,2vw,1.6rem); }
.glyph:nth-child(9)  { top: 84%; left: 18%; }
.glyph:nth-child(10) { top: 34%; left: 92%; font-size: clamp(1rem,2vw,1.8rem); }
.glyph:nth-child(11) { top: 70%; left: 40%; opacity: .7; }
.glyph:nth-child(12) { top: 88%; left: 56%; font-size: clamp(.9rem,1.8vw,1.5rem); }

.hero-inner {
  position: relative; z-index: 3;
  text-align: center;
  max-width: 1050px;
  padding: 120px 24px 160px;
}
.hero-kicker {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: .82rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--fire); opacity: .9;
  margin-bottom: 34px;
}
.kicker-line { width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--fire)); }
.kicker-line:last-child { background: linear-gradient(270deg, transparent, var(--fire)); }

.hero-title { font-weight: 400; line-height: 1.06; }
.hero-line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-word { display: inline-block; will-change: transform; }
.hero-word.dev {
  font-family: var(--font-dev);
  font-size: clamp(3rem, 9.5vw, 7.2rem);
  color: var(--paper);
}
/* English uses only two Latin faces: Fraunces (display/serif) + Space Grotesk (UI/body) */
html[lang="en"] .hero-word.dev {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -.02em;
}
html[lang="en"] .chapter-no {
  font-family: var(--font-sans);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
html[lang="en"] .boon-rank { font-family: var(--font-serif); font-weight: 600; }
.hero-word.dev.glow {
  background: linear-gradient(100deg, var(--fire-soft) 10%, var(--fire) 45%, var(--fire-hot) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 28px rgba(245,158,11,.35));
}
.hero-word.eng {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 3.4vw, 2.4rem);
  color: var(--paper-dim);
  margin-top: .5em;
}

.hero-sub {
  margin: 34px auto 0;
  max-width: 640px;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.75;
  color: rgba(247,241,227,.78);
}
.hero-sub strong { color: var(--fire-soft); font-weight: 600; }
.hero-sub em { color: var(--fire); font-style: italic; }

.hero-ctas {
  margin-top: 44px;
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
}

.hero-meta {
  margin-top: 56px;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(247,241,227,.5);
}
.hero-meta i { color: var(--fire); font-style: normal; font-size: .6rem; align-self: center; }

.hero-alums {
  margin-top: 34px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--fire);
}

.hero-horizon {
  position: absolute; bottom: -2px; left: 0; right: 0; z-index: 2;
  pointer-events: none;
}
.hero-horizon svg { display: block; width: 100%; height: clamp(90px, 16vw, 220px); }
.lit-window { fill: var(--fire); animation: window-glow 3s ease-in-out infinite alternate; }
.lit-window:nth-of-type(2) { animation-delay: .8s; }
.lit-window:nth-of-type(3) { animation-delay: 1.5s; }
.lit-window:nth-of-type(4) { animation-delay: .4s; }
.lit-window:nth-of-type(5) { animation-delay: 2s; }
@keyframes window-glow { from { opacity: .35; } to { opacity: 1; } }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint-text {
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(247,241,227,.55);
}
.scroll-hint-bar {
  width: 1px; height: 44px;
  background: linear-gradient(var(--fire), transparent);
  animation: hint-drop 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes hint-drop { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ─────────── buttons ─────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .98rem;
  border-radius: 999px;
  will-change: transform;
}
.btn-fire {
  position: relative;
  padding: 3px;
  background: conic-gradient(from var(--ang, 0deg), var(--fire), var(--fire-hot), var(--rani), var(--fire));
  animation: spin-border 4s linear infinite;
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --ang: 360deg; } }
.btn-fire-inner {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink-deep);
  color: var(--fire-soft);
  padding: 15px 30px;
  border-radius: 999px;
  transition: background .3s, color .3s;
}
.btn-fire:hover .btn-fire-inner { background: transparent; color: var(--ink-deep); }
.btn-fire.big .btn-fire-inner { padding: 19px 40px; font-size: 1.1rem; }
.btn-arrow { transition: transform .3s; }
.btn-fire:hover .btn-arrow { transform: translateX(5px); }

.btn-ghost {
  padding: 16px 28px;
  color: var(--paper);
  border: 1px solid rgba(247,241,227,.25);
  transition: border-color .25s, background .25s;
}
.btn-ghost:hover { border-color: var(--fire); background: rgba(245,158,11,.08); }
.dev-inline { font-family: var(--font-dev-body); color: var(--fire); }

/* ─────────── marquee ─────────── */
.marquee {
  background: var(--fire);
  color: var(--ink-deep);
  overflow: hidden;
  padding: 11px 0;
  transform: rotate(-.7deg) scale(1.01);
  border-top: 3px solid var(--ink-deep);
  border-bottom: 3px solid var(--ink-deep);
  position: relative; z-index: 5;
}
.marquee-track {
  display: flex; gap: 28px; width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-dev-body); /* one calm classic face, Latin + Devanagari + Gujarati */
  font-size: 1.05rem;
  align-items: center;
}
.marquee-track i { font-style: normal; font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─────────── yatra — Apple-style full-bleed sketchbook ─────────── */
.yatra {
  background: var(--paper);
  color: var(--ink);
  position: relative;
}
.yatra-pin {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  position: relative;
  background:
    /* paper fibres */
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(255,255,255,.55), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(236,210,160,.35), transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(34,30,70,.015) 2px, rgba(34,30,70,.015) 3px),
    var(--paper);
}

.yatra-stage {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

/* soft page edge — sketchbook spread, not a framed card */
.yatra-vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse 130% 100% at 50% 40%, transparent 55%, rgba(34,30,70,.18) 100%),
    linear-gradient(180deg, rgba(247,241,227,.35) 0%, transparent 18%, transparent 78%, rgba(247,241,227,.5) 100%);
}

/* caption band — soft paper fade so text never sits on the drawing */
.yatra-pin::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 34%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(247,241,227,.85) 52%, var(--paper) 100%);
  transition: background .5s;
}
.yatra-pin.is-night::after {
  background: linear-gradient(180deg, transparent 0%, rgba(23,20,56,.88) 52%, #14122e 100%);
}

/* Apple-style floating chapter text — in its own clear band below the scene */
.yatra-overlay {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(26px, 6vh, 60px);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
}
.yatra-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 8;
  background: rgba(34,30,70,.08);
}
.yatra-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--fire), var(--fire-hot));
}

.yatra-steps {
  position: relative;
  width: min(680px, 92vw);
  min-height: clamp(110px, 15vh, 150px);
}
.yatra-step {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.yatra-step.is-active { opacity: 1; transform: none; }

.chapter-no {
  font-family: var(--font-dev-body);
  display: inline-block;
  font-size: .78rem;
  color: var(--fire-hot);
  letter-spacing: .08em; /* Devanagari/Gujarati break apart with wide tracking */
  margin-bottom: 10px;
  opacity: .9;
}
.yatra-step h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.1vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -.015em;
  margin-bottom: 10px;
  max-width: 24ch;
  color: var(--ink);
  transition: color .4s, text-shadow .4s;
}
.yatra-step p {
  font-size: clamp(.9rem, 1.15vw, 1.05rem);
  line-height: 1.6;
  color: rgba(20,18,43,.72);
  max-width: 48ch;
  transition: color .4s, text-shadow .4s;
}
.yatra-step p em { color: var(--fire-hot); font-style: italic; }

/* night chapters — captions flip to paper ink on indigo */
.yatra-pin.is-night .yatra-step h2 {
  color: var(--paper);
  text-shadow: 0 2px 24px rgba(0,0,0,.55);
}
.yatra-pin.is-night .yatra-step p {
  color: rgba(247,241,227,.78);
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.yatra-pin.is-night .chapter-no { color: var(--fire-soft); }
.yatra-pin.is-night .ydot { background: rgba(247,241,227,.25); }
.yatra-pin.is-night .ydot.is-on { background: var(--fire); }

.yatra-dots {
  display: flex; gap: 10px;
  margin-top: 22px;
  justify-content: center;
}
.ydot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(34,30,70,.2);
  transition: background .3s, transform .3s, width .3s;
}
.ydot.is-on {
  background: var(--fire-hot);
  transform: scale(1.15);
  width: 22px;
  border-radius: 999px;
}

/* CSS 3D product showcase — the Apple phone-rotate moment */
.yatra-product {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding-bottom: 22vh; /* keep the tumble clear of the caption band */
  pointer-events: none;
  opacity: 0;
  perspective: 1600px;
}
.product-box {
  width: min(340px, 46vw);
  height: min(340px, 46vw);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.product-face {
  position: absolute; inset: 0;
  border-radius: 28px;
  background:
    linear-gradient(145deg, #fbbf24 0%, #f59e0b 45%, #ea580c 100%);
  border: 4px solid #221e46;
  box-shadow:
    0 40px 80px -20px rgba(34,30,70,.45),
    inset 0 0 0 10px rgba(34,30,70,.08);
  display: grid;
  place-items: center;
}
.product-face::before {
  content: "धी";
  font-family: var(--font-dev);
  font-size: clamp(3.6rem, 9vw, 6.4rem);
  color: #14122b;
  line-height: 1;
}
.product-wordmark {
  position: absolute;
  bottom: 12%;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-sans, "Space Grotesk", sans-serif);
  font-size: clamp(.8rem, 1.6vw, 1.05rem);
  font-weight: 600;
  letter-spacing: .34em;
  text-indent: .34em;
  text-transform: uppercase;
  color: rgba(20,18,43,.8);
}
.product-face::after {
  content: "";
  position: absolute;
  top: 18%; right: 14%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fb5607;
  border: 3px solid #221e46;
  box-shadow: 0 0 20px 4px rgba(251,86,7,.55);
}
.product-glow {
  position: absolute;
  width: 140%; height: 140%;
  left: -20%; top: -20%;
  background: radial-gradient(circle, rgba(253,230,138,.55), transparent 60%);
  filter: blur(12px);
  z-index: -1;
  animation: halo-breathe 2.2s ease-in-out infinite alternate;
}
@keyframes halo-breathe {
  from { opacity: .45; transform: scale(.9); }
  to { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 700px) {
  .yatra-overlay { bottom: 28px; }
  .yatra-step h2 { max-width: 14ch; }
  .product-box { width: min(200px, 52vw); height: min(200px, 52vw); }
}

/* ambient sketch life */
.sun-rays { animation: rays-blink 2.6s ease-in-out infinite; }
@keyframes rays-blink { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.cloud-a { animation: cloud-drift 30s linear infinite alternate; }
.cloud-b { animation: cloud-drift 40s linear infinite alternate-reverse; }
@keyframes cloud-drift { from { transform: translateX(-26px); } to { transform: translateX(44px); } }
.antenna-blink { animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ─────────── vardaan (boons) ─────────── */
.vardaan {
  background: var(--ink);
  padding: clamp(90px, 12vw, 150px) clamp(24px, 6vw, 80px);
  position: relative;
}
.section-head { text-align: center; margin-bottom: clamp(50px, 7vw, 90px); }
.section-kicker {
  font-family: var(--font-dev-body);
  color: var(--fire);
  letter-spacing: .25em;
  font-size: .9rem;
  margin-bottom: 18px;
}
.section-kicker.light { text-align: left; }
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.12;
}
.accent-serif {
  font-style: italic;
  background: linear-gradient(100deg, var(--fire-soft), var(--fire-hot));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* boons as pages torn from Meera's notebook, pinned to the night wall */
.boon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 34px 26px;
  max-width: 1250px;
  margin: 0 auto;
}
.boon {
  position: relative;
  padding: 40px 30px 28px;
  background:
    radial-gradient(ellipse 90% 60% at 30% 0%, rgba(255,255,255,.5), transparent 60%),
    var(--paper);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  /* wobbly hand-drawn outline */
  border-radius: 255px 18px 225px 18px / 18px 225px 18px 255px;
  box-shadow: 5px 6px 0 rgba(0, 0, 0, .38);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s;
  will-change: transform;
}
.boon:nth-child(1) { --tilt: -1.1deg; }
.boon:nth-child(2) { --tilt: .9deg; }
.boon:nth-child(3) { --tilt: -.6deg; }
.boon:nth-child(4) { --tilt: .7deg; }
.boon:nth-child(5) { --tilt: -.9deg; }
.boon:nth-child(6) { --tilt: 1.1deg; }
/* washi tape holding the page up */
.boon::before {
  content: "";
  position: absolute;
  top: -13px; left: 50%;
  width: 96px; height: 26px;
  transform: translateX(-50%) rotate(var(--tape-tilt, -3deg));
  background: rgba(245,158,11,.75);
  opacity: .9;
  border-left: 2px dashed rgba(34,30,70,.25);
  border-right: 2px dashed rgba(34,30,70,.25);
  box-shadow: 0 2px 5px rgba(0,0,0,.22);
}
.boon:nth-child(even)::before { --tape-tilt: 3deg; }
.boon:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 8px 12px 0 rgba(0, 0, 0, .42);
}
.boon-rank {
  position: absolute; top: 14px; right: 22px;
  font-family: var(--font-dev);
  font-size: 2.2rem;
  color: rgba(216,27,96,.22);
  transition: color .3s;
}
.boon:hover .boon-rank { color: var(--fire-hot); }
.boon-icon { font-size: 1.9rem; margin-bottom: 16px; }
.boon h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--ink);
}
/* hand-drawn underline beneath the title */
.boon h3::after {
  content: "";
  display: block;
  width: 64px; height: 5px;
  margin-top: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 5'%3E%3Cpath d='M1 3.5 C 14 1.5, 26 4.5, 38 2.5 S 58 3.5, 63 2' fill='none' stroke='%23fb5607' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}
.boon p { font-size: .95rem; line-height: 1.7; color: rgba(20,18,43,.72); }
.boon-tag {
  display: inline-block; margin-top: 18px;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fire-hot);
  border: 1.6px dashed rgba(251,86,7,.55);
  padding: 5px 12px;
  border-radius: 60px 8px 50px 8px / 8px 50px 8px 60px;
  transform: rotate(-.6deg);
  background: rgba(245,158,11,.08);
}

/* ─────────── stats ─────────── */
/* quiet sketchbook band — same paper & type as the story, no loud colour */
.stats {
  background: var(--paper);
  color: var(--ink);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  padding: clamp(46px, 5.5vw, 72px) clamp(24px, 6vw, 80px);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.stat {
  text-align: center;
  padding: 24px 16px;
  border-left: 2px dashed rgba(20,18,43,.22);
}
.stat:first-child { border-left: none; }
@media (max-width: 980px) { .stat { border-left: none; border-top: 2px dashed rgba(20,18,43,.22); } .stat:first-child { border-top: none; } }
.stat-num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  display: block;
  color: var(--ink);
}
/* small hand-drawn marigold tick beneath each number */
.stat-num::after {
  content: "";
  display: block;
  width: 44px; height: 5px;
  margin: 10px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 5'%3E%3Cpath d='M1 3.5 C 10 1.5, 20 4.5, 30 2.5 S 40 3.5, 43 2' fill='none' stroke='%23f59e0b' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}
.stat-label {
  display: block; margin-top: 12px;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(20,18,43,.66); line-height: 1.5;
}

/* ─────────── guruji strip ─────────── */
.guruji {
  background:
    radial-gradient(ellipse 55% 70% at 85% 20%, rgba(15,118,110,.25), transparent 60%),
    var(--ink-deep);
  padding: clamp(90px, 12vw, 160px) clamp(24px, 6vw, 80px);
}
.guruji-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
@media (max-width: 900px) { .guruji-inner { grid-template-columns: 1fr; } }
.guruji-text h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 22px;
}
.guruji-sub { color: rgba(247,241,227,.7); line-height: 1.8; margin-bottom: 34px; max-width: 50ch; }
.btn-ghost.light { border-color: rgba(247,241,227,.3); }

.guruji-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
  transform: rotate(1.6deg);
  transition: transform .4s;
  will-change: transform;
}
.guruji-card:hover { transform: rotate(0deg) scale(1.02); }
.gc-head {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 18px;
  background: var(--ink);
  color: var(--paper);
}
.gc-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(247,241,227,.25); }
.gc-dot:first-child { background: var(--fire-hot); }
.gc-dot:nth-child(2) { background: var(--fire); }
.gc-dot:nth-child(3) { background: var(--peacock); }
.gc-title { margin-left: 10px; font-size: .78rem; letter-spacing: .06em; opacity: .8; }
.gc-body { padding: 26px 26px 30px; font-size: .95rem; }
.gc-line { margin-bottom: 14px; line-height: 1.6; }
.gc-q { font-weight: 700; color: var(--fire-hot); }
.gc-opts { font-family: var(--font-sans); font-size: .88rem; }
.gc-muted { color: rgba(20,18,43,.5); font-style: italic; }
.gc-status {
  background: rgba(15,118,110,.1);
  border: 1px solid rgba(15,118,110,.3);
  color: var(--peacock);
  padding: 10px 14px; border-radius: 10px;
  font-size: .88rem; margin-bottom: 0;
}

/* ─────────── online LMS ─────────── */
.lms {
  background:
    radial-gradient(ellipse 55% 70% at 15% 80%, rgba(245,158,11,.12), transparent 60%),
    var(--paper);
  color: var(--ink);
  padding: clamp(90px, 12vw, 160px) clamp(24px, 6vw, 80px);
}
.lms-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.lms-text h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 22px;
}
.lms-alums-top {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .08em;
  color: var(--fire-hot);
  margin-bottom: 10px;
}
.lms-sub {
  color: rgba(20,18,43,.72);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 50ch;
}
.lms-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(251,86,7,.08));
  border: 1.6px solid rgba(245,158,11,.35);
  border-radius: 999px;
  padding: 10px 22px 10px 16px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 32px;
}
.lms-badge-icon { font-size: 1.3rem; }
.lms-coming {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(20,18,43,.5);
}

.lms-preview {
  will-change: transform;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.lms-browser {
  background: var(--ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 40px 90px -30px rgba(0,0,0,.35),
    0 0 0 1px rgba(20,18,43,.12);
  transform: rotate(-1.2deg);
  transition: transform .4s;
}
.lms-browser:hover { transform: rotate(0deg) scale(1.01); }
.lms-browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--ink-deep);
}
.lms-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(247,241,227,.2);
}
.lms-dot:first-child { background: var(--fire-hot); }
.lms-dot:nth-child(2) { background: var(--fire); }
.lms-dot:nth-child(3) { background: var(--peacock); }
.lms-url {
  margin-left: 12px;
  font-size: .75rem;
  letter-spacing: .04em;
  color: rgba(247,241,227,.5);
  background: rgba(247,241,227,.06);
  padding: 4px 14px;
  border-radius: 6px;
  flex: 1;
}
.lms-img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .lms-inner { grid-template-columns: 1fr; }
  .lms-browser { transform: none; }
  .lms-browser:hover { transform: scale(1.01); }
}

html[data-theme="light"] .lms {
  background:
    radial-gradient(ellipse 55% 70% at 15% 80%, rgba(245,158,11,.08), transparent 60%),
    var(--bg);
}

/* ─────────── finale ─────────── */
.finale {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 50% 62%, rgba(251,86,7,.16), transparent 65%),
    var(--ink);
  padding: clamp(110px, 14vw, 180px) 24px;
  text-align: center;
  overflow: hidden;
}
.finale-diya { position: relative; display: inline-block; margin-bottom: 40px; }
.finale-flame-group {
  transform-origin: 100px 105px;
  animation: flicker 1.1s ease-in-out infinite alternate;
}
.finale-glow {
  position: absolute; inset: -60px;
  background: radial-gradient(circle, rgba(245,158,11,.35), transparent 60%);
  filter: blur(10px);
  animation: glow-breathe 2.4s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes glow-breathe { from { opacity: .5; transform: scale(.92); } to { opacity: 1; transform: scale(1.06); } }

.finale-title { margin-bottom: 50px; }
.finale-line {
  display: block;
  font-family: var(--font-dev);
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1.15;
  color: var(--paper);
}
.glow-text {
  background: linear-gradient(100deg, var(--fire-soft) 10%, var(--fire) 50%, var(--fire-hot) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 34px rgba(245,158,11,.4));
}
.finale-eng {
  display: block; margin-top: 26px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(247,241,227,.65);
}
.finale-ctas { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ─────────── footer ─────────── */
.footer {
  background: var(--ink-deep);
  border-top: 1px solid rgba(247,241,227,.08);
  padding: 60px clamp(24px, 6vw, 80px) 36px;
  text-align: center;
}
.footer-logo { font-family: var(--font-dev); font-size: 2rem; }
.footer-tag { color: rgba(247,241,227,.55); margin-top: 8px; font-size: .92rem; }
.footer-nav {
  margin-top: 34px;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 14px 34px;
}
.footer-nav a {
  color: rgba(247,241,227,.92);
  text-decoration: none;
  font-size: .98rem;
  padding: 4px 2px;
  border-bottom: 1.6px solid transparent;
  transition: color .2s, border-color .2s;
}
.footer-nav a:hover { color: var(--fire-soft); border-bottom-color: var(--fire); }
.footer-rangoli {
  margin: 30px 0 26px;
  color: var(--fire);
  letter-spacing: 1.2em;
  font-size: .8rem;
  opacity: .7;
  white-space: nowrap;
  overflow: hidden;
}
.footer-copy {
  text-align: center;
  font-size: .85rem;
  color: rgba(247,241,227,.6);
}

/* ─────────── reveal helper ─────────── */
.reveal-up { opacity: 0; transform: translateY(48px); }

/* ═══════════ phones & small tablets ═══════════ */
@media (max-width: 760px) {
  /* nav: keep everything on one row without overflow */
  .nav { padding: 14px 16px; }
  .nav.scrolled { padding-top: 10px; padding-bottom: 10px; }
  .nav-logo { gap: 8px; }
  .nav-logo-mark { width: 34px; height: 34px; font-size: 1.05rem; }
  .nav-logo-text { font-size: 1rem; }
  .nav-links { gap: 9px; }
  .nav-logo-text { display: none; }          /* phone: धी mark carries the brand */
  .lang-btn { padding: 5px 7px; font-size: .72rem; }
  .theme-toggle { width: 30px; height: 30px; font-size: .88rem; }
  .nav-cta { padding: 8px 12px; font-size: .78rem; white-space: nowrap; }
  .nav-cta-flame { display: none; }

  /* hero: less text, tighter rhythm, roomy tap targets */
  .hero-inner { padding: 100px 20px 120px; }
  .hero-kicker {
    gap: 10px;
    font-size: .66rem;
    letter-spacing: .22em;
    margin-bottom: 22px;
    flex-wrap: wrap;
  }
  .kicker-line { width: 32px; }
  /* kicker stays on phone — it now carries "first time in India"; sub is one line */
  .hero-sub { margin-top: 22px; font-size: .98rem; line-height: 1.65; max-width: 34ch; }
  .hero-ctas { margin-top: 30px; gap: 12px; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-ctas .btn-fire { display: none; }    /* phone: ONE button — it scrolls to the story */
  .hero-ctas .btn-ghost {
    border-color: var(--fire);
    background: rgba(245,158,11,.08);
    color: var(--fire-soft);
    font-weight: 500;
  }
  .hero-meta { display: none; } /* phone: cut the metadata row — less text before the story */
  .scroll-hint-text { display: none; }       /* keep the animated bar, drop the words */
  .btn-fire-inner { padding: 15px 26px; }
  .btn-ghost { padding: 15px 26px; }

  /* phone: calmer palette — soften glows, dim bokeh, still the rainbow ring */
  .hero-word.dev.glow { filter: drop-shadow(0 0 10px rgba(245,158,11,.15)); }
  .glow-text { filter: drop-shadow(0 0 12px rgba(245,158,11,.18)); }
  #fireflies { opacity: .4; }
  .btn-fire {
    animation: none;
    padding: 2px;
    background: linear-gradient(120deg, var(--fire), var(--fire-hot));
  }

  /* story captions: readable, clear of the art */
  .yatra-overlay { bottom: 22px; padding: 0 18px; }
  .yatra-steps { min-height: 128px; }
  .yatra-step h2 { font-size: clamp(1.4rem, 6.4vw, 2rem); max-width: 18ch; }
  .yatra-step p { font-size: .92rem; max-width: 34ch; }
  .yatra-dots { margin-top: 16px; }
  .yatra-product { padding-bottom: 26vh; }
  .product-box { width: min(230px, 60vw); height: min(230px, 60vw); }

  /* boons: single column of notebook pages */
  .boon-grid { grid-template-columns: 1fr; gap: 30px; max-width: 460px; }
  .boon { padding: 36px 24px 26px; }

  /* stats: 2×2 instead of a tall single column */
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: none; border-top: 2px dashed rgba(11,10,29,.25); }
  .stat:first-child, .stat:nth-child(2) { border-top: none; }
  .stat:nth-child(odd) { border-right: 2px dashed rgba(11,10,29,.18); }

  /* teacher card: straighten so it never clips the viewport edge */
  .guruji-card { transform: none; }
  .guruji-card:hover { transform: scale(1.01); }

  /* footer: stacked & centered */
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-rangoli { letter-spacing: .7em; }
}

/* very small phones */
@media (max-width: 380px) {
  .nav-logo-text { font-size: .92rem; }
  .nav-cta { padding: 7px 10px; font-size: .72rem; }
  .lang-btn { padding: 5px 6px; }
}

/* ═══════════ LIGHT MODE — classic paper, ink & marigold ═══════════ */
html[data-theme="light"] .nav.scrolled {
  background: rgba(247,241,227,.82);
  border-bottom: 1px solid rgba(20,18,43,.1);
}
html[data-theme="light"] .nav-logo,
html[data-theme="light"] .nav-links a { color: var(--fg); }
html[data-theme="light"] .nav-links a:hover { color: var(--fire-hot); }
html[data-theme="light"] .lang-switch { border-color: rgba(20,18,43,.25); }
html[data-theme="light"] .lang-btn { color: var(--fg); opacity: .7; }
html[data-theme="light"] .lang-btn:hover { opacity: 1; }
html[data-theme="light"] .lang-btn + .lang-btn { border-left-color: rgba(20,18,43,.15); }
html[data-theme="light"] .lang-btn.is-on { color: var(--fire-hot); background: rgba(245,158,11,.16); opacity: 1; }
html[data-theme="light"] .theme-toggle { border-color: rgba(20,18,43,.3); }

html[data-theme="light"] .glyph { color: rgba(20,18,43,.08); }
html[data-theme="light"] .hero-word.dev { color: var(--fg); }
html[data-theme="light"] .hero-word.dev.glow { filter: drop-shadow(0 0 18px rgba(245,158,11,.25)); }
html[data-theme="light"] .hero-word.eng { color: rgba(20,18,43,.72); }
html[data-theme="light"] .hero-sub { color: rgba(20,18,43,.75); }
html[data-theme="light"] .hero-sub strong { color: var(--fire-hot); }
html[data-theme="light"] .hero-meta { color: rgba(20,18,43,.55); }
html[data-theme="light"] .scroll-hint-text { color: rgba(20,18,43,.5); }
html[data-theme="light"] .btn-ghost { color: var(--fg); border-color: rgba(20,18,43,.3); }
html[data-theme="light"] .btn-ghost:hover { border-color: var(--fire-hot); }

html[data-theme="light"] .vardaan { background: var(--bg-deep); }
html[data-theme="light"] .boon { box-shadow: 0 18px 40px -22px rgba(20,18,43,.35); }

html[data-theme="light"] .guruji {
  background:
    radial-gradient(ellipse 55% 70% at 85% 20%, rgba(15,118,110,.1), transparent 60%),
    var(--bg-deep);
}
html[data-theme="light"] .guruji-sub { color: rgba(20,18,43,.72); }
html[data-theme="light"] .btn-ghost.light { color: var(--fg); border-color: rgba(20,18,43,.3); }

html[data-theme="light"] .finale {
  background:
    radial-gradient(ellipse 60% 50% at 50% 62%, rgba(251,86,7,.1), transparent 65%),
    var(--bg);
}
html[data-theme="light"] .finale-line { color: var(--fg); }
html[data-theme="light"] .finale-eng { color: rgba(20,18,43,.65); }

html[data-theme="light"] .footer {
  background: var(--bg-deep);
  border-top-color: rgba(20,18,43,.12);
}
html[data-theme="light"] .footer-tag { color: rgba(20,18,43,.6); }
html[data-theme="light"] .footer-copy { color: rgba(20,18,43,.6); }
html[data-theme="light"] .footer-nav a { color: rgba(20,18,43,.85); }
html[data-theme="light"] .footer-nav a:hover { color: var(--fire-hot); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
