/* ==========================================================================
   wedding
   ========================================================================== */

:root {
  /* The painting's sunset pink, low in its sky - what shows while the hero
     art is still decoding, so the first paint is warm rather than a white
     flash. */
  --sky-pink: #f4c9b8;
  /* A deep wine, a shade under the palace's red banners - the couple's
     names. */
  --wine: #4a0a14;
  /* Below the hero: a pale sandstone, the palace's own stone washed out. */
  --sand: #f8ecdc;
  /* The maroon that floods the finale once the hands have joined. */
  --maroon: #7f0033;
  /* What each section keeps clear at the screen's sides. */
  --gutter: 22px;

  /* Fraunces Digits first: every number on the page is set in Fraunces,
     everything else in Cormorant Garamond (fonts, below). */
  --font-serif: 'Fraunces Digits', 'Cormorant Garamond', Georgia, serif;

  --screen-h: 100vh;
}

/* svh is the viewport with the mobile URL bar SHOWING, so what is sized to
   the screen (the jharokhas) never runs under it; 100vh above is the
   fallback for browsers without it. */
@supports (height: 1svh) {
  :root {
    --screen-h: 100svh;
  }
}

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

html,
body {
  margin: 0;
}

/* Nothing drawn in a made-up bold or slant: every face the page uses is
   the real thing (fonts, below) - the numbers' Fraunces at most regular. */
html {
  font-synthesis: none;
}

body {
  background: var(--sand);
}

/* --- fonts -------------------------------------------------------------- */
/* Cormorant Garamond, upright and italic, and Fraunces (the ceremonies'
   dates and times, as in two_states), latin only - the words need no more -
   from two_states/fonts. Fraunces Digits is Fraunces for the digits 0-9
   alone, upright and italic: first in --font-serif, so that every number
   is set in it, wherever it is - drawn no heavier than its regular, and a
   tenth smaller, as Fraunces runs heavier and taller than Cormorant, so the
   numbers sit evenly in the words' lines. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-wght-normal.woff2?v=2026-10-23a') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-wght-italic.woff2?v=2026-10-23a') format('woff2');
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-300-700-latin.woff2?v=2026-10-24a') format('woff2');
}

/* The opening's shloka, in Devanagari: Tiro Devanagari Sanskrit, cut down
   to just its letters (fonts/tiro-devanagari-sanskrit-invocation.woff2,
   12KB rather than the script's 184KB; SIL Open Font Licensed - the
   two_states invitation's, for its envelope's same line). If the line
   changes, fetch the subset again for the new text:
   https://fonts.googleapis.com/css2?family=Tiro+Devanagari+Sanskrit&text=<the line>
   (with a real browser User-Agent) - or letters it lacks fall back to
   another face. */
@font-face {
  font-family: 'Tiro Devanagari Sanskrit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/tiro-devanagari-sanskrit-invocation.woff2?v=2026-10-25a') format('woff2');
  unicode-range: U+20, U+903, U+917, U+923, U+928, U+92E-930, U+936, U+93E, U+940, U+947, U+94D;
}

/* Sora, for the maker's mark's address (the credit, at the page's foot),
   as on the two_states invitation - its Latin cut. */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/sora-latin-wght-normal.woff2?v=2026-10-28a') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces Digits';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  size-adjust: 90%;
  src: url('../fonts/fraunces-300-700-latin.woff2?v=2026-10-24a') format('woff2');
  unicode-range: U+0030-0039;
}

@font-face {
  font-family: 'Fraunces Digits';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  size-adjust: 90%;
  src: url('../fonts/fraunces-italic-300-700-latin.woff2?v=2026-10-25a') format('woff2');
  unicode-range: U+0030-0039;
}

/* --- opening ------------------------------------------------------------- */
/* A hanging of beige cloth over the hero until opened (index.html,
   js/opening.js; only with scripts on - the head marks the page
   .has-opening - and the page held still beneath it), hung from above the
   arch and behind it (.hero-arch is laid over it). The cloth is drawn
   entirely here: the ceremony scrolls' parchment surface and gilt border,
   a gold zari border above the hem and a gold fringe below it. The writing is plain, in the
   invitation's wine. A gold cord with a tassel hangs down its right side.

   Opened (.is-open, from opening.js): the cloth bounces down a little,
   then is jerked straight up out of sight. */
.opening {
  display: none;
}

.has-opening,
.has-opening body {
  overflow: hidden;
}

/* The hero's names wait unseen until they rise in (opening.js). */
.has-opening .hero__crest,
.has-opening .hero__first,
.has-opening .hero__family,
.has-opening .hero__amp {
  opacity: 0;
}

.has-opening .opening {
  /* The curtain's size: its top just under the arch's crown, at its own
     shape (--cloth-ratio), as wide as the arch's opening allows and never
     taller than the screen. */
  --cloth-w: min(100vw, 168vh);
  /* From the screen's top, its head hidden behind the arch: no gap. */
  --cloth-top: 0px;
  --cloth-ratio: calc(800 / 1448);
  /* About 90% of the screen tall on a landscape screen (stretched a little where the screen is narrower than the cloth's shape). */
  --cloth-h: 90vh;
  --cloth-foot: calc(var(--cloth-top) + var(--cloth-h));
  --cord-in: 0.12;
  --zari-h: 10px;
  --fringe-h: clamp(22px, 3.4vh, 36px);
  --cord-x: 7%;
  position: fixed;
  inset: 0;
  z-index: 30;
  display: block;
  overflow: hidden;
  background: transparent;
  touch-action: none;
}

@media (orientation: portrait) {
  .has-opening .opening {
    /* Wide on the screen; its foot 84% of the way down, so what is too tall
       for the screen runs up off its top (the writing kept on screen). */
    --cloth-w: 86vw;
    --cloth-top: calc(84vh - var(--cloth-h));
    --cloth-ratio: calc(1986 / 739);
    --cloth-h: calc(var(--cloth-w) * var(--cloth-ratio));
    --cord-in: 0.07;
  }
}

/* The layer the cloth rides on: the full screen, carrying the hoist. A tap
   anywhere on it opens the invitation. */
.opening__cover {
  position: absolute;
  inset: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

/* The curtain: a painted one - ivory silk in a red and gold border,
   peacocks and lotuses at its foot, tassels at its corners - wide on a
   landscape screen (media/curtain_d.webp, 1448 x 800), tall on a portrait
   one (curtain_m.webp, 688 x 1258), at its own shape. The invocation and
   greeting are written on its plain silk above the flowers. */
.opening__cloth {
  --border-w: clamp(10px, 1.2vw, 16px);
  position: absolute;
  top: var(--cloth-top);
  left: calc(50% - var(--cloth-w) / 2);
  width: var(--cloth-w);
  height: var(--cloth-h);
  transform-origin: 50% 0;
  background: url('../media/curtain_d.webp?v=2026-10-31b') center / 100% 100% no-repeat;
  filter: drop-shadow(0 18px 22px rgba(40, 20, 5, 0.35)) drop-shadow(0 4px 5px rgba(40, 20, 5, 0.25));
}

/* The writing, on the plain silk between the borders, above the flowers. */
.opening__inner {
  position: absolute;
  inset: 5% 17% 37%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2vh;
  text-align: center;
}

/* The writing plain on the cloth, in the invitation's wine. */
.opening__ganesha,
.opening__divider {
  display: block;
  color: var(--wine);
}

.opening__ganesha {
  width: clamp(84px, 14vh, 170px);
  height: auto;
  aspect-ratio: 1;
}

.opening__divider {
  width: min(80%, 320px);
  height: auto;
}

.opening__shloka,
.opening__greeting {
  margin: 0;
  color: var(--wine);
}

.opening__shloka {
  font-family: 'Tiro Devanagari Sanskrit', var(--font-serif);
  font-size: clamp(26px, 4.6vh, 44px);
  font-weight: 700;
  line-height: 1.45;
}

.opening__greeting {
  max-width: 34ch;
  font-family: var(--font-serif);
  font-size: clamp(19px, 3.2vh, 30px);
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
}

/* "Tap to open": a button on the curtain's silk, just above the flowers at
   its foot, centred - plain text, bobbing up and down to say it can be
   tapped. It goes up with the curtain. */
.opening__tap {
  position: absolute;
  /* On the silk, just above the lotus at the foot of the design. */
  bottom: 38%;
  z-index: 2;
  left: 50%;
  translate: -50% 0;
  margin: 0;
  color: var(--wine);
  font-family: var(--font-serif);
  font-size: clamp(15px, 2vh, 19px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: opening-tap 1.6s ease-in-out infinite;
}


@keyframes opening-tap {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .opening__tap {
    animation: none;
  }
}

/* The hem: a plain gold band. */
.opening__zari {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--zari-h);
  background: linear-gradient(180deg, #f6dc8c, #c8932e 55%, #8a5a16);
  box-shadow: 0 -1px 3px rgba(70, 45, 15, 0.25);
}

/* The fringe: gold threads hanging below the hem, thinning toward their
   ends. */
.opening__fringe {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: var(--fringe-h);
  transform-origin: 50% 0;
  background: repeating-linear-gradient(90deg, #f0c968 0 1.3px, #a8741f 1.3px 2.3px, transparent 2.3px 3.8px);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}

/* The cord: a string hung from the screen's top - behind the arch, which
   lies over the opening - down the cloth's right side, half the card's
   height long, with the tassel at its end. Not part of the cloth, so it
   stays as the cloth goes up, and goes up after it. opening.js draws it
   (an SVG path, so it can bend and sway like string) and places the
   tassel at its end. */
.opening__rope {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.opening__string {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(2px 3px 3px rgba(25, 0, 8, 0.4));
}

.opening__string path {
  fill: none;
  stroke-linecap: round;
}

/* The tassel: the button that opens the invitation - roomy enough for a
   finger to take hold of and draw down. Placed by opening.js. */
.opening__tassel {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 96px;
  padding: 0 6px 12px;
  border: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.opening__tassel svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(2px 4px 4px rgba(25, 0, 8, 0.45));
}

.opening__tassel:focus-visible {
  outline: 2px dashed #fbe49d;
  outline-offset: 2px;
  border-radius: 10px;
}

.opening.is-pulling .opening__tassel {
  cursor: grabbing;
}

/* On a portrait screen: the tall curtain; the writing in its narrower
   silk, above the flowers at its foot. */
@media (orientation: portrait) {
  .opening__cloth {
    background-image: url('../media/curtain_m.webp?v=2026-10-31c');
  }

  .opening__inner {
    inset: max(8%, calc(var(--cloth-h) - 84vh + 5vh)) 12% 22%;
  }

  /* More room between the invocation and the greeting under it. */
  .opening__divider {
    margin: 1.6vh 0;
  }

  .opening__tap {
    bottom: 19%;
  }

  .opening__greeting {
    max-width: 22ch;
    font-size: clamp(18px, 2.7vh, 24px);
  }
}

/* --- the opening sequence (1.2s) --- */
/* The cloth bounces down a little, then is jerked straight up out of
   sight. Nothing else moves. */
.opening.is-open .opening__cover {
  pointer-events: none;
  animation: opening-hoist 1.2s forwards;
}

@keyframes opening-hoist {
  0% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.35, 0, 0.5, 1);
  }

  22% {
    transform: translateY(4%);
    animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1);
  }

  100% {
    transform: translateY(-135%);
  }
}


/* The cord does not go up with the cloth: it hangs where it is until the
   cloth has gone, then is drawn up after it (opening.js clears the opening
   when it has). */
.opening.is-open .opening__rope {
  animation: opening-rope-up 0.6s cubic-bezier(0.6, 0, 0.3, 1) 1.2s forwards;
}

.opening.is-open .opening__tassel {
  pointer-events: none;
}

@keyframes opening-rope-up {
  to {
    transform: translateY(-110vh);
  }
}

/* Reduced motion: no hoist - opening.js simply fades the cloth away. */
@media (prefers-reduced-motion: reduce) {

  .opening.is-open .opening__cover,
  .opening.is-open .opening__rope {
    animation: none;
  }
}

/* --- scroll cue --------------------------------------------------------- */
/* "Scroll down" at the foot of the screen, over the hero: ivory lettering
   with a soft dark shadow, so it reads over the painting's busy, colourful
   foot, a chevron under it nudging gently down. Hidden
   until the opening has cleared, and gone once the guest scrolls
   (opening.js). Takes no taps. */
.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: #fff8ee;
  filter:
    drop-shadow(0 1px 2px rgba(40, 0, 15, 0.85)) drop-shadow(0 0 10px rgba(40, 0, 15, 0.6));
  font-family: var(--font-serif);
  translate: -50% 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 700ms ease,
    translate 700ms ease,
    visibility 0s linear 700ms;
}

.scroll-cue.is-shown {
  translate: -50% 0;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 900ms ease,
    translate 900ms ease,
    visibility 0s;
}

.scroll-cue__label {
  font-size: 22px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.scroll-cue__arrow {
  display: block;
  width: 40px;
  height: 40px;
  animation: scroll-cue-nudge 1.6s ease-in-out infinite;
}

@keyframes scroll-cue-nudge {

  0%,
  100% {
    transform: translateY(-2px);
  }

  50% {
    transform: translateY(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue__arrow {
    animation: none;
  }
}

/* --- petal shower ------------------------------------------------------- */
/* The rose button, fixed at the top right, just inside the side margin:
   a petal on a round of ivory, ringed in gold. Pressed, it bounces, and
   petals shower down the screen (js/shower.js) in a layer over the page
   and its borders, under the button, letting every tap through. Without
   scripts there is nothing for it to do, so it stays hidden; shower.js
   shows it. */
/* The music button, top left, mirroring the rose button: a note, struck
   through while the music is off. */
.music-button {
  position: fixed;
  /* The same distance from the top as from the side. */
  top: 16px;
  left: 16px;
  z-index: 13;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1.5px solid #d9a84a;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fffaf0, #f3e2c4);
  box-shadow: 0 4px 14px rgba(74, 10, 20, 0.3);
  color: var(--wine);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.music-button svg {
  width: 20px;
  height: 20px;
}

.music-button__on,
.music-button.is-playing .music-button__off {
  display: none;
}

.music-button.is-playing .music-button__on {
  display: block;
}

.music-button:focus-visible {
  outline: 2px solid #d9a84a;
  outline-offset: 3px;
}

.petal-button {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 13;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1.5px solid #d9a84a;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fffaf0, #f3e2c4);
  box-shadow: 0 4px 14px rgba(74, 10, 20, 0.3);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease;
}

.petal-button img {
  display: block;
  width: 22px;
  height: auto;
  transform: rotate(-18deg);
  pointer-events: none;
}

.petal-button:hover {
  transform: scale(1.06);
}

.petal-button:focus-visible {
  outline: 2px solid #d9a84a;
  outline-offset: 3px;
}

.petal-button.is-pressed {
  animation: petal-button-bounce 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes petal-button-bounce {
  0% {
    transform: scale(0.82);
  }

  100% {
    transform: scale(1);
  }
}

.petal-shower {
  position: fixed;
  inset: 0;
  z-index: 12;
  overflow: hidden;
  pointer-events: none;
}

.petal-shower__petal {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  height: auto;
  will-change: transform, opacity;
}

.petal-button[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .petal-button.is-pressed {
    animation: none;
  }
}

/* --- hero --------------------------------------------------------------- */
/* The painting, whole, across the screen's full width, in the flow, from
   the very top of the page - the hero as tall as it then is, scrolled
   through from the sky down to the walkway, never cropped. The mobile cut
   (402 x 1071) on a portrait screen, the landscape one (1440 x 1440)
   otherwise (index.html). The sky's pink shows while it decodes. */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--sky-pink);
}

/* The class sits on the <picture>, which is only a source switch; the <img>
   fills it. */
.hero-art {
  display: block;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

/* The arch cut out of the painting (media/hero_d-arch.webp, hero_m-arch.webp
   - the painting's own pixels, the opening clear), laid over it exactly,
   and over the opening's card (30), so the card hangs behind the arch and
   is drawn up behind it. Only while the opening is up: after it, the
   painting alone is the same picture. Takes no taps. */
.hero-arch {
  display: none;
}

.has-opening .hero-arch {
  position: absolute;
  inset: 0 0 auto;
  z-index: 31;
  display: block;
  pointer-events: none;
}

.hero-arch img {
  display: block;
  width: 100%;
  height: auto;
}

/* The painting's foot fading into the sand of the families below it, so
   the one runs on into the other with no edge between. Over
   the painting, under the names (which are in its sky, far above). Taller
   on a landscape screen, where the painting is shorter for its width. */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9%;
  background: linear-gradient(to bottom,
      rgba(248, 236, 220, 0),
      rgba(248, 236, 220, 0.4) 50%,
      var(--sand));
  pointer-events: none;
}

@media (orientation: landscape) {
  .hero::after {
    height: 16%;
  }
}

/* The crest (now the Shree Ganesh mark, media/ganesha-mark.svg), centred in
   the sky under the arch's crown - across, and midway down between the
   crown and the names - with the names' own
   soft glow behind it. Placed in shares of the painting, as they are. */
.hero__crest {
  position: absolute;
  z-index: 1;
  top: 7.6%;
  left: 50%;
  width: 8vw;
  height: auto;
  /* On `translate`, not `transform`: the fade-in (opening.js) animates
     transform, and would undo the centring. */
  translate: -50% 0;
  filter: drop-shadow(0 0 2px rgba(255, 246, 236, 0.8)) drop-shadow(0 0 12px rgba(255, 240, 228, 0.9));
  pointer-events: none;
}

@media (orientation: portrait) {
  .hero__crest {
    top: 6.5%;
    width: 26vw;
  }
}

/* The small Shree Ganesh mark in the crest's place: square, so smaller. */
.hero__crest--ganesha {
  width: 5.6vw;
}

@media (orientation: portrait) {
  .hero__crest--ganesha {
    top: 7%;
    width: 16vw;
  }
}

/* The couple's names, in the painting's sky, a soft glow of the sky's own
   light behind them, so they stay clear over the clouds. The hero is
   exactly as tall as its painting, so a percentage of the hero is that
   share of the painting at any width, and the lettering, sized in vw,
   scales with it: the names keep their place on the painting.

   Landscape cut (the courtyard through the arch): its open sky runs from
   under the arch's scallops, ~15% down, to the dome's finial, a third of
   the way down, so the names stand side by side, centred at 21% - in the
   arch's opening, clear of its scallops and above the dome. */
.hero__names {
  --first-size: 6vw;
  position: absolute;
  z-index: 1;
  top: 25%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  margin: 0;
  padding: 0 32px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: calc(var(--first-size) * 0.3);
  color: #8b272a;
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  filter:
    drop-shadow(0 0 2px rgba(255, 246, 236, 0.8)) drop-shadow(0 0 14px rgba(255, 240, 228, 0.9));
}

.hero__name {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The names in Sirivennela. It has one weight, so it is thickened with a
   stroke of its own colour rather than a synthesised bold. */
.hero__first,
.hero__family {
  -webkit-text-stroke: 0.018em currentColor;
  paint-order: stroke fill;
  line-height: 0.95;
}

.hero__first {
  font-family: 'Sirivennela', 'Playfair Display', Georgia, serif;
  font-size: calc(var(--first-size) * 1.3);
  font-style: normal;
  font-weight: 400;
}

/* The family names in Playfair Display bold, upright. */
.hero__family {
  margin-top: calc(var(--first-size) * -0.2);
  font-family: 'Sirivennela', 'Playfair Display', Georgia, serif;
  font-size: calc(var(--first-size) * 0.8);
  font-style: normal;
  font-weight: 400;
}

/* Side by side, the ampersand stands on the first names' line. */
.hero__amp {
  margin-top: calc(var(--first-size) * 0.3);
  font-size: calc(var(--first-size) * 0.6);
  font-style: italic;
}

/* Mobile cut (the courtyard through the arch): its sky runs from the
   arch's crown, ~4% down, to the palace's flags and domes at ~40%, so the
   names stand one above the other, centred a fifth of the way down - in
   the arch's opening, clear above the domes. */
@media (orientation: portrait) {
  .hero__names {
    --first-size: 11.5vw;
    top: 28%;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .hero__amp {
    margin: calc(var(--first-size) * 0.32) 0;
  }
}

/* "weds", between the bride's introduction and the groom's. */
.families__weds {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  margin: calc(-0.5 * clamp(88px, 26vw, 128px)) 0;
  color: var(--wine);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 6vw, 64px);
  font-style: italic;
  line-height: 1;
  text-align: center;
}

/* Placed by app.js exactly midway between the bride's words and the
   groom's, out of the flow, over the jharokhas if they lie between. */
.families__weds.is-placed {
  position: absolute;
  z-index: 12;
  top: var(--weds-y);
  left: 0;
  right: 0;
  margin: 0;
  translate: 0 -50%;
}

/* A gold rule either side of it, fading out away from the word, with a dot
   and a small diamond at its inner end - the right one mirrored. */
.families__weds::before,
.families__weds::after {
  content: '';
  width: clamp(56px, 18vw, 180px);
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 12' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%23c9952e' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23c9952e'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='0' y='5.25' width='160' height='1.5' fill='url(%23g)'/%3E%3Ccircle cx='150' cy='6' r='1.6' fill='%23c9952e'/%3E%3Cpath d='M164 6 L171 1 L178 6 L171 11 Z' fill='%23c9952e'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.families__weds::after {
  transform: scaleX(-1);
}

/* --- families ----------------------------------------------------------- */
/* Each family between its two jharokhas, a parent in each - the mother on
   the left, the father on the right (media/b_mom.webp 530 x 1123, b_dad.webp
   734 x 1536; g_mom.webp and g_dad.webp, 571 x 1123) - standing right at the
   screen's edges, the words in the space between, beginning where the
   parents' hands are, so that the petals they shower fall on them. The
   pictures are all one height but not one width, so each is drawn at the
   jharokhas' height (--jharokha-w over the widest, 571), at its own width,
   held against its screen edge: the balconies line up. */
.families {
  position: relative;
  --jharokha-w: clamp(72px, 22vw, 95px);
  /* Clipped at the sides, so the jharokhas sliding in from off the screen
     (js/scroll-effects.js) never widen the page. */
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  gap: clamp(88px, 26vw, 128px);
  /* Less room between the two introductions once the second has no
     jharokhas (phones). */
  gap: clamp(64px, 18vw, 96px);
  padding: clamp(40px, 10vw, 72px) 0;
  color: var(--wine);
  font-family: var(--font-serif);
  text-align: center;
}

/* On a landscape screen the jharokhas stand nearly the screen's height,
   their width following from their 571:1123 shape - each family then fills
   about a screen, a band of sand between the two. */
@media (orientation: landscape) {
  .families {
    /* Nearly the screen's height - but never so wide, on a narrower
       landscape window, that the words between lose their room (about
       480px kept for them). */
    --jharokha-w: max(120px, min(calc(var(--screen-h) * 0.85 * 571 / 1123), calc((100vw - 480px) / 2)));
    /* Room for "weds" between the two, clear of both. */
    gap: calc(var(--screen-h) * 0.28);
    padding-block: calc(var(--screen-h) * 0.08);
  }
}

/* The first family's jharokhas rise over the hero's foot, so the painting
   fills the space between them: the families pulled up by their top
   padding and about four tenths of a jharokha's height. Later in the page
   than the hero, they draw over it; the families have no ground of their
   own. */
.families {
  margin-top: calc(-1 * (clamp(40px, 10vw, 72px) + var(--jharokha-w) * 0.75));
}

@media (orientation: landscape) {
  .families {
    margin-top: calc(-1 * (var(--screen-h) * 0.08 + var(--jharokha-w) * 0.7));
  }
}

.family {
  /* The jharokhas' height over the widest picture's width, and how far
     down them the hands are. */
  --jharokha-shape: calc(1123 / 571);
  --hands-at: 0.59;
  display: grid;
  grid-template-columns: var(--jharokha-w) minmax(0, 1fr) var(--jharokha-w);
  align-items: start;
  column-gap: 8px;
}

/* The groom's parents hold their petals a little lower. */
.family--groom {
  /* g_mom.webp 519 x 1016, g_dad.webp 513 x 1024 */
  --jharokha-shape: calc(1024 / 519);
  --hands-at: 0.63;
}

/* The bride's parents' pictures are broader for their height (b_mom.webp
   626 x 1024, b_dad.webp 592 x 1024): drawn the column's width at most,
   so a little shorter than the groom's. */
.family--bride {
  --jharokha-shape: calc(1017 / 517);
  /* Shiv ji and Parvati ji hold their petals a little lower. */
  --hands-at: 0.66;
}

.family__text {
  padding-top: calc(var(--jharokha-w) * var(--jharokha-shape) * var(--hands-at));
}

/* On a portrait screen the jharokhas are drawn large - twice their old
   phone size - which leaves no room for the words between them: the two
   stand side by side at the screen's edges, and the words come under
   them, across the full width, where the parents' petals fall. */
@media (orientation: portrait) {
  .families {
    --jharokha-w: clamp(150px, 46vw, 210px);
  }

  .family {
    grid-template-areas:
      'left . right'
      'text text text';
    column-gap: 0;
  }

  .family__jharokha--mother {
    grid-area: left;
  }

  .family__jharokha:last-child {
    grid-area: right;
  }

  .family__text {
    grid-area: text;
    padding: 0 var(--gutter);
    margin-top: -26px;
  }

  /* Each jharokha slid out past its screen edge, so the parent in it - not
     the stonework round them - is what shows, against the edge: by how far
     each parent stands in from their picture's outer side, as a share of
     the jharokha's column (--jharokha-w). On `left` (they are already
     position: relative), since the slide-in (scroll-effects.js) owns both
     transform and translate. */
  .family__jharokha {
    left: calc(var(--out, 0) * var(--jharokha-w));
  }

  .family--bride .family__jharokha--mother {
    --out: -0.26;
  }

  .family--bride .family__jharokha:last-child {
    --out: 0.22;
  }

  .family--groom .family__jharokha--mother {
    --out: -0.26;
  }

  .family--groom .family__jharokha:last-child {
    --out: 0.22;
  }

  /* The parents now stand against the screen's edges, where the vines run:
     the vines go behind the jharokhas here, so the parents stay in front. */
  .families .families__vine {
    z-index: 9;
  }

  /* And pushed out to the screen's edges, the outer leaves running off it
     (the families clip them), so they take less of the narrow screen. */
  .families__vine--left {
    translate: -30% 0;
  }

  .families__vine--right {
    translate: 30% 0;
  }
}

/* A warm glow behind each parent (media/glow.svg, a soft pale-yellow
   blur), centred toward the jharokha's outer side, behind it, so it shows
   through its opening and spills a little past it - behind the words too.
   Placed from the jharokha column's width (--jharokha-w) and each
   picture's own shape: how wide it is against the column (--mom-w,
   --dad-w), where the hands are across it, and on a phone how far it is
   slid off the screen (--mom-out, --dad-out). */
.family {
  position: relative;
  isolation: isolate;
  --glow-w: calc(var(--jharokha-w) * 1.7);
  --mom-out: 0;
  --dad-out: 0;
}

/* Each jharokha casts a soft shadow down the wall below it, as stone
   jutting out under a high sun does: a wide faint fall, and a closer,
   darker one where it meets the wall. */
.family__jharokha {
  filter: drop-shadow(0 22px 18px rgba(70, 35, 10, 0.26)) drop-shadow(0 5px 5px rgba(70, 35, 10, 0.22));
}

/* A soft pool of sand behind each jharokha, under the glows, so the
   jharokhas risen over the hero's foot stand clear of the painting. */
.family:not(.family--plain)::before,
.family:not(.family--plain)::after {
  content: '';
  position: absolute;
  z-index: -2;
  /* Centred on the jharokha's top, round its dome. */
  top: calc(var(--jharokha-w) * var(--jharokha-shape) * -0.35);
  width: calc(var(--jharokha-w) * 1.7);
  height: calc(var(--jharokha-w) * var(--jharokha-shape) * 0.8);
  background: radial-gradient(closest-side, rgba(248, 236, 220, 0.85) 40%, rgba(248, 236, 220, 0));
  pointer-events: none;
}

/* Kept to the jharokhas' outer sides, so the painting shows between them. */
.family:not(.family--plain)::before {
  left: calc(var(--jharokha-w) * -0.95);
}

.family:not(.family--plain)::after {
  right: calc(var(--jharokha-w) * -0.95);
}

.family--bride {
  --mom-w: 1;
  --dad-w: 0.986;
  --mom-at: 0.48;
  --dad-at: 0.48;
}

.family--groom {
  --mom-w: 1;
  --dad-w: 0.988;
  --mom-at: 0.48;
  --dad-at: 0.48;
}

.family__glow {
  position: absolute;
  z-index: -1;
  top: calc(var(--jharokha-w) * var(--jharokha-shape) * 0.52 - var(--glow-w) / 2);
  width: var(--glow-w);
  height: var(--glow-w);
  max-width: none;
  pointer-events: none;
}

.family__glow--mother {
  left: calc((var(--mom-out) + var(--mom-w) * var(--mom-at)) * var(--jharokha-w) - var(--glow-w) / 2);
}

.family__glow--father {
  right: calc((var(--dad-w) * var(--dad-at) - var(--dad-out)) * var(--jharokha-w) - var(--glow-w) / 2);
}

@media (orientation: portrait) {
  .family--bride {
    --mom-out: -0.26;
    --dad-out: 0.22;
  }

  .family--groom {
    --mom-out: -0.26;
    --dad-out: 0.22;
  }
}

/* Right at the screen's edges: the mother's against the left, the father's
   against the right, each at the jharokhas' height and its own width. */
.family__jharokha {
  position: relative;
  z-index: 10;
  display: block;
  width: auto;
  max-width: 100%;
  height: calc(var(--jharokha-w) * var(--jharokha-shape));
}

.family__jharokha:last-child {
  justify-self: end;
}

/* A flowering vine (media/vine_long.webp, 124 x 1536) down each side of the
   screen, against its edge and in front of the jharokhas: one long vine,
   from the top of the bride's jharokhas to the foot of the groom's - the
   span app.js measures into --vine-top and --vine-h - drawn at its own
   shape, so its width follows from that length. The right one mirrored.
   Without scripts it runs the families' full height. */
.families__vine {
  position: absolute;
  /* Over the jharokhas (10), under the parents' petal showers (the sky,
     also 11, later in the page). */
  z-index: 11;
  top: var(--vine-top, 0);
  width: auto;
  max-width: none;
  height: var(--vine-h, 100%);
  pointer-events: none;
}

.families__vine--left {
  left: 0;
}

/* On a landscape screen, a vine of its own down each jharokha's outer
   side, as tall as the jharokha, in place of the long ones. */
.family__vine {
  display: none;
}

@media (orientation: landscape) {
  .families__vine {
    display: none;
  }

  .family {
    position: relative;
  }

  .family__vine {
    position: absolute;
    z-index: 11;
    /* From the jharokha's projecting cornice, under its dome, ~22% down. */
    top: calc(var(--jharokha-w) * var(--jharokha-shape) * 0.22);
    display: block;
    width: auto;
    max-width: none;
    height: calc(var(--jharokha-w) * var(--jharokha-shape) * 0.9);
    pointer-events: none;
  }

  .family__vine--left {
    left: 0;
  }

  .family__vine--right {
    right: 0;
    transform: scaleX(-1);
  }
}

.families__vine--right {
  right: 0;
  transform: scaleX(-1);
}

.family__text>* {
  margin: 0;
}

/* Ayushmati / Ayushman: the honorific the card sets before each name. */
.family__honorific {
  font-size: clamp(15px, 4vw, 20px);
  font-style: italic;
}

.family__name {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 2px 0 6px;
  font-weight: 700;
  line-height: 1.05;
}

/* A flowering lotus sprig (media/floral1.webp, 315 x 560) either side of
   the name, a little taller than it, leaning in toward it - the right one
   mirrored. */
.family__name::before,
.family__name::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 120%;
  aspect-ratio: 315 / 560;
  background: url('../media/floral1.webp?v=2026-10-31a') center / contain no-repeat;
  translate: 0 -50%;
  pointer-events: none;
}

.family__name::before {
  right: calc(100% + 0.35em);
}

.family__name::after {
  left: calc(100% + 0.35em);
  transform: scaleX(-1);
}

/* On the line after it, the rest of the introduction. */
.family__text>.family__name+* {
  margin-top: 0;
}

/* The name on one line, in white, on the maroon plaque with its gold rim
   (media/namebase.svg, 1041 x 345: the plaque from 8% to 92% across and
   16% to 67% down, its shadow below). Padded so the words sit in the
   plaque's middle; the lotus sprigs either side of the plaque. */
.family__text>.family__name {
  flex-direction: row;
  align-items: baseline;
  gap: 0.28em;
  padding: 0.95em 2.3em 1.6em;
  margin: -0.4em 0 -0.9em;
  font-size: clamp(16px, 4.9vw, 32px);
  line-height: 1.2;
  white-space: nowrap;
  color: #fff;
  background: url('../media/namebase.svg?v=2026-10-31a') center / 100% 100% no-repeat;
}

.family__text>.family__name .family__first,
.family__text>.family__name .family__surname {
  font-size: 1em;
}

/* On a landscape screen the name sits in the middle column, between the
   jharokhas: sized to the screen's width so the plaque fits there. */
@media (orientation: landscape) {
  .family__text>.family__name {
    font-size: clamp(16px, 2.5vw, 32px);
  }
}

.family__text>.family__name::before,
.family__text>.family__name::after {
  /* No lotus sprigs beside the plaque. */
  content: none;
}

.family__text>.family__name::before {
  right: calc(92% + 0.1em);
}

.family__text>.family__name::after {
  left: calc(92% + 0.1em);
}

.family__first {
  font-size: clamp(30px, 9vw, 48px);
  font-style: italic;
}

.family__surname {
  font-size: clamp(20px, 5.6vw, 30px);
  font-style: italic;
}

/* The bride's profession, under her name on the card. */
.family__note {
  font-size: clamp(13px, 3.6vw, 17px);
  font-style: italic;
  opacity: 0.85;
}

/* Under the name: "Daughter of" or "Son of", the parents, and their
   thikana. */
.family__parents {
  font-size: clamp(15px, 4.2vw, 20px);
  font-weight: 500;
  line-height: 1.3;
}

/* "Daughter of" / "Son of", and the thikana under the parents: small
   spaced capitals. */
.family__relation,
.family__seat {
  font-size: clamp(11px, 3vw, 14px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.family__seat {
  margin-top: 4px;
}

.family__relation {
  margin: 14px 0 4px;
}

/* On a desktop the words grow to fill the wide space between the
   jharokhas. */
@media (orientation: landscape) and (min-width: 900px) {
  .family__honorific {
    font-size: clamp(20px, 1.9vw, 32px);
  }

  .family__first {
    font-size: clamp(56px, 5.8vw, 100px);
  }

  .family__surname {
    font-size: clamp(32px, 3.3vw, 56px);
  }

  .family__note {
    font-size: clamp(18px, 1.7vw, 28px);
  }

  .family__parents {
    font-size: clamp(22px, 2.1vw, 34px);
  }

  .family__relation,
  .family__seat {
    font-size: clamp(14px, 1.25vw, 20px);
  }

  .family__relation {
    margin: 24px 0 8px;
  }

  .family__seat {
    margin-top: 8px;
  }
}

/* The gold lotus divider (media/divider.webp, 1234 x 171): centred across
   the screen, straddling a line - where the hero ends, and where the
   ceremonies' dark ground meets the sand - half over each side. */
.band-divider {
  position: relative;
  z-index: 2;
  display: block;
  width: min(84vw, 760px);
  height: auto;
  margin: calc(min(84vw, 760px) * -171 / 1234 / 2) auto 0;
  pointer-events: none;
}

.band-divider+* {
  margin-top: calc(min(84vw, 760px) * -171 / 1234 / 2);
}

/* The venue's line kept clear of the divider's lower half. */
.band-divider+.lake {
  padding-top: calc(clamp(28px, 6vw, 56px) + min(84vw, 760px) * 171 / 1234 / 2);
}

/* --- blessing ----------------------------------------------------------- */
/* The families and the date below them (index.html), and over both the sky
   the parents' petal showers fall through (js/petals.js): clipped to the
   two, taking no taps - they go through to the sections under it. In front
   of the jharokhas. */
.blessing {
  position: relative;
}

.blessing__sky {
  position: absolute;
  inset: 0;
  z-index: 11;
  overflow: hidden;
  pointer-events: none;
}

.blessing__sky .petal {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  height: auto;
  will-change: transform, opacity;
}

/* --- save the date ------------------------------------------------------ */
/* The wedding date, in words, under a pile of rose petals (js/petals.js,
   the two_states invitation's childhood photos'): the weekday and the
   lagna in small spaced capitals either side of the date, set large. Under
   it the hint to brush the petals away. Live (petals.js), the pile is over
   the date from the start, the date shown only under it (.is-covered), so
   it is never seen before the petals; brushing them aside uncovers it. */
.save-date {
  position: relative;
  padding: clamp(16px, 4vw, 40px) var(--gutter) clamp(12px, 3vw, 32px);
  color: var(--wine);
  font-family: var(--font-serif);
  text-align: center;
  /* Petals blown off the stage fly free up and down, over the sections
     either side, fading as they go; only at the screen's sides are they
     clipped, so the page never scrolls sideways. */
  overflow-x: clip;
  overflow-y: visible;
}

.save-date__title {
  margin: 0;
  font-size: clamp(30px, 8.4vw, 48px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.1;
}

/* The stage the petals lie on: the date, and room round it for the loose
   petals at the pile's edge. */
.save-date__stage {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 10vw, 80px) 0;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* The date - the surface the pile covers. */
.save-date__date {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(86%, 440px);
  margin: 0 auto;
  padding: clamp(22px, 6vw, 36px) 0;
  outline: none;
}

.save-date__weekday,
.save-date__lagna {
  font-size: clamp(13px, 3.6vw, 17px);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  /* The spacing's trailing gap, taken back so the line stays centred. */
  margin-right: -0.26em;
}

.save-date__day {
  font-size: clamp(34px, 10vw, 60px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.05;
}

.save-date__lagna {
  opacity: 0.8;
}

/* The petals, over the date in their own layer. */
.save-date__layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.save-date .petal {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  height: auto;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform, opacity;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

/* A pile petal no shower has brought down yet. */
.save-date .petal.is-waiting {
  opacity: 0;
  pointer-events: none;
}

/* The few left lying round the date: blown a little way out to the date's
   edges, where they settle and stay. */
.save-date .petal.is-kept {
  transition: transform 1.4s cubic-bezier(0.3, 0.7, 0.25, 1);
  pointer-events: none;
}

/* Blown off every edge of the stage, fading. */
.save-date .petal.is-gone {
  transition:
    transform 1.6s cubic-bezier(0.3, 0.7, 0.25, 1),
    opacity 1.4s ease;
  opacity: 0;
  pointer-events: none;
}

/* A few that keep drifting down past the date. */
.save-date .petal--drift {
  pointer-events: none;
  transition: none;
  animation-name: petal-drift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes petal-drift {
  0% {
    transform: translate(0, -80px) rotate(0deg);
    opacity: 0;
  }

  8% {
    opacity: 0.9;
  }

  92% {
    opacity: 0.9;
  }

  100% {
    transform: translate(var(--sway), var(--fall)) rotate(var(--spin));
    opacity: 0;
  }
}

/* Under the stage: the hint, its place kept once it has gone. */
/* The gold lotus divider (media/divider.webp, 1234 x 171), over the date. */
.save-date__divider {
  display: block;
  width: min(80vw, 560px);
  height: auto;
  margin: 0 auto clamp(12px, 3vw, 24px);
}

.save-date__note {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  min-height: 48px;
  margin: 0;
}

.save-date__hint {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--wine);
  font-family: var(--font-serif);
  font-size: clamp(19px, 2vw, 26px);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    opacity 0.4s ease,
    visibility 0s linear 0s;
}

.save-date__hint:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

.save-date__sway {
  width: 26px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: save-date-sway 1.8s ease-in-out infinite;
}

@keyframes save-date-sway {

  0%,
  100% {
    transform: translateX(-3px);
  }

  50% {
    transform: translateX(3px);
  }
}

/* Live (petals.js): the hint shows, until the petals are gone; the date
   waits until the pile is over it. */
.save-date.is-live .save-date__hint {
  display: inline-flex;
}

.save-date__date {
  transition: opacity 0.6s ease;
}

.save-date.is-live:not(.is-covered) .save-date__date {
  opacity: 0;
}

.save-date.is-revealed .save-date__hint {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .save-date__sway {
    animation: none;
  }
}

/* --- finale ------------------------------------------------------------- */
/* The joined hands and the ceremonies, on one maroon wash: from right behind
   the hands to the foot of the page, its top edge clean, so the hands sit
   on it. The edge is 414 down the hands' stage (1411 x 873, the finale's
   full width, under --hands-pad of space - so measured from the finale's
   width, cqw, alone): the line the joined hands and sleeves cover from one
   side to the other, so no sand shows between them and the maroon.

   The finale is a stacking context of its own (isolated - being a size
   container does not make it one), so the wash sits under everything else
   in it, on the finale's own sand. It clips the hands' sliding in from the
   sides.

   Without scripts or with reduced motion the wash is simply there. Armed
   by app.js, it is hidden, and so are the ceremonies; the moment the hands
   join, app.js shows it - in a blink, not a slow fade - and then the
   ceremonies appear as they scroll into view. */
.finale {
  /* Where the hands' stage starts: above the finale's top, by less than
     the clear band over the hands in their pictures (about 11% of the
     stage's width), so they follow close on the date. A flow root, so
     this stays inside it. */
  --hands-pad: -8cqw;
  --wash-dur: 200ms;
  display: flow-root;
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  overflow: clip;
  background: var(--sand);
}

.finale__wash {
  position: absolute;
  z-index: -1;
  top: calc(var(--hands-pad) + 100cqw * 414 / 1411);
  right: 0;
  bottom: 0;
  left: 0;
  /* The ceremonies' dark ground, from where the hands join; the sections
     after the ceremonies lay the sand back over it. */
  background: #5d002b;
}

.finale.is-armed .finale__wash {
  opacity: 0;
}

.finale.is-armed.is-washed .finale__wash {
  opacity: 1;
  transition: opacity var(--wash-dur) ease-out;
}

/* Until the maroon is there (data-washed, from app.js). */
.finale.is-armed:not([data-washed]) .ceremonies,
.finale.is-armed:not([data-washed]) .celebration,
.finale.is-armed:not([data-washed]) .lake,
.finale.is-armed:not([data-washed]) .band-divider,
.finale.is-armed:not([data-washed]) .sunset,
.finale.is-armed:not([data-washed]) .kathputli {
  visibility: hidden;
}

/* --- joined hands ------------------------------------------------------- */
/* The bride's hand (media/bhand-clean.webp, 1066x833) resting on the
   groom's (media/ghand-clean.webp, 871x689), the two drawn in the proportion they were
   exported in: hers resting low on his, his whole thumb showing above it,
   his fingertips below her wrist, hers at his cuff. Joined, they make one
   picture 1411 x 873: hers at its left, 40 down, his 540 across and 20
   down - the stage is that picture, the full width of the screen, and the
   hands are placed on it in its percentages. That is how they stand
   without scripts or with reduced motion. The sleeves run out at the
   stage's sides, off the screen.

   As the page scrolls, app.js sets how far each still has to come, 1 to 0:
   --hx across, --hy up or down, --hr turned. Apart, hers is drawn back to
   the left and lifted, her fingers tipped up; his back to the right and
   lowered, his palm tipped down - each partly off the screen's side, as
   the section clips them. Each turns about its own wrist, so it moves as an
   arm would. Apart, each has come 30% of the stage's width across, hers 9%
   of it down and his 7% up; in each picture's own size, which is what a
   translate's percentages measure, that is the figures below.

   Both pictures cut their sleeves off square at their foot, and the faint
   shadow round each hand off square at the side its fingers point to; those
   edges fade into the sand rather than show as lines - short of the
   fingers, which come to within 2.5% of his picture's left side and 90.5%
   of the way across hers, and down to 80% of his picture's height. */
/* No room under the stage: the ceremonies' heading follows close on the
   hands (the tail of hers, faded out, is clipped while they are apart). */
.joined-hands {
  overflow: hidden;
  margin-top: var(--hands-pad);
}

.joined-hands__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1411 / 873;
}

/* The pictures are the "-clean" ones: bhand.png and ghand.png with the
   faint shadow and white haze their cut-outs kept round the hands taken
   out (a pale glow round them on the maroon) - made once, by script, from
   the PNGs; to be made again if those are. */
.joined-hands__hand {
  position: absolute;
  height: auto;
  will-change: transform;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* 75.55% of the stage across, 59.04% of its width tall. */
.joined-hands__hand--bride {
  z-index: 1;
  left: 0;
  top: 2.58%;
  width: 75.55%;
  transform-origin: 45% 41%;
  transform:
    translate(calc(var(--hx, 0) * -39.71%), calc(var(--hy, 0) * -15.24%)) rotate(calc(var(--hr, 0) * -7deg));
  -webkit-mask-image:
    linear-gradient(to right, #000 93%, transparent), linear-gradient(to bottom, #000 82%, transparent);
  mask-image:
    linear-gradient(to right, #000 93%, transparent), linear-gradient(to bottom, #000 82%, transparent);
}

/* 61.73% of the stage across, 48.83% of its width tall. */
.joined-hands__hand--groom {
  left: 38.27%;
  top: 2.29%;
  width: 61.73%;
  transform-origin: 55% 58%;
  transform:
    translate(calc(var(--hx, 0) * 48.6%), calc(var(--hy, 0) * 14.34%)) rotate(calc(var(--hr, 0) * -5deg));
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 2.2%), linear-gradient(to bottom, #000 84%, transparent);
  mask-image:
    linear-gradient(to right, transparent, #000 2.2%), linear-gradient(to bottom, #000 84%, transparent);
}

/* --- ceremonies --------------------------------------------------------- */
/* The ceremonies, each on a little scroll - the family scrolls of
   two_states (its "families" and "family scrolls unrolling"), made small:
   a parchment sheet between two gilt rolls, a gilt border down its long
   edges, unrolling the first time it comes into view (js/app.js). One
   below another on a portrait screen; three and then two on a landscape
   one, as on the card - the row holds three at most. A row's scrolls are
   drawn the same length, so their rolls line up.

   --scroll-w is a scroll's width, and --roll-h the height the roll
   (media/scroll_roll.svg, 329 x 31) comes to at that width, which the
   unroll needs as a length. The knobs stand out past the roll by 7.75% of
   the width at each end, which the gap between scrolls leaves room for. */
/* Its own box, for the dancers at its sides (landscape). */
.ceremonies {
  position: relative;
  --scroll-w: min(74vw, 360px);
  --roll-h: calc(var(--scroll-w) * 31 / 329);
  --scroll-gap: calc(var(--scroll-w) * 0.155 + 14px);
  --unroll-dur: 1400ms;
  /* The gilt border (media/scroll_border.svg: two gold rules with a star
     between them, cropped to its drawing so the repeats meet without a
     hairline), slimmer than in two_states, for the smaller sheet. */
  --scroll-border: url("../media/scroll_border.svg?v=2026-10-23a#svgView(viewBox(0,0,20.0386,18.0385);preserveAspectRatio(none))");
  --scroll-border-w: clamp(7px, var(--scroll-w) * 0.05, 11px);
  padding: 0 var(--gutter) clamp(96px, 22vw, 160px);
  /* Its own darker ground; the rest of the finale is on the maroon. Its
     own stacking context, so the dancers behind the scrolls (z-index: -1)
     stay over it. */
  background: #5d002b;
  isolation: isolate;
  color: var(--wine);
  font-family: var(--font-serif);
  text-align: center;
}

@media (orientation: landscape) {
  .ceremonies {
    --scroll-w: clamp(200px, 25vw, 340px);
  }
}

/* In gold on the maroon. Armed by app.js, it waits hidden a little low and
   rises into view the first time it scrolls in after the wash. */
.ceremonies__title {
  margin: 0 0 calc(clamp(32px, 8vw, 56px) + var(--roll-h) / 2);
  color: #f3d9a4;
  font-size: clamp(30px, 8.4vw, 48px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.1;
}

.finale.is-armed .ceremonies__title {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.finale.is-armed .ceremonies__title.is-shown {
  opacity: 1;
  transform: none;
}

/* Stacked on a portrait screen; in rows on a landscape one. */
.ceremonies__scrolls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--roll-h) + clamp(28px, 7vw, 48px));
}

/* The venue, the same for every ceremony, given once under the scrolls -
   the two_states invitation's: a small line in cream, the venue's name
   large in gilt, where it is under it, and a button (two_states' own
   drawing, media/directions_button.svg, 370 x 148) with the map pin, that
   opens the way there in Google Maps, floating gently to be noticed. */
.ceremonies__venue {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.4vw, 16px);
  margin: calc(var(--roll-h) + clamp(48px, 7vw, 88px)) auto 0;
  text-align: center;
}

.ceremonies__venue-label {
  margin: 0;
  color: rgba(253, 242, 225, 0.8);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* The venue's name in the invitation's own italic serif, in plain gold - the
   ceremonies heading's - with no gradient. */
.ceremonies__venue-name {
  margin: 0;
  max-width: 18ch;
  color: #f3d9a4;
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 62px);
  font-style: italic;
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}

.ceremonies__venue-place {
  margin: 0;
  color: rgba(253, 242, 225, 0.85);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* Its words and pin centred on the plate - at y 62 of 148, which allows for
   the shadow below. */
.ceremonies__directions {
  --btn-w: clamp(240px, 32vw, 340px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  box-sizing: border-box;
  width: var(--btn-w);
  aspect-ratio: 370 / 148;
  margin-top: clamp(4px, 0.6vw, 10px);
  padding: 0 0 calc(var(--btn-w) * 24 / 370);
  background: url('../media/directions_button.svg?v=2026-10-28a') center / 100% 100% no-repeat;
  color: #f7e4c9;
  font-size: calc(var(--btn-w) * 0.07);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.ceremonies__directions:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.ceremonies__directions:active {
  transform: translateY(1px) scale(0.97);
}

.ceremonies__directions:focus-visible {
  outline: 2px solid #fff0c8;
  outline-offset: 4px;
  border-radius: 999px;
}

/* Floating on `translate`, so the hover's lift and the press (on
   `transform`) still play over it. Still, with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .ceremonies__directions {
    animation: directions-float 2.4s ease-in-out infinite;
  }
}

@keyframes directions-float {

  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -4px;
  }
}

.ceremonies__directions-pin {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
}

@media (orientation: landscape) {
  .ceremonies__scrolls {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    column-gap: var(--scroll-gap);
    max-width: calc(var(--scroll-w) * 3 + var(--scroll-gap) * 2);
    margin: 0 auto;
    row-gap: calc(var(--roll-h) + clamp(28px, 7vw, 48px));
  }
}

/* --- the whirling dancer --- */
/* media/ghoomar-lines.webp: a ghoomar dancer seen from above, her skirt a
   flared ring, in gold lines on clear (made from a white-on-black drawing,
   each pixel as see-through as it was dark). Behind the scrolls, over the
   maroon. Its drawing's centre is at (633, 607) of 1254 x 1254, which it
   turns about (js/scroll-effects.js).

   On a portrait screen, one behind each scroll - centred on its left side,
   then its right, and so on - large, the most of it hidden behind the
   parchment, the rest showing round it. On a landscape one, two, one at
   each side of the screen. */
.ghoomar {
  position: absolute;
  z-index: -1;
  height: auto;
  max-width: none;
  transform-origin: 50.5% 51%;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.ghoomar--wide {
  display: none;
  top: 50%;
  width: min(52vw, 760px);
  translate: 0 -50%;
}

/* Their centres a tenth of the screen in from its sides. */
.ghoomar--wide-left {
  left: calc(10vw - min(26vw, 380px));
}

.ghoomar--wide-right {
  right: calc(10vw - min(26vw, 380px));
}

.ghoomar--left,
.ghoomar--right {
  top: 50%;
  width: 96vw;
  translate: 0 -50%;
}

.ghoomar--left {
  left: -48vw;
}

.ghoomar--right {
  right: -48vw;
}

@media (orientation: landscape) {
  .ghoomar--wide {
    display: block;
  }

  .ghoomar--left,
  .ghoomar--right {
    display: none;
  }
}

.ceremony-scroll {
  position: relative;
  width: var(--scroll-w);
  display: flex;
  flex-direction: column;
  /* Several seen at once unroll in reading order, one a moment after
     another (--order, set by app.js). */
  --unroll-delay: calc(150ms + var(--order, 0) * 250ms);
}

/* The shadow the scroll casts on the page: on its own parts - the sheet
   (through its window, so it follows the sheet's length as it unrolls),
   the top roll and the bottom roller. */
.ceremony-scroll__window,
.ceremony-scroll__rod--top,
.ceremony-scroll__roller {
  filter:
    drop-shadow(0 calc(var(--roll-h) * 0.15) calc(var(--roll-h) * 0.2) rgba(92, 52, 20, 0.3)) drop-shadow(0 calc(var(--roll-h) * 0.6) calc(var(--roll-h) * 0.9) rgba(92, 52, 20, 0.22));
}

/* The window the sheet is seen through - the sheet's own size, clipping
   anything outside it, so the unroll can reveal the sheet by moving it. */
.ceremony-scroll__window {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* The sheet: a warm parchment, shaded under both rolls and along its long
   edges, with a faint grain. A size container, so its type is measured
   against it. Its words at the top left. At least 1.25 times as tall as it
   is wide, the scrolls all of a length. */
.ceremony-scroll__sheet {
  position: relative;
  z-index: 1;
  flex: 1;
  box-sizing: border-box;
  width: 100%;
  container-type: inline-size;
  min-height: calc(var(--scroll-w) * 1.25);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: calc(var(--roll-h) + 10%) 12% calc(var(--roll-h) + 12%);
  text-align: left;
  background:
    linear-gradient(to bottom, rgba(150, 110, 70, 0.16), transparent calc(var(--roll-h) * 1.3)),
    linear-gradient(to top, rgba(150, 110, 70, 0.16), transparent calc(var(--roll-h) * 1.3)),
    repeating-linear-gradient(90deg, rgba(120, 90, 50, 0.025) 0 1px, transparent 1px 4px),
    #f3dcba;
  box-shadow:
    inset 8px 0 12px -8px rgba(150, 110, 70, 0.28),
    inset -8px 0 12px -8px rgba(150, 110, 70, 0.28);
}

/* The gilt border down both long edges of the sheet, on a layer of its own
   so the shading does not dull it; inside the sheet, so it unrolls with
   it, running under the rolls at either end. */
.ceremony-scroll__sheet::after {
  --tile: var(--scroll-border-w) calc(var(--scroll-border-w) * 18.0385 / 20.0386);
  content: '';
  position: absolute;
  inset: 0;
  background:
    var(--scroll-border) left top / var(--tile) repeat-y,
    var(--scroll-border) right top / var(--tile) repeat-y;
  pointer-events: none;
}

.ceremony-scroll__sheet>* {
  position: relative;
  z-index: 1;
  margin: 0;
}

/* Every sheet carries a picture of its ceremony: the name across the top,
   and under it the picture, large, at the right, reaching in to the gilt
   border - with the date, and the time below it, beside it in its clear
   upper left, sharing its rows, so the sheet is no taller than the two. */
/* The sheet as tall as its picture, so the picture runs from roll to roll. */
.ceremony-scroll__sheet--art {
  min-height: 0;
}

.ceremony-scroll__sheet--art .ceremony-scroll__name {
  grid-area: 1 / 1;
  z-index: 2;
  margin-top: calc(var(--roll-h) + 6%) !important;
  /* Kept to the picture's clear upper left. */
  max-width: 56%;
  font-size: clamp(15px, 9.6cqw, 32px);
}

/* A longer name runs out further to the right, over the picture's sky. */
.ceremony-scroll__sheet--art .ceremony-scroll__name--wide {
  max-width: 82%;
}

.ceremony-scroll__sheet--art .ceremony-scroll__when {
  max-width: 52%;
  font-size: clamp(12px, 6cqw, 20px) !important;
}

.ceremony-scroll__sheet--art {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: auto 1fr;
  align-content: start;
  padding-top: 0 !important;
  padding-left: 10%;
  padding-right: calc(var(--scroll-border-w) + 2%);
  /* The picture runs right down to the sheet's foot, where the bottom roll
     sits. */
  padding-bottom: 0;
}

.ceremony-scroll__sheet--art .ceremony-scroll__name {
  margin-bottom: 0.15em;
}

/* A picture that fills its sheet to the top and foot (the mandap, its
   finial and its brass at the edges): kept clear of both rolls, the
   sheet growing to hold it; the name keeps its place under the top roll. */
.ceremony-scroll__sheet--clear {
  padding-top: var(--roll-h) !important;
  padding-bottom: calc(var(--roll-h) * 0.7);
}

.ceremony-scroll__sheet--clear .ceremony-scroll__name {
  margin-top: 6% !important;
}

.ceremony-scroll__sheet--art .ceremony-scroll__when {
  grid-area: 2 / 1;
  align-self: start;
  justify-self: start;
  z-index: 2;
  margin-top: 0.3em !important;
  font-size: clamp(13px, 7cqw, 23px);
  white-space: nowrap;
}

.ceremony-scroll__art {
  /* The full height of the sheet, from the top roll to the bottom one; the
     name and the date lie over its clear upper left. */
  grid-area: 1 / 1 / 3 / 2;
  align-self: end;
  justify-self: end;
  display: block;
  width: 96%;
  height: auto;
  margin: 0 !important;
  pointer-events: none;
}

.ceremony-scroll__name {
  margin-bottom: 0.45em;
  font-size: clamp(16px, 12.5cqw, 38px);
  font-style: italic;
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}

/* The date and the time, in Fraunces, light - the two_states
   invitation's ceremony cards' - set large. */
.ceremony-scroll__when {
  font-family: 'Fraunces', serif;
  font-size: clamp(15px, 9.8cqw, 30px);
  font-weight: 300;
  line-height: 1.35;
}

/* Every sheet the same: a small picture of its ceremony at the top
   (media/events/), the name under it, a short gilt rule, then the date
   and the time - all centred, so a new ceremony needs only its words and
   an icon from media/events. */
.ceremony-scroll__sheet--icon {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--roll-h) + 8%) calc(var(--scroll-border-w) + 8%) calc(var(--roll-h) + 9%);
}

.ceremony-scroll__icon {
  display: block;
  width: auto;
  max-width: 74%;
  height: 46cqw;
  object-fit: contain;
  margin: 0 auto 6cqw !important;
  filter: drop-shadow(0 3px 6px rgba(92, 52, 20, 0.18));
  pointer-events: none;
}

.ceremony-scroll__sheet--icon .ceremony-scroll__name {
  margin-bottom: 0 !important;
  font-size: clamp(16px, 10.5cqw, 34px);
}

.ceremony-scroll__rule {
  display: block;
  width: 34%;
  height: 1px;
  margin: 4.5cqw auto !important;
  background: linear-gradient(90deg, transparent, #b0823c 20%, #b0823c 80%, transparent);
}

.ceremony-scroll__sheet--icon .ceremony-scroll__when {
  font-size: clamp(14px, 8cqw, 26px);
}

/* The rolls: the roll across the sheet's full width, centred on its top or
   bottom edge, with a knob capping each end outside it. The knobs share
   the roll's scale (30 of its 329: 9.12% of the width) and overlap its
   flared ends by 15% of their own width (1.37%). */
.ceremony-scroll__rod {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  transform: translateY(-50%);
}

.ceremony-scroll__rod--top {
  top: 0;
}

.ceremony-scroll__rod--bottom {
  top: 100%;
}

.ceremony-scroll__roll {
  display: block;
  width: 100%;
  height: auto;
}

.ceremony-scroll__knob {
  position: absolute;
  top: 50%;
  width: 9.12%;
  height: auto;
  transform: translateY(-50%);
}

.ceremony-scroll__knob--left {
  right: calc(100% - 1.37%);
}

.ceremony-scroll__knob--right {
  left: calc(100% - 1.37%);
}

.ceremony-scroll__roll,
.ceremony-scroll__knob {
  user-select: none;
  -webkit-user-drag: none;
}

/* The bottom roll hangs off a box the size of the sheet, so sliding that
   box by its own height walks the roll up and down the sheet, in step with
   the sheet. */
.ceremony-scroll__roller {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* --- ceremony scrolls unrolling ----------------------------------------- */
/* Closed: the bottom roll sits directly under the top one, and only the
   strip of sheet the two cover shows. Only once app.js arms the scroll -
   so with no script, or with reduced motion, the scrolls are simply open.

   The sheet is revealed by transforms alone, so the whole unroll runs
   smoothly on the compositor: the window (which clips) is slid exactly as
   the roller is - the same keyframes - and the sheet inside it by the
   opposite amount. The two cancel, so the sheet and its writing stand
   still while the window's foot, the edge of what shows, travels down with
   the roll. */
.ceremony-scroll.is-armed .ceremony-scroll__window,
.ceremony-scroll.is-armed .ceremony-scroll__roller {
  transform: translateY(calc(-100% + var(--roll-h)));
}

.ceremony-scroll.is-armed .ceremony-scroll__sheet {
  transform: translateY(calc(100% - var(--roll-h)));
}

/* Unrolling, when app.js sees the scroll come into view: the bottom roll
   drops, speeding up, and slams to a stop 35% of a roll past its mark,
   then jerks back and forth in shrinking bounces; the top roll is tugged
   down as it snaps, and the bottom one swings a little on the rebound. */
.ceremony-scroll.is-unrolled .ceremony-scroll__window,
.ceremony-scroll.is-unrolled .ceremony-scroll__roller {
  animation: cs-unroll-roller var(--unroll-dur) var(--unroll-delay) both;
}

.ceremony-scroll.is-unrolled .ceremony-scroll__sheet {
  animation: cs-unroll-sheet var(--unroll-dur) var(--unroll-delay) both;
}

.ceremony-scroll.is-unrolled .ceremony-scroll__rod--top {
  animation: cs-unroll-tug var(--unroll-dur) var(--unroll-delay) both;
}

.ceremony-scroll.is-unrolled .ceremony-scroll__rod--bottom {
  animation: cs-unroll-swing var(--unroll-dur) var(--unroll-delay) both;
}

@keyframes cs-unroll-roller {
  0% {
    transform: translateY(calc(-100% + var(--roll-h)));
    animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.5);
  }

  60% {
    transform: translateY(calc(var(--roll-h) * 0.35));
    animation-timing-function: cubic-bezier(0.25, 0.6, 0.45, 1);
  }

  72% {
    transform: translateY(calc(var(--roll-h) * -0.18));
    animation-timing-function: ease-in-out;
  }

  83% {
    transform: translateY(calc(var(--roll-h) * 0.09));
    animation-timing-function: ease-in-out;
  }

  92% {
    transform: translateY(calc(var(--roll-h) * -0.035));
    animation-timing-function: ease-in-out;
  }

  100% {
    transform: translateY(0);
  }
}

/* cs-unroll-roller, negated. */
@keyframes cs-unroll-sheet {
  0% {
    transform: translateY(calc(100% - var(--roll-h)));
    animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.5);
  }

  60% {
    transform: translateY(calc(var(--roll-h) * -0.35));
    animation-timing-function: cubic-bezier(0.25, 0.6, 0.45, 1);
  }

  72% {
    transform: translateY(calc(var(--roll-h) * 0.18));
    animation-timing-function: ease-in-out;
  }

  83% {
    transform: translateY(calc(var(--roll-h) * -0.09));
    animation-timing-function: ease-in-out;
  }

  92% {
    transform: translateY(calc(var(--roll-h) * 0.035));
    animation-timing-function: ease-in-out;
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes cs-unroll-tug {

  0%,
  57% {
    transform: translateY(-50%);
  }

  63% {
    transform: translateY(calc(-50% + var(--roll-h) * 0.16));
  }

  75% {
    transform: translateY(calc(-50% - var(--roll-h) * 0.05));
  }

  86%,
  100% {
    transform: translateY(-50%);
  }
}

@keyframes cs-unroll-swing {

  0%,
  58% {
    transform: translateY(-50%) rotate(0deg);
  }

  64% {
    transform: translateY(-50%) rotate(-0.8deg);
  }

  74% {
    transform: translateY(-50%) rotate(0.55deg);
  }

  84% {
    transform: translateY(-50%) rotate(-0.25deg);
  }

  100% {
    transform: translateY(-50%) rotate(0deg);
  }
}

/* --- kathputli ---------------------------------------------------------- */
/* The bride and groom string puppets at the invitation's end, on the
   maroon (index.html; js/kathputli.js moves them). The scene keeps its
   drawing's shape at any width, up to a size where the puppets still read
   as small, hand-held things; one soft shadow, cast by the whole scene,
   lifts them off the maroon.

   Under the scene, in one place, either the hint - before the first
   dance, once kathputli.js has armed the scene - or the closing line,
   after it; without scripts there is no dance, so only the closing line. */
.kathputli {
  display: grid;
  grid-template-areas:
    "scene"
    "words";
  justify-items: center;
  /* Room below before the divider and the closing painting. */
  padding: 0 var(--gutter) clamp(48px, 10vw, 120px);
  color: #f3d9a4;
  font-family: var(--font-serif);
  text-align: center;
}

/* The scene - a puppet stage the full width of the page, as tall as it
   would be at most 620px wide; the puppets at its middle, their size kept,
   the stage's cloth, floor and curtain running out to its sides (fitted by
   kathputli.js) - and the handle over its tassel. The stage casts a soft
   shadow on the maroon; the puppets cast their own on its back cloth. */
.kathputli__stage {
  grid-area: scene;
  position: relative;
  width: 100%;
  container-type: inline-size;
  box-shadow: 0 10px 26px rgba(20, 0, 8, 0.55);
}

.kathputli__scene {
  display: block;
  width: 100%;
  height: calc(min(100cqw, 620px) * 400 / 408);
  -webkit-user-select: none;
  user-select: none;
}

/* The two puppets and their string sway a little as one, always - about
   the top of the scene's middle, (180, -10), where the hand that holds them
   would be: from the view box's corner, 204 across plus however far the
   stage reaches out at the left (--kp-ext, kathputli.js). Too little to
   read as dancing. */
.kathputli__rig {
  transform-box: view-box;
  transform-origin: calc(204px + var(--kp-ext, 0px)) 0;
  animation: kathputli-idle 3.6s ease-in-out infinite alternate;
}

@keyframes kathputli-idle {
  from {
    transform: rotate(-0.6deg);
  }

  to {
    transform: rotate(0.6deg);
  }
}

/* The threads: fine, a dark cotton, so they show on the sand; the
   pull-cord a deeper gold. */
.kathputli__thread {
  fill: none;
  stroke: #5a3d22;
  stroke-width: 0.6;
  stroke-opacity: 0.7;
}

.kathputli__cord {
  fill: none;
  stroke: #9a6418;
  stroke-width: 1;
  stroke-linecap: round;
}

/* While the puppets rest, the cord stretches down with the arrow below it -
   the tassel drawn 10 lower, the cord, 90 long, lengthening to meet it -
   and springs back, in step with it: a pull, shown. */
.kathputli[data-state="idle"] .kathputli__cord,
.kathputli[data-state="resting"] .kathputli__cord {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: kathputli-cord 1.7s infinite;
}

.kathputli[data-state="idle"] #kp-tassel use,
.kathputli[data-state="resting"] #kp-tassel use {
  animation: kathputli-tassel 1.7s infinite;
}

@keyframes kathputli-cord {
  0% {
    transform: scaleY(1);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }

  55%,
  75% {
    transform: scaleY(1.1111);
    animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1);
  }

  100% {
    transform: scaleY(1);
  }
}

@keyframes kathputli-tassel {
  0% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }

  55%,
  75% {
    transform: translateY(10px);
    animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1);
  }

  100% {
    transform: translateY(0);
  }
}

/* The handle: a button over the tassel where it hangs, at the puppets'
   right, and the arrow under it - centred 201 down the scene, whose 400
   runs from -10; across, kathputli.js places it over the tassel in the
   widened view box. 64 x 100 of it, and never under 44px, so a finger
   finds it easily.
   Touches on it pull the cord rather than scroll the page (an HTML box is
   needed for that: shapes inside an SVG are not given touch-action);
   anywhere else the scene scrolls as the page does. */
.kathputli__pull {
  position: absolute;
  top: 52.75%;
  left: 87.3%;
  height: max(60px, 25%);
  aspect-ratio: 64 / 100;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: grab;
  touch-action: none;
  transform: translate(-50%, -50%);
  -webkit-tap-highlight-color: transparent;
}

/* The arrow under the tassel: its shaft stretching down from the top, its
   head carried with it, and springing back - over and over, to say pull.
   Only while the puppets rest and once the script is there to answer. */
.kathputli__arrow {
  transition: opacity 300ms ease;
}

.kathputli__arrow path {
  fill: none;
  stroke: #8a1a2a;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kathputli__arrow-shaft {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: kathputli-stretch 1.7s infinite;
}

.kathputli__arrow-head {
  animation: kathputli-stretch-head 1.7s infinite;
}

.kathputli:not(.is-armed) .kathputli__arrow {
  display: none;
}

.kathputli[data-state="dragging"] .kathputli__arrow,
.kathputli[data-state="dancing"] .kathputli__arrow,
.kathputli[data-state="dropping"] .kathputli__arrow {
  opacity: 0;
}

/* The shaft is 24 long; at its shortest, 0.45 of that, the head 13.2
   higher. Drawn out slowly, as a pull would be, held, then let go. */
@keyframes kathputli-stretch {
  0% {
    opacity: 0.35;
    transform: scaleY(0.45);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }

  55%,
  75% {
    opacity: 1;
    transform: scaleY(1);
    animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1);
  }

  100% {
    opacity: 0.35;
    transform: scaleY(0.45);
  }
}

@keyframes kathputli-stretch-head {
  0% {
    opacity: 0.35;
    transform: translateY(-13.2px);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }

  55%,
  75% {
    opacity: 1;
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1);
  }

  100% {
    opacity: 0.35;
    transform: translateY(-13.2px);
  }
}

.kathputli__pull.is-held {
  cursor: grabbing;
}

.kathputli__pull:focus-visible {
  outline: 2px dashed #fbe49d;
  outline-offset: -6px;
}

.kathputli__hint,
.kathputli__closing {
  grid-area: words;
  margin: 20px 0 0;
  font-style: italic;
  line-height: 1.25;
}

.kathputli__hint {
  font-size: clamp(16px, 4.4vw, 20px);
  opacity: 0.9;
  transition: opacity 500ms ease;
}

/* Gone once they dance - for good after the first. */
.kathputli:not(.is-armed) .kathputli__hint,
.kathputli.is-done .kathputli__hint,
.kathputli[data-state="dancing"] .kathputli__hint,
.kathputli[data-state="dropping"] .kathputli__hint {
  opacity: 0;
}

.kathputli:not(.is-armed) .kathputli__hint {
  display: none;
}

/* The closing line, a gold rule over it; once armed, hidden until the
   first dance is done, then it rises gently into view, and stays. */
.kathputli__closing {
  font-size: clamp(22px, 6.2vw, 30px);
  font-weight: 500;
  text-wrap: balance;
  transition:
    opacity 1200ms ease,
    transform 1200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.kathputli__closing::before {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  margin: 0 auto 12px;
  background: linear-gradient(to right, transparent, #d9a84a, transparent);
}

.kathputli.is-armed:not(.is-done) .kathputli__closing {
  opacity: 0;
  transform: translateY(10px);
}

@media (prefers-reduced-motion: reduce) {

  .kathputli__rig,
  .kathputli__arrow-shaft,
  .kathputli__arrow-head,
  .kathputli .kathputli__cord,
  .kathputli #kp-tassel use {
    animation: none !important;
  }

  .kathputli__closing {
    transition-duration: 400ms;
    transform: none;
  }
}

/* Phones: the puppets' shadow filter and the rig's endless sway each
   re-raster the whole drawing every frame, which makes pulling lag. Drop
   both there. Everywhere, the looping hints stop while the stage is off
   screen (.is-near, kathputli.js). */
@media (pointer: coarse) {
  .kathputli__rig {
    filter: none;
    animation: none;
  }
}

.kathputli:not(.is-near) .kathputli__rig,
.kathputli:not(.is-near) .kathputli__arrow-shaft,
.kathputli:not(.is-near) .kathputli__arrow-head,
.kathputli:not(.is-near) .kathputli__cord,
.kathputli:not(.is-near) #kp-tassel use {
  animation-play-state: paused;
}

/* The stage behind the puppets is gone: they hang on the maroon, under
   their strings. */
.kathputli__backdrop,
.kathputli__curtain {
  display: none;
}

.kathputli .kathputli__stage {
  box-shadow: none;
  /* As wide as the window: the puppets large in it. */
  width: var(--win-w);
}

/* A parda over the top of the stage: maroon cloth in soft folds, a gold
   band near its scalloped hem, drawn over the strings' tops so they hang
   from behind it. */
.kathputli {
  --win-w: min(calc(100vw - 12px), 600px);
  --parda-h: clamp(46px, 11vw, 78px);
  /* One column the section's width: the stage, wider than it on a phone,
     overflows evenly both sides, so the column (and the words) stay centred. */
  grid-template-columns: minmax(0, 1fr);
  overflow-x: clip;
  padding-top: calc(var(--parda-h) * 0.55);
}

.kathputli::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: min(100%, calc(var(--win-w) * 1.08));
  height: var(--parda-h);
  translate: -50% 0;
  background:
    linear-gradient(to bottom, transparent calc(100% - 16px), #d4a84a calc(100% - 16px), #f1d48a calc(100% - 13px), #b98a30 calc(100% - 10px), transparent calc(100% - 10px)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent 40%),
    repeating-linear-gradient(90deg, #5d002b 0, #7f0033 9px, #93123f 14px, #7f0033 19px, #5d002b 28px);
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat,
    radial-gradient(circle 9px at 50% 0, #000 96%, transparent 100%) bottom / 18px 9px repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat,
    radial-gradient(circle 9px at 50% 0, #000 96%, transparent 100%) bottom / 18px 9px repeat-x;
  filter: drop-shadow(0 4px 4px rgba(40, 0, 15, 0.3));
  pointer-events: none;
}
/* "Pull our string, let's swing": under the puppets on a phone; on a
   landscape screen beside them, to the right of the cord, tilted up. */
.kathputli {
  position: relative;
}

.kathputli__swing {
  grid-area: words;
  /* Under the puppets, inside the window (the section's height keeps the
     window's foot clear). */
  max-width: calc(var(--win-w) * 0.7);
  margin: clamp(4px, 1.5vw, 12px) 0 0;
  color: #6a1e20;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 2.4vw, 34px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

/* On a landscape screen: over the stage, beside the puppets - its left
   edge 330px right of their middle, past the cord - centred on their
   height, tilted up. */
@media (orientation: landscape) {
  .kathputli__swing {
    --sw: min(260px, calc(50vw - 350px));
    position: relative;
    z-index: 1;
    grid-area: scene;
    align-self: center;
    justify-self: center;
    width: var(--sw);
    margin: 0;
    text-align: left;
    translate: calc(330px + var(--sw) / 2) 0;
    rotate: -12deg;
  }

  /* Now inside the window with the puppets: under them, as on a phone. */
  .kathputli__swing {
    position: static;
    grid-area: words;
    align-self: auto;
    width: auto;
    margin: clamp(4px, 1.5vw, 12px) 0 0;
    text-align: center;
    translate: none;
    rotate: none;
  }
}

/* A family shown without its parents' jharokhas (the other side's, on
   each invitation): its words from the top, with nothing to clear. */
.family--plain .family__text {
  padding-top: 0;
  margin-top: 0;
}

/* On a landscape screen, in the middle column, where the jharokhas would
   have stood either side. */
@media (orientation: landscape) {
  .family--plain .family__text {
    grid-column: 2;
  }
}

/* --- lake ---------------------------------------------------------------- */
/* Lake Pichola in a brushstroke (index.html), on the maroon between the
   venue and the puppets: across the screen on a phone, at most 1100px wide
   elsewhere, centred. */
/* Room above for the venue's name, risen out over the painting's top. */
.lake {
  padding: clamp(28px, 6vw, 56px) var(--gutter) clamp(32px, 6vw, 64px);
}

.lake__frame {
  position: relative;
  container-type: inline-size;
  width: min(100%, 1100px);
  margin: 0 auto;
}

/* The venue's name over the painting's top, centred, very bold, in two
   lines, risen half out over its top edge onto the maroon:
   in cream, with a dark shadow so it reads over the sky and the maroon
   alike. Sized in cqw of the painting, so it keeps its place at any width. */
.lake__venue {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--wine);
  font-family: 'Fraunces', serif;
  font-size: 7cqw;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    0 0 2px rgba(255, 246, 236, 0.9),
    0 0 14px rgba(255, 240, 228, 0.9);
  transform: translate(-50%, -52%);
  pointer-events: none;
}

@media (max-width: 639px) {
  .lake__venue {
    font-size: 8.4cqw;
  }
}

/* The city under the name, smaller, in spaced capitals. */
.lake__city {
  margin-top: 0.35em;
  font-size: 0.38em;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.lake__art {
  display: block;
  width: 100%;
  height: auto;
}

/* A big glossy red 3D map pin (media/map_pin.webp, 221 x 315, cropped to
   the pin, its tip 47% across its foot) standing on the shore by the City
   Palace, its tip at 66% across and 60% down the painting. The picture is
   already turned in the round; it leans a touch further, about its tip.
   Its shadow lies flat on the ground under the tip. It bobs gently, as the
   "Get Directions" button floats, to say it can be tapped. */
.lake__pin {
  --pin-w: 14%;
  position: absolute;
  left: calc(66% - var(--pin-w) * 0.47);
  bottom: 40%;
  width: var(--pin-w);
  aspect-ratio: 221 / 315;
  -webkit-tap-highlight-color: transparent;
}

.lake__pin-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 47% 100%;
  transform: rotate(-8deg);
  filter: drop-shadow(-4px 8px 8px rgba(40, 0, 10, 0.35));
  transition: transform 0.3s ease;
  user-select: none;
}

.lake__pin:hover .lake__pin-icon {
  transform: rotate(-8deg) translateY(-4%);
}

.lake__pin:focus-visible {
  outline: 2px solid #fbe49d;
  outline-offset: 4px;
  border-radius: 12px;
}

/* The shadow: a soft dark oval on the ground, under the tip. */
.lake__pin-shadow {
  position: absolute;
  left: 12%;
  bottom: -4%;
  width: 70%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20, 0, 10, 0.55), rgba(20, 0, 10, 0));
}

@media (prefers-reduced-motion: no-preference) {
  .lake__pin {
    animation: lake-pin-bob 2.6s ease-in-out infinite;
  }

  .lake__pin-shadow {
    animation: lake-pin-shadow 2.6s ease-in-out infinite;
  }
}

/* The pin lifts a little and its shadow shrinks under it, then back. */
@keyframes lake-pin-bob {

  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -5%;
  }
}

@keyframes lake-pin-shadow {

  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  50% {
    transform: translateY(40%) scale(0.8);
    opacity: 0.7;
  }
}

/* Where it is, under the painting, centred. */
/* "All ceremonies at", over the painting, on the sand, leaving room
   under it for the venue's name risen out of the painting's top. */
.lake .ceremonies__venue {
  margin: 0 auto clamp(70px, 9vw, 140px);
}

.lake .ceremonies__venue-label {
  color: var(--wine);
}

/* The groom's invitation's note on where its ceremonies are held. */
.lake__note {
  max-width: 34ch;
  margin: 0 auto clamp(14px, 2.6vw, 24px);
  color: var(--wine);
  font-family: var(--font-serif);
  font-size: clamp(17px, 2vw, 22px);
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}

.lake__note strong {
  font-style: normal;
  font-weight: 700;
}

/* The groom's side's venue, set apart on its own line: larger, upright,
   bold, in the maroon, with a gold rule above and below. */
.lake__note .lake__note-place {
  display: block;
  width: fit-content;
  margin: 0.45em auto 0.55em;
  padding: 0.3em 0.6em;
  border-block: 1.5px solid #c9a24a;
  color: var(--maroon);
  font-size: 1.35em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.lake__place {
  margin-top: clamp(14px, 2.6vw, 24px);
  color: var(--wine);
  text-align: center;
}

/* The way there, under that, centred. */
.lake__directions {
  display: flex;
  justify-content: center;
  margin-top: clamp(16px, 3vw, 28px);
}

/* --- sunset ------------------------------------------------------------ */
/* The couple at sunset, under the venue, across the screen's full width -
   past the sections' side margins - at its own shape. */
.sunset {
  position: relative;
  padding: clamp(16px, 4vw, 48px) 0 clamp(72px, 12vw, 140px);
}

.sunset picture,
.sunset__art {
  display: block;
  width: 100%;
  height: auto;
}

/* Its top and foot fading into the maroon (the picture only, not the line
   laid over it). */
.sunset picture {
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}

/* After the ceremonies, back on the sand of the introductions (the dark
   wash runs on under them). */
.lake,
.sunset,
.kathputli,
.celebration {
  background: var(--sand);
  /* A pixel of sand past each edge, so no hairline of the dark wash under
     them shows where two meet at a fractional pixel (on a phone). */
  box-shadow: 0 -1px 0 var(--sand), 0 1px 0 var(--sand);
}

/* On a phone, more room between the date and the joined hands. */
@media (orientation: portrait) {
  .save-date {
    padding-bottom: clamp(56px, 16vw, 80px);
  }
}

/* --- forever ------------------------------------------------------------ */
/* The couple's line, laid over the sunset picture, in the sky at its top,
   above the chhatri: Playfair Display bold, in cream, with a soft dark
   glow so it reads over the bright sky. Armed by app.js, its words wait
   unseen and fade in one after another as it scrolls into view. */
.forever {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

.forever__line {
  margin: 0 auto;
  color: #6a1e20;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 3.4vw, 48px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}

.forever__word {
  display: inline-block;
}

/* The couple in the chhatri, the line on the marble floor at its foot:
   full width on a phone, a portrait column on a wide screen. Its foot
   fades into the sand behind the line so the words read. */
.sunset__frame {
  position: relative;
  width: min(100%, 680px);
  margin: 0 auto;
}

/* A wide cut of the couple on a landscape screen (couple_gazebo_d.webp),
   the full width of the screen; no fade of its own (the old .sunset picture
   mask), only the foot's below. */
.sunset .sunset__pic {
  display: block;
  -webkit-mask-image: none;
  mask-image: none;
}

@media (orientation: landscape) {
  .sunset__frame {
    width: 100%;
  }
}

.sunset__frame::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(transparent, rgba(248, 236, 220, 0.85) 55%, var(--sand));
  pointer-events: none;
}

.sunset__frame .forever {
  position: absolute;
  inset: auto 0 4%;
  z-index: 1;
}

.sunset__frame .forever__line {
  font-size: clamp(20px, 5.4vw, 34px);
  font-weight: 400;
}

.forever.is-armed .forever__word {
  opacity: 0;
  filter: blur(4px);
  transition:
    opacity 700ms ease,
    filter 700ms ease;
  transition-delay: calc(var(--i) * 260ms);
}

.forever.is-armed.is-shown .forever__word {
  opacity: 1;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .forever.is-armed .forever__word {
    filter: none;
  }
}

/* --- celebration --------------------------------------------------------- */
/* A painting at the very foot of the page (index.html), whole, across the
   screen's full width, plain, with no fade - the page ends in it. Clipped,
   so the zoom it settles from as it comes into view (scroll-effects.js)
   stays inside it. */
.celebration {
  position: relative;
  padding: 0;
}

.celebration__art {
  display: block;
  overflow: hidden;
  /* Its top fading into the sand; its foot, the page's end, left plain. */
  -webkit-mask-image: linear-gradient(transparent, #000 12%);
  mask-image: linear-gradient(transparent, #000 12%);
}

.celebration__scene {
  position: relative;
}

.celebration__art picture,
.celebration__art img {
  display: block;
  width: 100%;
  height: auto;
}

/* A gilt easel hung with roses (media/easle-phone.webp, 637 x 1238, on a
   portrait screen; easleD.webp, 1060 x 935, on a landscape one), its board
   large in the middle of the terrace and its feet on the open marble, as in
   the design: on the portrait cut (941 x 1672) the board from x 311 to 808,
   the feet at y ~1320; on the landscape cut (1536 x 1024) the board from x
   349 to 1248, the feet at y ~876, short of the carpet, the scroll at its
   crown just under the painting's top. Each drawing carries its own soft
   shadow on the floor. Placed in shares of the painting, so it keeps that
   spot at every width. Backgrounds, swapped with the painting, so only the
   one shown is fetched. */
.celebration__easel {
  position: absolute;
  z-index: 1;
  left: 25%;
  bottom: 18.2%;
  width: 68.7%;
  container-type: inline-size;
  aspect-ratio: 637 / 1238;
  background: url('../media/easle-phone.webp?v=2026-10-28a') center / 100% 100% no-repeat;
}

@media (orientation: landscape) {
  .celebration__easel {
    left: 17.2%;
    bottom: 11.5%;
    width: 69.3%;
    aspect-ratio: 1060 / 935;
    background-image: url('../media/easleD.webp?v=2026-10-28b');
  }
}

/* On the board, the invitation's last word, as on the printed card's foot:
   who sends it (प्रेषक) - the bride's father, his thikana, and his number,
   which a tap calls - in the wine of the invitation's words. Sized in cqw
   of the easel, so it stays on the painted board at every size, centred in
   the gold rule round the board's panel: x 100-545, y 225-920 of the tall
   drawing; x 115-960, y 235-690 of the wide one. */
.celebration__board {
  position: absolute;
  top: 46.2%;
  left: 50.6%;
  width: 64%;
  transform: translate(-50%, -50%);
  color: var(--wine);
  font-family: var(--font-serif);
  text-align: center;
}

.celebration__board p {
  margin: 0;
  text-wrap: balance;
}

/* The thank-you, over the sender, in italic, a fine gold rule under it. */
.celebration__line {
  font-size: 7cqw;
  font-style: italic;
  font-weight: 600;
  line-height: 1.2;
}

.celebration__line::after {
  content: '';
  display: block;
  width: 40%;
  height: 1px;
  margin: 0.35em auto 0.4em;
  background: linear-gradient(to right, transparent, #c9952e, transparent);
}

/* "From" and the thikana: small spaced capitals. */
.celebration__label,
.celebration__place {
  font-size: 3.4cqw;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.celebration__label {
  opacity: 0.8;
}

.celebration__name {
  margin: 0.2em 0 0.25em !important;
  font-size: 7.2cqw;
  font-style: italic;
  font-weight: 600;
  line-height: 1.15;
}

/* The number - a tap calls it. */
.celebration__phone {
  display: inline-block;
  margin-top: 0.5em;
  padding: 0.15em 0;
  color: inherit;
  font-size: 4.8cqw;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.celebration__phone:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.celebration__phone:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

@media (orientation: landscape) {
  .celebration__board {
    top: 49.4%;
    left: 50.7%;
    width: 64%;
  }

  .celebration__label,
  .celebration__place {
    font-size: 1.8cqw;
  }

  .celebration__line {
    font-size: 4cqw;
  }

  .celebration__name {
    font-size: 3.8cqw;
  }

  .celebration__phone {
    font-size: 2.5cqw;
  }
}