/* MahaDevastanam landing — base: tokens, type, buttons, nav, hero */
:root {
  --night-950: #0E0806; --night-900: #160D0A; --night-800: #22140F; --night-700: #2F1C15;
  --kumkum-700: #6E1A17; --kumkum-500: #A3261E;
  --saffron-600: #A85D1B; --saffron-500: #C97B2A; --turmeric-400: #E9A93A;
  --gold-300: #F2D08A; --gold-100: #FBEFD2;
  --sandal-50: #FCF8F2; --sandal-100: #F7EEDB; --sandal-200: #F4E7D3; --sandal-300: #E4CFAB;
  --ink-900: #2F241C; --ink-600: #7B6C5A; --ink-400: #B49F83; --line: #EADBCB;
  --gold-grad: linear-gradient(120deg, #FBEFD2 0%, #F2D08A 22%, #E9A93A 45%, #A85D1B 68%, #F2D08A 100%);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-deva: 'Tiro Devanagari Sanskrit', 'Nirmala UI', serif;
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night-950); color: var(--ink-900);
  font-family: var(--f-ui); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--turmeric-400); color: var(--night-950); }
:focus-visible { outline: 2px solid var(--turmeric-400); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* film grain over everything, very faint */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%; pointer-events: none; z-index: 90;
  opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -2%); } 80% { transform: translate(3%, 3%); }
}

/* ---------- type ---------- */
.container { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 22px;
  font: 600 12px/1 var(--f-ui); letter-spacing: .26em; text-transform: uppercase; color: var(--saffron-600);
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .55; }
.eyebrow.gold { color: var(--gold-300); }
.display {
  margin: 0; font: 500 clamp(42px, 5.6vw, 82px)/.98 var(--f-display); letter-spacing: -.018em; color: var(--ink-900);
}
.display em, .gold-text {
  font-style: italic;
  background: linear-gradient(120deg, #8E4C14 0%, #C97B2A 35%, #E9A93A 55%, #A85D1B 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em;
}
.display.light { color: var(--sandal-50); }
.display.light em, .shimmer {
  background: var(--gold-grad); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: -220% center; } }
.lede { margin: 26px 0 0; max-width: 54ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.75; color: var(--ink-600); }
.lede.light { color: rgba(252, 248, 242, .72); }

/* ---------- buttons ---------- */
.btn {
  --h: 54px; position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 30px; border-radius: 999px;
  font: 700 14px/1 var(--f-ui); letter-spacing: .02em; white-space: nowrap;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .3s, color .3s;
}
.btn-sm { --h: 42px; padding: 0 20px; font-size: 13px; }
.btn .arrow { transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-gold {
  color: var(--night-950);
  background: linear-gradient(135deg, #FBEFD2 0%, #F2D08A 28%, #E9A93A 64%, #C97B2A 100%);
  box-shadow: 0 12px 34px -12px rgba(233, 169, 58, .7), inset 0 1px 0 rgba(255, 255, 255, .65);
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform .9s var(--ease-out);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -14px rgba(233, 169, 58, .85), inset 0 1px 0 rgba(255, 255, 255, .65); }
.btn-gold:hover::after { transform: translateX(130%); }
.btn-ghost-light {
  color: var(--gold-100); background: rgba(251, 239, 210, .04);
  box-shadow: inset 0 0 0 1px rgba(242, 208, 138, .38); backdrop-filter: blur(8px);
}
.btn-ghost-light:hover { background: rgba(251, 239, 210, .1); box-shadow: inset 0 0 0 1px rgba(242, 208, 138, .75); transform: translateY(-2px); }
.btn-ink { color: var(--sandal-50); background: var(--night-900); box-shadow: 0 12px 30px -14px rgba(22, 13, 10, .7); }
.btn-ink:hover { transform: translateY(-2px); background: var(--night-700); }
.btn-outline { color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--sandal-300); }
.btn-outline:hover { color: var(--saffron-600); box-shadow: inset 0 0 0 1px var(--saffron-500); transform: translateY(-2px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--saffron-600); }
.link-arrow span { transition: transform .3s var(--ease-out); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: 84px;
  display: flex; align-items: center; gap: 36px; padding: 0 var(--gutter);
  color: var(--sandal-50);
  transition: height .45s var(--ease-out), background-color .45s, box-shadow .45s, color .45s;
}
.nav.is-scrolled { height: 68px; background: rgba(14, 8, 6, .7); backdrop-filter: saturate(1.5) blur(16px); box-shadow: 0 1px 0 rgba(242, 208, 138, .12); }
.nav.is-light { color: var(--ink-900); background: rgba(252, 248, 242, .8); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg, .brand .brand-logo { width: 36px; height: 36px; filter: drop-shadow(0 0 12px rgba(233, 169, 58, .45)); }
.brand-word { display: flex; flex-direction: column; gap: 4px; font: 600 23px/1 var(--f-display); letter-spacing: .01em; }
.brand-word small { font: 400 11px/1 var(--f-deva); letter-spacing: .1em; opacity: .66; }
.nav-links { display: flex; gap: 34px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav-links a { position: relative; opacity: .8; transition: opacity .25s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-burger { display: none; width: 44px; height: 44px; margin-left: auto; border-radius: 50%; position: relative; }
.nav-burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.nav-burger span:first-child { top: 18px; }
.nav-burger span:last-child { top: 25px; }
.menu-open .nav-burger span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .nav-burger span:last-child { top: 21.5px; transform: rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--night-950); color: var(--sandal-50);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 var(--gutter);
  clip-path: circle(0 at calc(100% - 42px) 42px); transition: clip-path .8s var(--ease-out);
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 42px) 42px); }
.menu a { font: 500 44px/1.2 var(--f-display); }
.menu a em { font-style: italic; color: var(--gold-300); }
.menu .btn { margin-top: 28px; align-self: flex-start; }

/* ---------- hero ---------- */
.hero {
  --lx: 50vw; --ly: 42vh; --lr: 0px;
  position: relative; height: 100svh; min-height: 700px; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  background: var(--night-950); color: var(--sandal-50);
}
.hero-photo { position: absolute; inset: -5%; background: url("../img/photo-hero-shivaratri.63543165c633.jpg") 50% 60% / cover no-repeat; will-change: transform; }
.hero-dim .hero-photo { filter: brightness(.2) saturate(.55) sepia(.4) contrast(1.05); }
.hero-dim, .hero-lit { position: absolute; inset: 0; }
.hero-lit {
  -webkit-mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 0%, rgba(0, 0, 0, .74) 26%, rgba(0, 0, 0, .34) 58%, transparent 92%);
  mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 0%, rgba(0, 0, 0, .74) 26%, rgba(0, 0, 0, .34) 58%, transparent 92%);
}
/* warm, lamp-lit, never a blue spotlight */
.hero-lit .hero-photo { filter: brightness(.92) saturate(.95) sepia(.18) contrast(1.05); }
.hero-tint {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle calc(var(--lr) * 1.25) at var(--lx) var(--ly), rgba(255, 168, 60, .2), transparent 70%);
}
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 65% at 50% 46%, transparent 25%, rgba(14, 8, 6, .8) 100%),
    linear-gradient(180deg, rgba(14, 8, 6, .6) 0%, transparent 22%, transparent 58%, var(--night-950) 100%);
}
.mandala {
  position: absolute; left: 50%; top: 45%; width: min(1180px, 160vw); aspect-ratio: 1;
  translate: -50% -50%; pointer-events: none; mix-blend-mode: screen; opacity: .55;
}
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; z-index: 3; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; margin-top: 56px; }

/* the diya */
.diya { position: relative; width: 140px; height: 104px; margin-bottom: 14px; }
.diya-glow {
  position: absolute; left: 104px; top: 26px; width: 460px; height: 460px; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 206, 110, .55) 0%, rgba(233, 140, 40, .2) 28%, transparent 62%);
  mix-blend-mode: screen; pointer-events: none; animation: breathe 4.5s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.1); opacity: .82; } }
.flame {
  position: absolute; left: 104px; bottom: 50px; width: 24px; height: 62px; translate: -50% 0;
  transform-origin: 50% 100%; animation: flicker 2.8s ease-in-out infinite; filter: url(#flame-warp);
}
.flame-outer {
  position: absolute; inset: 0; border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%;
  background: radial-gradient(ellipse 62% 82% at 50% 84%, #FFF9E0 0%, #FFE08A 20%, #FFAE34 46%, rgba(255, 110, 20, .85) 66%, rgba(255, 80, 0, 0) 84%);
  box-shadow: 0 0 26px 8px rgba(255, 160, 40, .42), 0 -8px 40px 10px rgba(255, 120, 20, .18);
}
.flame-core {
  position: absolute; left: 50%; bottom: 5px; width: 10px; height: 26px; translate: -50% 0;
  border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%;
  background: radial-gradient(ellipse at 50% 80%, #fff 0%, #FFF6CF 45%, rgba(255, 240, 200, 0) 82%);
}
.flame-blue {
  position: absolute; left: 50%; bottom: -1px; width: 11px; height: 11px; translate: -50% 30%; border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 140, 255, .8), transparent 70%); filter: blur(1px);
}
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) skewX(0); }
  18% { transform: scale(.96, 1.06) skewX(2deg); }
  37% { transform: scale(1.03, .95) skewX(-2.5deg); }
  55% { transform: scale(.97, 1.09) skewX(1deg); }
  78% { transform: scale(1.02, .97) skewX(-1deg); }
}
.diya-bowl { position: absolute; left: 0; bottom: 0; width: 140px; height: auto; overflow: visible; }

.shloka {
  margin: 0; font: 400 clamp(22px, 2.3vw, 30px)/1.35 var(--f-deva); letter-spacing: .05em;
  background: var(--gold-grad); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
}
.shloka-en { margin: 12px 0 30px; font: 600 11px/1 var(--f-ui); letter-spacing: .36em; text-transform: uppercase; color: rgba(242, 208, 138, .62); }
.hero-title { margin: 0; font: 500 clamp(50px, min(8.4vw, 12.5vh), 128px)/.94 var(--f-display); letter-spacing: -.022em; color: var(--sandal-50); text-shadow: 0 4px 40px rgba(0, 0, 0, .45); }
.hero-title .line { display: block; }
.hero-sub { max-width: 50ch; margin: 28px auto 0; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.75; color: rgba(252, 248, 242, .76); }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font: 600 10px/1 var(--f-ui); letter-spacing: .32em; text-transform: uppercase; color: rgba(242, 208, 138, .72);
}
.scroll-cue i { position: relative; width: 1px; height: 56px; overflow: hidden; background: linear-gradient(rgba(242, 208, 138, 0), rgba(242, 208, 138, .7)); }
.scroll-cue i::after {
  content: ""; position: absolute; left: -1px; top: -14px; width: 3px; height: 14px; border-radius: 2px;
  background: #FFE3A0; box-shadow: 0 0 10px #FFB84D; animation: drip 2.4s var(--ease-io) infinite;
}
@keyframes drip { to { top: 56px; } }

/* intro elements start hidden only when the animation script is running */
.js .hero-inner > *, .js .nav, .js .scroll-cue { opacity: 0; }

/* split-text words (hero + headings); gradients move from <em> onto each word */
.is-split em { background: none !important; color: inherit !important; animation: none !important; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; will-change: transform; }
.split .w.gold > span {
  font-style: italic; background: var(--gold-grad); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s linear infinite;
}
.split .w.gold-dark > span {
  font-style: italic; background: linear-gradient(120deg, #8E4C14 0%, #C97B2A 35%, #E9A93A 55%, #A85D1B 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

@media (max-height: 820px) { .scroll-cue { display: none; } .diya { margin-bottom: 4px; } .shloka-en { margin-bottom: 20px; } }
@media (max-width: 900px) {
  .nav-links, .nav > .btn { display: none; }
  .nav-burger { display: block; }
  .hero-inner { margin-top: 30px; }
  .diya { transform: scale(.85); }
}
