:root {
  --plaster: #f6f1e6;
  --ink: #3b2418;
  --maroon: #7c1e3a;
  --magenta: #e23d78;
  --marigold: #f08a24;
  --saffron: #ffb703;
  --turquoise: #1490c4;
  --gold: #e7c27a;
  --indigo: #2a2160;
  --progress: 0;
  --mx: 0;
  --my: 0;
  --nav: 62px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header: calc(var(--nav) + var(--safe-top));
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 460;
  line-height: 1.45;
  overflow-x: hidden;
}

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

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

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

::selection {
  background: #f7c3d6;
  color: #3a160f;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: white;
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}

.skip:focus { top: 0.6rem; }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 70;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  width: calc(var(--progress) * 100%);
  background: linear-gradient(90deg, #f08a24, #e23d78 46%, #1490c4 78%, #f0c14a);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: var(--safe-top) 0.85rem 0;
  background: rgba(246, 241, 230, 0.84);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(90, 40, 20, 0.08);
}

.brand {
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 620;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--maroon);
  text-decoration: none;
  flex: none;
}

.brand em {
  font-family: Italianno, "Snell Roundhand", cursive;
  font-style: normal;
  font-size: 1.9rem;
  color: var(--magenta);
  padding: 0 0.12rem;
}

.nav-links {
  display: flex;
  gap: 0.35rem 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  font-family: Outfit, "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: #6b4632;
  padding: 0.35rem 0.05rem 0.45rem;
}

.nav-links a[aria-current="true"] {
  color: var(--magenta);
  box-shadow: inset 0 -2px 0 var(--marigold);
}

.hero {
  position: relative;
  z-index: 0;
  height: 178dvh;
  background: transparent;
}

.hero-pin {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding:
    calc(var(--header) + 0.35rem)
    1.1rem
    calc(clamp(96px, 16vw, 148px) + clamp(150px, 22vh, 250px) + 0.9rem);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(240, 138, 36, 0.16), transparent 36%),
    radial-gradient(ellipse at 90% 10%, rgba(226, 61, 120, 0.12), transparent 32%),
    radial-gradient(ellipse at 70% 100%, rgba(20, 144, 196, 0.1), transparent 36%),
    var(--plaster);
}

.lights {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--header) - 6px);
  height: 34px;
  display: flex;
  justify-content: space-between;
  padding: 0 1.2vw;
  z-index: 6;
  pointer-events: none;
}

.lights::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  border-top: 1.5px solid rgba(70, 38, 22, 0.45);
  border-radius: 50%;
  height: 18px;
}

.lights span {
  width: 8px;
  height: 8px;
  margin-top: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #ffe7a4 42%, #f0a020);
  box-shadow: 0 0 8px 2px rgba(255, 190, 70, 0.9);
  animation: twinkle 1.8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.garland {
  position: absolute;
  top: calc(var(--header) - 8px);
  width: clamp(48px, 7vw, 92px);
  height: var(--len, 52vh);
  object-fit: cover;
  object-position: top center;
  transform-origin: top center;
  animation: sway var(--dur, 6.4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 12px 10px rgba(90, 30, 0, 0.12));
}

.petal-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}

.petal-field span {
  position: absolute;
  top: -8vh;
  border-radius: 80% 12% 70% 20%;
  animation: fall linear infinite;
}

.hero-copy {
  position: relative;
  z-index: 5;
  text-align: center;
  transform: translate3d(calc(var(--mx) * -12px), calc(var(--my) * -8px), 0);
  max-width: 920px;
  margin: 0 auto;
}

.blessing {
  margin: 0 auto;
  max-width: 38rem;
  font-family: "Noto Serif Gurmukhi", "Noto Sans Gurmukhi", "Mukta Mahee", serif;
  font-size: clamp(1.05rem, 2.15vw, 1.55rem);
  font-weight: 500;
  line-height: 1.55;
  text-wrap: balance;
  color: #c45c32;
}

.kicker {
  margin: 0.35rem 0 0;
  font-family: Outfit, "Avenir Next", sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8a5a3c;
}

.names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.8rem;
  margin: 0.7rem 0 0.2rem;
}

.person { text-align: center; }

.first {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 560;
  font-style: italic;
  font-size: clamp(2.7rem, 6.2vw, 5.8rem);
  line-height: 0.82;
  letter-spacing: -0.035em;
  color: var(--maroon);
}

.last {
  display: block;
  margin-top: 0.45rem;
  font-family: Outfit, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: #a15a32;
}

.amp {
  font-family: Italianno, cursive;
  font-size: clamp(4.2rem, 9vw, 7.5rem);
  line-height: 0.5;
  color: var(--magenta);
  padding-bottom: 0.4rem;
}

.hero .lede { margin-top: 0.4rem; }
.hero .when { margin-top: 0.4rem; }
.hero .tickets { margin-top: 0.65rem; }
.hero .cue { margin-top: 0.55rem; }
.hero .kicker { margin-top: 0.15rem; }

.lede {
  margin: 0.8rem auto 0;
  max-width: 28rem;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 500;
  font-style: italic;
  color: #4e3424;
}

.when {
  margin: 0.85rem 0 0;
}

.when span,
.finale .when span {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.78);
  font-family: Outfit, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6e3d28;
}

.tickets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.tickets a {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 8.4rem;
  padding: 0.55rem 0.8rem 0.65rem;
  border-radius: 18px;
  text-decoration: none;
  color: #fffaf3;
  box-shadow: 0 12px 24px rgba(80, 30, 10, 0.12);
  transition: transform 0.25s ease;
}

.tickets a:hover { transform: translateY(-3px); }

.tickets li:nth-child(1) a { background: linear-gradient(160deg, #21a4d4, #0d6f99); }
.tickets li:nth-child(2) a { background: linear-gradient(160deg, #ffb03a, #e07012); }
.tickets li:nth-child(3) a { background: linear-gradient(160deg, #e7b04a, #b86a12); }
.tickets li:nth-child(4) a { background: linear-gradient(160deg, #e23b55, #9d1730); }
.tickets li:nth-child(5) a { background: linear-gradient(160deg, #5a4a9a, #2a2160); }

.tickets small {
  font-family: Outfit, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.92;
}

.tickets strong {
  font-family: Fraunces, serif;
  font-weight: 560;
  font-size: 1.08rem;
}

.cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-top: 1.15rem;
  padding: 0.45rem 0.95rem 0.35rem;
  border-radius: 999px;
  background: rgba(246, 241, 230, 0.88);
  color: var(--maroon);
  text-decoration: none;
  font-family: Outfit, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cue i {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: bob 1.4s ease-in-out infinite;
}

.ceremony {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(96px, 16vw, 148px);
  z-index: 3;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transform: translate3d(calc(var(--mx) * 12px), calc(var(--my) * 6px), 0);
}

.ceremony img {
  width: auto;
  height: clamp(150px, 22vh, 250px);
  max-width: min(420px, 70vw);
  object-fit: contain;
  animation: bob 5.5s ease-in-out infinite;
}

.marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: march 36s linear infinite;
}

.marquee img {
  height: clamp(96px, 16vw, 148px);
  width: auto;
}

.chapter {
  --open: 0;
  --enter: 1;
  position: relative;
  z-index: 1;
  height: 100dvh;
  margin-top: 0;
  background: transparent;
}

.chapter-pin {
  position: relative;
  height: 100dvh;
  overflow: hidden;
  opacity: var(--enter);
  background: var(--chapter, var(--plaster));
}

.chapter.is-settled .chapter-pin,
.finale.is-settled {
  -webkit-mask-image: none;
  mask-image: none;
}

.stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-origin: 50% 58%;
  transition: transform 0.7s ease, opacity 0.35s ease;
}

.chapter.is-open .stage {
  transform: scale(2.15);
  opacity: 0;
  transition: transform 1.05s cubic-bezier(0.55, 0.02, 0.2, 1) 0.62s, opacity 0.4s ease 0.95s;
}

.rig-shift {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.index,
.hint,
.next {
  position: absolute;
  z-index: 7;
  font-family: Outfit, sans-serif;
}

.index {
  top: calc(var(--header) + 0.7rem);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(247, 241, 228, 0.9);
  backdrop-filter: blur(8px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: #6e3d28;
  white-space: nowrap;
}

.index b {
  font-weight: 600;
  color: var(--magenta);
  margin-right: 0.45rem;
}

.open-door,
.close-door {
  font-family: Outfit, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
}

.open-door {
  position: absolute;
  z-index: 8;
  bottom: calc(1.25rem + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 0;
  background: #fff6ea;
  color: var(--maroon);
  font-size: 0.74rem;
  box-shadow: 0 14px 30px rgba(60, 20, 10, 0.22);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.open-door:hover { transform: translateX(-50%) translateY(-2px); }

.chapter.is-open .open-door,
.chapter.is-open .index {
  opacity: 0;
  pointer-events: none;
}

.next {
  bottom: calc(0.85rem + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: #fffaf3;
  background: var(--maroon);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  opacity: calc(0.55 + var(--open) * 0.45);
  box-shadow: 0 10px 24px rgba(80, 20, 20, 0.18);
}

.rig {
  position: relative;
  height: 124dvh;
  width: calc(124dvh * 0.75);
  perspective: 1700px;
  perspective-origin: 50% 60%;
  transform-style: preserve-3d;
  z-index: 1;
}

.room,
.frame,
.leaf {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.room {
  background:
    radial-gradient(ellipse 46% 34% at 50% 60%, rgba(255, 214, 150, 0.55), transparent 72%),
    linear-gradient(180deg, var(--room-a), var(--room-b));
  transform: translateZ(-30px);
}

.frame,
.leaf {
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.frame { transform: translateZ(0); }

.leaf {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}

.leaf-left,
.leaf-right {
  transition: transform 0.95s cubic-bezier(0.5, 0.02, 0.2, 1);
}

.leaf-left {
  transform: translateZ(18px) rotateY(calc(var(--open) * -76deg));
  transform-origin: var(--hinge-l) 60%;
}

.leaf-right {
  transform: translateZ(18px) rotateY(calc(var(--open) * 76deg));
  transform-origin: var(--hinge-r) 60%;
}

.inside {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  padding: calc(var(--header) + 1.4rem) 1.3rem calc(1.6rem + var(--safe-bottom));
  background:
    radial-gradient(ellipse 80% 55% at 50% 38%, rgba(255, 220, 160, 0.32), transparent 68%),
    linear-gradient(180deg, var(--room-a), var(--room-b));
  color: #fff8ef;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}

.chapter.is-open .inside {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.65s ease 0.8s, transform 0.8s ease 0.7s, visibility 0s;
}

.inside article {
  width: min(40rem, 100%);
}

.inside .eyebrow {
  margin: 0;
  font-family: Outfit, sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
}

.inside h2 {
  margin: 0.35rem 0 0;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 560;
  font-size: clamp(3.1rem, 8vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.inside h2 span { display: block; }

.inside .mark {
  width: 42px;
  height: 42px;
  margin: 0.7rem auto;
}

.inside .meta {
  margin: 0.15rem 0 0;
  font-family: Outfit, sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  line-height: 1.45;
}

.inside .meta strong {
  display: block;
  font-family: Fraunces, serif;
  font-weight: 600;
  font-size: 1.15em;
}

.inside .meta a {
  color: inherit;
  text-underline-offset: 0.16em;
}

.inside-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.inside .next,
.close-door {
  position: static;
  transform: none;
  opacity: 1;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  text-decoration: none;
}

.inside .next {
  background: #fff6ea;
  color: var(--maroon);
}

.close-door {
  background: transparent;
  color: #fff6ea;
  border: 1px solid rgba(255, 246, 234, 0.5);
  font-size: 0.7rem;
}

.card {
  position: absolute;
  z-index: 2;
  left: calc(var(--dx) + var(--dw) * 0.13);
  top: calc(var(--dy) + var(--dh) * 0.2);
  width: calc(var(--dw) * 0.74);
  height: calc(var(--dh) * 0.66);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff8ef;
  padding: 0.2rem 0.2rem 2.4rem;
  overflow: hidden;
  container-type: size;
  transform: translateZ(-12px) translateY(calc((1 - var(--open)) * 16px));
  opacity: clamp(0, calc((var(--open) - 0.34) * 2.5), 1);
}

.card .eyebrow,
.card .dress,
.card .meta {
  font-family: Outfit, sans-serif;
}

.card .eyebrow {
  margin: 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: clamp(0.48rem, 6.5cqh, 0.68rem);
  color: var(--gold);
}

.card h2 {
  margin: 0.12rem 0 0.05rem;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 560;
  font-size: clamp(1.15rem, 16cqh, 2.15rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.card h2 span { display: block; }

.mark {
  width: clamp(18px, 8cqh, 28px);
  height: clamp(18px, 8cqh, 28px);
  margin: 0.15rem 0;
  flex: none;
}

.card .meta {
  margin: 0;
  font-size: clamp(0.62rem, 6.4cqh, 0.86rem);
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.card .meta strong {
  display: block;
  font-family: Fraunces, serif;
  font-weight: 600;
  font-size: 1.05em;
}

.card a,
.summary a {
  color: inherit;
  text-underline-offset: 0.16em;
}

.card .note {
  margin: 0.28rem 0 0;
  max-width: 22ch;
  font-size: clamp(0.68rem, 6.2cqh, 0.92rem);
  font-style: italic;
  line-height: 1.3;
  color: rgba(255, 248, 239, 0.92);
  text-wrap: balance;
}

.card .dress {
  margin: 0.28rem 0 0;
  font-size: clamp(0.52rem, 5.4cqh, 0.68rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.side-garland {
  position: absolute;
  top: -4%;
  height: 78%;
  width: clamp(64px, 8vw, 110px);
  object-fit: cover;
  object-position: top;
  z-index: 5;
  pointer-events: none;
  transform-origin: top center;
  animation: sway 7s ease-in-out infinite;
  filter: drop-shadow(0 12px 10px rgba(80, 30, 0, 0.15));
}

.side-garland.left { left: 1.5%; }
.side-garland.right { right: 1.5%; animation-delay: -2s; }

.gold-rings,
.chapter-elephant {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}

.gold-rings { inset: 0; }

.gold-ring {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 6px solid #e7c27a;
  box-shadow:
    inset 0 0 0 3px rgba(255, 236, 190, 0.7),
    0 10px 20px rgba(120, 70, 10, 0.18);
  animation: floaty 4.8s ease-in-out infinite;
}

.gold-ring.one { top: 28%; left: 6%; }
.gold-ring.two { top: 48%; right: 7%; width: 36px; height: 36px; animation-delay: -1.6s; }

.chapter-elephant {
  width: min(260px, 24vw);
  left: 1rem;
  bottom: 0.4rem;
  animation: bob 4.8s ease-in-out infinite;
}

.chapter[data-door="ring"] {
  --chapter: #f7f1e6;
  --hinge-l: 33.796%;
  --hinge-r: 67.824%;
  --dx: 33.796%;
  --dy: 35.33%;
  --dw: 34.028%;
  --dh: 51.476%;
  --room-a: #1878a4;
  --room-b: #06283a;
}

.chapter[data-door="sagan"] {
  --chapter: #fff4e4;
  --hinge-l: 35.648%;
  --hinge-r: 67.245%;
  --dx: 35.648%;
  --dy: 36.024%;
  --dw: 31.597%;
  --dh: 48.177%;
  --room-a: #c4621c;
  --room-b: #4e220c;
}

.chapter[data-door="sehra"] {
  --chapter: #fff3d4;
  --hinge-l: 34.606%;
  --hinge-r: 67.13%;
  --dx: 34.606%;
  --dy: 36.372%;
  --dw: 32.523%;
  --dh: 49.566%;
  --room-a: #c9841a;
  --room-b: #5c3208;
}

.chapter[data-door="wedding"] {
  --chapter: #fdeee8;
  --hinge-l: 34.606%;
  --hinge-r: 67.13%;
  --dx: 34.606%;
  --dy: 36.372%;
  --dw: 32.523%;
  --dh: 49.566%;
  --room-a: #9d1d38;
  --room-b: #3e0c18;
}

.chapter[data-door="reception"] {
  --chapter: #efeaf8;
  --hinge-l: 35.764%;
  --hinge-r: 68.171%;
  --dx: 35.764%;
  --dy: 36.892%;
  --dw: 32.407%;
  --dh: 48.611%;
  --room-a: #3a2d78;
  --room-b: #120d28;
}

.chapter[data-door="reception"] .chapter-pin {
  background:
    radial-gradient(ellipse at 50% -10%, #241c4e 0%, #3d3470 24%, #efeaf8 62%);
}

.chapter[data-door="reception"] .lights { top: calc(var(--header) + 0.2rem); }

.diya-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4.6rem;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  pointer-events: none;
}

.diya-row span {
  position: relative;
  width: 22px;
  height: 9px;
  border-radius: 0 0 12px 12px;
  background: radial-gradient(circle at 50% 0%, #f0b56a, #c45c32 72%);
  box-shadow: 0 6px 8px rgba(80, 20, 0, 0.16);
}

.diya-row span::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 10px;
  height: 16px;
  transform-origin: 50% 100%;
  background: radial-gradient(ellipse at 50% 78%, #fffce8 0 18%, #ffd35a 38%, #ff8a1e 64%, transparent 72%);
  animation: flame 0.55s ease-in-out infinite alternate;
}

.finale {
  --enter: 1;
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  margin-top: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: calc(var(--header) + 2rem) 1.1rem calc(8rem + var(--safe-bottom));
  opacity: var(--enter);
  pointer-events: none;
  --feather: calc((1 - var(--enter)) * 72vh);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--feather));
  mask-image: linear-gradient(to bottom, transparent, #000 var(--feather));
  background:
    radial-gradient(ellipse at 80% 70%, rgba(255, 196, 92, 0.18), transparent 32%),
    radial-gradient(ellipse at 10% 20%, rgba(226, 61, 120, 0.16), transparent 28%),
    linear-gradient(165deg, #3e6d3c 0%, #234d38 42%, #173628 100%);
  color: #fff6ea;
}

.finale.is-here { pointer-events: auto; }

.finale-card {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
  padding: 4.2rem 1.4rem 1.7rem;
  text-align: center;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 138, 36, 0.16), transparent 36%),
    #f7f1e4;
  border-radius: 220px 220px 26px 26px;
  border: 1.5px solid #e0b15a;
  box-shadow:
    0 0 0 7px rgba(247, 241, 228, 0.2),
    0 0 0 8.5px rgba(226, 61, 120, 0.45),
    0 30px 70px rgba(0, 0, 0, 0.28);
}

.finale-card .mark { margin: 0 auto 0.2rem; width: 42px; height: 42px; }

.finale h2 {
  margin: 0.2rem 0 0;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 560;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--maroon);
}

.finale .amp {
  font-size: clamp(3rem, 7vw, 4.6rem);
  padding: 0 0.25rem;
}

.finale .lede {
  color: #4e3424;
  font-size: 1.25rem;
}

.summary {
  list-style: none;
  margin: 1.1rem auto 0;
  padding: 0;
  max-width: 26rem;
  text-align: left;
}

.summary li {
  display: grid;
  grid-template-columns: minmax(7.2rem, 9rem) 1fr;
  gap: 0.4rem 0.8rem;
  padding: 0.42rem 0;
  border-top: 1px solid rgba(90, 40, 20, 0.12);
  font-family: Outfit, sans-serif;
  font-size: 0.86rem;
}

.summary strong {
  font-family: Fraunces, serif;
  font-weight: 600;
  font-size: 0.98rem;
}

.summary span { color: #6d4a34; }

.rsvp {
  margin: 0.9rem 0 0;
  font-family: Outfit, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: #8a4a2a;
}

.howdah {
  position: absolute;
  right: -2vw;
  bottom: 0;
  width: min(460px, 46vw);
  z-index: 1;
  pointer-events: none;
  animation: bob 6s ease-in-out infinite;
}

.finale .diya-row { bottom: 5.6rem; z-index: 3; }
.finale .marquee { z-index: 3; }

.noscript {
  margin: 0;
  padding: 5rem 1.2rem;
  background: #fff6ea;
}

@keyframes sway {
  0%, 100% { transform: rotate(-2.4deg); }
  50% { transform: rotate(2.6deg); }
}

@keyframes fall {
  0% { transform: translate3d(0, -12vh, 0) rotate(0deg); opacity: 0; }
  12% { opacity: 0.9; }
  100% { transform: translate3d(var(--drift), 112vh, 0) rotate(240deg); opacity: 0.1; }
}

@keyframes march {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes flame {
  from { transform: translateX(-50%) scale(0.86) rotate(-4deg); }
  to { transform: translateX(-50%) scale(1.08) rotate(4deg); }
}

@media (max-width: 1100px) {
  .side-garland,
  .gold-rings,
  .chapter-elephant { display: none; }
}

@media (hover: none) {
  .tickets a:hover { transform: none; }
}

@media (max-width: 760px) {
  :root { --nav: 52px; }

  .brand { font-size: 1.3rem; }
  .brand em { font-size: 1.6rem; }

  .nav-links { gap: 0; }
  .nav-links a {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    padding: 0.85rem 0.42rem;
  }

  .hero { height: 168dvh; }
  .hero-pin {
    justify-content: flex-start;
    padding: calc(var(--header) + 0.2rem) 0.85rem 0.4rem;
  }

  .garland.extra { display: none; }
  .garland { width: 36px; height: 28vh; }

  .blessing {
    font-size: 0.95rem;
    line-height: 1.45;
    max-width: 15.5rem;
  }
  .kicker {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    line-height: 1.4;
  }

  .names { flex-direction: column; gap: 0.05rem; margin-top: 0.3rem; }
  .first { font-size: clamp(3rem, 14vw, 4.2rem); }
  .amp { font-size: clamp(2.8rem, 12vw, 3.8rem); padding-bottom: 0; margin: -0.15rem 0; }
  .last { margin-top: 0.28rem; letter-spacing: 0.28em; text-indent: 0.28em; font-size: 0.64rem; }

  .lede { font-size: 1.05rem; margin-top: 0.45rem; }
  .when { margin-top: 0.55rem; }
  .when span {
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    line-height: 1.35;
  }

  .tickets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 0.45rem;
    margin-top: 0.75rem;
  }

  .tickets a {
    min-width: 0;
    min-height: 52px;
    justify-content: center;
    padding: 0.5rem 0.6rem;
  }

  .tickets strong { font-size: 1.02rem; }
  .tickets small { letter-spacing: 0.08em; }

  .cue {
    margin-top: 0.7rem;
    min-height: 44px;
    justify-content: center;
    letter-spacing: 0.12em;
  }

  .ceremony {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    margin-top: 0.35rem;
  }

  .ceremony img {
    width: min(100%, 420px);
    max-height: 26vh;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
  }

  .hero .marquee { position: relative; }
  .marquee img { height: 78px; }

  .chapter { height: 100dvh; }

  .inside h2 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .inside .meta { font-size: 1.05rem; }

  .rig-shift { top: 44%; }
  .rig {
    width: min(980px, 236vw);
    height: calc(min(980px, 236vw) * 4 / 3);
  }

  .index {
    letter-spacing: 0.08em;
    font-size: 0.62rem;
    max-width: calc(100vw - 1.4rem);
    top: calc(var(--header) + 0.4rem);
  }

  .hint {
    bottom: calc(3.7rem + var(--safe-bottom));
    letter-spacing: 0.14em;
  }

  .next {
    min-height: 44px;
    padding: 0.7rem 1.05rem;
    font-size: 0.72rem;
  }

  .card {
    left: calc(var(--dx) + var(--dw) * 0.08);
    top: calc(var(--dy) + var(--dh) * 0.14);
    width: calc(var(--dw) * 0.84);
    height: calc(var(--dh) * 0.6);
    padding: 0.15rem 0.2rem 0.3rem;
  }

  .card .eyebrow { font-size: 0.62rem; letter-spacing: 0.12em; }
  .card h2 { font-size: 1.85rem; }
  .card .meta { font-size: 0.95rem; }
  .card .note { font-size: 0.98rem; max-width: 18ch; }
  .card .dress { font-size: 0.62rem; letter-spacing: 0.08em; }
  .mark { width: 22px; height: 22px; }

  .finale {
    place-items: start center;
    padding: calc(var(--header) + 0.75rem) 0.7rem calc(5.4rem + var(--safe-bottom));
  }

  .finale-card {
    border-radius: 88px 88px 18px 18px;
    padding: 2rem 0.9rem 1rem;
  }

  .finale h2 { font-size: 2.45rem; }
  .finale .lede { font-size: 1.05rem; }
  .howdah { display: none; }

  .summary li {
    grid-template-columns: 1fr;
    gap: 0.12rem;
    padding: 0.55rem 0;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .lede { font-size: 0.98rem; }
  .tickets { margin-top: 0.45rem; }
  .cue { margin-top: 0.45rem; }
  .ceremony img { max-height: 18vh; }
}

@media (max-width: 380px) {
  .names { flex-direction: column; gap: 0; }
  .amp { margin: -0.15rem 0 -0.45rem; }
  .first { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero-pin { position: relative; height: auto; min-height: 100dvh; }
  .chapter,
  .finale { margin-top: 0; }
  .chapter { height: auto; min-height: 100dvh; --enter: 1; }
  .leaf-left,
  .leaf-right,
  .stage,
  .inside,
  .open-door { transition: none; }
  .chapter.is-open { --open: 1; }
  .chapter.is-open .inside { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .chapter.is-open .stage { opacity: 0; transform: none; }
  .chapter-pin,
  .finale {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .finale { --enter: 1; pointer-events: auto; }
  .chapter-pin {
    position: relative;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    opacity: 1;
  }
  .rig { height: min(92dvh, 880px); }
  .garland,
  .side-garland,
  .marquee-track,
  .gold-ring,
  .chapter-elephant,
  .howdah,
  .ceremony img,
  .lights span,
  .diya-row span::before,
  .cue i,
  .petal-field span {
    animation: none !important;
  }
  .petal-field { display: none; }
  .hint { display: none; }
  .card { opacity: 1; transform: none; }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .rig-shift { top: 50%; }
  .rig {
    width: min(100vw, 560px);
    height: auto;
    aspect-ratio: 3 / 4;
  }
}
