/* ==========================================================================
   Teej gift for Kumari — stylesheet
   Layers, in back-to-front order:
     .glow      breathing red haze
     #petals    canvas, falling marigold petals (drawn in app.js)
     .gate      the sealed envelope, covers the screen until tapped
     .story     hero, four photo scenes, the letter, the blessing
   ========================================================================== */

/* ---------- palette ---------- */
:root {
  --red-abyss: #2a0410;
  --red-deep: #4d0a20;
  --red: #8e0b2a;
  --red-bright: #c8102e;
  --rose: #e8455f;
  --coral: #f2795f;
  --gold: #f5c451;
  --gold-soft: #ffe9a8;
  --gold-deep: #b8862b;
  --cream: #fff4e2;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--sans);
  color: var(--cream);
  background: var(--red-abyss);
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

.dot {
  color: var(--gold);
  padding: 0 0.4em;
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   BACKGROUND LAYERS
   ========================================================================== */

/*
   ##########################################################################
   # CSS radial-gradient paints a colour that fades outward from a point.
   # Several of them can be stacked in one background property, each drawn on
   # top of the next, which is cheaper than adding one DOM element per blob.
   # Animating background-position moves them; the browser can do this on the
   # compositor, so it stays smooth on a phone. The alternative was one
   # absolutely positioned div per blob with transform animations - more
   # elements, more paint area, no visual gain here.
   # https://developer.mozilla.org/en-US/docs/Web/CSS/gradient/radial-gradient
   ##########################################################################
   # The breathing red haze behind the whole page. Fixed so it never scrolls
   # away, and a negative z-index so it stays under both the canvas and the
   # content. Remove this and the page goes flat maroon with no depth.
*/
.glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60vmax 60vmax at 12% 8%, #c8102e55 0%, transparent 60%),
    radial-gradient(55vmax 55vmax at 88% 22%, #f2795f40 0%, transparent 62%),
    radial-gradient(70vmax 70vmax at 50% 100%, #b8862b38 0%, transparent 65%),
    linear-gradient(160deg, #6d0a24 0%, #4d0a20 45%, #2a0410 100%);
  background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%;
  animation: haze 26s ease-in-out infinite alternate;
}

@keyframes haze {
  0% {
    background-position: 0% 0%, 100% 0%, 50% 100%, 0 0;
  }
  100% {
    background-position: 30% 20%, 70% 30%, 40% 80%, 0 0;
  }
}

/* A faint speckle over everything so the flat gradients read as printed paper. */
.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(#ffd9a015 1px, transparent 1.4px);
  background-size: 26px 26px;
}

#petals {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ==========================================================================
   SHARED BITS
   ========================================================================== */

/*
   ##########################################################################
   # background-clip:text paints a background only where the glyphs are, so a
   # moving gradient becomes moving light across the letters. It needs the
   # text colour set to transparent, plus the -webkit- prefixed properties for
   # Safari and older Chrome. The alternative, an SVG <text> with a gradient
   # fill, does not reflow with the rest of the paragraph, so it was rejected.
   # https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip
   ##########################################################################
   # The gold sweep across the big headings. Applied only to elements that
   # carry .shimmer; putting it on a parent would knock out the cream body
   # colour of every child.
*/
.shimmer {
  background: linear-gradient(100deg, var(--gold-soft) 10%, #fff 25%, var(--gold) 40%, var(--gold-deep) 55%, var(--gold-soft) 75%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: sweep 7s linear infinite;
}

@keyframes sweep {
  to {
    background-position: -250% 0;
  }
}

.btn {
  position: relative;
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 38px;
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--sans);
  color: #5a0818;
  background: linear-gradient(145deg, #ffe9a8, #f5c451 45%, #d79b2f);
  box-shadow: 0 14px 34px #00000055, 0 0 0 1px #ffe9a855, 0 0 34px #f5c45140;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.btn__label {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.btn__sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 20px 44px #00000066, 0 0 0 1px #ffe9a8aa, 0 0 54px #f5c45170;
}

/* A white glare that slides across the button on a loop. */
.btn__shine {
  position: absolute;
  top: 0;
  left: -140%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, #ffffffaa, transparent);
  animation: glare 3.6s ease-in-out infinite;
}
@keyframes glare {
  0%,
  55% {
    left: -140%;
  }
  100% {
    left: 160%;
  }
}

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 4px;
}

/* ==========================================================================
   ACT 0 — THE GATE
   ========================================================================== */

.gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 6vh 24px;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #8e0b2a 0%, #4d0a20 45%, #2a0410 100%);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

/* app.js adds .is-open after the tap; the whole gate lifts and fades out. */
.gate.is-open {
  opacity: 0;
  transform: scale(1.25) translateY(-8%);
  pointer-events: none;
}

/* Slow turning light rays behind the envelope. */
.gate__rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190vmax;
  height: 190vmax;
  translate: -50% -50%;
  opacity: 0.16;
  background: repeating-conic-gradient(from 0deg, #f5c451 0deg 7deg, transparent 7deg 22deg);
  animation: spin 70s linear infinite;
}
@keyframes spin {
  to {
    rotate: 360deg;
  }
}

.gate__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.gate__festival {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.gate__festival .spark {
  color: var(--gold);
  animation: twinkle 2.2s ease-in-out infinite;
}
.gate__festival .spark:last-child {
  animation-delay: 1.1s;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.35;
    scale: 0.8;
  }
  50% {
    opacity: 1;
    scale: 1.25;
  }
}

/* ---------- the diya ---------- */
.diya {
  position: relative;
  width: 74px;
  height: 56px;
}
.diya__bowl {
  position: absolute;
  bottom: 0;
  width: 74px;
  height: 26px;
  border-radius: 0 0 40px 40px;
  background: linear-gradient(180deg, #e0803c, #8d3d16);
  box-shadow: 0 6px 18px #00000055;
}
.diya__flame {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 20px;
  height: 34px;
  translate: -50% 0;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 75%, #fff6d0 0%, #ffd45e 38%, #ff8a2b 70%, #e0431a 100%);
  box-shadow: 0 0 26px 10px #ff9c3a66, 0 0 60px 22px #ff5a2033;
  transform-origin: 50% 100%;
  animation: flicker 1.5s ease-in-out infinite;
}
@keyframes flicker {
  0%,
  100% {
    transform: translateX(-50%) scaleY(1) skewX(0deg);
    opacity: 1;
  }
  30% {
    transform: translateX(-50%) scaleY(1.12) skewX(-5deg);
    opacity: 0.92;
  }
  60% {
    transform: translateX(-50%) scaleY(0.94) skewX(4deg);
    opacity: 1;
  }
}

/* ---------- the envelope ---------- */
.envelope {
  position: relative;
  width: min(72vw, 250px);
  aspect-ratio: 1.45;
  margin-top: 6px;
  animation: bob 4.5s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

.envelope__body {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(160deg, #c8102e, #8e0b2a 60%, #5f0a1e);
  box-shadow: 0 26px 60px #00000066, inset 0 0 0 2px #f5c45166;
}
/* The two diagonals that read as the envelope's folded side flaps. */
.envelope__body::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background:
    linear-gradient(to bottom right, transparent 49.4%, #ffffff12 49.6% 50.4%, transparent 50.6%),
    linear-gradient(to bottom left, transparent 49.4%, #ffffff12 49.6% 50.4%, transparent 50.6%);
}

.envelope__flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 58%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, #e0173a, #a30d31);
  box-shadow: inset 0 -2px 0 #f5c45166;
  transform-origin: top center;
  transition: transform 0.9s var(--ease-out);
}
.gate.is-open .envelope__flap {
  transform: rotateX(180deg);
}

.envelope__seal {
  position: absolute;
  top: 52%;
  left: 50%;
  translate: -50% -50%;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #6d0a24;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #f5c451 55%, #c9942c);
  box-shadow: 0 6px 20px #00000066, 0 0 0 4px #ffe9a833;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    scale: 1;
    box-shadow: 0 6px 20px #00000066, 0 0 0 4px #ffe9a833;
  }
  50% {
    scale: 1.08;
    box-shadow: 0 6px 26px #00000077, 0 0 0 12px #ffe9a81a;
  }
}

.gate__to {
  margin: 6px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  line-height: 1.1;
  color: var(--gold-soft);
}

.gate__nick {
  margin: 0;
  font-size: 0.9rem;
  color: #ffd9b0cc;
}
.gate__nickLabel {
  opacity: 0.6;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  text-transform: uppercase;
}
/* app.js swaps the text and retriggers this by toggling the class. */
.nick {
  display: inline-block;
  min-width: 7ch;
  font-weight: 700;
  color: var(--gold);
  text-align: left;
}
.nick.is-swapping {
  animation: nickFlip 0.5s var(--ease-out);
}
@keyframes nickFlip {
  0% {
    opacity: 0;
    transform: rotateX(-90deg) translateY(6px);
  }
  100% {
    opacity: 1;
    transform: rotateX(0) translateY(0);
  }
}

.gate__hint {
  margin: 2px 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffd9b077;
  animation: breathe 2.6s ease-in-out infinite;
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

/* ==========================================================================
   SOUND TOGGLE
   ========================================================================== */

.sound {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  z-index: 40;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #f5c45155;
  border-radius: 50%;
  cursor: pointer;
  color: var(--gold-soft);
  background: #4d0a20cc;
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease-out), background 0.3s;
}
.sound:hover {
  transform: scale(1.1);
  background: #8e0b2acc;
}
.sound__icon {
  font-size: 1.15rem;
  line-height: 1;
}
.sound__ring {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0;
}
.sound[aria-pressed="true"] .sound__ring {
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  0% {
    opacity: 0.8;
    scale: 1;
  }
  100% {
    opacity: 0;
    scale: 1.7;
  }
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

/*
   # Everything with .reveal starts shifted down and invisible. app.js adds
   # .is-in through an IntersectionObserver as each one scrolls into view.
   # If JavaScript never runs, the .no-js rules at the bottom show them all.
*/
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   ACT 1 — HERO
   ========================================================================== */

.story {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 92px 24px 72px;
  text-align: center;
}

.mehendi {
  position: absolute;
  left: 0;
  width: 100%;
  height: 60px;
  color: var(--gold);
  opacity: 0.5;
}
.mehendi--top {
  top: 18px;
}
.mehendi--bottom {
  bottom: 18px;
  transform: scaleY(-1);
}
/*
   # The paisley curl is stamped once in the SVG <defs> and repeated across
   # the row by stroke-dasharray. Animating the offset makes the line look
   # like it is being drawn on, the way mehendi is applied.
*/
.paisley {
  stroke-dasharray: 6 160;
  animation: draw 9s linear infinite;
}
@keyframes draw {
  to {
    stroke-dashoffset: -166;
  }
}

.eyebrow {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 11vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero__title em {
  display: block;
  font-style: italic;
  color: var(--gold);
}

/* ---------- the bangle row ---------- */
.bangles {
  display: flex;
  gap: 10px;
  align-items: center;
}
.bangles i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  box-shadow: inset 0 0 0 1px #c8102e88, 0 0 14px #f5c45166;
  animation: jingle 2.8s ease-in-out infinite;
}
.bangles i:nth-child(2) {
  border-color: var(--red-bright);
  animation-delay: 0.18s;
}
.bangles i:nth-child(3) {
  animation-delay: 0.36s;
}
.bangles i:nth-child(4) {
  border-color: var(--red-bright);
  animation-delay: 0.54s;
}
.bangles i:nth-child(5) {
  animation-delay: 0.72s;
}
@keyframes jingle {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-9px) rotate(14deg);
  }
}

.hero__lede {
  max-width: 560px;
  margin: 0;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  line-height: 1.75;
  color: #ffe6cd;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ffd9b099;
}
.scroll-cue i {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--gold), transparent);
  animation: drop 1.8s ease-in-out infinite;
}
@keyframes drop {
  0%,
  100% {
    transform: scaleY(0.3);
    transform-origin: top;
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
}

/* ==========================================================================
   NICKNAME MARQUEE
   ========================================================================== */

.marquee {
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid #f5c45133;
  border-bottom: 1px solid #f5c45133;
  background: #2a041066;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: slide 28s linear infinite;
}
.marquee__track span {
  padding-right: 42px;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  white-space: nowrap;
  color: var(--gold-soft);
}
/* Three identical copies, so shifting by exactly one third loops seamlessly. */
@keyframes slide {
  to {
    transform: translateX(-33.333%);
  }
}

/* ==========================================================================
   ACT 2 — CHAPTER HEADING + SCENES
   ========================================================================== */

.chapter {
  padding: 96px 24px 40px;
  text-align: center;
}
.chapter__kicker {
  margin: 0 0 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.chapter__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 7vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.chapter__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  color: var(--gold);
}
.chapter__rule i {
  width: min(22vw, 110px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.chapter__rule i:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.scene {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px;
}
.scene--flip .scene__photo {
  order: 2;
}

/* ---------- the photo frame ---------- */
.scene__photo {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #2a0410;
  box-shadow: 0 30px 70px #00000077, 0 0 0 1px #f5c45144, 0 0 0 9px #8e0b2a55;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.scene__photo:hover {
  transform: translateY(-8px) rotate(-0.6deg);
  box-shadow: 0 40px 90px #00000088, 0 0 0 1px #f5c451aa, 0 0 0 9px #8e0b2a88;
}
.scene__photo--portrait {
  aspect-ratio: 3 / 4;
}
.scene__photo--landscape {
  aspect-ratio: 4 / 3;
}
.scene__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* app.js nudges this with a --shift variable as the photo scrolls past. */
  transform: scale(1.08) translateY(var(--shift, 0px));
}
/* A warm wash over every photo so the four of them feel like one set. */
.scene__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #c8102e14 0%, transparent 40%, #2a041066 100%);
}

.scene__no {
  position: absolute;
  top: 10px;
  left: 16px;
  z-index: 2;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--gold-soft);
  text-shadow: 0 2px 12px #000000aa;
}

.scene__date {
  display: inline-block;
  margin: 0;
  padding: 6px 15px;
  border: 1px solid #f5c45155;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: #8e0b2a33;
}

.scene__text h3 {
  margin: 14px 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--gold-soft);
}
.scene__text p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #ffe6cd;
}

/* ==========================================================================
   ACT 3 — THE LETTER
   ========================================================================== */

.letter {
  padding: 80px 24px;
}
.letter__paper {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 62px);
  border-radius: 6px;
  color: #4a1220;
  background: linear-gradient(150deg, #fff8ec, #ffeed6 60%, #ffe4c4);
  box-shadow: 0 34px 80px #00000088, 0 0 0 1px #f5c45166, 0 0 0 12px #8e0b2a44;
}
/* Faint ruled lines, so it reads as a sheet of writing paper. */
.letter__paper::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  pointer-events: none;
  background-image: repeating-linear-gradient(#00000000 0 31px, #8e0b2a12 31px 32px);
}
.letter__corner {
  position: absolute;
  font-size: 1.4rem;
  color: #c8102e66;
}
.letter__corner--tl {
  top: 14px;
  left: 18px;
}
.letter__corner--br {
  bottom: 14px;
  right: 18px;
  rotate: 180deg;
}

.letter__kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #c8102e;
}
.letter__hello {
  margin: 0 0 22px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.7rem, 5.5vw, 2.3rem);
  color: #8e0b2a;
}

.letter__body p {
  margin: 0 0 22px;
  font-size: 1.06rem;
  line-height: 1.85;
  color: #46101d;
}

/*
   # app.js gives each paragraph a --i index and adds .is-writing to the
   # container when the letter scrolls into view, so the lines appear one
   # after another instead of all at once.
*/
.letter__body p {
  opacity: 0;
  transform: translateY(14px);
}
.letter__body.is-writing p {
  animation: write 0.75s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 0.5s);
}
@keyframes write {
  to {
    opacity: 1;
    transform: none;
  }
}

.letter__sign {
  margin: 30px 0 0;
  text-align: right;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.3rem;
  color: #8e0b2a;
}

/* ==========================================================================
   ACT 4 — THE BLESSING
   ========================================================================== */

.finale {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 110px 24px 130px;
  text-align: center;
}

.finale__bangles {
  display: flex;
  gap: 16px;
}
.finale__bangles i {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 7px solid var(--gold);
  box-shadow: inset 0 0 0 2px #c8102e, 0 0 24px #f5c45155;
  animation: roll 3.4s ease-in-out infinite;
}
.finale__bangles i:nth-child(2) {
  animation-delay: 0.25s;
  border-color: var(--red-bright);
  box-shadow: inset 0 0 0 2px var(--gold), 0 0 24px #c8102e66;
}
.finale__bangles i:nth-child(3) {
  animation-delay: 0.5s;
}
@keyframes roll {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-14px) rotate(180deg);
  }
}

.finale__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 8vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.finale__sub {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
}

.foot {
  padding: 0 24px 60px;
  text-align: center;
  color: #ffd9b077;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.foot p {
  margin: 6px 0;
}
.foot__mark {
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0.6;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 860px) {
  .scene {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 46px 22px;
  }
  /* On one column the photo must always lead, whichever side it sat on. */
  .scene--flip .scene__photo {
    order: 0;
  }
  .scene__text {
    text-align: center;
  }
  .mehendi {
    height: 42px;
  }
  .marquee__track span {
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .hero {
    padding: 80px 20px 60px;
  }
  .btn {
    padding: 14px 28px;
  }
  .finale__bangles i {
    width: 42px;
    height: 42px;
    border-width: 6px;
  }
}

/*
   ##########################################################################
   # prefers-reduced-motion is an OS-level accessibility setting. When someone
   # turns it on, large or looping motion can cause nausea or migraines, so
   # the page must stop moving things on its own. The rule below kills every
   # animation and transition but keeps the layout and colour identical.
   # app.js reads the same setting and skips the petals and the parallax.
   # https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion
   ##########################################################################
   # Without this the falling petals, the marquee and the spinning rays all
   # keep running for someone who asked the system for less movement.
*/
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .letter__body p {
    opacity: 1;
    transform: none;
  }
  /* .shimmer relies on its animation to move; frozen it must still be gold. */
  .shimmer {
    background: none;
    color: var(--gold-soft);
    -webkit-text-fill-color: var(--gold-soft);
  }
}

/* If the script fails to load, show everything rather than a blank page. */
.no-js .reveal {
  opacity: 1;
  transform: none;
}
.no-js .letter__body p {
  opacity: 1;
  transform: none;
}
/* The story carries the hidden attribute, which only app.js clears. */
.no-js .story[hidden] {
  display: block;
}
.no-js .gate {
  position: relative;
  min-height: 100svh;
}
