/* ═══════════════════════════════════════════════════════════════
   HIMADRI · Maharaja template two · vowstory.app

   A Himalayan lake palace: ivory marble, lapis inlay, snow behind.
   Palette is measured, not chosen — the plates' flat interiors read
   #F3DCB6 and #F7E3C2, and the lapis and gold come off the inlay in the
   ornaments themselves (#0B2749 and #BF915B).

   Frame geometry is drawn in CSS. The ornaments on these sheets occupy
   ~300px of a 1024px grid, which is under half the pixels a 300px frame
   needs on a retina screen, so rasterised frames blur and no re-crop
   fixes it. Raster is used only for corner ornaments, which never render
   above 84px against 168px of source.

   Base rules first, modifiers after.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --paper: #f6e1be;
  --paper-2: #f0d6ac;
  --paper-3: #fbefd9;
  --ink: #3a2416;
  --ink-2: #6b4a30;
  --ink-3: #9a7a5c;
  --lapis: #0b2749;
  --lapis-2: #1b4272;
  --gold: #bf915b;
  --gold-lt: #d9b87e;
  --gold-dp: #8f6a34;
  --line: rgba(191, 145, 91, 0.34);
  --line-2: rgba(191, 145, 91, 0.18);

  --col: 480px;
  --pad: 24px;
  --gap: 54px;
  --es: cubic-bezier(0.22, 0.61, 0.36, 1);
  --eo: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 600px) {
  :root {
    --col: 620px;
  }
  body {
    font-size: 17px;
  }
}
@media (min-width: 960px) {
  :root {
    --col: 800px;
    --gap: 70px;
  }
  body {
    font-size: 18px;
  }
}
@media (min-width: 1400px) {
  :root {
    --col: 880px;
  }
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.75 "Jost",
    system-ui,
    sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
#page {
  max-width: var(--col);
  margin: 0 auto;
}

/* ── type ──────────────────────────────────────────────────── */
.eyebrow {
  font-size: 0.63rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-dp);
}
.h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(1.85rem, 7vw, 2.6rem);
  line-height: 1.16;
  color: var(--lapis);
}
.prose {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 34em;
  margin-inline: auto;
}
.deva {
  font-family: "Noto Serif Devanagari", serif;
}
.guru {
  font-family: "Noto Sans Gurmukhi", sans-serif;
}
.rule {
  display: block;
  width: 128px;
  height: 1px;
  margin: 18px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ── sections ──────────────────────────────────────────────── */
.sec {
  position: relative;
  padding: var(--gap) var(--pad);
  isolation: isolate;
}
.sec > * {
  position: relative;
}
.sec-tight {
  padding-top: calc(var(--gap) * 0.4);
}
.sec-flush {
  padding-left: 0;
  padding-right: 0;
}
.sec-corners {
  padding-top: calc(var(--gap) + 40px);
}
.inner {
  max-width: var(--col);
  margin: 0 auto;
  text-align: center;
}

/* corner ornaments — the lapis bracket hangs its own bell, so it may
   touch the top edge of its crop. Rendered height plus offset must stay
   inside the section's top padding; asserted at all four widths. */
.sc {
  position: absolute;
  width: clamp(56px, 14vw, 96px);
  pointer-events: none;
  opacity: 0;
  z-index: 0;
}
.sc-tl {
  top: 8px;
  left: 6px;
}
.sc-tr {
  top: 8px;
  right: 6px;
  transform: scaleX(-1);
}
.sec.lit .sc {
  opacity: 0.9;
  transition: opacity 1s var(--eo);
}

.trans {
  display: block;
  width: min(40%, 190px);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(10px);
}
.trans.in {
  opacity: 0.94;
  transform: none;
  transition:
    opacity 0.9s var(--es),
    transform 0.9s var(--es);
}

/* a heading flanked by symmetrical accents (peacocks, swans) */
.flank {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.flank-el {
  width: clamp(52px, 15vw, 104px);
  flex: none;
  opacity: 0;
}
.flank-el.l {
  transform: translateX(18px);
}
.flank-el.r {
  transform: scaleX(-1) translateX(18px);
}
.flank.in .flank-el {
  opacity: 0.92;
  transition:
    opacity 1s var(--eo),
    transform 1s var(--eo);
}
.flank.in .flank-el.l {
  transform: none;
}
.flank.in .flank-el.r {
  transform: scaleX(-1);
}
.flank-mid {
  flex: 1;
  min-width: 0;
}
@media (max-width: 520px) {
  .flank-el {
    width: clamp(40px, 12vw, 64px);
  }
}

/* the crest above the names, and the medallion heading the union block */
.crest-mark {
  width: min(28%, 120px);
  margin: 0 auto 10px;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
}
.crest-mark.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.9s var(--es),
    transform 0.9s var(--es);
}

/* silhouette band between sections — a temple or elephant sitting low as a
   depth layer, drifting up as it enters. Kept faint so it reads as distance,
   not a sticker.

   The container is sized to the ELEMENT's own aspect via aspect-ratio, not a
   fixed height, so overflow:hidden can never clip the artwork into a hard
   rectangle (the previous bug: a 210px-tall elephant inside a 150px band was
   sheared mid-body). A mask fades all four edges so the layer dissolves into
   the page instead of ending on a line. */
.silhouette {
  position: relative;
  width: min(72%, 300px);
  margin: 0 auto;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 120% at 50% 55%, #000 52%, transparent 82%);
  mask-image: radial-gradient(120% 120% at 50% 55%, #000 52%, transparent 82%);
}
.silhouette img {
  display: block;
  width: 100%;
  height: auto;
  --par: 0px;
  transform: translateY(24px);
  opacity: 0;
  filter: saturate(0.8) contrast(0.96);
}
.silhouette.in img {
  transform: translateY(var(--par));
  opacity: 0.46;
  transition: opacity 1.4s var(--eo);
}
.silhouette-l {
  margin-left: 6%;
}
.silhouette-r {
  margin-right: 6%;
  margin-left: auto;
}

/* diya / urli with a breathing glow rather than a flat cutout */
.lamp {
  position: relative;
  width: min(34%, 132px);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(10px);
}
.lamp.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 1s var(--es),
    transform 1s var(--es);
}
.lamp img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 10px rgba(255, 176, 64, 0.42));
}
.lamp::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 36%;
  width: 64%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 0;
  background: radial-gradient(
    circle,
    rgba(255, 190, 86, 0.5),
    rgba(255, 160, 40, 0.14) 45%,
    transparent 70%
  );
  animation: breathe 3.4s ease-in-out infinite;
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

/* ── the sky ──
   One fixed layer over the whole viewport, fed by a continuous spawner and
   emptied on finish, so the node count stays flat. It fades out as the hero
   leaves the screen: atmosphere belongs to the opening, not to the RSVP form. */
#sky {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease;
}
#sky.on {
  opacity: 1;
}
.sky-el {
  position: absolute;
  will-change: transform, opacity;
}
.sky-el img {
  display: block;
  width: 100%;
  height: auto;
}

/* What reads as blur is glow. drop-shadow follows the painted silhouette,
   where box-shadow would halo the bounding box instead. */
.sky-ltn img {
  filter: drop-shadow(0 0 9px rgba(255, 178, 64, 0.66))
    drop-shadow(0 0 24px rgba(255, 146, 28, 0.3));
  animation: flicker 2.2s ease-in-out infinite alternate;
}
@keyframes flicker {
  0% {
    filter: drop-shadow(0 0 7px rgba(255, 178, 64, 0.48))
      drop-shadow(0 0 18px rgba(255, 146, 28, 0.2));
  }
  100% {
    filter: drop-shadow(0 0 12px rgba(255, 192, 86, 0.8))
      drop-shadow(0 0 30px rgba(255, 146, 28, 0.36));
  }
}
.sky-dust img {
  filter: drop-shadow(0 0 7px rgba(214, 176, 104, 0.46));
}

/* ═══ COVER ═══════════════════════════════════════════════════
   The couple's seal on a lapis mandala. Maharaja supersedes the
   bare-cover rule for the seal alone: no names, no date, no preview of
   the hero. */
#cover {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition:
    opacity 0.8s var(--es) 0.3s,
    visibility 0.8s 0.3s;
}
#cover.gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cv-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(26px, 7vh, 64px);
  background: var(--paper-2);
  transition: transform 1s var(--eo);
}
.cv-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.cv-bar-t {
  top: 0;
}
.cv-bar-t::after {
  bottom: 0;
}
.cv-bar-b {
  bottom: 0;
}
.cv-bar-b::after {
  top: 0;
}
#cover.opening .cv-bar-t {
  transform: translateY(-100%);
}
#cover.opening .cv-bar-b {
  transform: translateY(100%);
}

.cv-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
.cp {
  position: relative;
  width: min(72vw, 300px);
  transition:
    transform 1.2s var(--eo),
    opacity 0.9s ease;
}
.cp-art {
  width: 100%;
  display: block;
}
.cp-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 41%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 3px 16px rgba(11, 39, 73, 0.24);
}
.cp-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cp-sheen {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 41%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: linear-gradient(
    118deg,
    transparent 34%,
    rgba(255, 255, 255, 0.66) 48%,
    transparent 62%
  );
  background-size: 250% 250%;
  animation: sheen 5s var(--es) infinite;
}
@keyframes sheen {
  0% {
    background-position: 130% 130%;
  }
  55%,
  100% {
    background-position: -40% -40%;
  }
}
#cover.pressed .cp {
  transform: scale(0.955);
}
#cover.opening .cp {
  transform: scale(1.1) translateY(-16px);
  opacity: 0;
}
.cv-tap {
  margin-top: 26px;
  font-size: 0.66rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-dp);
  transition: opacity 0.5s ease;
}
#cover.opening .cv-tap {
  opacity: 0;
}
.mote {
  position: absolute;
  border-radius: 50%;
  background: var(--gold-lt);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
#cover.opening .mote {
  animation: rise 1.7s var(--es) forwards;
}
@keyframes rise {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.3);
  }
  20% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate(var(--mx), var(--my)) scale(1.15);
  }
}

/* ═══ MUSIC ═══ */
.mus {
  position: fixed;
  top: 16px;
  z-index: 40;
  right: max(16px, calc((100vw - var(--col)) / 2 + 10px));
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(251, 239, 217, 0.92);
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gold-dp);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s ease 0.4s,
    visibility 0.6s 0.4s;
}
.mus.on {
  opacity: 1;
  visibility: visible;
}
.mus svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mus .m-off {
  display: none;
}
.mus.muted .m-on {
  display: none;
}
.mus.muted .m-off {
  display: block;
}

/* ═══ PLATES ══════════════════════════════════════════════════
   The plate keeps the artwork's own aspect so cover cannot crop, and has
   no inset so it cannot crop vertically either. The ken-burns is a scale
   on the art layer; nothing else writes transform. */
.plate {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 866 / 1817;
  overflow: hidden;
}
.plate-art {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.07);
  transform-origin: 50% 42%;
}
.plate.settled .plate-art {
  transform: scale(1);
  transition: transform 2.8s var(--eo);
}
.plate-hero .plate-art {
  background-image: url(assets/hero-1.webp);
}
.plate-fam {
  aspect-ratio: 865 / 1819;
}
.plate-fam .plate-art {
  background-image: url(assets/hero-2.webp);
}

/* Hero_1's flat interior is 45% of the plate at mean 221.5 — below the
   225 threshold, so this is the first plate on the tier that needs a
   veil. Feathered top and bottom so it never reaches the painted border. */
.plate-body {
  position: absolute;
  left: 0;
  right: 0;
  top: 20%;
  bottom: 35%;
  padding: 0 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  z-index: 3;
}
.plate-hero .plate-body::before {
  content: "";
  position: absolute;
  inset: -6% -14%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 11%,
    rgba(255, 255, 255, 0.15) 89%,
    rgba(255, 255, 255, 0) 100%
  );
}
.plate-fam .plate-body {
  top: 20%;
  bottom: 34%;
  padding: 0 17%;
  justify-content: space-evenly;
}

/* ── hero foreground layers ── */
.fg {
  position: absolute;
  bottom: -1%;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
}
.fg-l {
  left: -4%;
  width: 34%;
}
.fg-r {
  right: -3%;
  width: 25%;
}
.plate.settled .fg {
  opacity: 1;
  transition: opacity 1.4s var(--eo) 0.5s;
}

.hang {
  position: absolute;
  top: 0;
  z-index: 5;
  pointer-events: none;
  transform-origin: 50% 0;
  opacity: 0;
}
.hang-a {
  left: 9%;
  width: 8%;
}
.hang-b {
  right: 10%;
  width: 8%;
}
.hang-c {
  left: 26%;
  width: 7%;
}
.plate.settled .hang {
  opacity: 0.96;
  animation: sway 7s ease-in-out infinite;
  transition: opacity 1.2s ease 0.3s;
}
.plate.settled .hang-b {
  animation-duration: 8.4s;
  animation-delay: -2s;
}
.plate.settled .hang-c {
  animation-duration: 9.6s;
  animation-delay: -4s;
}
@keyframes sway {
  0%,
  100% {
    transform: rotate(-1.6deg);
  }
  50% {
    transform: rotate(1.6deg);
  }
}

.petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 6;
}
.pet {
  position: absolute;
  top: -8%;
  opacity: 0;
  will-change: transform;
}
.plate.settled .pet {
  animation: drift linear infinite;
}
@keyframes drift {
  0% {
    opacity: 0;
    transform: translate3d(0, -10%, 0) rotate(0deg);
  }
  8% {
    opacity: 0.9;
  }
  88% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx), 115%, 0) rotate(var(--spin));
  }
}

.deity {
  width: clamp(66px, 19%, 118px);
  margin: 0 auto;
}
.hero-inv {
  margin-top: 8px;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--gold-dp);
}
.hero-eye {
  margin-top: 14px;
}
.hero-names {
  margin-top: 10px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(1.95rem, 9.6vw, 3.1rem);
  line-height: 1.02;
  color: var(--lapis);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-names .amp {
  font-family: "Pinyon Script", cursive;
  font-size: 0.46em;
  color: var(--gold);
  margin: 0.04em 0;
  order: 1;
}
.hero-names .n-groom {
  order: 0;
}
.hero-names .n-bride {
  order: 2;
}
.hero-date {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dp);
}
.hero-venue {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-2);
  font-style: italic;
}

.cue {
  display: block;
  margin: 20px auto 0;
  width: 22px;
  height: 32px;
  transition: opacity 0.5s ease;
}
.cue.hide {
  opacity: 0;
}
.cue span {
  display: block;
  width: 1px;
  height: 100%;
  margin: 0 auto;
  background: linear-gradient(180deg, transparent, var(--gold));
  animation: cuedrop 1.9s ease-in-out infinite;
}
@keyframes cuedrop {
  0% {
    transform: scaleY(0.2);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0.2);
    transform-origin: bottom;
  }
}

.seal-lg {
  width: min(36%, 140px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid var(--line);
  box-shadow: 0 3px 16px rgba(11, 39, 73, 0.14);
}
.seal-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══ THE UNION BLOCK ═════════════════════════════════════════
   One block, each side complete, joined by "weds" in the gutter. Stays
   stacked at every width because the plate caps at 520px — a viewport
   media query would try to fit two full-name columns into 364px. */
.weds {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.weds .side {
  flex: 1;
  min-width: 0;
}
.side-name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(1.1rem, 4.7vw, 1.42rem);
  line-height: 1.2;
  color: var(--lapis);
}
.side-role {
  margin-top: 3px;
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dp);
}
.side-parents {
  margin-top: 3px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.weds em {
  font-family: "Pinyon Script", cursive;
  font-style: normal;
  font-size: 1.3rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  order: 1;
}
.weds em::before,
.weds em::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line);
}
.weds .side-groom {
  order: 0;
}
.weds .side-bride {
  order: 2;
}
.fam-prose {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 25em;
}
.fam-date {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dp);
}

/* The "Hosted by …" line under the families (pack 0011 T1) — quiet italic,
   the body ink, so it reads as a sentence and not as another heading. */
.fam-hosted {
  margin-top: 10px;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-2);
}

/* ═══ COUNTDOWN ═══ */
.clock {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.unit {
  flex: 1;
  max-width: 118px;
  padding: 16px 4px;
  border: 1px solid var(--line-2);
  background: var(--paper-3);
}
.unit b {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  line-height: 1;
  color: var(--lapis);
}
.unit i {
  display: block;
  margin-top: 7px;
  font-style: normal;
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dp);
}
.clock.revealed .unit {
  animation: landing 0.9s var(--eo) both;
}
.clock.revealed .unit:nth-child(2) {
  animation-delay: 0.12s;
}
.clock.revealed .unit:nth-child(3) {
  animation-delay: 0.24s;
}
@keyframes landing {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
.scratch {
  position: relative;
  margin-top: 8px;
}
.scratch .clock {
  position: relative;
}
.foil {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: grab;
  touch-action: none;
  transition:
    opacity 0.8s var(--es),
    transform 0.8s var(--es);
}
.foil.done {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}
.scratch-hint {
  margin-top: 14px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dp);
  transition: opacity 0.5s ease;
}
.scratch-hint.gone {
  opacity: 0;
}
.foil-btn {
  margin: 14px auto 0;
  display: block;
  font: inherit;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dp);
  background: none;
  border: 1px solid var(--line);
  padding: 9px 20px;
  cursor: pointer;
}
.foil-btn:hover {
  border-color: var(--gold);
  background: var(--paper-3);
}
.foil-btn.gone {
  display: none;
}

/* ═══ FRAMES — geometry in CSS, ornament in raster ════════════ */
.pf {
  position: relative;
  width: min(74%, 300px);
  margin: 0 auto;
  padding: 12px;
}
.pf::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  opacity: 0.92;
}
.pf::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--lapis);
  opacity: 0.3;
}
.pf-img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.pf-c {
  position: absolute;
  width: 38%;
  max-width: 96px;
  z-index: 3;
  pointer-events: none;
}
.pf-c-tl {
  top: -7%;
  left: -7%;
}
.pf-c-br {
  bottom: -7%;
  right: -7%;
  transform: rotate(180deg);
}
.pf-oval::before,
.pf-oval::after,
.pf-oval .pf-img {
  border-radius: 50%;
}
.pf-arch::before,
.pf-arch::after,
.pf-arch .pf-img {
  border-radius: 48% 48% 3% 3% / 34% 34% 2% 2%;
}
.pf-soft::before,
.pf-soft::after,
.pf-soft .pf-img {
  border-radius: 3px;
}
.pf-tall .pf-img {
  aspect-ratio: 4/5;
}
.pf-wide .pf-img {
  aspect-ratio: 5/4;
}
.pf-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  background: var(--paper-2);
  position: relative;
  z-index: 1;
}
.pf-oval .pf-empty {
  border-radius: 50%;
}
.pf-arch .pf-empty {
  border-radius: 48% 48% 3% 3% / 34% 34% 2% 2%;
}

/* ═══ EVENTS ═══ */
.ev {
  position: relative;
  margin-bottom: 32px;
}
.ev-frame {
  width: min(72%, 280px);
  margin: 0 auto;
}
.ev-in {
  margin-top: 18px;
  text-align: center;
}
.ev-name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 5.4vw, 1.7rem);
  color: var(--lapis);
  line-height: 1.2;
}
.ev-when {
  margin-top: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dp);
}
.ev-where {
  margin-top: 9px;
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Dress code · note under the venue, and the per-event map link — the two
   things this design dropped until pack 0011 T1. The link is set like the
   design's small-caps eyebrows, in the deep gold, with a hairline border. */
.ev-note {
  margin-top: 8px;
  font-style: italic;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.ev-map {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 14px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-dp);
  border: 1px solid currentColor;
}
@media (min-width: 780px) {
  .ev {
    display: flex;
    align-items: center;
    gap: 34px;
    text-align: left;
  }
  .ev-frame {
    width: 42%;
    max-width: 280px;
    flex: none;
    margin: 0;
  }
  .ev-in {
    margin-top: 0;
    flex: 1;
    text-align: left;
  }
}

/* ═══ OUR STORY ═══ */
.sky {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}
.sky-a {
  top: 5%;
  right: 3%;
  width: clamp(56px, 13vw, 96px);
}
.sky-b {
  bottom: 9%;
  left: -2%;
  width: clamp(70px, 17vw, 120px);
}
.sec.lit .sky {
  opacity: 0.4;
  transition: opacity 1.6s var(--eo);
}
.sec.lit .sky-a {
  opacity: 0.72;
  animation: float 9s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
.story {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}
.st {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  width: 100%;
}
.st-frame {
  width: min(64%, 236px);
}
.st-when {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dp);
}
.st-head {
  margin-top: 6px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(1.25rem, 5.2vw, 1.6rem);
  color: var(--lapis);
  line-height: 1.2;
}
.st-body {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 28em;
}
.st-link {
  display: block;
  width: 18px;
  margin: 22px auto;
  opacity: 0.8;
}
@media (min-width: 720px) {
  .st {
    flex-direction: row;
    text-align: left;
    gap: 32px;
  }
  .st-frame {
    width: 34%;
    max-width: 236px;
    flex: none;
  }
  .st:nth-of-type(even) {
    flex-direction: row-reverse;
    text-align: right;
  }
  .st-txt {
    flex: 1;
  }
}

/* ═══ FILM ═══ */
.film {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  cursor: pointer;
}
.film img,
.film iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.film img {
  object-fit: cover;
}
.film-veil {
  position: absolute;
  inset: 0;
  background: rgba(11, 39, 73, 0.3);
}
.film-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid rgba(251, 239, 217, 0.82);
  background: rgba(251, 239, 217, 0.22);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.4s var(--eo),
    background 0.4s ease;
}
.film:hover .film-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(251, 239, 217, 0.36);
}
.film-play svg {
  width: 22px;
  height: 22px;
  fill: #fbefd9;
  margin-left: 3px;
}
.film.playing .film-veil,
.film.playing .film-play,
.film.playing img {
  display: none;
}

/* ═══ GALLERY ═══ */
.gal {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
}
.gal-track {
  display: flex;
  transition: transform 0.8s var(--es);
}
.gal-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.gal-fr {
  width: min(70%, 272px);
}
.ph-badge {
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dp);
  border: 1px solid var(--line);
  padding: 6px 11px;
  background: var(--paper-3);
  text-align: center;
}
.gal-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.gal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
}
.gal-dot.on {
  background: var(--gold);
}

/* ═══ VENUE ═══ */
.venue-wrap {
  position: relative;
  isolation: isolate;
}
.venue-bg {
  position: absolute;
  left: 50%;
  top: -8%;
  width: min(120%, 540px);
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  filter: blur(3px) saturate(0.8);
}
.venue-art {
  width: min(80%, 228px);
  margin: 0 auto 20px;
}
.venue-name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 5.4vw, 1.7rem);
  color: var(--lapis);
  line-height: 1.25;
}
.venue-addr {
  margin-top: 9px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.mapcard {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px auto 0;
  max-width: 420px;
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--paper-3);
  text-decoration: none;
}
.mapcard:hover {
  border-color: var(--gold);
  background: #fff;
}
.mapcard-pin {
  flex: none;
  color: var(--gold-dp);
}
.mapcard-pin svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.mapcard-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.mapcard-text b {
  display: block;
  font-weight: 400;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  color: var(--lapis);
}
.mapcard-text span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-top: 2px;
}
.mapcard-go {
  flex: none;
  color: var(--gold);
}
.mapcard-go svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* ═══ RSVP — structure and copy locked across every tier ═══ */
.rsvp-mark {
  width: min(30%, 110px);
  margin: 0 auto 18px;
}
.rv-lead {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.rv-panel {
  position: relative;
  margin-top: 24px;
  padding: 72px var(--pad) 30px;
  background: var(--paper-3);
  border: 1px solid var(--line-2);
}
.rv-panel .sc {
  width: clamp(40px, 9vw, 64px);
  opacity: 0.85;
}
.rv-choices {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 400px;
  margin: 0 auto 26px;
}
.rv-ch {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.rv-ch:hover {
  border-color: var(--gold);
}
.rv-ch.sy {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191, 145, 91, 0.12);
}
.rv-ch.sn {
  border-color: var(--ink-3);
}
.rv-ico {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dp);
}
.rv-ico svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.rv-lbl {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  color: var(--lapis);
}
.rv-form {
  max-width: 400px;
  margin: 0 auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--es);
}
.rv-form.act {
  opacity: 1;
  pointer-events: all;
}
.ff {
  margin-bottom: 15px;
  text-align: left;
}
.ff.hide {
  display: none;
}
.f-lbl {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dp);
  margin-bottom: 6px;
}
.f-in,
.f-ta {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
  border-radius: 0;
}
.f-in:focus,
.f-ta:focus {
  border-color: var(--gold);
}
.f-ta {
  min-height: 88px;
  resize: vertical;
}
.f-opt {
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: none;
}
.btn-sub {
  width: 100%;
  padding: 14px;
  margin-top: 6px;
  border: 1px solid var(--lapis);
  background: var(--lapis);
  color: var(--paper-3);
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-sub:hover {
  background: var(--lapis-2);
  border-color: var(--lapis-2);
}
.btn-sub[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.rv-contact {
  margin-top: 34px;
  text-align: center;
}
.rc-lbl {
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.rc-name {
  margin-top: 7px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  color: var(--lapis);
}
.rc-ph {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--gold-dp);
  text-decoration: none;
}
.rc-ph svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Templatising additions ─────────────────────────────────────
   .rc-line   one contact — name over number. The config carries a LIST, so
              each pair is cloned from tpl-contact and stacked; the old markup
              hard-coded exactly one.
   .ic-*      the two link glyphs. script.js deletes whichever does not apply,
              so `mode: "whatsapp"` and `mode: "call"` never both show.
   .deity-*   a blessing arrives EITHER as this design's own artwork (an <img>)
              or, for the seventeen it was not drawn for, as a plain character
              in `blessing.symbol`. The glyph is sized to sit where the
              illustration would have. */
.rc-line {
  display: block;
}
.rc-line + .rc-line {
  margin-top: 14px;
}
.deity-glyph {
  display: block;
  line-height: 1;
  text-align: center;
  font-family: "Noto Serif Devanagari", "Noto Sans Gurmukhi", "Cormorant Garamond", serif;
  font-size: clamp(38px, 10vw, 60px);
  color: var(--gold-dp);
}
.rv-ok {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.rv-ok.show {
  display: block;
}

/* The refused-reply line under the form (pack 0011 T8) — the form's body
   size, in a deep wine so it reads as a warning without a new colour token. */
.rv-err {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: #7c3040;
}
.ok-r {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 18px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dp);
}
.ok-r svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.ok-t {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  color: var(--lapis);
}
.ok-x {
  margin-top: 9px;
  font-size: 0.92rem;
  color: var(--ink-2);
}

/* ═══ FOOTER — ornament in normal flow above the credit ═══ */
.foot {
  padding: var(--gap) var(--pad) 46px;
  text-align: center;
}
.foot-orn {
  width: min(80%, 300px);
  margin: 0 auto 22px;
  transform-origin: 50% 0;
}
.foot-orn.in {
  animation: swayfoot 8s ease-in-out infinite;
}
@keyframes swayfoot {
  0%,
  100% {
    transform: rotate(-1.1deg);
  }
  50% {
    transform: rotate(1.1deg);
  }
}
.foot-line {
  font-size: 0.92rem;
  color: var(--ink-2);
  font-style: italic;
}
.foot-names {
  margin-top: 12px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  color: var(--lapis);
}
.foot-tag {
  margin-top: 14px;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: var(--gold-dp);
}
.ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--gold-dp);
  text-decoration: none;
}
.ig svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
}
.ig svg circle:last-child {
  fill: currentColor;
  stroke: none;
}
.foot-rule {
  display: block;
  width: 60%;
  max-width: 280px;
  height: 1px;
  background: var(--line);
  margin: 30px auto 22px;
}
.made {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink-3);
}
.made span {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.made img {
  width: 112px;
}

/* ═══ REVEALS ═══ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.85s var(--es),
    transform 0.85s var(--es);
}

/* ═══ TWO CARDS ═══ */
[data-side="bride"] .hero-names .n-bride {
  order: 0;
}
[data-side="bride"] .hero-names .n-groom {
  order: 2;
}
[data-side="bride"] .weds .side-bride {
  order: 0;
}
[data-side="bride"] .weds .side-groom {
  order: 2;
}

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .plate-art {
    transform: scale(1);
  }
  .cp-sheen {
    display: none;
  }
  #sky {
    display: none !important;
  }
  .fg,
  .hang,
  .sky,
  .trans,
  .sc {
    opacity: 1;
    transform: none;
  }
  .foil {
    display: none;
  }
}
