/* ==========================================================================
   AARAV & MEERA — WEDDING GALLERY
   Design system: modern Indian elegance
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --cream: #faf3e6;
  --cream-deep: #f1e5cf;
  --saffron: #f4a11b;
  --saffron-soft: #f8c469;
  --saffron-deep: #d97f0f;
  --maroon: #7a1f2b;
  --maroon-deep: #57121d;
  --maroon-ink: #38070f;
  --gold: #c99a3d;
  --gold-soft: #e2c98a;
  --ink: #3b2b1f;
  --muted: #8a755f;
  --white: #fffdf8;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-sans: "Marcellus", "Noto Sans Telugu", Georgia, serif;

  --shadow-sm: 0 6px 18px rgba(56, 7, 15, .08);
  --shadow-md: 0 14px 38px rgba(56, 7, 15, .14);
  --shadow-lg: 0 26px 70px rgba(56, 7, 15, .22);
  --shadow-gold: 0 12px 34px rgba(217, 127, 15, .35);

  --radius: 16px;
  --nav-h: 76px;
  --ease-out: cubic-bezier(.22, .8, .36, 1);
  --ease-snap: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

/* Kill sideways panning at the root: decorative layers (grain, aurora,
   off-canvas drawer) extend past the right edge on phones. `clip` avoids
   creating a scroll container, so position:sticky keeps working. */
html, body {
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 1.06rem;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--saffron); color: var(--maroon-ink); }

/* Gilded scrollbar: slim gold-on-cream (Firefox + WebKit) */
html { scrollbar-color: #c99a3d #f2e6cf; scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #f2e6cf; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), var(--maroon));
  border-radius: 8px; border: 2.5px solid #f2e6cf;
}

:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible, .filter-btn:focus-visible, .lb-btn:focus-visible, .lb-close:focus-visible, .lb-action:focus-visible, .to-top:focus-visible, .nav-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: fixed; top: -60px; left: 1rem; z-index: 3000;
  padding: .8rem 1.4rem; border-radius: 999px;
  background: var(--maroon-deep); color: var(--cream);
  font-family: var(--font-sans); font-size: .85rem;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--cream-deep); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--maroon), var(--maroon-deep)); border-radius: 8px; border: 2px solid var(--cream-deep); }

/* ---------- 3. Ambient layers ---------- */
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, transparent 60%, rgba(56, 7, 15, .14));
}

.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 2; pointer-events: none;
  width: 420px; height: 420px; margin-left: -210px; margin-top: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 161, 27, .10), transparent 65%);
  opacity: 0; transition: opacity .4s ease;
}
.cursor-glow.on { opacity: 1; }


/* Flower shower: absolute inside the hero, so petals fall over the title
   photo only and scroll away with it (no more raining over the whole page). */
.petals { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }

.grain {
  position: fixed; inset: -50%; z-index: 4; pointer-events: none; opacity: .06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(3) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1.5%); }
  66% { transform: translate(1.5%, -1%); }
  100% { transform: translate(0, 0); }
}
.petal {
  position: absolute; top: -8%;
  width: 13px; height: 19px;
  background: linear-gradient(160deg, rgba(255, 221, 156, .8) 0%, rgba(247, 178, 96, .55) 55%, rgba(228, 141, 61, .4) 100%);
  border-radius: 58% 42% 55% 45% / 68% 62% 38% 32%;
  box-shadow: inset 0 -2px 5px rgba(184, 96, 28, .25), inset 0 2px 4px rgba(255, 255, 255, .3);
  opacity: .4; animation: petal-fall linear infinite;
}
@keyframes petal-fall {
  0%   { transform: translateY(0) rotate(0deg) translateX(0); }
  25%  { transform: translateY(28vh) rotate(120deg) translateX(18px); }
  50%  { transform: translateY(56vh) rotate(240deg) translateX(-16px); }
  75%  { transform: translateY(84vh) rotate(320deg) translateX(14px); }
  100% { transform: translateY(112vh) rotate(480deg) translateX(-10px); }
}
/* During active scrolling, petals pause so they don't fight the gesture. */
.petals.scrubbing .petal { animation-play-state: paused; }

/* ---------- 4. Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  width: 100%; transform: scaleX(0); transform-origin: left; will-change: transform;
  box-shadow: 0 0 12px rgba(244, 161, 27, .5);
}

/* ---------- 5. Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  background: radial-gradient(circle at 50% 28%, var(--maroon), var(--maroon-ink) 75%);
  color: var(--cream);
  transition: opacity .8s ease, visibility .8s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }

/* Kolam that draws itself, then the Om fades in at its heart */
.preloader-kolam {
  position: relative; width: 128px; height: 128px;
  display: grid; place-items: center;
  animation: kolam-glow 3.4s ease-in-out infinite;
}
@keyframes kolam-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(201, 154, 61, 0)); }
  50% { filter: drop-shadow(0 0 22px rgba(201, 154, 61, .4)); }
}
.kolam-svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); }
/* Sacred rings rotating around the Om, inside the drawn kolam */
.pre-ring {
  position: absolute; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(201, 154, 61, .65);
}
.pr-1 {
  inset: -10px; border-style: dashed;
  border-color: rgba(244, 161, 27, .55);
  animation: spin 9s linear infinite;
}
.pr-2 {
  inset: 2px;
  border-color: rgba(201, 154, 61, .4);
  border-top-color: rgba(244, 161, 27, .8);
  animation: spin 6s linear infinite reverse;
}
.kp {
  stroke: var(--gold); stroke-width: 1.4; fill: none;
  stroke-linecap: round;
  stroke-dasharray: 260; stroke-dashoffset: 260;
  animation: kolam-draw .95s var(--ease-out) forwards;
  filter: drop-shadow(0 0 5px rgba(244, 161, 27, .45));
}
.kp2 { stroke: var(--saffron); stroke-dasharray: 215; stroke-dashoffset: 215; animation-delay: .3s; }
@keyframes kolam-draw { to { stroke-dashoffset: 0; } }
.kolam-dots { opacity: 0; animation: kolam-dots-in .7s ease .8s forwards; }
@keyframes kolam-dots-in { to { opacity: 1; } }
.preloader-core {
  position: relative; font-size: 2rem; color: var(--saffron);
  opacity: 0; animation: core-in .9s var(--ease-out) .55s forwards;
  filter: drop-shadow(0 0 10px rgba(244, 161, 27, .5));
}
@keyframes core-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }

.preloader-text { font-family: var(--font-script); font-size: 2.1rem; color: var(--gold-soft); transition: transform 1s var(--ease-out), text-shadow 1s ease; }
.preloader-text i { font-family: var(--font-body); font-style: italic; font-size: 1.3rem; color: var(--saffron); }
.preloader-line { width: 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--saffron), transparent); animation: grow-fade 1.6s ease infinite; transition: width 1s var(--ease-out); }
@keyframes grow-fade { 0% { transform: scaleX(.2); opacity: .2; } 50% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(.2); opacity: .2; } }
.preloader-stamp {
  font-family: var(--font-sans); font-size: .68rem; letter-spacing: .34em; text-transform: uppercase;
  color: rgba(255, 253, 248, .62);
  opacity: 0; transform: translateY(10px);
  transition: opacity .8s var(--ease-out) .3s, transform .8s var(--ease-out) .3s;
}

/* Title-card phase — JS adds .title-card ~1.5s in: the kolam settles back,
   the names bloom into a movie-poster lockup, the gold rule extends and the
   date stamp rises in before the curtain lifts. */
.preloader.title-card .preloader-kolam { transform: scale(.7); opacity: .3; }
.preloader.title-card .preloader-text { transform: scale(1.15); text-shadow: 0 0 36px rgba(244, 161, 27, .4); }
.preloader.title-card .preloader-line { width: 200px; animation: none; opacity: 1; transform: scaleX(1); }
.preloader.title-card .preloader-stamp { opacity: 1; transform: translateY(0); }
.preloader-kolam { transition: transform 1.1s var(--ease-out), opacity 1.1s ease; }

/* ---------- 6. Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
  padding: .9rem 0;
}
.navbar.scrolled {
  padding: .45rem 0;
  background: rgba(57, 9, 17, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, .28);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-monogram {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--maroon-ink); letter-spacing: .04em;
  background: radial-gradient(circle at 30% 30%, var(--saffron-soft), var(--saffron));
  border: 1px solid var(--gold);
  box-shadow: 0 4px 14px rgba(244, 161, 27, .45);
  transition: transform .35s var(--ease-out);
}
.brand:hover .brand-monogram { transform: rotate(-8deg) scale(1.05); }
.brand-word { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--white); letter-spacing: .02em; }

.nav-links { display: flex; gap: 2rem; }
/* Drawer header (couple identity) — mobile only, styled in the phone block */
.nav-drawer-head { display: none; }
.nav-link {
  position: relative; color: rgba(255, 253, 248, .9); font-family: var(--font-sans);
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding: .4rem 0;
  transition: color .3s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--saffron); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--saffron); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; padding: .5rem; z-index: 910; }
.nav-toggle span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .35s var(--ease-out), opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }



/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-block; padding: .95rem 2.1rem; border-radius: 999px;
  font-family: var(--font-sans); font-size: .86rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; border: 1px solid transparent;
  position: relative; overflow: hidden; transition: transform .3s var(--ease-out), box-shadow .3s, background .3s, color .3s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  color: var(--maroon-ink);
  box-shadow: var(--shadow-gold);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(217, 127, 15, .45); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-ghost { border-color: rgba(255, 253, 248, .55); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); transform: translateY(-3px); }
.btn-outline { border-color: var(--gold); color: var(--maroon); background: transparent; }
.btn-outline:hover { background: rgba(201, 154, 61, .15); transform: translateY(-3px); }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  color: var(--white); overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: -12% 0; z-index: -3;
  transform: scale(1.08);
  will-change: transform;
  opacity: 0; transition: opacity 1.5s ease;
}
.hero-bg.ready { opacity: 1; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
  content: ""; position: absolute; inset: -8%;
  background-image: inherit; background-size: cover; background-position: center;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.16); } }
.hero-scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(56, 7, 15, .18), transparent 55%),
    /* Soft halo behind the name column keeps titles readable on any photo */
    radial-gradient(ellipse 72% 40% at 50% 44%, rgba(38, 4, 10, .5), rgba(38, 4, 10, .26) 55%, transparent 78%),
    linear-gradient(to bottom, rgba(56, 7, 15, .62), rgba(56, 7, 15, .44) 45%, rgba(38, 4, 10, .88));
}
.hero-ornament { position: absolute; top: 50%; width: 220px; height: 220px; z-index: -1; opacity: .5; pointer-events: none; }
.hero-ornament-left  { left: 4%;  transform: translateY(-50%); }
.hero-ornament-right { right: 4%; transform: translateY(-50%) rotate(90deg); }

.hero-content { position: relative; z-index: 2; width: 100%; padding: calc(var(--nav-h) + 2.5rem) 1.5rem 7rem; max-width: 1000px; transition: transform .7s var(--ease-out); will-change: transform; }

/* --- Quiet ornament divider (hero → story) --- */
.divider { display: flex; align-items: center; justify-content: center; gap: 1.3rem; padding: 3rem 1.5rem 2.4rem; }
.dv-line { height: 1px; width: clamp(60px, 9vw, 130px); background: linear-gradient(90deg, transparent, var(--gold)); opacity: .8; }
.dv-line.dv-r { background: linear-gradient(90deg, var(--gold), transparent); }
.dv-dot {
  width: 11px; height: 11px; transform: rotate(45deg); flex-shrink: 0;
  background: linear-gradient(135deg, var(--saffron-soft), var(--saffron-deep));
  box-shadow: 0 0 0 4px rgba(244, 161, 27, .12), 0 0 18px rgba(244, 161, 27, .35);
  animation: pulse-soft 3.2s ease-in-out infinite;
}

/* --- Section title: gold bar draws in --- */
.section-title { position: relative; display: inline-block; padding-bottom: .35rem; }
.section-title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%) scaleX(0);
  transform-origin: center; height: 2px; width: 72px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: transform .8s var(--ease-out) .2s;
}
.reveal.in .section-title::after { transform: translateX(-50%) scaleX(1); }

.ganesha-icon {
  display: inline-block;
  background-image: url("../images/ganesha.svg");
  background-size: contain; background-repeat: no-repeat; background-position: center;
  filter: drop-shadow(0 0 14px rgba(244, 161, 27, .45));
}
.ganesha-hero {
  width: 86px; height: 86px; margin: 0 auto 1rem; padding: 12px;
  border-radius: 50%; border: 1px solid rgba(201, 154, 61, .5);
  background-color: rgba(255, 253, 248, .05);
  box-shadow: 0 0 30px rgba(201, 154, 61, .25), inset 0 0 18px rgba(201, 154, 61, .1);
  animation: float-soft 4.4s ease-in-out infinite;
}
.toranam {
  width: 224px; height: 60px; margin: 0 auto 1.2rem;
  background: url("../images/toranam.svg") center / contain no-repeat;
  filter: drop-shadow(0 5px 14px rgba(244, 161, 27, .3));
}
@keyframes float-soft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.hero-kicker {
  font-family: var(--font-sans); letter-spacing: .5em; text-transform: uppercase;
  font-size: .78rem; color: var(--saffron-soft); margin-bottom: 1.6rem; padding-left: .5em;
}
.hero-title { font-family: var(--font-display); font-weight: 600; line-height: 1.02; }
.name { display: inline-block; font-size: clamp(3rem, 11vw, 7.5rem); color: var(--white); text-shadow: 0 8px 40px rgba(0, 0, 0, .35); }
.amp-line { display: block; margin: .1em 0; }
.amp { font-family: var(--font-display); font-style: italic; font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: .02em; color: var(--saffron); text-shadow: 0 0 30px rgba(244, 161, 27, .25); }
.hero-title .name-line { display: block; overflow: hidden; }
.hero-title .name { transform: translateY(110%); animation: name-up 1.1s var(--ease-out) forwards; }
.hero-title .name-a { animation-delay: .35s; }
.hero-title .name-b { animation-delay: .65s; }
@keyframes name-up { to { transform: translateY(0); } }

.hero-date-rule { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1.8rem 0 2.2rem; }
.rule-line { height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-date-rule .rule-line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.hero-date { font-family: var(--font-body); font-style: italic; font-size: 1.25rem; letter-spacing: .04em; color: var(--cream); white-space: nowrap; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255, 253, 248, .8);
}
.scroll-cue-text { font-family: var(--font-sans); font-size: .68rem; letter-spacing: .35em; text-transform: uppercase; }
.scroll-cue-wheel {
  width: 26px; height: 42px; border: 1.5px solid rgba(255, 253, 248, .65); border-radius: 999px;
  position: relative;
}
.scroll-cue-wheel::before {
  content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--saffron); border-radius: 2px; animation: cue-drop 1.8s ease-in-out infinite;
}
@keyframes cue-drop { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- 9. Section scaffolding ---------- */
.section { padding: 7.5rem 1.5rem; max-width: 1200px; margin: 0 auto; position: relative; }
.section-head { position: relative; text-align: center; margin-bottom: 3.4rem; padding: 2.1rem 1.6rem 2.3rem; }
/* Wedding-card frame: double gold rule with corner flourishes */
.section-head::after {
  content: ""; position: absolute; inset: 4px; z-index: 0; pointer-events: none;
  border: 1px solid rgba(201, 154, 61, .42);
  outline: 1px solid rgba(201, 154, 61, .2); outline-offset: 4px;
  background:
    linear-gradient(var(--gold), var(--gold)) left top / 22px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left top / 2px 22px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right top / 22px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right top / 2px 22px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left bottom / 22px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left bottom / 2px 22px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 22px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 2px 22px no-repeat;
}
.section-head > * { position: relative; z-index: 1; }
.section-head::before {
  content: ""; display: block; width: 92px; height: 58px; margin: 0 auto 1.2rem;
  background: url("../images/lotus.svg") center / contain no-repeat;
  filter: drop-shadow(0 4px 12px rgba(244, 161, 27, .3));
}
.eyebrow {
  display: block; width: fit-content; font-family: var(--font-sans); font-size: .72rem;
  letter-spacing: .4em; text-transform: uppercase; color: var(--saffron-deep);
  padding-bottom: .6rem; position: relative;
}
.eyebrow::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 44px; height: 1px; transform: translateX(-50%); background: var(--gold); }
.section-head .eyebrow { margin: 0 auto; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 600; margin-top: .8rem; line-height: 1.15; }
.section-sub { color: var(--muted); font-style: italic; font-size: 1.15rem; margin-top: .9rem; }

/* --- Cascading section-head reveal (eyebrow → title → subtitle) --- */
.section-head .eyebrow, .section-head .section-title, .section-head .section-sub {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.section-head.in .eyebrow { opacity: 1; transform: none; transition-delay: .04s; }
.section-head.in .section-title { opacity: 1; transform: none; transition-delay: .14s; }
.section-head.in .section-sub { opacity: 1; transform: none; transition-delay: .26s; }

/* --- Cascading story-text reveal --- */
.story-text .eyebrow, .story-text .section-title, .story-text .story-intro,
.story-text .story-vandana, .story-text .story-body, .story-text .story-blessing,
.story-text .story-sign {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.story-text.in .eyebrow { opacity: 1; transform: none; transition-delay: .05s; }
.story-text.in .section-title { opacity: 1; transform: none; transition-delay: .15s; }
.story-text.in .story-intro { opacity: 1; transform: none; transition-delay: .26s; }
.story-text.in .story-vandana { opacity: 1; transform: none; transition-delay: .38s; }
.story-text.in .story-body { opacity: 1; transform: none; transition-delay: .48s; }
.story-text.in .story-blessing { opacity: 1; transform: none; transition-delay: .58s; }
.story-text.in .story-sign { opacity: 1; transform: none; transition-delay: .66s; }

/* ---------- 10. Story ---------- */
.story { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%); padding-bottom: 3.5rem; }
.story-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.story-text { position: relative; }
.story-text::before {
  content: "M" attr(data-amp) "R"; position: absolute; top: 30%; right: -1rem; z-index: -1;
  font-family: var(--font-script); font-size: clamp(6rem, 14vw, 9rem);
  color: rgba(122, 31, 43, .07); line-height: 1; pointer-events: none;
}
.story-portraits { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; position: relative; }
.portrait { text-align: center; position: relative; }
.portrait-frame {
  position: relative; width: 100%; max-width: 250px; margin: 0 auto; border-radius: 50%;
  padding: 9px; background: linear-gradient(135deg, var(--gold-soft), var(--gold), var(--saffron-deep));
  box-shadow: var(--shadow-md);
}
.portrait-frame::before {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  border: 1px dashed rgba(201, 154, 61, .55); transform: rotate(0deg);
  animation: spin 40s linear infinite; pointer-events: none;
}
.portrait-frame::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  border: 1px dashed rgba(122, 31, 43, .5);
}
.portrait-bride { margin-top: 2.6rem; }
.portrait-groom { margin-bottom: 2.6rem; }
.portrait-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.portrait-name { margin-top: 1rem; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--maroon); }
.portrait-name::before { content: "- "; color: var(--saffron); }
.portrait-monogram {
  font-size: 2.2rem; color: var(--gold); width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(201, 154, 61, .5);
  background: rgba(255, 253, 248, .4); box-shadow: var(--shadow-sm);
}
.story-text .eyebrow { margin: 0; }
.story-text .section-title { margin-top: .5rem; }
.story-intro { font-family: var(--font-display); font-size: 1.3rem; font-style: italic; line-height: 1.5; color: var(--maroon); margin: 1.4rem 0 .9rem; }
.story-intro::first-letter {
  font-family: var(--font-display); font-size: 2.9rem; font-weight: 600;
  float: left; line-height: .8; padding: .12em .16em 0 0; color: var(--saffron-deep);
}
.story-vandana {
  display: flex; align-items: center; gap: .7rem; margin: .6rem 0 1.1rem;
  padding: .85rem 1.1rem; border-left: 3px solid var(--saffron);
  background: linear-gradient(90deg, rgba(244, 161, 27, .12), transparent);
  border-radius: 0 14px 14px 0;
  font-family: var(--font-body); font-style: italic; font-size: 1.05rem; color: var(--maroon);
}
.story-vandana .ganesha-icon { width: 36px; height: 36px; flex-shrink: 0; }
.story-body { color: var(--muted); font-size: 1.1rem; }
.story-blessing {
  margin-top: 1.2rem; font-family: "Noto Sans Telugu", "Noto Sans", sans-serif; font-weight: 600;
  font-size: 1.6rem; color: var(--saffron-deep); letter-spacing: .04em;
  position: relative; padding-left: 1.6rem;
}
.story-blessing::before {
  content: ""; position: absolute; left: 0; top: .2rem; bottom: .2rem; width: 2px;
  background: linear-gradient(180deg, var(--saffron), transparent);
}
.story-blessing::after {
  content: "an auspicious beginning"; font-family: var(--font-body); font-style: italic;
  font-size: .95rem; color: var(--muted); letter-spacing: .02em; margin-left: .7rem;
}
.story-sign { display: block; margin-top: 1.6rem; font-family: var(--font-script); font-size: 2.4rem; }

/* ---------- 11. Stats ---------- */
.stats {
  padding: 0; margin: 0 auto; max-width: 100%;
  background:
    radial-gradient(ellipse at 50% -40%, rgba(244, 161, 27, .22), transparent 55%),
    linear-gradient(135deg, var(--maroon), var(--maroon-deep));
}
.stats-inner {
  max-width: 1200px; margin: 0 auto; padding: 3.4rem 1.5rem;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem;
}
.stat { text-align: center; color: var(--cream); }
.stat-value {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 600;
  color: var(--saffron); line-height: 1.1; text-shadow: 0 0 28px rgba(244, 161, 27, .35);
}
.stat-value-text {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 2.8vw, 1.7rem); line-height: 1.2;
  color: var(--saffron); letter-spacing: .02em; text-shadow: 0 0 22px rgba(244, 161, 27, .3);
}
.stat-label { font-family: var(--font-sans); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 253, 248, .72); margin-top: .5rem; }

/* ---------- 11.5 Parallax band ---------- */
.parallax-band {
  position: relative; height: 64vh; min-height: 460px; overflow: hidden;
  display: grid; place-items: center; text-align: center; isolation: isolate;
}
.band-bg { position: absolute; inset: -22% 0; z-index: -2; background-size: cover; background-position: center; will-change: transform; /* gradient fallback shows until assets/images/quote.jpg is uploaded via /admin */ background-image: linear-gradient(135deg, #57121d, #7a1f2b 55%, #9a2533); }
.parallax-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(38, 4, 10, .42); }
.parallax-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(250, 243, 230, .9), transparent 22%, transparent 78%, rgba(250, 243, 230, .9)); }
.band-quote {
  position: relative; z-index: 2; max-width: 74%;
  font-family: var(--font-display); font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 500; font-style: italic;
  color: var(--cream); letter-spacing: .01em; text-shadow: 0 6px 40px rgba(0, 0, 0, .55);
}

/* Cinematic letterbox bars along the top and bottom of the band */
.band-bar {
  position: absolute; left: 0; right: 0; z-index: 3; height: clamp(28px, 6vh, 54px);
  pointer-events: none;
}
.band-bar-top {
  top: 0;
  background: linear-gradient(180deg, rgba(15, 1, 4, .9), rgba(15, 1, 4, .45) 65%, transparent);
}
.band-bar-btm {
  bottom: 0;
  background: linear-gradient(0deg, rgba(15, 1, 4, .9), rgba(15, 1, 4, .45) 65%, transparent);
}

/* Slow Ken Burns drift. It lives on a child of .band-bg because the parallax
   scroll transform is applied inline to .band-bg itself — a CSS animation on
   the same element would overwrite it. background:inherit mirrors the photo
   (and the gradient fallback) one layer deeper. */
.band-bg::after {
  content: ""; position: absolute; inset: 0;
  background: inherit; border-radius: inherit;
  animation: band-kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes band-kenburns {
  from { transform: scale(1) translateX(0); }
  to { transform: scale(1.14) translateX(-1.6%); }
}

/* Word-by-word reveal — JS splits #bandQuote into .bw spans and adds .bw-in
   when the band scrolls into view; the stagger comes from inline delays. */
.band-quote .bw {
  display: inline-block;
  opacity: 0; transform: translateY(14px); filter: blur(6px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), filter .7s var(--ease-out);
  will-change: opacity, transform;
}
.band-quote.bw-in .bw { opacity: 1; transform: translateY(0); filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .band-quote .bw { opacity: 1; transform: none; filter: none; transition: none; }
  .band-bg::after { animation: none; }
}

/* ---------- 12. Gallery ---------- */
.filters { display: flex; justify-content: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.filter-btn {
  background: transparent; border: 1px solid var(--gold); color: var(--maroon);
  padding: .55rem 1.3rem; border-radius: 999px; font-family: var(--font-sans);
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
  display: inline-flex; align-items: center; gap: .45rem;
  transition: background .3s, color .3s, transform .3s var(--ease-out), box-shadow .3s;
}
.filter-btn:hover { background: rgba(201, 154, 61, .18); transform: translateY(-2px); }
.filter-btn .fb-count {
  font-size: .66rem; font-weight: 600; letter-spacing: 0; line-height: 1; margin-top: 1px;
  background: rgba(201, 154, 61, .18); color: var(--maroon); padding: .22rem .5rem; border-radius: 999px;
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep)); border-color: var(--maroon); color: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(244, 161, 27, .55), 0 8px 22px rgba(122, 31, 43, .35);
}
.filter-btn.active .fb-count { background: rgba(244, 161, 27, .25); color: var(--cream); }

/* Stable masonry: JS distributes tiles into .g-col wrappers (round-robin), so
   appending a chunk never re-balances the columns like CSS multi-column did.
   column-count stays as a no-JS fallback — it's ignored once display:flex is
   in effect. */
.gallery-grid {
  column-count: 3; column-gap: 1.1rem;
  display: flex; gap: 1.1rem; align-items: flex-start;
}
.g-col { flex: 1 1 0; min-width: 0; }
.g-item {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  break-inside: avoid; margin-bottom: 1.1rem;
  background: var(--gold-soft);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .4s;
}
.g-item:hover { box-shadow: var(--shadow-lg); }
.g-item.hide { display: none; }
.g-item.reveal { transition: opacity .8s ease var(--rd, 0s), transform .8s ease var(--rd, 0s), box-shadow .4s ease; }
.g-item img {
  width: 100%; opacity: 0; filter: blur(14px) saturate(.9); transform: scale(1.04);
  transition: opacity .8s ease, filter .8s ease, transform .8s ease;
}
.g-item.loaded img { opacity: 1; filter: blur(0) saturate(1); transform: scale(1); }
.g-item:hover img { transform: scale(1.05); }
.g-shimmer {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--cream-deep) 30%, var(--gold-soft) 50%, var(--cream-deep) 70%);
  background-size: 200% 100%; animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.g-item.loaded .g-shimmer { animation: none; }
.g-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1.1rem;
  color: var(--white); opacity: 0; transition: opacity .35s ease;
  background: linear-gradient(to top, rgba(38, 4, 10, .78), transparent 55%);
}
.g-item:hover .g-overlay { opacity: 1; }
.g-caption { font-family: var(--font-body); font-style: italic; font-size: 1.02rem; }
.g-badge {
  position: absolute; top: .9rem; left: .9rem; z-index: 2;
  font-family: var(--font-sans); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--maroon-ink); background: rgba(248, 196, 105, .92); padding: .28rem .7rem; border-radius: 999px;
  backdrop-filter: blur(4px); opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s var(--ease-out);
}
.g-item:hover .g-badge { opacity: 1; transform: translateY(0); }
.gallery-count { text-align: center; color: var(--muted); font-style: italic; margin-top: 1.6rem; font-size: 1.02rem; }

/* ---------- 13. Timeline ---------- */
.timeline-list { position: relative; list-style: none; max-width: 900px; margin: 0 auto; padding: 0; }
.timeline-list::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 2px; background: linear-gradient(180deg, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
}
.tl-item { position: relative; width: 50%; padding: 0 2.8rem 2.6rem; box-sizing: border-box; }
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; text-align: left; }
.tl-dot {
  position: absolute; top: .35rem; width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--saffron-soft), var(--saffron-deep));
  box-shadow: 0 0 0 4px rgba(244, 161, 27, .16), 0 0 14px rgba(244, 161, 27, .5);
}
.tl-item:nth-child(odd) .tl-dot { right: -7.5px; }
.tl-item:nth-child(even) .tl-dot { left: -7.5px; }
.tl-date {
  display: inline-block; font-family: var(--font-sans); font-size: .68rem; letter-spacing: .26em;
  color: var(--saffron-deep); border: 1px solid var(--gold); padding: .22rem .7rem; border-radius: 999px; margin-bottom: .7rem;
}
.tl-title { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: var(--maroon); }
.tl-text { color: var(--muted); margin-top: .45rem; font-size: 1.02rem; line-height: 1.6; max-width: 360px; }
.tl-item:nth-child(odd) .tl-text { margin-left: auto; }

/* ---------- 13.5 Moments strip ---------- */
.moments { padding: 5.5rem 0; background: linear-gradient(180deg, var(--cream), var(--cream-deep)); overflow: hidden; }
.moments .section-head { padding: 2.1rem 1.5rem 2.3rem; }
.moments-nav { display: flex; justify-content: center; gap: 1rem; padding: 0 1.5rem; }
.moments-arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold);
  background: transparent; color: var(--maroon); font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; transition: background .3s, color .3s, transform .3s, box-shadow .3s;
}
.moments-arrow:hover { background: linear-gradient(135deg, var(--maroon), var(--maroon-deep)); color: var(--cream); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(122, 31, 43, .3); }
.moments-scroll {
  display: flex; overflow-x: auto; overflow-y: hidden; gap: 1.1rem;
  padding: 1.4rem 1.5rem 1rem; scrollbar-width: none; cursor: grab; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.moments-scroll::-webkit-scrollbar { display: none; }
.moments-scroll.dragging { cursor: grabbing; scroll-behavior: auto; }
.marquee-track { display: flex; gap: 1.1rem; flex-shrink: 0; }
.moment-card {
  position: relative; height: 300px; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md); flex-shrink: 0;
}
.moment-card img { height: 100%; width: auto; max-width: none; display: block; transition: transform .6s var(--ease-out); }
.moment-card:hover img { transform: scale(1.05); }
.moment-card::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(201, 154, 61, .5); border-radius: var(--radius); pointer-events: none;
}

/* ---------- 14. Guestbook ---------- */
.guestbook .section-head { margin-bottom: 2.6rem; }
.guestbook { content-visibility: auto; contain-intrinsic-size: auto 700px; }
.guestbook-layout {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.4rem; align-items: start;
  background: linear-gradient(180deg, var(--white), var(--cream));
  border: 1px solid rgba(201, 154, 61, .35); border-radius: 22px;
  padding: 2.4rem; box-shadow: var(--shadow-sm);
}
.gb-form { display: flex; flex-direction: column; gap: 1.1rem; }
.gb-field { position: relative; }
.gb-form input, .gb-form textarea {
  width: 100%; padding: .95rem 1.15rem; border-radius: 12px; border: 1px solid var(--gold);
  background: #fff; font-family: var(--font-sans); font-size: .92rem; color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
}
.gb-form input:focus, .gb-form textarea:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 4px rgba(122, 31, 43, .1); }
.gb-field textarea { resize: vertical; padding-bottom: 2.1rem; }
.gb-count {
  position: absolute; right: .9rem; bottom: .65rem;
  font-family: var(--font-sans); font-size: .68rem; letter-spacing: .05em; color: var(--muted);
}
.gb-count.full { color: var(--maroon); font-weight: 600; }
.gb-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.gb-note { font-family: var(--font-sans); font-size: .74rem; color: var(--muted); line-height: 1.5; }
.gb-messages { display: flex; flex-direction: column; gap: 1rem; max-height: 460px; overflow-y: auto; padding-right: .4rem; }
.gb-messages::-webkit-scrollbar { width: 8px; }
.gb-messages::-webkit-scrollbar-thumb { background: var(--gold); border: 0; }

/* Blessings as keepsake note cards: cream paper, tape at the top,
   alternating tilt, message in the handwritten script */
.gb-msg {
  position: relative; display: flex; gap: 1rem;
  background: linear-gradient(180deg, #fffdf6, #faf3e2);
  padding: 1.5rem 1.2rem 1.2rem; margin-top: .5rem;
  border-radius: 4px; border: 1px solid rgba(201, 154, 61, .35);
  box-shadow: 0 12px 30px rgba(122, 31, 43, .09);
  transform: rotate(-.7deg);
  animation: msg-in .45s var(--ease-out);
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.gb-msg:nth-child(even) { transform: rotate(.6deg); }
.gb-msg:hover { transform: rotate(0deg) translateY(-3px); box-shadow: 0 18px 38px rgba(201, 154, 61, .2); }
.gb-msg::before {
  content: ""; position: absolute; top: -11px; left: 50%; z-index: 1;
  transform: translateX(-50%) rotate(-2.5deg);
  width: 78px; height: 22px;
  background: rgba(244, 161, 27, .16);
  border: 1px solid rgba(201, 154, 61, .32);
  box-shadow: 0 2px 6px rgba(122, 31, 43, .08);
}
@keyframes msg-in { from { opacity: 0; } to { opacity: 1; } }
.gb-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--maroon-ink);
  background: radial-gradient(circle at 30% 30%, var(--saffron-soft), var(--saffron));
}
.gb-body { min-width: 0; }
.gb-head { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.gb-name { font-family: var(--font-display); font-weight: 600; color: var(--maroon); }
.gb-time { font-family: var(--font-sans); font-size: .72rem; letter-spacing: .06em; color: var(--muted); }
.gb-text { font-family: var(--font-script); font-size: 1.4rem; line-height: 1.5; color: #6b5138; margin-top: .35rem; }
.gb-empty { text-align: center; color: var(--muted); font-style: italic; padding: 1.4rem; border: 1px dashed var(--gold); border-radius: 14px; }

/* ---------- 15. Footer ---------- */
.footer {
  position: relative; text-align: left; padding: 3.6rem 1.5rem 2.2rem; margin-top: 2rem;
  background: linear-gradient(180deg, var(--maroon-ink), #2a040a);
  color: rgba(255, 253, 248, .85); overflow: hidden;
}
.footer::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 240px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 2.6rem; justify-content: space-between;
  align-items: flex-start; max-width: 1200px; margin: 0 auto;
}
.footer-brand { max-width: 340px; }
.footer-ornament {
  width: 60px; height: 60px; margin: 0 0 1rem; border-radius: 50%;
  display: grid; place-items: center; padding: 8px;
  border: 1px solid rgba(201, 154, 61, .6);
  animation: ring-breathe 3.4s ease-in-out infinite;
}
.footer-word { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: var(--cream); position: relative; padding-bottom: .3rem; }
.footer-word::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--saffron); }
.footer-tagline { font-family: var(--font-body); font-style: italic; color: rgba(255, 253, 248, .6); margin-top: .6rem; font-size: 1.05rem; }
.footer-nav { display: flex; flex-direction: column; gap: .75rem; padding-top: .2rem; }
.footer-nav-label, .footer-actions-label { font-family: var(--font-sans); font-size: .68rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(255, 253, 248, .45); margin-bottom: .4rem; }
.footer-nav a { color: rgba(255, 253, 248, .78); font-family: var(--font-sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; width: fit-content; position: relative; transition: color .3s, transform .3s; }
.footer-nav a:hover { color: var(--saffron); transform: translateX(4px); }
.footer-actions { display: flex; flex-direction: column; gap: .8rem; padding-top: .2rem; }
.footer-share, .footer-top {
  display: inline-block; padding: .62rem 1.5rem; border-radius: 999px; text-align: center;
  background: transparent; border: 1px solid rgba(201, 154, 61, .6); color: var(--saffron-soft);
  font-family: var(--font-sans); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  transition: background .3s, transform .3s, color .3s;
}
.footer-share:hover, .footer-top:hover { background: rgba(201, 154, 61, .18); color: var(--cream); transform: translateY(-2px); }
.footer-rule { height: 1px; width: min(1200px, 100%); margin: 2.4rem auto 1.6rem; background: linear-gradient(90deg, transparent, rgba(201, 154, 61, .35), transparent); }
.footer-blessing { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin: 0 auto 1.8rem; max-width: 1200px; text-align: center; }
.footer-blessing-tel { font-family: var(--font-display); font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 600; color: var(--gold-soft); letter-spacing: .02em; }
.footer-blessing-lat { font-family: var(--font-body); font-style: italic; color: rgba(255, 253, 248, .62); font-size: 1rem; }
.footer-gratitude { font-family: var(--font-body); font-style: italic; color: rgba(255, 253, 248, .7); font-size: .95rem; text-align: center; max-width: 640px; margin: 1.4rem auto 0; padding: 0 1rem; }
.footer-base { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-line { font-family: var(--font-body); font-style: italic; font-size: 1.05rem; }
.footer-copy { font-family: var(--font-sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 253, 248, .55); }

/* --- Gopuram skyline along the footer --- */
.gopuram-skyline {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center; gap: 1.6rem;
  margin-top: 2.6rem; height: 118px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 48%);
  mask-image: linear-gradient(180deg, transparent, #000 48%);
}
/* Diya flames flickering at the base of the temple town */
.gopuram-skyline::before, .gopuram-skyline::after {
  content: ""; position: absolute; bottom: -8px; z-index: 1;
  width: 190px; height: 62px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 176, 64, .5), rgba(255, 122, 24, .14) 55%, transparent 75%);
  filter: blur(5px); pointer-events: none;
  animation: diya-flicker 3.2s ease-in-out infinite;
}
.gopuram-skyline::before { left: 6%; }
.gopuram-skyline::after { right: 6%; animation-delay: -1.6s; }
@keyframes diya-flicker {
  0%, 100% { opacity: .5; transform: scaleY(1); }
  22% { opacity: .9; transform: scaleY(1.12); }
  47% { opacity: .45; transform: scaleY(.96); }
  71% { opacity: .95; transform: scaleY(1.08); }
}
.gopuram-skyline .gs-gp {
  flex-shrink: 0; opacity: .15;
  background: url("../images/gopuram.svg") center bottom / contain no-repeat;
}
.heart { color: var(--saffron); display: inline-block; animation: heartbeat 1.6s ease-in-out infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.25); } 40% { transform: scale(1); } }
.footer-copy { margin-top: .5rem; font-family: var(--font-sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 253, 248, .55); }

/* ---------- 16. Back to top ---------- */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 800;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  color: var(--maroon-ink); font-size: 1.2rem;
  box-shadow: var(--shadow-gold);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .4s, visibility .4s, transform .4s var(--ease-out);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

/* ---------- 16.5 Sound toggle ---------- */
.sound-toggle {
  position: fixed; left: 1.4rem; bottom: 1.4rem; z-index: 820;
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(201, 154, 61, .6);
  background: rgba(57, 9, 17, .72); backdrop-filter: blur(8px);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .3s var(--ease-out), box-shadow .3s, background .3s;
}
.sound-toggle:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .35); background: rgba(57, 9, 17, .9); }
.sound-toggle .st-note { color: var(--saffron-soft); font-size: 1.2rem; line-height: 1; }
.sound-toggle .st-bars { display: none; gap: 2.5px; align-items: flex-end; height: 16px; }
.sound-toggle .st-bars span { width: 3px; background: var(--saffron); border-radius: 2px; animation: st-bar 1s ease-in-out infinite; }
.sound-toggle .st-bars span:nth-child(2) { animation-delay: .18s; }
.sound-toggle .st-bars span:nth-child(3) { animation-delay: .36s; }
@keyframes st-bar { 0%, 100% { height: 5px; } 50% { height: 15px; } }
.sound-toggle.playing .st-note { display: none; }
.sound-toggle.playing .st-bars { display: inline-flex; }
.sound-toggle.playing { border-color: var(--saffron); box-shadow: 0 0 22px rgba(244, 161, 27, .5); }
.sound-toggle::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid rgba(244, 161, 27, .5);
  animation: st-pulse 2.2s ease-out infinite;
}
@keyframes st-pulse { 0% { transform: scale(.9); opacity: .7; } 70%, 100% { transform: scale(1.4); opacity: 0; } }
.sound-toggle.playing::after { animation: none; opacity: 0; }

/* ---------- 17. Toasts ---------- */
.toast-stack { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 1500; display: flex; flex-direction: column; gap: .6rem; width: min(92vw, 420px); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: .7rem;
  background: var(--maroon-deep); color: var(--cream); padding: .85rem 1.15rem;
  border-radius: 12px; border-left: 4px solid var(--saffron);
  box-shadow: var(--shadow-md); font-family: var(--font-sans); font-size: .86rem;
  animation: toast-in .4s var(--ease-out);
}
.toast.out { animation: toast-out .4s var(--ease-out) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px) scale(.96); } }

/* ---------- 18. Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1600; display: flex; align-items: center; justify-content: center;
  background: rgba(26, 3, 8, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
/* Theater vignette — darkens the edges so the photo sits in a spotlight.
   Sits below the stage (z-index 2) and the arrows (z-index 2). */
.lightbox::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 120% 92% at 50% 46%, transparent 52%, rgba(10, 0, 3, .6) 100%);
}
.lb-stage { position: relative; z-index: 2; max-width: min(92vw, 1100px); max-height: 88vh; text-align: center; transform: scale(.95); transition: transform .45s var(--ease-out); }
.lightbox.open .lb-stage { transform: scale(1); }
.lb-image-wrap { position: relative; overflow: hidden; border-radius: 14px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.lb-image-wrap img { display: block; max-width: min(92vw, 1100px); max-height: 74vh; margin: 0 auto; transform: scale(.96); opacity: 0; transition: transform .45s var(--ease-out), opacity .45s; cursor: zoom-in; }
.lightbox.open .lb-image-wrap img.lb-in { transform: scale(1); opacity: 1; }
.lb-image-wrap.zoomed { overflow: auto; overscroll-behavior: contain; cursor: grab; width: 100%; height: min(78vh, 820px); }
.lb-image-wrap.zoomed img { max-width: none; max-height: none; transform: scale(1); cursor: grab; }
.lb-image-wrap.zoomed img:active { cursor: grabbing; }
.lb-zoom-hint {
  position: absolute; right: .8rem; bottom: .8rem; z-index: 3;
  font-family: var(--font-sans); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cream); background: rgba(26, 3, 8, .55); padding: .3rem .6rem; border-radius: 999px;
  pointer-events: none; opacity: 0; transition: opacity .3s;
}
.lightbox.open .lb-image-wrap:not(.zoomed) .lb-zoom-hint { opacity: 1; }
.lb-image-wrap.zoomed .lb-zoom-hint { opacity: 0; }
.lb-shimmer {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, #2c0a12 30%, #4a1620 50%, #2c0a12 70%);
  background-size: 200% 100%; animation: shimmer 1.6s linear infinite;
}
.lb-caption {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 1.4rem; flex-wrap: wrap;
  margin-top: 1.2rem; padding-top: .95rem;
  border-top: 1px solid rgba(201, 154, 61, .3);
  color: var(--cream);
}
.lb-counter { font-family: var(--font-sans); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--saffron-soft); }
/* Film-slate read-out: "SCENE 03 / 12" */
.lb-counter::before { content: "SCENE "; color: rgba(201, 154, 61, .8); }
.lb-title { font-family: var(--font-body); font-style: italic; font-size: 1.15rem; }
.lb-album {
  font-family: var(--font-sans); font-size: .64rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255, 253, 248, .68);
  border: 1px solid rgba(201, 154, 61, .38); border-radius: 999px;
  padding: .3rem .75rem;
}
.lb-actions { display: flex; gap: .5rem; }
.lb-action {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 253, 248, .3);
  background: rgba(255, 255, 255, .08); color: var(--cream); font-size: 1.05rem;
  transition: background .3s, transform .3s, color .3s;
}
.lb-action:hover { background: var(--saffron); color: var(--maroon-ink); transform: translateY(-2px); }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 253, 248, .25);
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 34px rgba(0, 0, 0, .38);
  color: var(--cream); font-size: 1.8rem; line-height: 1;
  transition: background .3s, transform .3s, color .3s;
}
.lb-btn:hover { background: var(--saffron); color: var(--maroon-ink); }
.lb-prev { left: clamp(10px, 3vw, 40px); }
.lb-next { right: clamp(10px, 3vw, 40px); }
/* Phones: generous "fatty" tap zones beside the arrows so tapping near them
   navigates instead of accidentally zooming the photo. Only the image centre
   is left for zoom. */
@media (max-width: 700px) {
  .lightbox .lb-btn {
    top: 14%; bottom: 16%; height: auto; width: min(32vw, 150px);
    transform: none; border: none; border-radius: 0;
    background: transparent; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    display: flex; align-items: center; font-size: 3.4rem;
    color: rgba(255, 255, 255, .85);
  }
  .lightbox .lb-btn:hover { background: transparent; color: #fff; }
  .lightbox .lb-prev { left: 0; padding-left: 2vw; justify-content: flex-start; }
  .lightbox .lb-next { right: 0; padding-right: 2vw; justify-content: flex-end; }
}
.lb-close {
  position: absolute; top: 22px; right: 24px; z-index: 6;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 253, 248, .25);
  background: rgba(255, 255, 255, .07); color: var(--cream); font-size: 1.5rem; line-height: 1;
  transition: background .3s, transform .3s, color .3s;
}
.lb-close:hover { background: var(--saffron); color: var(--maroon-ink); transform: rotate(90deg); }

/* ---------- 19. Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 19.5 Premium polish ---------- */

/* --- Gold gradient accents (with safe fallback) --- */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero-title .amp {
    background: linear-gradient(135deg, #f8c469, #f4a11b 45%, #e0860f);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
  }
  .section-title {
    background: linear-gradient(180deg, #8c2a38, var(--maroon-deep));
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
  }
  .story-sign {
    background: linear-gradient(135deg, var(--saffron-soft), var(--saffron-deep));
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
  }
}

/* --- Gold foil sheen: light drifts across the gilded accents --- */
.hero-title .amp, .story-sign {
  background-size: 220% 220%;
  animation: foil-sheen 7s ease-in-out infinite;
}
@keyframes foil-sheen {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

/* --- Hero aurora --- */
.hero-aurora { position: absolute; z-index: 0; width: 620px; height: 620px; border-radius: 50%; opacity: .35; pointer-events: none; animation: aurora 18s ease-in-out infinite alternate; }
.hero-aurora.a1 { top: 8%; left: 5%; background: radial-gradient(circle, rgba(244, 161, 27, .7) 0%, rgba(244, 161, 27, .22) 40%, transparent 68%); }
.hero-aurora.a2 { bottom: 5%; right: 3%; background: radial-gradient(circle, rgba(122, 31, 43, .8) 0%, rgba(122, 31, 43, .28) 40%, transparent 68%); animation-delay: -9s; }
@keyframes aurora { from { transform: translate(0, 0) scale(1); } to { transform: translate(52px, -38px) scale(1.18); } }

/* --- Buttons: inner bevel --- */
.btn::after { content: ""; position: absolute; inset: 2px; border-radius: inherit; border: 1px solid rgba(255, 255, 255, .16); pointer-events: none; }

/* --- Gallery: gold ring, sheen, spotlight --- */
.g-item::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--radius); border: 1px solid rgba(201, 154, 61, 0); pointer-events: none; transition: border-color .4s ease, box-shadow .4s ease; }
.g-item:hover::after { border-color: rgba(201, 154, 61, .55); box-shadow: inset 0 0 26px rgba(201, 154, 61, .1); }
.g-item .g-shine { position: absolute; inset: 0; z-index: 1; pointer-events: none; transform: translateX(-130%); background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, .32) 50%, transparent 58%); transition: transform .85s ease; }
.g-item:hover .g-shine { transform: translateX(130%); }
.g-item .g-spot { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 216, 150, .16), transparent 42%); }
.g-item:hover .g-spot { opacity: 1; }

/* --- Kolam lattice texture on story & guestbook --- */
.story::before, .guestbook::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: url("../images/kolam.svg");
  background-size: 88px 88px;
}

/* --- Stats: hairline dividers between cards --- */
.stat { position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -.55rem; top: 18%; height: 64%; width: 1px; background: rgba(255, 253, 248, .12); }

/* --- Footer: gold hairline on top --- */
.footer { position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 240px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* --- Custom cursor (fine pointers only) --- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; border-radius: 50%; will-change: left, top; }
.cursor-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--saffron); box-shadow: 0 0 12px rgba(244, 161, 27, .75); }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(244, 161, 27, .5); transition: width .25s ease, height .25s ease, margin .25s ease, border-color .25s ease, background-color .25s ease; }
body.cursor-on, body.cursor-on a, body.cursor-on button, body.cursor-on .g-item, body.cursor-on .filter-btn, body.cursor-on .moment-card, body.cursor-on .lb-action, body.cursor-on .moments-arrow { cursor: none; }
body.cursor-hot .cursor-ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: rgba(244, 161, 27, .95); background: rgba(244, 161, 27, .14); }

/* --- Lightbox filmstrip --- */
.lb-film { display: flex; justify-content: flex-start; gap: .5rem; margin-top: 1.1rem; overflow-x: auto; padding: .3rem .2rem .4rem; max-width: min(92vw, 1100px); margin-inline: auto; scrollbar-width: thin; }
.lb-film img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .45; border: 2px solid transparent; transition: opacity .3s, border-color .3s, transform .3s; flex-shrink: 0; }
.lb-film img:hover { transform: translateY(-2px); opacity: .8; }
.lb-film img.active { opacity: 1; border-color: var(--saffron); }

/* --- Gallery: gold corner flourishes on hover --- */
.g-item::before {
  content: ""; position: absolute; inset: 10px; z-index: 3; pointer-events: none;
  border-radius: calc(var(--radius) - 7px); opacity: 0; transition: opacity .4s ease;
  background:
    linear-gradient(var(--gold), var(--gold)) left top / 26px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left top / 2px 26px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right top / 26px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right top / 2px 26px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left bottom / 26px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left bottom / 2px 26px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 26px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 2px 26px no-repeat;
}
.g-item:hover::before { opacity: 1; }

/* --- Hero: soft fade into the cream story section --- */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(250, 243, 230, .92));
}

/* --- Guestbook cards: soft glow --- */
.gb-msg { box-shadow: 0 10px 26px rgba(201, 154, 61, .1); }

/* --- Hero amp glow + portrait hover --- */
.hero-title .amp { animation: amp-glow 4.5s ease-in-out infinite; }
@keyframes amp-glow { 0%, 100% { text-shadow: 0 0 22px rgba(244, 161, 27, 0); } 50% { text-shadow: 0 0 34px rgba(244, 161, 27, .5); } }
.portrait-frame { transition: transform .45s var(--ease-out), box-shadow .45s ease; }
.portrait-frame:hover { transform: translateY(-6px); box-shadow: 0 24px 52px rgba(56, 7, 15, .22), 0 0 0 1px rgba(201, 154, 61, .5); }
.portrait-frame img { transition: transform .5s ease; }
.portrait-frame:hover img { transform: scale(1.04); }

/* --- Hero script tagline --- */
.hero-script {
  font-family: var(--font-script); font-size: clamp(1.6rem, 4.4vw, 2.4rem);
  color: var(--gold-soft); line-height: 1.4; margin-top: .5rem;
  text-shadow: 0 4px 26px rgba(0, 0, 0, .35);
  animation: amp-glow 6s ease-in-out infinite;
}
.hero-telugu {
  font-family: var(--font-display); font-size: clamp(1.5rem, 5vw, 2.4rem);
  color: var(--gold-soft); letter-spacing: .04em; margin-top: .7rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .4);
}

/* --- Editorial hovers: desaturate -> colour --- */
.g-item.loaded img { filter: saturate(.9); }
.g-item:hover img { filter: saturate(1.15) brightness(1.04); }
.moment-card img { filter: saturate(.92); transition: transform .6s var(--ease-out), filter .4s ease; }
.moment-card:hover img { filter: saturate(1.12) brightness(1.04); }

/* --- Moments: lift + glass caption chip --- */
.moment-card { transition: transform .4s var(--ease-out), box-shadow .4s ease; }
.moment-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.moment-cap {
  position: absolute; left: .8rem; bottom: .8rem; z-index: 3; max-width: calc(100% - 1.6rem);
  font-family: var(--font-body); font-style: italic; font-size: .92rem; color: var(--cream);
  padding: .35rem .8rem; border-radius: 999px;
  background: rgba(38, 4, 10, .55); backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 154, 61, .45);
  opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.moment-card:hover .moment-cap { opacity: 1; transform: translateY(0); }

/* --- Guestbook: gradient-ring avatars --- */
.gb-avatar {
  border: 2px solid transparent;
  background:
    linear-gradient(#fffdf8, #fffdf8) padding-box,
    linear-gradient(135deg, var(--gold-soft), var(--saffron), var(--maroon)) border-box;
}

/* ---------- 20. Pre-Wedding Shoot ---------- */
.prewedding {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  padding-bottom: 5.5rem;
}
/* Stable masonry, same scheme as .gallery-grid: round-robin .pw-col wrappers
   (column-count below is only a no-JS fallback). */
.pw-grid {
  columns: 3;
  column-gap: 1.1rem;
  display: flex; gap: 1.1rem; align-items: flex-start;
}
.pw-col { flex: 1 1 0; min-width: 0; }
.pw-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  margin: 0 0 1.1rem; break-inside: avoid; box-shadow: var(--shadow-md);
  cursor: zoom-in; background: var(--gold-soft);
}
.pw-item::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(201, 154, 61, .4); border-radius: var(--radius); pointer-events: none;
}
.pw-item img { width: 100%; height: auto; display: block; object-fit: cover; }
.pw-item.hide { display: none; }
.pw-empty {
  text-align: center; color: var(--muted); font-style: italic;
  font-family: var(--font-sans); font-size: .95rem; margin: .6rem 0 0;
}

/* Videos */
.pw-videos {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.pw-video { text-align: left; }
.pw-video-tag {
  display: inline-block; margin: 0 0 .55rem .2rem;
  font-family: var(--font-sans); font-size: .66rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--saffron-deep);
}
.pw-video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(56, 7, 15, .22);
  background: var(--maroon-ink);
}
.pw-video-frame::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(201, 154, 61, .4); border-radius: 14px; pointer-events: none;
  z-index: 2;
}
.pw-video--full { grid-column: 1 / -1; }
.pw-card--soon {
  aspect-ratio: 21 / 9;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(201, 154, 61, .22), transparent 62%),
    linear-gradient(135deg, var(--maroon-deep), #2a040a);
}
.pw-card--soon .pw-poster, .pw-card--soon .pw-play { display: none; }
.pw-soon { position: relative; z-index: 1; text-align: center; padding: 2.2rem 1.2rem; }
.pw-soon-title {
  display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600; color: var(--cream); letter-spacing: .02em;
}
.pw-soon-title::before {
  content: "◌"; display: block; margin: 0 auto 1.1rem;
  width: 60px; height: 60px; line-height: 60px;
  border-radius: 50%; font-size: 1.3rem;
  border: 1px solid rgba(248, 196, 105, .55);
  background: rgba(201, 154, 61, .12);
}
.pw-soon-note {
  display: block; margin-top: .7rem;
  font-family: var(--font-body); font-style: italic;
  color: rgba(255, 253, 248, .6); font-size: 1rem;
}
/* Thumbnail card (opens the film on YouTube) */
.pw-card { display: block; cursor: pointer; }
.pw-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pw-play {
  position: absolute; top: .7rem; right: .7rem; z-index: 1;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
  box-shadow: 0 0 0 2px rgba(244, 161, 27, .9), 0 8px 22px rgba(0, 0, 0, .45);
  transition: transform .25s var(--ease-out), background .3s;
}
.pw-play svg { width: 20px; height: 20px; margin-left: 2px; display: block; }
.pw-play svg path { fill: #f8c469; }
.pw-card:hover .pw-play { transform: scale(1.1); background: linear-gradient(135deg, var(--saffron), var(--saffron-deep)); }
.pw-open {
  position: absolute; right: .7rem; bottom: .65rem; z-index: 1;
  font-family: var(--font-sans); font-size: .62rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cream);
  background: rgba(38, 4, 10, .72); padding: .42rem .85rem; border-radius: 999px;
  border: 1px solid rgba(248, 196, 105, .5);
}
.pw-card .pw-poster { transition: transform .5s var(--ease-out); }
.pw-card:hover .pw-poster { transform: scale(1.04); }

/* Wedding films — feature card leads, two smaller cards follow */
.films-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.4rem;
  /* Backfill holes: e.g. a "wide" film published before the small ones would
     otherwise leave empty cells beside the tall feature card. */
  grid-auto-flow: dense;
}
.films-grid .film-feature { grid-row: span 2; }
.films-grid .film-feature .pw-video-frame { aspect-ratio: 16 / 10; }
.films-grid .film-feature .pw-play { width: 54px; height: 54px; }
.films-grid .film-feature .pw-video-tag { font-size: .74rem; }
/* Only one film published so far — let it span the row rather than leaving a
   dead second column next to it. */
.films-grid--solo { grid-template-columns: 1fr; }
.films-grid--solo .film-feature { grid-row: auto; }
@media (max-width: 940px) {
  /* Phones/tablets: smaller cards sit two-up (like YouTube's mobile grid)
     instead of stacking as full-width boxes. The feature card and any film
     flagged "wide" still claim the full row. */
  .films-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .films-grid .film-feature,
  .films-grid .pw-video--full { grid-row: auto; grid-column: 1 / -1; }
  /* Small two-up cards get a taller frame (16/10) so they don't read as
     squashed letterboxes — feature/wide cards keep their own ratios. */
  .films-grid .pw-video:not(.film-feature):not(.pw-video--full) .pw-video-frame { aspect-ratio: 16 / 10; }
}

/* Guest photo sharing card (guestbook section) */
.gu-card {
  margin-top: 2.6rem; padding: 1.5rem 1.7rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem;
  flex-wrap: wrap;
  border: 1px solid rgba(201, 154, 61, .38); border-radius: 16px;
  background:
    radial-gradient(circle at 12% 20%, rgba(244, 161, 27, .08), transparent 55%),
    rgba(255, 253, 248, .65);
  box-shadow: 0 10px 30px rgba(56, 7, 15, .08);
}
.gu-text { display: flex; flex-direction: column; gap: .25rem; }
.gu-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--maroon-ink); }
.gu-sub { font-family: var(--font-body); font-size: .95rem; color: rgba(56, 7, 15, .66); font-style: italic; }
.gu-actions { display: flex; align-items: center; gap: .9rem; }
.gu-hint { font-family: var(--font-sans); font-size: .72rem; color: rgba(56, 7, 15, .5); }
.gu-btn[disabled] { opacity: .6; pointer-events: none; }
@media (max-width: 640px) {
  .gu-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 940px) {
  .pw-grid { columns: 2; column-gap: .8rem; gap: .8rem; }
}
@media (max-width: 560px) {
  .pw-item { margin-bottom: .8rem; }
  .pw-videos { grid-template-columns: 1fr; gap: 2rem; }
  /* Films on a narrow phone: tighten the two-up cards so both stay readable */
  .films-grid { gap: .8rem; }
  .films-grid .pw-video-tag { margin: 0 0 .4rem .1rem; font-size: .58rem; letter-spacing: .14em; }
  .films-grid .pw-play { top: .4rem; right: .4rem; width: 32px; height: 32px; }
  .films-grid .pw-play svg { width: 14px; height: 14px; }
  .films-grid .pw-open { right: .4rem; bottom: .4rem; font-size: .55rem; letter-spacing: .1em; padding: .3rem .55rem; }
}

/* ---------- 21. Responsive (mobile) ----------
   One clean build. Wide screens keep every desktop effect. Narrow screens get
   a tidy re-flow plus stabilisation (the effects that flicker on real Android
   phones are frozen). Gated on width, which is the reliable phone signal. */

/* -- tablets / small laptops -- */
@media (max-width: 940px) {
  .hero-ornament { display: none; }
  .story-inner { grid-template-columns: 1fr; gap: 2.6rem; }
  .guestbook-layout { grid-template-columns: 1fr; }
}

/* -- phones -- */
@media (max-width: 820px) {
  /* Freeze only the effects that glitch on real Android phones: repaint-based
     animations (shadow glow, shimmer, grain) and big-looping layers.
     Transform/opacity animations are safe and stay on. */
  .grain, .hero-slide::before, .g-shimmer, .lb-shimmer { animation: none !important; }

  /* --- Safe premium: the glows return as opacity-breathing (composited,
     no repaint) so they stay alive without the glitch. --- */
  @keyframes soft-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }
  @keyframes aurora-breathe { 0%, 100% { opacity: .28; transform: none; } 50% { opacity: .5; transform: none; } }
  /* Preloader ring + footer ornament: their box-shadow pulse glitched, so they
     now gently scale/opacity-breathe instead (safe, still alive). */
  @keyframes breathe-soft { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
  .preloader-kolam, .footer-ornament { animation: breathe-soft 3.4s ease-in-out infinite; }

  .hero-title .amp, .hero-script { animation: soft-breathe 4.5s ease-in-out infinite; }
  .hero-aurora { animation: aurora-breathe 8s ease-in-out infinite; }
  .g-item img, .g-item.loaded img, .moment-card img { filter: none !important; transform: none !important; }
  * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

  /* Show the WHOLE hero image on phones — fit it (no side cropping of wide/
     landscape shots). The dark surround sits behind it. */
  .hero-bg { inset: 0; transform: none; }
  .hero-slide { background-size: cover; background-repeat: no-repeat; background-position: center center; }

  /* Navbar: hamburger drawer (markup + JS already present) */
  .nav-inner { padding: 0 1rem; }
  .nav-toggle { display: flex; background: rgba(57, 9, 17, .45); border-radius: 999px; gap: 4px; padding: .62rem .6rem; }
  .nav-toggle span { width: 21px; }
  .brand-word { display: none; }
  body.nav-open { overflow: hidden; }
  body.nav-open .navbar { z-index: 910; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 905;
    width: min(84vw, 330px); flex-direction: column; gap: 0; align-items: stretch;
    justify-content: flex-start; padding: calc(var(--nav-h) + .8rem) 1.7rem 2rem;
    background: linear-gradient(180deg, rgba(57, 9, 17, .99), rgba(38, 4, 10, .995));
    transform: translateX(100%); transition: transform .45s var(--ease-snap);
    box-shadow: -26px 0 60px rgba(0, 0, 0, .45);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links .nav-link { width: 100%; padding: 1.05rem 0; font-size: .92rem; }
  .nav-links .nav-link + .nav-link { border-top: 1px solid rgba(255, 253, 248, .07); }
  /* Keep the active underline inside the row, clear of the next item's text */
  .nav-links .nav-link::after { bottom: .55rem; width: 44%; left: 0; }
  /* Branded header at the top of the drawer */
  .nav-drawer-head {
    display: flex; flex-direction: column; align-items: flex-start; gap: .45rem;
    padding: .4rem 0 1.5rem; margin-bottom: 1rem;
    border-bottom: 1px solid rgba(248, 196, 105, .28);
  }
  .ndh-monogram {
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .05em;
    color: var(--saffron); border: 1px solid rgba(244, 161, 27, .55);
    background: rgba(244, 161, 27, .12);
  }
  .ndh-names { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--cream); }
  .ndh-date { font-family: var(--font-sans); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(248, 196, 105, .85); }
  #navScrim {
    position: fixed; inset: 0; z-index: 904; background: rgba(38, 4, 10, .5);
    opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s ease;
  }
  body.nav-open #navScrim { opacity: 1; visibility: visible; }

  /* Gallery */
  .gallery-grid { column-count: 2; column-gap: .7rem; gap: .7rem; }
  .g-item { margin-bottom: .7rem; }
  /* Gallery photos fade in place on phones — no slide-up movement that looks
     like images moving as the gallery opens. */
  .gallery-grid .g-item.reveal, .gallery-grid .g-item.reveal.in { transform: none !important; }

  /* All albums visible without swiping. The old single-row scroller hid every
     album past the first screenful — visitors never learned they existed.
     Chips now wrap into rows; compact sizing keeps it to ~2 rows on a phone. */
  .filters {
    flex-wrap: wrap; justify-content: center;
    overflow: visible;
    gap: .45rem; padding: 0; margin-bottom: 1.6rem;
  }
  .filter-btn {
    flex: 0 1 auto; min-height: 38px;
    padding: .5rem .85rem; font-size: .7rem; letter-spacing: .05em;
  }
  .filter-btn .fb-count { font-size: .6rem; padding: .18rem .42rem; }

  /* The "Scroll" mouse cue is meaningless on touch and collided with the
     stacked hero buttons — off on phones. */
  .scroll-cue { display: none; }

  /* Timeline: single left rail */
  .timeline-list::before { left: 1rem; transform: none; }
  .tl-item, .tl-item:nth-child(odd), .tl-item:nth-child(even) { width: 100%; left: 0; padding: 0 0 2.2rem 2.6rem; text-align: left; }
  .tl-item:nth-child(odd) .tl-text { margin-left: 0; }
  .tl-dot, .tl-item:nth-child(odd) .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 1rem; right: auto; margin-left: -7.5px; }

  /* Lightbox: instant swaps, no fade/blur */
  .lb-image-wrap img, .lightbox.open .lb-image-wrap img.lb-in { transition: none !important; }
}

/* -- small phones -- */
@media (max-width: 560px) {
  .section { padding: 4rem 1.1rem; }
  .section-head { margin-bottom: 2.2rem; }
  html { scroll-padding-top: 76px; }

  /* Hero */
  .hero { place-items: end center; }
  .hero-content { padding: 0 1.05rem 2.4rem; }
  /* toranam stays at the top of the content (above the names) */
  .hero-kicker { font-size: .6rem; letter-spacing: .26em; padding-left: .26em; white-space: normal; }
  .hero-date { white-space: normal; line-height: 1.4; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: .7rem; width: 100%; max-width: 320px; margin: 0 auto; }
  .hero-cta .btn { width: 100%; }
  .toranam { width: 190px; }
  .ganesha-hero { width: 74px; height: 74px; }

  /* Story */
  .story-text { text-align: left; }
  .story-inner { gap: 2.8rem; }
  .story-portraits { gap: .5rem; }
  .portrait-frame { max-width: 200px; }
  .portrait-bride { margin-top: 1.6rem; }
  .portrait-groom { margin-bottom: 1.6rem; }
  .portrait-monogram { width: 40px; height: 40px; font-size: 1.8rem; }
  .story-blessing { font-size: 1.4rem; }
  .story-vandana { font-size: .98rem; align-items: flex-start; }

  /* Stats */
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 1.3rem; padding: 2.6rem 1rem 2.4rem; }
  .stat + .stat::before { display: none; }

  /* Parallax band */
  .parallax-band { height: 50vh; min-height: 320px; }
  .band-quote { max-width: 90%; font-size: clamp(1.55rem, 7.5vw, 2.3rem); }

  /* Gallery */
  .filters { gap: .4rem; }
  .filter-btn { padding: .48rem .72rem; font-size: .66rem; letter-spacing: .04em; }

  /* Moments */
  .moment-card { height: 230px; }
  .moment-card .moment-cap { opacity: 1; transform: none; }

  /* Guestbook */
  .guestbook-layout { padding: 1.5rem 1.15rem; gap: 2rem; }
  .gb-form input, .gb-form textarea { font-size: 16px; }
  .gb-actions { flex-direction: column; }
  .gb-actions .btn { width: 100%; }

  /* Footer */
  .footer { padding: 2.8rem 1.2rem calc(1.6rem + env(safe-area-inset-bottom)); }
  .footer-inner { flex-direction: column; gap: 2.2rem; align-items: flex-start; }
  .footer-brand { max-width: 100%; }
  .footer-base { flex-direction: column; align-items: center; gap: .4rem; text-align: center; }
  .gopuram-skyline { height: 84px; gap: 1rem; }

  /* Lightbox */
  .lb-btn { width: 44px; height: 44px; font-size: 1.6rem; }
  .lb-prev { left: 4px; } .lb-next { right: 4px; }
  .lb-close { top: 12px; right: 12px; width: 44px; height: 44px; }
  .lb-action { width: 44px; height: 44px; font-size: 1.15rem; }
  /* Bigger photos: the old flat 62vh cap wasted ~10vh of screen. Fit the image
     to the real leftover space (88vh stage minus caption + filmstrip) so tall
     9:20 photos fill as much of the phone as possible. */
  .lb-image-wrap img { max-height: min(72vh, calc(88vh - 8.5rem)); }
  .lb-film { margin-top: .6rem; }
  .lb-film img { width: 44px; height: 44px; }
  .lb-caption { gap: .9rem; margin-top: .7rem; padding-top: .8rem; }

  /* Floating buttons — clear the iPhone home indicator via safe-area inset */
  .to-top { right: calc(1rem + env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom)); width: 46px; height: 46px; }
  .sound-toggle { left: calc(1rem + env(safe-area-inset-left)); bottom: calc(1rem + env(safe-area-inset-bottom)); width: 46px; height: 46px; }

  button, .btn, .nav-link, .g-item, .moment-card, .filter-btn, .lb-action, .moments-arrow { -webkit-tap-highlight-color: transparent; }
}

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .hero-title .name { transform: none; animation: none; }
  .grain { animation: none; }
}

/* ---------- 22. Cinematic polish ----------
   Choreographed hero, scroll progress, editorial watermarks, magnetic
   buttons, timeline glow, gallery cinematography. All additive. */

/* Scroll progress: hairline gold bar along the very top */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 1200;
  width: 100%; height: 2.5px; pointer-events: none;
  background: linear-gradient(90deg, var(--saffron-deep), var(--gold), var(--saffron-soft));
  transform: scaleX(0); transform-origin: left;
  box-shadow: 0 0 10px rgba(244, 161, 27, .55);
}

/* Ghosted editorial numerals behind each section head */
section.section { position: relative; }
section.section::before {
  content: attr(data-num);
  position: absolute; top: 2.2rem; right: 3vw; z-index: 0;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(6rem, 16vw, 12rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(122, 31, 43, .1);
  pointer-events: none; user-select: none;
}
.section-head { position: relative; z-index: 1; }

/* Hero entrance choreography — children cascade in once the preloader
   lifts (body.on), eyebrow first, CTAs last, with a soft blur settle */
.hero-content > * {
  opacity: 0;
}
body.on .hero-content > * {
  animation: hero-rise 1s var(--ease-out) forwards;
}
body.on .hero-content > *:nth-child(1) { animation-delay: .15s; }
body.on .hero-content > *:nth-child(2) { animation-delay: .3s; }
body.on .hero-content > *:nth-child(3) { animation-delay: .45s; }
body.on .hero-content > *:nth-child(4) { animation-delay: .6s; }
body.on .hero-content > *:nth-child(5) { animation-delay: .75s; }
body.on .hero-content > *:nth-child(6) { animation-delay: .9s; }
body.on .hero-content > *:nth-child(n+7) { animation-delay: 1.05s; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(28px); filter: blur(8px); }
  60% { filter: blur(0); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
/* The names replay their mask-slide once the preloader lifts (their original
   animation ran at page load, hidden behind the overlay) */
body.on .hero-title .name { animation: name-up 1.1s var(--ease-out) forwards; }
body.on .hero-title .name-a { animation-delay: .5s; }
body.on .hero-title .name-b { animation-delay: .72s; }

/* Button press depth (magnetic pull is applied via JS on fine pointers) */
.btn { transition: transform .25s var(--ease-snap), box-shadow .3s ease, background .3s ease; }
.btn:active { transform: translateY(-1px) scale(.965) !important; }
/* Shine sweep on the ghost/outline variants too */
.btn-ghost::before, .btn-outline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%;
  width: 45%; transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 253, 248, .22), transparent);
  transition: left .55s var(--ease-out);
}
.btn-ghost:hover::before, .btn-outline:hover::before { left: 125%; }

/* Divider ornament: gold gradient lines + breathing center diamond */
.divider .dv-line {
  height: 1px; width: min(150px, 26vw);
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider .dv-line.dv-r { background: linear-gradient(90deg, var(--gold), transparent); }
.divider .dv-dot {
  width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg);
  box-shadow: 0 0 0 0 rgba(244, 161, 27, .5);
  animation: dv-breathe 3s ease-in-out infinite;
}
@keyframes dv-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 161, 27, .45); opacity: .85; }
  50% { box-shadow: 0 0 0 9px rgba(244, 161, 27, 0); opacity: 1; }
}

/* Timeline: gradient spine + glowing dots */
.timeline-list::before {
  background: linear-gradient(180deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
  opacity: .5;
}
.tl-dot { box-shadow: 0 0 0 4px rgba(244, 161, 27, .15); }
.tl-item.in .tl-dot { animation: dot-glow 2.6s ease-in-out infinite; }
@keyframes dot-glow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(244, 161, 27, .12); }
  50% { box-shadow: 0 0 0 8px rgba(244, 161, 27, .04), 0 0 14px rgba(244, 161, 27, .5); }
}
.tl-date {
  display: inline-block; padding: .3rem .85rem; border-radius: 999px;
  background: rgba(201, 154, 61, .1);
  border: 1px solid rgba(201, 154, 61, .3);
}

/* Gallery cinematography: slow push-in, warm grade lift, caption rise */
.g-item img { transition: transform .8s var(--ease-out), filter .5s ease; }
.g-item:hover img { transform: scale(1.055); filter: saturate(1.12) contrast(1.04); }
.g-overlay {
  background: linear-gradient(180deg, transparent 52%, rgba(38, 4, 10, .82));
  opacity: 0; transition: opacity .45s ease;
}
.g-item:hover .g-overlay { opacity: 1; }
.g-caption { transform: translateY(10px); transition: transform .45s var(--ease-out); }
.g-item:hover .g-caption { transform: translateY(0); }

/* Stats: gilded numerals + hairline separators */
.stats-inner .stat + .stat { border-left: 1px solid rgba(248, 196, 105, .18); }
.stat-value {
  background: linear-gradient(180deg, #fbe3ae, var(--saffron) 60%, var(--saffron-deep));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: none;
}

/* Moments marquee: cinematic edge fade */
.moments-scroll {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

@media (max-width: 820px) {
  section.section::before { font-size: 5.4rem; top: 1.2rem; right: 5vw; -webkit-text-stroke-color: rgba(122, 31, 43, .08); }
  .stats-inner .stat + .stat { border-left: none; }
  .hero-content > * { will-change: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  section.section::before { display: none; }
}


/* ---------- 24. Together ticker ---------- */
.together {
  display: flex; align-items: baseline; justify-content: center;
  gap: .45rem .5rem; flex-wrap: wrap; max-width: 92%;
  margin: 2.6rem auto 0;
  font-family: var(--font-sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 253, 248, .78);
}
.together .tg-pre, .together .tg-post { color: rgba(201, 154, 61, .9); letter-spacing: .26em; }
.together .tg-num {
  font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .02em;
  color: var(--cream); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(244, 161, 27, .25);
}
.together .tg-lab { margin-right: .45rem; }

/* ---------- 25. Play Our Story reel ---------- */
.reel { text-align: center; }
.reel[hidden] { display: none !important; }
.reel-play {
  position: relative; width: 128px; height: 128px; margin: 0 auto; cursor: pointer;
  border-radius: 50%; border: 1px solid rgba(201, 154, 61, .55);
  background: radial-gradient(circle at 50% 40%, rgba(122, 31, 43, .55), rgba(56, 9, 17, .7));
  display: grid; place-items: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .4);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.reel-play::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(244, 161, 27, .4);
  animation: reel-pulse 2.6s ease-out infinite;
}
@keyframes reel-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.55); opacity: 0; } }
.reel-play:hover { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(244, 161, 27, .08), 0 18px 50px rgba(0, 0, 0, .45); }
.rp-tri {
  width: 0; height: 0; margin-left: 9px;
  border-left: 26px solid var(--saffron); border-top: 16px solid transparent; border-bottom: 16px solid transparent;
  filter: drop-shadow(0 0 8px rgba(244, 161, 27, .45));
}
.reel-caption {
  margin-top: 1.5rem; font-family: var(--font-sans); font-size: .68rem;
  letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 253, 248, .58);
}

/* Fullscreen reel overlay */
.reel-overlay {
  position: fixed; inset: 0; z-index: 1700;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 1, 4, .97);
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease, visibility .5s ease;
}
.reel-overlay.open { opacity: 1; visibility: visible; }
.reel-bar { position: absolute; left: 0; right: 0; height: clamp(24px, 5.5vh, 50px); z-index: 4; background: #050001; }
.reel-bar-top { top: 0; }
.reel-bar-btm { bottom: 0; }
.reel-stage {
  position: relative; width: min(92vw, 1100px); height: min(72vh, 760px);
  overflow: hidden; border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7);
}
.reel-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  /* Full photo, never cropped — cover used to chop heads/bodies off portrait
     shots. contain letterboxes on the near-black stage instead. */
  object-fit: contain;
  opacity: 0; transition: opacity 1.1s ease; will-change: transform, opacity;
}
.reel-img.show { opacity: 1; }
.reel-img.kb1 { animation: reel-kb1 5.4s ease-in-out forwards; }
.reel-img.kb2 { animation: reel-kb2 5.4s ease-in-out forwards; }
.reel-img.kb3 { animation: reel-kb3 5.4s ease-in-out forwards; }
/* Gentle Ken Burns: the photo is fully visible at rest now, so the zoom range
   stays shallow (≤6%) — it breathes without ever cutting much of the frame. */
@keyframes reel-kb1 { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes reel-kb2 { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes reel-kb3 { from { transform: scale(1.05) translateX(-1.2%); } to { transform: scale(1.05) translateX(1.2%); } }
.reel-chapter {
  position: absolute; left: 0; right: 0; bottom: 13%; z-index: 3; text-align: center;
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 3.4vw, 2rem);
  color: var(--cream); text-shadow: 0 4px 30px rgba(0, 0, 0, .85);
  opacity: 0; transform: translateY(12px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  pointer-events: none;
}
.reel-chapter.show { opacity: 1; transform: none; }
.reel-progress {
  position: absolute; left: 8%; right: 8%; bottom: calc(clamp(24px, 5.5vh, 50px) + 14px);
  height: 2px; z-index: 4; background: rgba(255, 253, 248, .16);
}
.reel-progress i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--saffron), var(--gold)); }
.reel-close {
  position: absolute; top: calc(clamp(24px, 5.5vh, 50px) + 12px); right: 20px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 253, 248, .3);
  background: rgba(255, 255, 255, .08); color: var(--cream); font-size: 1.4rem; line-height: 1;
  transition: background .3s, color .3s;
}
.reel-close:hover { background: var(--saffron); color: var(--maroon-ink); }
.reel-hint {
  position: absolute; left: 0; right: 0; bottom: calc(clamp(24px, 5.5vh, 50px) + 28px); z-index: 4;
  text-align: center; font-family: var(--font-sans); font-size: .62rem;
  letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 253, 248, .5);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.reel-overlay.open .reel-hint { opacity: 1; }
.reel-end { position: relative; z-index: 3; text-align: center; }
.reel-end:not([hidden]) { animation: core-in 1.2s var(--ease-out); }
.reel-end-names {
  font-family: var(--font-script); font-size: clamp(2.4rem, 8vw, 4.2rem);
  color: var(--gold-soft); text-shadow: 0 0 40px rgba(244, 161, 27, .3);
}
.reel-end-date {
  font-family: var(--font-sans); font-size: .72rem; letter-spacing: .34em;
  text-transform: uppercase; color: rgba(255, 253, 248, .72);
}
@media (max-width: 700px) {
  .reel-stage { width: 96vw; height: 64vh; border-radius: 8px; }
  .reel-play { width: 108px; height: 108px; }
  .rp-tri { border-left-width: 22px; border-top-width: 13px; border-bottom-width: 13px; }
}


/* ---------- 26. Hearts in the lightbox ---------- */
.lb-heart { position: relative; }
.lb-heart.loved { color: #ff5b7a; border-color: rgba(255, 91, 122, .55); background: rgba(255, 91, 122, .12); }
.lb-heart.loved:hover { background: rgba(255, 91, 122, .22); color: #ff7c94; }
.lb-heart-n {
  position: absolute; top: -7px; right: -9px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 999px;
  font-family: var(--font-sans); font-size: .58rem; font-weight: 700; line-height: 17px;
  letter-spacing: 0; text-transform: none; font-style: normal;
  background: var(--saffron); color: var(--maroon-ink);
}
@keyframes heart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.lb-heart.loved { animation: heart-pop .45s var(--ease-out); }

/* ---------- 27. On This Day banner ---------- */
.otd {
  position: fixed; left: 18px; bottom: 18px; z-index: 1500;
  width: min(340px, calc(100vw - 36px));
  padding: 1.1rem 1.2rem 1.2rem;
  border-radius: 16px; border: 1px solid rgba(201, 154, 61, .4);
  background: linear-gradient(150deg, rgba(56, 9, 17, .96), rgba(26, 3, 8, .96));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  pointer-events: none;
}
.otd.show { opacity: 1; transform: none; pointer-events: auto; }
.otd[hidden] { display: none !important; }
.otd-title {
  margin: 0; font-family: var(--font-script); font-size: 1.5rem; color: var(--gold-soft);
}
.otd-msg { margin: .3rem 0 .8rem; font-family: var(--font-body); font-style: italic; font-size: .85rem; color: var(--cream); }
.otd-photos { display: flex; gap: .5rem; }
.otd-photos img {
  width: 32%; aspect-ratio: 1; object-fit: cover; border-radius: 10px;
  border: 1px solid rgba(201, 154, 61, .35);
}
.otd-x {
  position: absolute; top: 8px; right: 10px; width: 28px; height: 28px;
  border: none; border-radius: 50%; background: transparent; color: rgba(255, 253, 248, .6);
  font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.otd-x:hover { color: var(--cream); background: rgba(255, 255, 255, .08); }


/* ---------- 28. Show more pill ---------- */
.g-more {
  display: block; margin: 2rem auto 0; cursor: pointer;
  padding: .8rem 2.2rem; border-radius: 999px;
  border: 1px solid rgba(201, 154, 61, .55);
  background: linear-gradient(135deg, rgba(122, 31, 43, .25), rgba(56, 9, 17, .35));
  color: var(--gold-soft); font-family: var(--font-sans); font-size: .78rem;
  letter-spacing: .22em; text-transform: uppercase;
  transition: transform .3s var(--ease-out), background .3s, color .3s, border-color .3s;
}
.g-more:hover { transform: translateY(-2px); background: var(--saffron); color: var(--maroon-ink); border-color: var(--saffron); }
.g-more.done {
  pointer-events: none; cursor: default;
  border-color: rgba(201, 154, 61, .22); background: transparent;
  color: rgba(255, 253, 248, .55); font-size: .68rem;
}
/* The pre-wedding / engagement strips sit on cream, so their pill flips to
   maroon ink on a warm translucent fill — gold-on-dark would vanish here. */
.prewedding .g-more {
  color: var(--maroon); border-color: rgba(122, 31, 43, .35);
  background: linear-gradient(135deg, rgba(244, 161, 27, .16), rgba(201, 154, 61, .12));
}
.prewedding .g-more:hover { background: var(--saffron); color: var(--maroon-ink); border-color: var(--saffron); }
.prewedding .g-more.done {
  color: rgba(59, 43, 31, .5); border-color: rgba(122, 31, 43, .15); background: transparent;
}


/* ---------- 29. Bride / Groom sub-filters ---------- */
.subfilters {
  display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap;
  margin: .8rem auto 0;
}
.subfilters[hidden] { display: none; }
.sub-btn {
  padding: .42rem 1.15rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(201, 154, 61, .4);
  background: transparent; color: var(--maroon);
  font-family: var(--font-sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s;
}
.sub-btn:hover { border-color: var(--saffron); color: var(--maroon-deep); background: rgba(201, 154, 61, .12); }
.sub-btn.active {
  background: linear-gradient(135deg, var(--saffron), #e8b25a);
  border-color: transparent; color: var(--maroon-ink); font-weight: 600;
}


/* ---------- 30. Hero: shimmering name reveal ---------- */
.hero-title .name {
  filter: blur(14px);
  background: linear-gradient(105deg, var(--white) 40%, #ffe3a8 50%, var(--white) 60%);
  background-size: 260% 100%; background-position: 115% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: name-up 1.1s var(--ease-out) forwards, name-shine 2s ease-in-out 1.2s 1;
}
@keyframes name-up { to { transform: translateY(0); filter: blur(0); } }
@keyframes name-shine { 0% { background-position: 115% 0; } 50% { background-position: -115% 0; } 100% { background-position: 115% 0; } }
.hero-title .name-a { animation-delay: .35s, 1.25s; }
.hero-title .name-b { animation-delay: .65s, 1.55s; }
body.on .hero-title .name { animation: name-up 1.1s var(--ease-out) forwards, name-shine 2s ease-in-out 1.2s 1; }
body.on .hero-title .name-a { animation-delay: .5s, 1.45s; }
body.on .hero-title .name-b { animation-delay: .72s, 1.75s; }

/* ---------- 31. Hero: cinematic fade into the story ---------- */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 24vh; z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(250, 243, 230, 0), rgba(250, 243, 230, .5) 55%, #faf3e6 96%);
}
.scroll-cue { color: rgba(122, 31, 43, .78); }
.scroll-cue-wheel { border-color: rgba(122, 31, 43, .55); }
.scroll-cue-wheel::before { background: rgba(122, 31, 43, .7); }

/* ---------- 32. Hero: glass date chip ---------- */
.hero-date-rule {
  display: inline-flex; align-items: center; gap: .7rem;
  margin: 1.8rem auto 2.2rem; padding: .55rem 1.3rem;
  border-radius: 999px; border: 1px solid rgba(244, 161, 27, .45);
  background: rgba(26, 3, 8, .38);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.hero-date-rule .rule-line { width: 34px; }
.hero-date { font-size: 1.05rem; }
@media (max-width: 560px) {
  .hero-date-rule .rule-line { width: 20px; }
  .hero-date { font-size: .95rem; line-height: 1.35; }
}


/* ---------- 33. Hero: cinematic exit choreography ---------- */
.hero { --hp: 0; }
.hero-exit {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: #1a030a; opacity: calc(var(--hp) * .5);
}
#heroContent {
  translate: 0 calc(var(--hp) * -44px);
  opacity: calc(1 - var(--hp) * 1.1);
}
/* Ken Burns: even slides zoom OUT so each crossfade feels edited */
.hero-slide:nth-child(even)::before { animation-direction: alternate-reverse; }

/* Bright photo adaptation — deepen the scrim + shadow so names always read */
.hero-on-bright .hero-scrim { filter: brightness(.8) contrast(1.05); }
.hero-on-bright .hero-title .name { text-shadow: 0 10px 52px rgba(0, 0, 0, .68), 0 2px 12px rgba(0, 0, 0, .5); }
.hero-on-bright .hero-script, .hero-on-bright .hero-telugu { text-shadow: 0 3px 18px rgba(0, 0, 0, .6); }

/* Desktop: push the typographic scale further apart (huge names, quiet rest) */
@media (min-width: 1020px) {
  .hero-title .name { font-size: clamp(6.5rem, 11.5vw, 9rem); }
  .hero-script { font-size: 1.35rem; }
  .hero-date { font-size: 1.1rem; }
}

/* Mobile breathing room: unpack the stack, lift CTAs off the bottom edge */
@media (max-width: 700px) {
  .hero-content { padding-bottom: 3.2rem; }
  .ganesha-hero { margin-bottom: .9rem; }
  .hero-kicker { margin-bottom: 1.1rem; }
  .hero-telugu { margin: .7rem 0 0; }
  .hero-script { margin: .5rem auto 0; }
  .hero-date-rule { margin: 1.15rem auto 1.3rem; }
  .hero-cta { gap: .65rem; }
  .scroll-cue { display: none; }
}
