/* ==========================================================================
   Shubh Deepavali — for Sneha
   Deep emerald + antique gold. Warm light, never neon.
   ========================================================================== */

:root {
  --bg: #071c15;
  --bg-raised: #0a241b;
  --bg-hover: #0d2d22;
  --green-700: #154434;
  --green-600: #1d5641;

  --gold-50: #fbf3df;
  --gold-100: #f5e7c4;
  --gold-200: #ead29a;
  --gold-300: #d9b874;
  --gold-400: #c49a52;
  --gold-500: #a37a3a;
  --gold-600: #7a5926;

  --ivory: #f6eedb;
  --text: #ece1c6;
  --text-muted: rgba(236, 225, 198, 0.72);
  --text-faint: rgba(236, 225, 198, 0.46);
  --line: rgba(217, 184, 116, 0.22);
  --line-strong: rgba(217, 184, 116, 0.5);

  --gold-grad: linear-gradient(176deg, #f8eac4 0%, #e6c987 34%, #c99f57 66%, #9b7337 100%);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --script: "Great Vibes", "Snell Roundhand", cursive;
  --deva: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(1rem, 4vw, 3rem);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 70% at 50% -10%, #12402f 0%, rgba(18, 64, 47, 0) 62%),
    radial-gradient(90% 60% at 50% 112%, #0e3426 0%, rgba(14, 52, 38, 0) 62%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Fine film grain for a printed, tactile feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: rgba(217, 184, 116, 0.35); color: #fffaf0; }

img { max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 1px solid var(--gold-300);
  outline-offset: 5px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typography ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 2.6rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(196, 154, 82, 0), var(--gold-400));
}
.eyebrow::after { background: linear-gradient(90deg, var(--gold-400), rgba(196, 154, 82, 0)); }
@media (max-width: 600px) {
  .eyebrow { gap: 0.7rem; font-size: 0.62rem; letter-spacing: 0.3em; white-space: nowrap; }
  .eyebrow::before, .eyebrow::after { width: 1.4rem; }
}

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.deva {
  margin: 0;
  font-family: var(--deva);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--gold-200);
}

.script { font-family: var(--script); font-weight: 400; line-height: 1.15; }

.display {
  margin: 0.45em 0 0;
  font-weight: 300;
  font-size: clamp(2.9rem, 7.4vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ivory);
}
.display em,
.h2 em {
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em;
}

.h2 {
  margin: 0.55em 0 0;
  font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.1;
  color: var(--ivory);
}

.lede {
  max-width: 34rem;
  margin: 1.3rem auto 0;
  font-style: italic;
  font-size: clamp(1.12rem, 1.7vw, 1.32rem);
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Layers ---------- */

.embers,
.fireworks {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.embers { z-index: 1; }
.fireworks { z-index: 3; }

main, .footer { position: relative; z-index: 2; }

/* ---------- Page transition veil ---------- */

.veil {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #12402f 0%, #071c15 70%);
  animation: veil-out 1.2s ease 0.05s forwards;
}
@keyframes veil-out { to { opacity: 0; visibility: hidden; } }

body.is-leaving .veil { animation: veil-in 0.6s ease forwards; }
@keyframes veil-in {
  from { opacity: 0; visibility: visible; }
  to { opacity: 1; visibility: visible; }
}

.bloom {
  position: fixed;
  left: var(--x);
  top: var(--y);
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  z-index: 90;
  pointer-events: none;
  background: radial-gradient(circle, #fff6df 0%, #f2d595 28%, rgba(201, 154, 82, 0.55) 52%, rgba(201, 154, 82, 0) 72%);
  transform: scale(0);
  animation: bloom 1.7s cubic-bezier(0.65, 0, 0.25, 1) forwards;
}
@keyframes bloom { to { transform: scale(95); } }

/* ---------- Load + scroll reveals ---------- */

.reveal-load {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 1.3s var(--ease-out) var(--d, 0s) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s ease, transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem var(--gutter);
  transition: background 0.5s ease, padding 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-block: 0.8rem;
  background: rgba(7, 28, 21, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(217, 184, 116, 0.14);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.monogram {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold-400);
  border-radius: 50%;
  font-family: var(--script);
  font-size: 1.55rem;
  line-height: 1;
  color: var(--gold-200);
  padding-top: 4px;
}
.monogram::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(217, 184, 116, 0.25);
  border-radius: 50%;
}
.nav__brand-text {
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav__links { display: flex; gap: clamp(1.1rem, 3vw, 2.6rem); }
.nav__links a {
  position: relative;
  padding: 0.45rem 0;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 1px;
  background: var(--gold-300);
  transition: left 0.45s var(--ease-out), right 0.45s var(--ease-out);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--gold-100); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { left: 0; right: 0.3em; }

@media (max-width: 600px) {
  .nav__brand-text { display: none; }
  .nav__links { gap: 1.1rem; }
  .nav__links a { font-size: 0.6rem; letter-spacing: 0.24em; }
}

/* ---------- Diya ---------- */

.diya { display: block; width: 100%; height: auto; overflow: visible; }

.diya__flame,
.diya__flicker {
  transform-box: view-box;
  transform-origin: 60px 46px;
}
.diya__flame {
  transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.25), opacity 0.5s ease;
}
.diya__flicker { animation: flicker 2.3s ease-in-out infinite; animation-delay: var(--fd, 0s); }

@keyframes flicker {
  0%   { transform: scale(1, 1) skewX(0deg); }
  18%  { transform: scale(0.97, 1.05) skewX(1.6deg); }
  37%  { transform: scale(1.02, 0.96) skewX(-1.2deg); }
  58%  { transform: scale(0.98, 1.06) skewX(2deg); }
  79%  { transform: scale(1.01, 0.97) skewX(-1.6deg); }
  100% { transform: scale(1, 1) skewX(0deg); }
}

.diya__halo { transition: opacity 1.2s ease; }
.diya__glow {
  transform-box: view-box;
  transform-origin: 60px 30px;
  animation: glow 3.2s ease-in-out infinite alternate;
  animation-delay: var(--fd, 0s);
}
@keyframes glow {
  from { opacity: 0.72; transform: scale(0.94); }
  to   { opacity: 1;    transform: scale(1.07); }
}

.diya.is-unlit .diya__flame { transform: scale(0.05); opacity: 0; }
.diya.is-unlit .diya__halo { opacity: 0; }

/* Row of diyas resting along the bottom */
.diya-row {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: clamp(0.9rem, 3.2vw, 2.8rem);
  transform: translateX(-50%);
  pointer-events: none;
}
.diya-row::after {
  content: "";
  position: absolute;
  left: -14%;
  right: -14%;
  bottom: -9px;
  height: 1px;
  background: linear-gradient(90deg, rgba(196, 154, 82, 0), rgba(196, 154, 82, 0.6), rgba(196, 154, 82, 0));
}
.diya-row__item { display: block; width: clamp(38px, 4.6vw, 60px); }
.diya-row__item:nth-child(even) { width: clamp(32px, 3.8vw, 50px); }

@media (max-width: 600px) {
  .diya-row__item:first-child,
  .diya-row__item:last-child { display: none; }
}

/* ---------- Mandala ---------- */

.mandala {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(120vmin, 1000px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  color: rgba(217, 184, 116, 0.15);
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 72%);
  mask-image: radial-gradient(circle, #000 55%, transparent 72%);
}
.mandala svg { display: block; width: 100%; height: 100%; animation: spin 200s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   LANDING
   ========================================================================== */

.landing {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6.5rem 1.25rem 8.5rem;
  text-align: center;
  overflow: hidden;
  cursor: default;
}
.landing::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70vmax;
  height: 70vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 154, 82, 0.11) 0%, rgba(201, 154, 82, 0) 55%);
  pointer-events: none;
}

.landing__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.landing .deva { margin-top: 1.6rem; }

.landing__title {
  margin: 0.3em 0 0;
  font-weight: 300;
  font-size: clamp(3rem, 8.4vw, 6.8rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ivory);
}

.landing__name {
  margin: 0.14em 0 -0.12em;
  padding: 0.05em 0.3em 0.12em;
  font-family: var(--script);
  font-size: clamp(5.4rem, 17vw, 12.5rem);
  line-height: 0.95;
  filter: drop-shadow(0 8px 36px rgba(217, 160, 80, 0.22));
}

.landing__sub {
  margin: 0.2rem 0 0;
  font-style: italic;
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  color: var(--text-muted);
}

/* The "light the diya" call to action */
.enter-diya {
  position: relative;
  margin-top: 2.2rem;
  padding: 0.6rem 1.6rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: 0;
  border-radius: 24px;
  color: var(--gold-200);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.enter-diya__lamp {
  position: relative;
  display: block;
  width: 104px;
  transition: transform 0.6s var(--ease-out);
}
.enter-diya__lamp::before,
.enter-diya__lamp::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 38%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border: 1px solid rgba(217, 184, 116, 0.35);
  border-radius: 50%;
  animation: ring 3.4s ease-out infinite;
  pointer-events: none;
}
.enter-diya__lamp::after { animation-delay: 1.7s; }
@keyframes ring {
  0%   { transform: scale(0.55); opacity: 0; }
  25%  { opacity: 0.9; }
  100% { transform: scale(1.55); opacity: 0; }
}
.enter-diya:hover .enter-diya__lamp { transform: translateY(-4px); }
.enter-diya.is-lit .enter-diya__lamp::before,
.enter-diya.is-lit .enter-diya__lamp::after { animation: none; opacity: 0; }

.enter-diya__label {
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-200);
  padding-left: 0.42em;
}
.enter-diya__hint {
  margin-top: 0.15rem;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-faint);
}

/* Hanging lanterns */
.lanterns {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
}
.lantern {
  --k: 1;
  position: absolute;
  top: -2px;
  left: var(--x);
  width: calc(var(--size) * var(--k));
  margin-left: calc(var(--size) * var(--k) / -2);
  transform-origin: 50% 0;
  animation: sway var(--sway, 6s) ease-in-out var(--delay, 0s) infinite alternate;
}
.lantern__string {
  display: block;
  width: 1px;
  height: calc(var(--len) * var(--k));
  margin: 0 auto;
  background: linear-gradient(rgba(163, 122, 58, 0.3), var(--gold-400));
}
.lantern svg {
  display: block;
  width: 100%;
  margin-top: -1px;
  overflow: visible;
  filter: drop-shadow(0 0 16px rgba(232, 166, 82, 0.4));
}
.lantern__glow { animation: glow 2.6s ease-in-out infinite alternate; transform-box: view-box; transform-origin: 30px 56px; }
@keyframes sway {
  from { transform: rotate(-2.6deg); }
  to   { transform: rotate(2.6deg); }
}
@media (max-width: 900px) {
  .lantern { --k: 0.7; }
  .lantern:nth-child(3), .lantern:nth-child(4) { display: none; }
}
@media (max-width: 520px) {
  .lantern { --k: 0.55; }
}

/* ==========================================================================
   INNER PAGES — shared
   ========================================================================== */

.hero {
  position: relative;
  z-index: 2;
  min-height: 94vh;
  min-height: 94svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.25rem 6rem;
  text-align: center;
  overflow: hidden;
}
.hero .mandala { color: rgba(217, 184, 116, 0.11); }
.hero > *:not(.mandala) { position: relative; z-index: 1; }
.hero .script { margin: 0.25rem 0 0; font-size: clamp(2.8rem, 6.4vw, 4.6rem); padding: 0 0.2em; }

.scroll-cue {
  position: absolute !important;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.scroll-cue span {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--gold-300), rgba(217, 184, 116, 0));
  transform-origin: top;
  animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0); opacity: 1; }
  55%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.section {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) 1.25rem;
}
.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(2.6rem, 6vw, 4.2rem);
  text-align: center;
}
.section-head p:not(.eyebrow) { color: var(--text-muted); font-style: italic; margin: 1rem auto 0; font-size: 1.15rem; }

/* ---------- Letter ---------- */

.letter {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.6rem, 7vw, 5rem);
  color: #1c372b;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #f7efdc 0%, #efe2c4 100%);
  border-radius: 3px;
  box-shadow:
    0 0 0 1px rgba(201, 154, 82, 0.55),
    0 50px 90px -40px rgba(0, 0, 0, 0.75),
    0 20px 40px -20px rgba(0, 0, 0, 0.4);
}
.letter::before,
.letter::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(163, 122, 58, 0.55);
}
.letter::before { inset: 12px; }
.letter::after { inset: 17px; border-color: rgba(163, 122, 58, 0.22); }

.letter__corner {
  position: absolute;
  width: 46px;
  height: 46px;
  color: #a37a3a;
}
.letter__corner--tl { top: 22px; left: 22px; }
.letter__corner--tr { top: 22px; right: 22px; transform: scaleX(-1); }
.letter__corner--bl { bottom: 22px; left: 22px; transform: scaleY(-1); }
.letter__corner--br { bottom: 22px; right: 22px; transform: scale(-1, -1); }

.letter__seal {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 1.8rem;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ecd396 0%, #c39550 52%, #8a6328 100%);
  box-shadow:
    inset 0 0 0 3px rgba(255, 242, 205, 0.35),
    inset 0 -6px 12px rgba(90, 58, 18, 0.35),
    0 8px 18px -6px rgba(110, 70, 20, 0.5);
  font-family: var(--script);
  font-size: 2.2rem;
  line-height: 1;
  color: #fff8e6;
  padding-top: 6px;
}

.letter p {
  margin: 0 0 1.1em;
  font-size: clamp(1.14rem, 1.6vw, 1.3rem);
  line-height: 1.78;
}
.letter .letter__greeting {
  margin-bottom: 0.5em;
  font-family: var(--script);
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  line-height: 1.2;
  color: #7a5926;
}
.letter__sign {
  margin-top: 2.2rem !important;
  text-align: right;
  font-style: italic;
}
.letter__sign .script {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  font-size: clamp(2.4rem, 4.2vw, 3rem);
  color: #7a5926;
}

/* ---------- Next chapter link ---------- */

.next {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 8vw, 5rem) 1.25rem clamp(5rem, 10vw, 8rem);
  text-align: center;
}
.next__link {
  display: inline-flex;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.1rem;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.1;
  color: var(--ivory);
  text-decoration: none;
  transition: color 0.4s ease;
}
.next__link .arrow {
  display: inline-block;
  font-style: normal;
  color: var(--gold-300);
  transition: transform 0.5s var(--ease-out);
}
.next__link:hover { color: var(--gold-100); }
.next__link:hover .arrow { transform: translateX(10px); }

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 2.6rem 1rem 3rem;
  border-top: 1px solid rgba(217, 184, 116, 0.12);
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-faint);
}
.footer__diya { display: block; width: 34px; }

/* ==========================================================================
   MEMORIES
   ========================================================================== */

.gallery {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem 0 4rem;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex;
  align-items: flex-start;
  width: max-content;
  padding: 14px 0 6px;
  animation: marquee var(--dur, 60s) linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.photo {
  --row-h: clamp(220px, 29vw, 340px);
  flex: none;
  margin: 0 1.7rem 0 0;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}
.photo__frame {
  position: relative;
  display: block;
  width: fit-content;
  padding: 8px;
  border: 1px solid rgba(217, 184, 116, 0.42);
  background: rgba(7, 28, 21, 0.7);
  transition: transform 0.7s var(--ease-out), border-color 0.4s ease, box-shadow 0.7s ease;
}
.photo__frame::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(217, 184, 116, 0.14);
  pointer-events: none;
}
.photo__frame img,
.photo__frame .ph { height: calc(var(--row-h) - 18px); }
.photo__frame img {
  display: block;
  width: auto;
  max-width: min(72vw, 520px);
  object-fit: cover;
  filter: saturate(0.94);
  transition: filter 0.6s ease;
}
.photo:hover .photo__frame,
.photo:focus-visible .photo__frame {
  transform: translateY(-6px);
  border-color: var(--gold-300);
  box-shadow: 0 34px 60px -32px rgba(0, 0, 0, 0.8);
}
.photo:hover img { filter: saturate(1.05); }
.photo:focus-visible { outline: none; }
.photo__cap {
  display: block;
  width: 0;
  min-width: 100%;
  margin-top: 0.9rem;
  padding-left: 0.15rem;
  font-style: italic;
  font-size: 1.06rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.photo__no {
  margin-right: 0.7rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  color: var(--gold-400);
}

/* Elegant stand-ins until real photos are added */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  aspect-ratio: var(--ar, 3 / 4);
  overflow: hidden;
  color: rgba(226, 196, 130, 0.75);
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(45deg, rgba(217, 184, 116, 0.07) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(217, 184, 116, 0.07) 0 1px, transparent 1px 22px);
}
.ph--v0 { background: radial-gradient(circle at 50% 38%, #215f48 0%, #0c2f23 72%); }
.ph--v1 { background: linear-gradient(160deg, #2a5340 0%, #0b241b 100%); }
.ph--v2 { background: radial-gradient(circle at 30% 20%, #5e4a24 0%, #1a3a2c 62%); }
.ph--v3 { background: linear-gradient(200deg, #18402f 0%, #091d16 75%); }
.ph__motif { position: relative; width: 38%; max-width: 120px; }
.ph__motif svg { display: block; width: 100%; height: auto; }

.gallery__note {
  margin: 0.5rem 0 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 4.5rem 1rem;
  background: rgba(4, 16, 12, 0.93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.97);
  transition: transform 0.6s var(--ease-out);
}
.lightbox.is-open .lightbox__figure { transform: none; }
.lightbox__media {
  padding: 10px;
  border: 1px solid rgba(217, 184, 116, 0.5);
  background: var(--bg);
}
.lightbox__media img { display: block; max-width: 86vw; max-height: 72vh; }
.lightbox__media .ph { height: min(68vh, 560px); max-width: 86vw; }
.lightbox__cap {
  margin-top: 1.3rem;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--ivory);
  text-align: center;
}
.lightbox__count {
  margin-top: 0.3rem;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.36em;
  color: var(--gold-400);
}
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(217, 184, 116, 0.4);
  border-radius: 50%;
  background: rgba(7, 28, 21, 0.6);
  color: var(--gold-200);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.lb-btn:hover { background: rgba(217, 184, 116, 0.14); border-color: var(--gold-300); }
.lb-btn svg { width: 18px; height: 18px; }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.4rem; top: 50%; margin-top: -25px; }
.lb-next { right: 1.4rem; top: 50%; margin-top: -25px; }
@media (max-width: 700px) {
  .lb-prev, .lb-next { top: auto; bottom: 1.2rem; margin-top: 0; }
  .lb-prev { left: calc(50% - 62px); }
  .lb-next { right: calc(50% - 62px); }
}

/* ---------- Finale ---------- */

.finale {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 6rem 1.25rem 10rem;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid rgba(217, 184, 116, 0.12);
}
.finale::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 52%, rgba(201, 154, 82, 0.13), rgba(201, 154, 82, 0) 70%);
  pointer-events: none;
}
.finale .fireworks { position: absolute; z-index: 0; }
.finale .mandala { color: rgba(217, 184, 116, 0.1); }
.finale__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.finale .deva { margin-top: 1.4rem; }
.finale__title {
  margin: 0.25em 0 0;
  font-weight: 300;
  font-size: clamp(2.7rem, 7.4vw, 5.8rem);
  line-height: 1;
  color: var(--ivory);
}
.finale__name {
  margin: 0.14em 0 -0.1em;
  padding: 0.05em 0.3em 0.12em;
  font-family: var(--script);
  font-size: clamp(4.8rem, 14.5vw, 10.5rem);
  line-height: 0.95;
  filter: drop-shadow(0 8px 36px rgba(217, 160, 80, 0.22));
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.4rem;
  padding: 1.05rem 2.3rem 1.05rem 2.6rem;
  border: 1px solid var(--gold-300);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(226, 196, 130, 0.16), rgba(226, 196, 130, 0.04));
  color: var(--gold-100);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.5s ease, color 0.4s ease, box-shadow 0.5s ease, border-color 0.4s ease;
}
.btn-gold:hover {
  background: var(--gold-grad);
  border-color: transparent;
  color: #16291f;
  box-shadow: 0 14px 44px -14px rgba(217, 160, 80, 0.6);
}
.link-quiet {
  display: inline-block;
  margin-top: 1.7rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 184, 116, 0.25);
  padding-bottom: 0.3rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.link-quiet:hover { color: var(--gold-200); border-color: var(--gold-300); }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none !important; }
}
