/* #VivaaHit wedding website. Palette taken from the invite (sindoor + gold) and the monogram (lotus pink, leaf green). */
@font-face { font-family: 'Cinzel'; font-weight: 400; font-display: swap; src: url(../fonts/cinzel-400.ttf) format('truetype'); }
@font-face { font-family: 'Cinzel'; font-weight: 500; font-display: swap; src: url(../fonts/cinzel-500.ttf) format('truetype'); }

:root {
  --ivory: #f8f1e6;
  --ivory-2: #efe3d0;
  --sindoor: #7a1424;
  --sindoor-deep: #3d0912;
  --gold: #a87a24;
  --gold-soft: #d9b46a;
  --lotus: #b8506b;
  --leaf: #5f7a4c;
  --ink: #3a1d17;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --script: 'Great Vibes', 'Snell Roundhand', 'Apple Chancery', cursive;
  --caps: 'Cinzel', Georgia, serif;

  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--sindoor); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sindoor); color: var(--ivory); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* faint monogram watermark repeated behind everything below the hero */
main { position: relative; isolation: isolate; }
main::before {
  content: ''; position: absolute; inset: 100svh 0 0; z-index: -1; pointer-events: none;
  background: url(../img/watermark.png) 0 0 / 260px auto repeat;
  opacity: .07;
}

/* ═════════════ nav ═════════════ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter) 12px;
  opacity: 0;   /* no transform here: it would trap the fixed mobile menu sheet inside the bar */
  transition: opacity .8s ease, background-color .4s ease, box-shadow .4s ease;
  pointer-events: none;
}
.ready .nav { opacity: 1; pointer-events: auto; }
.nav.scrolled { background: rgba(248, 241, 230, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(168, 122, 36, .25); }
.nav-mark { font-family: var(--caps); font-size: 18px; letter-spacing: .08em; color: var(--sindoor-deep); text-decoration: none; }
.nav-mark span { font-family: var(--script); color: var(--gold); padding: 0 .1em; font-size: 1.2em; }
.nav-links { display: flex; gap: clamp(14px, 2.4vw, 32px); align-items: center; }
.nav-links a { font-size: 17px; color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--sindoor); }
.nav-links .nav-rsvp { padding: 6px 18px; border: 1px solid var(--gold); border-radius: 999px; color: var(--sindoor); }
.nav-end { display: none; }   /* phones only: Send Wishes + Menu */

@media (max-width: 760px) {
  .nav-end { display: flex; align-items: center; gap: 8px; }
  .nav-toggle, .nav-wish {
    display: block; font: inherit; font-size: 16px; line-height: 1.4; color: var(--sindoor-deep); text-decoration: none;
    background: rgba(248, 241, 230, .85); border: 1px solid rgba(168, 122, 36, .5); border-radius: 999px; padding: 5px 16px; cursor: pointer;
  }
  .nav-wish { color: var(--sindoor); border-color: var(--gold); }
  .nav-links .nav-rsvp { display: none; }   /* it is beside Menu instead */
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 22px;
    background: var(--ivory);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
  }
  .nav-links a { font-size: 28px; }
  /* same for backdrop-filter */
  .nav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ivory); }
  .nav.open .nav-links { opacity: 1; visibility: visible; }
}

/* ═════════════ hero ═════════════ */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 72px var(--gutter) 88px;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse at 50% 42%, #fffaf1 0%, var(--ivory) 55%, var(--ivory-2) 100%);
}
/* the couple's photos, faded to a watermark behind the type: one each side, crossfading under the middle */
.hero-photo {
  --photo-pos: -14vw 60%; /* couple centred in the frame; negative x slides them left so the groom clears the type */
  /* --photo-pos: which part of the photo stays in frame; tune it for the real photo */
  position: absolute; top: -4%; bottom: -4%; left: -4%; width: 62%;
  background: url(../img/couple-dummy.jpg) var(--photo-pos, 50% 50%) / 100% auto no-repeat;
  filter: sepia(.6) saturate(.65) contrast(.92);
  mix-blend-mode: multiply;
  opacity: .2;
  /* horizontal fade toward the centre, intersected with a top/bottom fade */
  /* fade ends at 76%, where the slid image runs out */
  --fade-x: linear-gradient(to right, #000 40%, transparent 76%);
  --fade-y: linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
  -webkit-mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in;
  mask-image: var(--fade-x), var(--fade-y);
  mask-composite: intersect;
  animation: drift 24s ease-in-out infinite alternate;
}
/* right photo: couple stands small and low in this frame, so scale it up past cover */
.hero-photo-right {
  --photo-pos: 45% 80%;
  --fade-x: linear-gradient(to left, #000 40%, transparent);
  left: auto; right: -4%;
  background-image: url(../img/couple-dummy-right.jpg);
  background-size: 125% auto;
}
@media (max-width: 760px) {
  .hero-photo {
    width: auto; right: -4%; --photo-pos: 55% 45%; background-size: cover;
    --fade-x: radial-gradient(ellipse 50% 70% at 50% 48%, #000 35%, transparent 100%);
  }
  .hero-photo-right { display: none; }
}
@keyframes drift { from { transform: scale(1.06) translateY(0); } to { transform: scale(1) translateY(-1.5%); } }

.hero-petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; top: -20px;
  border-radius: 60% 0 60% 0;
  background: linear-gradient(135deg, #d4475f, #8f0f22);
  opacity: .7;
  animation: fall linear forwards;
}
@keyframes fall { to { transform: translate(var(--dx), 105svh) rotate(var(--rot)); opacity: .15; } }

.hero-inner { position: relative; width: 100%; max-width: 1100px; display: flex; flex-direction: column; align-items: center; }
.ganesh { width: 38px; height: auto; margin-bottom: 4px; opacity: 0; }
.hero-pre { margin: 0 0 clamp(14px, 3svh, 28px); font-style: italic; font-size: clamp(16px, 1.8vw, 20px); color: var(--gold); opacity: 0; }

/* names and hashtag share one cell: the names fold away and the hashtag takes their place */
.mark { display: grid; place-items: center; width: 100%; }
.mark > * { grid-area: 1 / 1; }

.names {
  display: flex; flex-direction: column; align-items: center;
  font-weight: 500;
  font-size: min(17vw, 15svh, 150px);
  line-height: .98;
  letter-spacing: -.01em;
  color: var(--sindoor-deep);
}
.nm { display: block; white-space: nowrap; }
.nm span { display: inline-block; }
.nm-amp { font-family: var(--script); font-size: .5em; line-height: 1.1; color: var(--gold); }
.names .pick, .names .rest, .nm-amp { opacity: 0; }
.names .pick { transform-origin: 0 0; will-change: transform; }

.tag {
  margin: 0;
  font-weight: 600;
  font-size: min(16vw, 17svh, 168px);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--sindoor-deep);
  white-space: nowrap;
}
.tag > span { display: inline-block; opacity: 0; }
.tag .t-hash { color: var(--gold); font-weight: 500; margin-right: .03em; }
.tag .t-vaa { font-style: italic; font-weight: 400; color: var(--lotus); }

/* "One word. Two names. Married forever." — each phrase slides in from the left in turn (hero.js) */
.hero-key { margin: clamp(10px, 2svh, 18px) 0 0; font-size: clamp(19px, 2.2vw, 24px); color: var(--ink); }
.hero-key .kp { display: inline-block; opacity: 0; }
.hero-key i { color: var(--lotus); }
.hero-sub { margin: clamp(18px, 4svh, 36px) 0 0; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4; color: var(--sindoor-deep); opacity: 0; }


.hero-scroll {
  position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); transform: translateX(-50%);
  font-style: italic; font-size: 16px; color: var(--gold); text-decoration: none;
  opacity: 0; transition: opacity 1s ease .4s;
}
.ready .hero-scroll { opacity: 1; }
.hero-scroll::after {
  content: ''; display: block; width: 9px; height: 9px; margin: 6px auto 0;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); animation: nudge 2s ease-in-out infinite;
}
@keyframes nudge { 50% { transform: translateY(4px) rotate(45deg); } }

/* ═════════════ sections ═════════════ */
.sec { position: relative; padding: clamp(36px, 5vw, 64px) var(--gutter); }   /* half of it at each edge: sections sit 72-128px apart */
.sec-head { max-width: 640px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.sec-head h1, .sec-head h2 { margin: 0; font-family: var(--script); font-weight: 400; font-size: clamp(52px, 7vw, 84px); line-height: 1.05; color: var(--sindoor); }
.orn { display: block; width: 180px; height: 18px; margin: 14px auto 18px; color: var(--gold); }
.lead { margin: 0; font-size: clamp(19px, 2vw, 23px); font-style: italic; color: var(--ink); }

.btn {
  display: inline-block; padding: 12px 28px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, #b88a36, #e0bb6e, #b88a36);
  color: var(--sindoor-deep);
  font: 500 17px var(--serif); text-decoration: none;
  box-shadow: 0 8px 20px rgba(168, 122, 36, .28);
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: none; box-shadow: inset 0 0 0 1px var(--gold); }


/* ═════════════ story ═════════════ */
.thread { --p: 0; position: relative; max-width: 1040px; margin: 0 auto; padding: 0; list-style: none; }
/* the thread: a faint line, filled with marigold as you scroll */
.thread::before, .thread::after { content: ''; position: absolute; top: 0; left: 50%; width: 2px; margin-left: -1px; border-radius: 2px; }
.thread::before { bottom: 0; background: rgba(217, 180, 106, .35); }
.thread::after { height: calc(var(--p) * 100%); background: linear-gradient(var(--gold-soft), #e39b1b); }

.chapter {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 110px); align-items: center;
  padding-bottom: clamp(40px, 6vw, 72px);
}
.chapter.last { padding-bottom: 0; }
.chapter::before {
  content: ''; position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--ivory); box-shadow: 0 0 0 2px var(--gold-soft);
  transition: background-color .5s ease, box-shadow .5s ease;
}
.chapter.lit::before { background: #e39b1b; box-shadow: 0 0 0 2px var(--gold-soft), 0 0 0 7px rgba(227, 155, 27, .18); }
.chapter:nth-child(even) .arch-photo { order: 2; }
.chapter:nth-child(odd) .chapter-text { text-align: left; }
.chapter:nth-child(even) .chapter-text { text-align: right; }

.arch-photo {
  margin: 0; justify-self: center; width: min(100%, 360px);
  aspect-ratio: 4 / 5; padding: 8px;
  border-radius: 999px 999px 14px 14px;
  border: 1px solid rgba(168, 122, 36, .55);
  background: var(--ivory);
}
.arch-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 8px 8px; }
.chapter-text time { font-family: var(--caps); font-size: 14px; letter-spacing: .14em; color: var(--gold); }
.chapter-text h3 { margin: 4px 0 10px; font-weight: 500; font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1; color: var(--sindoor-deep); }
.chapter-text p { margin: 0; max-width: 28em; display: inline-block; }

/* chapters rise in as you reach them: the one reveal on the page, because the story is read in order */
.js .chapter .arch-photo, .js .chapter .chapter-text { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s var(--ease); }
.js .chapter .chapter-text { transition-delay: .15s; }
.js .chapter.in .arch-photo, .js .chapter.in .chapter-text { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .thread::before, .thread::after { left: 9px; }
  .chapter { grid-template-columns: 1fr; gap: 20px; padding-left: 40px; }
  .chapter::before { left: 9px; top: 0; margin-top: 0; }
  .chapter:nth-child(even) .arch-photo { order: 0; }
  .chapter:nth-child(n) .chapter-text { text-align: left; }
  .arch-photo { justify-self: start; width: min(100%, 300px); }
}

/* ═════════════ save the date + countdown ═════════════ */
.date { text-align: center; }
.scratch-row { display: flex; justify-content: center; gap: clamp(12px, 4vw, 32px); }
.scratch {
  position: relative; width: clamp(92px, 22vw, 140px); aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid var(--gold-soft);
  box-shadow: 0 0 0 5px var(--ivory), 0 0 0 6px rgba(168, 122, 36, .35), 0 10px 26px rgba(122, 20, 36, .12);
  background: radial-gradient(circle at 50% 40%, #fffdf8, var(--ivory-2));
  display: grid; place-items: center;
}
.scratch .v { font-family: var(--caps); font-size: clamp(24px, 6vw, 38px); color: var(--sindoor); }
.scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; cursor: grab; touch-action: none; transition: opacity .8s ease; }
.scratch canvas.done { opacity: 0; pointer-events: none; }
.date-full { margin: 22px 0 0; font-family: var(--script); font-size: clamp(32px, 5vw, 46px); line-height: 1.2; color: var(--sindoor); opacity: 0; transition: opacity 1s ease .3s; }
.date-full.show { opacity: 1; }

.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 2vw, 18px); max-width: 560px; margin: clamp(24px, 4vw, 40px) auto 0; }
.unit {
  padding: 18px 4px 14px; border-radius: 14px;
  background: linear-gradient(160deg, var(--sindoor), var(--sindoor-deep));
  color: #fff4dd;
  box-shadow: inset 0 0 0 1px rgba(217, 180, 106, .55), inset 0 0 0 5px var(--sindoor-deep), inset 0 0 0 6px rgba(217, 180, 106, .35), 0 12px 24px rgba(79, 12, 22, .2);
}
.unit b { display: block; font-family: var(--caps); font-weight: 500; font-size: clamp(26px, 6vw, 44px); line-height: 1; font-variant-numeric: tabular-nums; }
.unit span { display: block; margin-top: 8px; font-size: clamp(13px, 2.4vw, 16px); font-style: italic; color: var(--gold-soft); }

/* ═════════════ celebrations ═════════════ */
.day { max-width: 1040px; margin: 0 auto; }
.day + .day { margin-top: clamp(48px, 6vw, 80px); }
.day-label { margin: 0 0 clamp(32px, 5vw, 56px); text-align: center; font-weight: 400; font-size: 20px; }
.day-label span { display: inline-block; padding: 6px 22px; border: 1px solid rgba(168, 122, 36, .5); border-radius: 999px; background: var(--ivory); color: var(--sindoor-deep); }

.event {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center;
}
.event + .event { margin-top: clamp(40px, 6vw, 72px); }
.event:nth-of-type(even) .event-scene { order: 2; }
.event-scene {
  position: relative; width: min(100%, 440px); justify-self: center;
  aspect-ratio: var(--ar, 4 / 5);
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(168, 122, 36, .5);
  box-shadow: 0 0 0 6px var(--ivory), 0 0 0 7px rgba(168, 122, 36, .3), 0 18px 40px rgba(79, 12, 22, .16);
  background: var(--ivory-2);
}
.event-scene iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.event-scene.still { aspect-ratio: auto; background: radial-gradient(circle at 50% 30%, #fffaf1, var(--ivory-2)); padding: 24px 24px 0; }
.event-scene.still img { display: block; width: min(300px, 80%); height: auto; margin: 0 auto; }
.event-text h4 { margin: 0; font-family: var(--script); font-weight: 400; font-size: clamp(48px, 5.6vw, 68px); line-height: 1.05; color: var(--sindoor); }
.event-text .when { margin: 2px 0 0; font-family: var(--caps); font-size: 15px; letter-spacing: .1em; color: var(--gold); }
.event-text p { max-width: 30em; }
/* theme or tagline and hall, as on the invite */
.event-text .note { margin: 10px 0 0; font-size: 21px; color: var(--ink); }
.event-text .note span { font-family: var(--caps); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.event-text .when { margin-top: 10px; }
.event-text .hall { margin: 8px 0 0; font-family: var(--caps); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--sindoor-deep); }
.facts { margin: 18px 0 0; display: grid; gap: 8px; }   /* "Try it": how to play each scene */
.facts div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; align-items: baseline; }
.facts dt { font-family: var(--caps); font-size: 12px; letter-spacing: .1em; color: var(--gold); }
.facts dd { margin: 0; }

@media (max-width: 760px) {
  .event { grid-template-columns: 1fr; }
  .event:nth-of-type(even) .event-scene { order: 0; }
}

/* ═════════════ moments ═════════════ */
/* ───────── pre-wedding film (film.js) ───────── */
.film-frame { position: relative; max-width: 1040px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #1c0a0e;
  box-shadow: 0 0 0 6px var(--ivory), 0 0 0 7px rgba(168, 122, 36, .3), 0 18px 40px rgba(79, 12, 22, .16); }
.film-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #1c0a0e; }
.film-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(64px, 9vw, 88px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255, 244, 221, .7); background: rgba(79, 12, 22, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  cursor: pointer; display: grid; place-items: center; transition: transform .3s var(--ease), background .3s ease;
}
.film-play:hover { transform: translate(-50%, -50%) scale(1.06); background: rgba(122, 20, 36, .7); }
.film-play svg { width: 42%; fill: #fff4dd; margin-left: 6%; }
.film.playing .film-play { display: none; }
.film-msg { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; color: #fff4dd; font-style: italic; }
.film-msg:empty { display: none; }

/* ───────── moments (moments.js): editorial rows, each its own shape; photos fill their tiles ───────── */
.m-rows { --gap: clamp(6px, 1.2vw, 12px); display: flex; flex-direction: column; gap: var(--gap); max-width: 1040px; margin: 18px auto 0; }
.m-row { display: grid; gap: var(--gap); }
.m-row.banner { aspect-ratio: 21 / 9; }                                          /* the film's own shape */
.m-row.three { grid-template-columns: repeat(3, 1fr); aspect-ratio: 2 / 1; }
.m-row.two { grid-template-columns: repeat(2, 1fr); aspect-ratio: 4 / 3; }
.m-row.big-left, .m-row.big-right { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 3 / 2; }
.m-row.big-left > :first-child { grid-row: span 2; }
.m-row.big-right { grid-template-columns: 1fr 2fr; }
.m-row.big-right > :first-child { grid-column: 2; grid-row: 1 / span 2; }
.m-row.big-right > :nth-child(2) { grid-column: 1; grid-row: 1; }
.m-row.big-right > :nth-child(3) { grid-column: 1; grid-row: 2; }
.m-row.single { aspect-ratio: 3 / 2; }                                           /* one photo left at the end */
/* home page: a collage of six, two big and four small (moments.js HOME) */
.m-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 1.2vw, 12px); max-width: 760px; margin: 18px auto 0; }
.m-grid .m-photo { aspect-ratio: 1; }
.m-grid .m-photo:nth-child(1) { grid-column: 1 / span 2; grid-row: span 2; }
.m-grid .m-photo:nth-child(4), .m-grid .m-photo:nth-child(5) { grid-column: 1; }
.m-grid .m-photo:nth-child(6) { grid-column: 2 / span 2; grid-row: 3 / span 2; }
.m-photo { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--ivory-2); }
.m-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }   /* fills the tile; never sizes it */
.m-photo:hover img { transform: scale(1.04); }
.m-links { display: flex; justify-content: center; margin-top: 18px; }
.m-links .btn { margin: 0; }
.moments-page { padding-top: calc(64px + clamp(36px, 5vw, 64px)); }   /* clear the fixed nav: this page has no hero */

.lightbox { padding: 0; border: 0; background: none; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(35, 6, 12, .9); }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; background: none; border: 0; color: #fff4dd; font-size: 44px; line-height: 1; cursor: pointer; padding: 10px 16px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ═════════════ venue ═════════════ */
.venue-grid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.venue-name { margin: 0; font-family: var(--caps); font-weight: 500; font-size: clamp(24px, 3vw, 32px); letter-spacing: .08em; color: var(--sindoor-deep); }
.venue-addr { margin: 0 0 14px; font-style: italic; color: var(--gold); }
.venue-text .btn { margin-top: 26px; }
.map { border-radius: 18px; overflow: hidden; border: 1px solid rgba(168, 122, 36, .45); box-shadow: 0 12px 30px rgba(122, 20, 36, .1); }
.map iframe { display: block; width: 100%; height: clamp(280px, 36vw, 420px); border: 0; }
@media (max-width: 760px) { .venue-grid { grid-template-columns: 1fr; } }

/* ═════════════ send wishes (the one dark section) ═════════════ */
.wishes { background: radial-gradient(ellipse at 50% 0%, #8a1a2c, var(--sindoor-deep) 70%); color: #f6e9d4; }
.wishes .sec-head h2 { color: #fff4dd; }
.wishes .lead { color: #f0dcc0; }
.wish-form { max-width: 560px; margin: 0 auto; display: grid; gap: 22px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span { padding: 0; font-size: 17px; font-style: italic; color: var(--gold-soft); }
.field input, .field textarea {
  width: 100%; padding: 10px 2px;
  font: 20px var(--serif); color: #fff8ec;
  background: transparent; border: 0; border-bottom: 1px solid rgba(217, 180, 106, .55); border-radius: 0; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold-soft); box-shadow: 0 1px 0 var(--gold-soft); }
.field [aria-invalid=true] { border-bottom-color: #ff9f9f; }
.field .chars { justify-self: end; font-size: 14px; color: rgba(240, 220, 192, .7); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wish-actions { display: flex; justify-content: center; }
.wish-actions .btn[disabled] { opacity: .6; cursor: wait; }
.form-msg { margin: 0; min-height: 1.6em; text-align: center; color: #fff4dd; }

/* ═════════════ sign-off ═════════════ */
.end { text-align: center; padding-top: 96px; padding-bottom: 96px; }   /* same space above the monogram as below the signature */
.monogram { display: block; width: min(280px, 70%); height: auto; margin: 0 auto; }
.sign { margin: 18px 0 0; font-style: italic; color: var(--ink); }
.sign i { display: block; font-style: normal; font-family: var(--script); font-size: 40px; color: var(--sindoor); }

/* ═════════════ music ═════════════ */
.music {
  position: fixed; right: 18px; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); z-index: 40;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: #cfab66; box-shadow: 0 6px 16px rgba(79, 12, 22, .2);
}
.music svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; }
.music .i-pause { fill: #fff; stroke: none; display: none; }
.music[aria-pressed=true] .i-play { display: none; }
.music[aria-pressed=true] .i-pause { display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo, .hero-scroll::after { animation: none; }
  .js .chapter .arch-photo, .js .chapter .chapter-text { opacity: 1; transform: none; transition: none; }
}
