:root {
  --ivory: #f6efe1;
  --paper: #fffaf0;
  --forest: #173f32;
  --forest-deep: #0c2b22;
  --wine: #7a2029;
  --gold: #b7852c;
  --gold-pale: #e2c77f;
  --ink: #13251f;
  --muted: #746e61;
  --line: rgba(183, 133, 44, 0.3);
  --shadow-soft: 0 24px 70px rgba(18, 46, 37, 0.12);
  --shadow-lifted: 0 32px 80px rgba(18, 46, 37, 0.2);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-deva: "Tiro Devanagari Hindi", serif;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-sharp: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 180ms;
  --duration-normal: 350ms;
  --duration-slow: 700ms;
  --section-inline: clamp(1.25rem, 5vw, 6rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
}

body.is-locked {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

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

img {
  outline: 1px solid rgba(0, 0, 0, 0.08);
  outline-offset: -1px;
}

::selection {
  background: var(--gold-pale);
  color: var(--forest-deep);
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--paper);
  padding: 0.75rem 1rem;
  text-decoration: none;
  transition: transform var(--duration-fast) ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  z-index: 990;
  inset: 0 0 auto;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--gold-pale));
}

.intro {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: none;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(226, 199, 127, 0.18), transparent 28rem),
    var(--forest-deep);
  color: var(--paper);
  transition-property: opacity, visibility;
  transition-duration: var(--duration-slow);
  transition-timing-function: var(--ease-smooth);
}

.js .intro {
  display: grid;
}

.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro__halo {
  position: absolute;
  width: min(76vw, 42rem);
  aspect-ratio: 1;
  border: 1px solid rgba(226, 199, 127, 0.32);
  border-radius: 50%;
  animation: halo-pulse 4s ease-in-out infinite;
}

.intro__halo::before,
.intro__halo::after {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(226, 199, 127, 0.2);
  border-radius: inherit;
  content: "";
}

.intro__halo::after {
  inset: 18%;
}

.intro__content {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(90vw, 44rem);
  text-align: center;
}

.intro .eyebrow,
.intro h1,
.intro__copy,
.intro .monogram,
.intro .button,
.intro .gesture-hint {
  opacity: 0;
  animation: intro-rise 900ms var(--ease-smooth) forwards;
}

.intro .eyebrow { animation-delay: 100ms; }
.intro .monogram { animation-delay: 200ms; }
.intro h1 { animation-delay: 320ms; }
.intro__copy { animation-delay: 420ms; }
.intro .button { animation-delay: 540ms; }
.intro .gesture-hint { animation-delay: 680ms; }

.monogram {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem 0 1rem;
  color: var(--gold-pale);
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 8rem);
  line-height: 0.8;
}

.monogram i {
  font-size: 0.38em;
  font-weight: 400;
}

.intro h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-wrap: balance;
}

.intro__copy {
  margin: 1rem 0 2.25rem;
  color: rgba(255, 250, 240, 0.68);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  font-style: italic;
}

.signature-tag {
  width: fit-content;
  margin: 0.2rem auto 1.15rem;
  border: 1px solid rgba(226, 199, 127, 0.52);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  color: var(--gold-pale);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.gesture-hint {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
  color: rgba(255, 250, 240, 0.58);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gesture-hint span {
  width: 1.75rem;
  height: 1px;
  background: var(--gold-pale);
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem var(--section-inline);
  color: var(--paper);
  transition-property: background-color, color, box-shadow, padding;
  transition-duration: var(--duration-normal);
  transition-timing-function: var(--ease-smooth);
}

.site-header.is-scrolled {
  padding-block: 0.65rem;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  box-shadow: 0 1px 0 rgba(19, 37, 31, 0.1);
  color: var(--forest-deep);
  backdrop-filter: blur(18px);
}

.header-mark {
  width: max-content;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  text-decoration: none;
}

.header-mark span {
  color: var(--gold);
  font-size: 0.75em;
  font-style: italic;
}

.site-header nav {
  display: flex;
  gap: clamp(1.1rem, 3vw, 2.5rem);
}

.site-header nav a,
.header-rsvp {
  position: relative;
  min-height: 44px;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  content: "";
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.site-header nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-rsvp {
  justify-self: end;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0 1.15rem;
  transition-property: color, background-color, transform;
  transition-duration: var(--duration-fast);
}

.header-rsvp:hover {
  background: currentColor;
  color: var(--forest-deep);
}

.site-header.is-scrolled .header-rsvp:hover {
  background: var(--forest);
  color: var(--paper);
}

.music-toggle {
  position: fixed;
  z-index: 30;
  left: 1.25rem;
  bottom: 1.25rem;
  min-width: 5.6rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid rgba(226, 199, 127, 0.5);
  border-radius: 999px;
  background: rgba(9, 42, 32, 0.9);
  color: var(--paper);
  cursor: pointer;
  box-shadow: 0 0.8rem 2.4rem rgba(6, 24, 19, 0.2);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  transition-property: background-color, border-color, transform;
  transition-duration: var(--duration-fast);
}

.music-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--gold-pale);
  background: var(--forest);
}

.music-toggle__bars {
  height: 1rem;
  display: flex;
  align-items: center;
  gap: 2px;
}

.music-toggle__bars i {
  width: 2px;
  height: 0.32rem;
  border-radius: 99px;
  background: var(--gold-pale);
  transform-origin: center;
}

.music-toggle.is-playing .music-toggle__bars i {
  animation: music-bar 700ms ease-in-out infinite alternate;
}

.music-toggle.is-playing .music-toggle__bars i:nth-child(2) { animation-delay: -360ms; }
.music-toggle.is-playing .music-toggle__bars i:nth-child(3) { animation-delay: -180ms; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--paper);
  isolation: isolate;
}

.hero__media,
.hero__veil,
.hero__frame {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -3;
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.05);
}

.hero__media img,
.story__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media img {
  object-position: center 58%;
}

.hero__veil {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(9, 32, 25, 0.66), rgba(9, 32, 25, 0.08) 44%, rgba(9, 32, 25, 0.7)),
    linear-gradient(90deg, rgba(9, 32, 25, 0.42), transparent 35%, transparent 65%, rgba(9, 32, 25, 0.3));
}

.hero__frame {
  z-index: 0;
  margin: clamp(0.8rem, 2.2vw, 2rem);
  border: 1px solid rgba(226, 199, 127, 0.65);
  pointer-events: none;
}

.hero__frame::before,
.hero__frame::after {
  position: absolute;
  width: 5.5rem;
  height: 5.5rem;
  border-color: var(--gold-pale);
  content: "";
}

.hero__frame::before {
  top: -1px;
  left: -1px;
  border-top: 4px solid;
  border-left: 4px solid;
}

.hero__frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 4px solid;
  border-bottom: 4px solid;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  padding: 6rem 1.25rem 9rem;
  text-align: center;
}

.hero__blessing {
  margin: 0 0 1.25rem;
  color: rgba(255, 250, 240, 0.78);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.3vw, 1.45rem);
  font-style: italic;
}

.hero__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.68;
  text-shadow: 0 12px 38px rgba(0, 0, 0, 0.2);
}

.hero__names i {
  margin: 0.5rem 0 0.3rem;
  color: var(--gold-pale);
  font-size: 0.22em;
  font-weight: 400;
  letter-spacing: 0;
}

.hero__date {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.5rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.hero__date span {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__date strong {
  padding: 0 1.1rem;
  border-right: 1px solid rgba(226, 199, 127, 0.72);
  border-left: 1px solid rgba(226, 199, 127, 0.72);
  color: var(--gold-pale);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 500;
}

.hero__place {
  margin-top: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__hashtag {
  width: fit-content;
  margin: 1rem auto 0;
  border: 1px solid rgba(226, 199, 127, 0.46);
  border-radius: 999px;
  padding: 0.38rem 0.82rem;
  color: var(--gold-pale);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.inline-tag {
  color: var(--wine);
  font-weight: 700;
}

.hero__scroll {
  position: absolute;
  z-index: 2;
  bottom: 2rem;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  transform: translateX(-50%);
  color: var(--paper);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero__scroll i {
  width: 1px;
  height: 2.7rem;
  overflow: hidden;
  background: rgba(255, 250, 240, 0.32);
}

.hero__scroll i::after {
  display: block;
  width: 100%;
  height: 50%;
  background: var(--gold-pale);
  content: "";
  animation: scroll-line 1.8s var(--ease-smooth) infinite;
}

.celebrate-button {
  position: absolute;
  z-index: 4;
  right: 1.2rem;
  bottom: 1.5rem;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: rgba(255, 250, 240, 0.56);
  cursor: pointer;
  font-size: 0.57rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.petal {
  position: fixed;
  z-index: 998;
  top: -2rem;
  left: var(--left, 50vw);
  width: 0.75rem;
  height: 1.15rem;
  border-radius: 70% 30% 65% 35%;
  background: var(--gold-pale);
  pointer-events: none;
  animation: petal-fall var(--duration, 4s) var(--delay, 0ms) linear forwards;
}

.blessing-band {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper);
  padding: 1.1rem 0;
}

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

.marquee span {
  padding-right: 4rem;
  color: var(--wine);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-style: italic;
  white-space: nowrap;
}

.section {
  padding: clamp(5rem, 11vw, 10rem) var(--section-inline);
}

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

.story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(22rem, 1.15fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  overflow: hidden;
}

.story::before {
  position: absolute;
  z-index: -1;
  top: 12%;
  right: -12rem;
  width: 32rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.story__copy h2,
.section-heading h2,
.countdown h2,
.venue h2,
.rsvp h2 {
  margin: 0.7rem 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.93;
  text-wrap: balance;
}

.story__copy > p:not(.eyebrow) {
  max-width: 40rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.blessing-note {
  display: grid;
  gap: 0.3rem;
  margin-top: 2.5rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold);
}

.blessing-note span {
  color: var(--muted);
  font-size: 0.75rem;
}

.blessing-note strong {
  color: var(--wine);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.story__portrait {
  position: relative;
  margin: 0;
  padding: 0.8rem;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transform-style: preserve-3d;
}

.story__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  transform: translate3d(0, var(--parallax-y, 0), 0);
}

.story__image img {
  transform: scale(1.07);
}

.story__portrait figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0.4rem 0.2rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-style: italic;
}

.story__portrait figcaption b {
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.67rem;
  font-style: normal;
  letter-spacing: 0.14em;
}

.story__script {
  position: absolute;
  right: 4vw;
  bottom: 4rem;
  margin: 0;
  transform: rotate(-5deg);
  color: var(--wine);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
}

.countdown {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--paper);
  text-align: center;
}

.countdown::before {
  position: absolute;
  inset: 1.25rem;
  border: 1px solid rgba(226, 199, 127, 0.35);
  content: "";
  pointer-events: none;
}

.countdown__ornament {
  margin-bottom: 1.5rem;
  color: var(--gold-pale);
  font-size: 1.5rem;
}

.countdown h2 {
  font-size: clamp(2.7rem, 6vw, 5rem);
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 62rem);
  margin: 3rem auto 0;
}

.countdown__grid div {
  display: grid;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  border-right: 1px solid rgba(226, 199, 127, 0.28);
}

.countdown__grid div:last-child {
  border-right: 0;
}

.countdown__grid strong {
  color: var(--gold-pale);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown__grid span {
  color: rgba(255, 250, 240, 0.62);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.events {
  background: var(--paper);
}

.section-heading {
  max-width: 57rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.section-heading > p:last-child {
  color: var(--muted);
}

.event-card {
  position: relative;
  display: grid;
  grid-template-columns: 12rem 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 78rem;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--ivory);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  box-shadow: 0 1px 0 rgba(19, 37, 31, 0.04);
  transform-style: preserve-3d;
  transition-property: transform, box-shadow, border-color;
  transition-duration: var(--duration-normal);
  transition-timing-function: var(--ease-smooth);
}

.event-card:hover {
  border-color: rgba(183, 133, 44, 0.6);
  box-shadow: var(--shadow-lifted);
}

.event-card--dark {
  background: var(--forest-deep);
  color: var(--paper);
}

.event-card__date {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-right: 1px solid var(--line);
}

.event-card__date strong {
  color: var(--wine);
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 500;
  line-height: 0.8;
}

.event-card--dark .event-card__date strong {
  color: var(--gold-pale);
}

.event-card__date span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.45;
}

.event-card--dark .event-card__date span {
  color: rgba(255, 250, 240, 0.55);
}

.event-card h3 {
  margin: 0.3rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
}

.event-card ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-card li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 30rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(116, 110, 97, 0.35);
  color: var(--muted);
}

.event-card--dark li {
  color: rgba(255, 250, 240, 0.7);
}

.event-card time {
  color: inherit;
  font-variant-numeric: tabular-nums;
}

.icon-button {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  transition-property: color, background-color, transform, border-color;
  transition-duration: var(--duration-fast);
}

.icon-button:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--forest-deep);
}

.icon-button svg,
.button svg {
  width: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery {
  overflow: hidden;
}

.gallery__rail {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.5rem);
  overflow-x: auto;
  padding: 1rem var(--section-inline) 2rem;
  margin-inline: calc(var(--section-inline) * -1);
  cursor: grab;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery__rail::-webkit-scrollbar {
  display: none;
}

.gallery__rail.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.gallery-card {
  position: relative;
  flex: 0 0 clamp(18rem, 42vw, 37rem);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 0;
  border-radius: 0.75rem;
  background: var(--forest);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  scroll-snap-align: center;
  transition-property: transform, box-shadow;
  transition-duration: var(--duration-normal);
  transition-timing-function: var(--ease-smooth);
}

.gallery-card--tall {
  aspect-ratio: 3 / 4;
}

.gallery-card:hover {
  transform: translateY(-0.6rem) rotate(-0.6deg);
  box-shadow: var(--shadow-lifted);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-smooth), filter var(--duration-normal) ease-out;
}

.gallery-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.07);
}

.gallery-card span {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-style: italic;
  text-align: left;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.gallery__progress {
  width: min(18rem, 70vw);
  height: 2px;
  margin: 1.5rem auto 0;
  overflow: hidden;
  background: var(--line);
}

.gallery__progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0.34);
  transform-origin: left;
  background: var(--wine);
}

.venue {
  display: grid;
  grid-template-columns: minmax(20rem, 1fr) minmax(18rem, 0.8fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
}

.venue__map {
  position: relative;
  min-height: 36rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50% 50% 0 0;
  background:
    linear-gradient(33deg, transparent 47%, rgba(183, 133, 44, 0.16) 48%, rgba(183, 133, 44, 0.16) 49%, transparent 50%),
    linear-gradient(-28deg, transparent 43%, rgba(183, 133, 44, 0.12) 44%, rgba(183, 133, 44, 0.12) 46%, transparent 47%),
    var(--paper);
}

.map-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(22rem, 64vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.map-rings i {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: map-pulse 3.5s ease-out infinite;
}

.map-rings i:nth-child(2) { animation-delay: 1.1s; }
.map-rings i:nth-child(3) { animation-delay: 2.2s; }

.map-rings span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold-pale);
  font-size: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.map-label {
  position: absolute;
  border-radius: 999px;
  background: var(--ivory);
  padding: 0.6rem 0.9rem;
  box-shadow: 0 8px 24px rgba(19, 37, 31, 0.08);
  color: var(--forest);
  font-size: 0.7rem;
}

.map-label--one { top: 24%; left: 9%; }
.map-label--two { right: 7%; bottom: 22%; }

.venue address {
  margin-bottom: 2rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  font-style: normal;
  line-height: 1.45;
}

.button {
  width: max-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.78rem 1.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition-property: color, background-color, border-color, box-shadow, transform;
  transition-duration: var(--duration-fast);
  transition-timing-function: ease-out;
}

.button:active,
.icon-button:active {
  transform: scale(0.96);
}

.button--gold {
  background: var(--gold);
  color: var(--forest-deep);
  box-shadow: 0 14px 40px rgba(183, 133, 44, 0.2);
}

.button--gold:hover {
  background: var(--gold-pale);
  box-shadow: 0 18px 48px rgba(183, 133, 44, 0.32);
}

.button--outline {
  border-color: var(--forest);
  color: var(--forest);
}

.button--outline:hover {
  background: var(--forest);
  color: var(--paper);
}

.button--light {
  border-color: rgba(255, 250, 240, 0.52);
  color: var(--paper);
}

.button--light:hover {
  background: var(--paper);
  color: var(--forest-deep);
}

.rsvp {
  position: relative;
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--paper);
  text-align: center;
}

.rsvp::before,
.rsvp::after {
  position: absolute;
  width: 30rem;
  aspect-ratio: 1;
  border: 1px solid rgba(226, 199, 127, 0.14);
  border-radius: 50%;
  content: "";
}

.rsvp::before { top: -19rem; left: -10rem; }
.rsvp::after { right: -12rem; bottom: -21rem; }

.rsvp__ornament {
  color: rgba(226, 199, 127, 0.58);
  font-family: var(--font-display);
  font-size: clamp(7rem, 20vw, 15rem);
  line-height: 0.7;
}

.rsvp__ornament span {
  font-size: 0.45em;
  font-style: italic;
}

.rsvp h2 {
  max-width: 60rem;
  margin-inline: auto;
}

.rsvp__hindi {
  margin: 1rem 0 2rem;
  color: var(--gold-pale);
  font-family: var(--font-deva);
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
}

.rsvp__hashtag {
  width: fit-content;
  margin: 1rem auto 1.5rem;
  border-block: 1px solid rgba(226, 199, 127, 0.5);
  padding: 0.48rem 1.4rem;
  color: var(--gold-pale);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.rsvp__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem var(--section-inline);
  background: #071d17;
  color: rgba(255, 250, 240, 0.64);
  font-size: 0.68rem;
}

footer p {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

footer p span {
  color: var(--gold);
}

footer a {
  min-height: 44px;
  display: grid;
  align-items: center;
  text-decoration: none;
}

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  background: rgba(6, 24, 19, 0.94);
  color: var(--paper);
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  transition: opacity var(--duration-fast) ease-out;
}

.lightbox[open] {
  display: grid;
  opacity: 1;
}

.lightbox::backdrop {
  background: rgba(6, 24, 19, 0.72);
}

.lightbox {
  grid-template-columns: auto minmax(0, 1fr) auto;
  place-items: center;
  gap: 1rem;
}

.lightbox figure {
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-width: min(74rem, 80vw);
  max-height: 88vh;
  margin: 0;
}

.lightbox img {
  max-height: 78vh;
  border-radius: 0.6rem;
  object-fit: contain;
}

.lightbox figcaption {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
}

.lightbox__close,
.lightbox__nav {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 250, 240, 0.36);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.08);
  color: var(--paper);
  cursor: pointer;
  font-size: 1.3rem;
  transition-property: background-color, transform;
  transition-duration: var(--duration-fast);
}

.lightbox__close {
  position: absolute;
  z-index: 2;
  top: 1.2rem;
  right: 1.2rem;
}

.lightbox__nav:hover,
.lightbox__close:hover {
  transform: scale(1.05);
  background: var(--gold);
}

.toast {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  transform: translateY(calc(100% + 2rem));
  border: 1px solid rgba(226, 199, 127, 0.3);
  border-radius: 999px;
  background: var(--forest-deep);
  padding: 0.8rem 1rem;
  color: var(--paper);
  box-shadow: var(--shadow-lifted);
  font-size: 0.72rem;
  opacity: 0;
  transition-property: transform, opacity;
  transition-duration: var(--duration-normal);
  transition-timing-function: var(--ease-smooth);
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cursor-orbit {
  position: fixed;
  z-index: 997;
  top: 0;
  left: 0;
  width: 2rem;
  height: 2rem;
  transform: translate3d(-100px, -100px, 0);
  border: 1px solid rgba(183, 133, 44, 0.72);
  border-radius: 50%;
  pointer-events: none;
  transition-property: width, height, border-color, background-color;
  transition-duration: var(--duration-fast);
}

.cursor-orbit span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--gold);
}

.cursor-orbit.is-hovering {
  width: 3.5rem;
  height: 3.5rem;
  border-color: var(--gold);
  background: rgba(183, 133, 44, 0.08);
}

.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  filter: blur(4px);
  transition-property: opacity, transform, filter;
  transition-duration: var(--duration-slow);
  transition-timing-function: var(--ease-smooth);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes intro-rise {
  from { opacity: 0; transform: translateY(1.25rem); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes halo-pulse {
  0%, 100% { transform: scale(0.94); opacity: 0.55; }
  50% { transform: scale(1.03); opacity: 1; }
}

@keyframes scroll-line {
  from { transform: translateY(-110%); }
  to { transform: translateY(220%); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes map-pulse {
  0% { transform: scale(0.25); opacity: 0; }
  25% { opacity: 0.8; }
  100% { transform: scale(1); opacity: 0; }
}

@keyframes petal-fall {
  to {
    transform: translate3d(var(--drift, 2rem), calc(100vh + 4rem), 0) rotate(720deg);
    opacity: 0.2;
  }
}

@keyframes music-bar {
  from { transform: scaleY(0.65); }
  to { transform: scaleY(2.3); }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .story,
  .venue {
    grid-template-columns: 1fr;
  }

  .story__portrait {
    width: min(100%, 38rem);
    justify-self: end;
  }

  .story__script {
    position: static;
    grid-column: 1;
    transform: rotate(-2deg);
  }

  .event-card {
    grid-template-columns: 8rem 1fr auto;
  }

  .venue__map {
    min-height: 30rem;
  }
}

@media (max-width: 620px) {
  .section {
    padding-block: 4.75rem;
  }

  .site-header {
    padding-inline: 1.15rem;
  }

  .music-toggle {
    left: 0.75rem;
    bottom: 0.75rem;
  }

  .hero__content {
    padding-top: 8rem;
  }

  .hero__names {
    font-size: clamp(4.4rem, 25vw, 7rem);
    line-height: 0.78;
  }

  .hero__date {
    gap: 0.55rem;
  }

  .hero__date strong {
    padding-inline: 0.7rem;
  }

  .celebrate-button {
    right: 50%;
    bottom: 4.5rem;
    transform: translateX(50%);
  }

  .story__copy h2,
  .section-heading h2,
  .countdown h2,
  .venue h2,
  .rsvp h2 {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

  .countdown__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem 0;
  }

  .countdown__grid div:nth-child(2) {
    border-right: 0;
  }

  .event-card {
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
    border-radius: 1rem;
  }

  .event-card__date {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.1rem;
  }

  .event-card__body {
    min-width: 0;
  }

  .event-card li {
    font-size: 0.78rem;
  }

  .gallery-card {
    flex-basis: 78vw;
  }

  .venue__map {
    min-height: 25rem;
  }

  .lightbox {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .lightbox__nav {
    position: absolute;
    bottom: 1.3rem;
  }

  .lightbox__nav--prev { left: calc(50% - 4rem); }
  .lightbox__nav--next { right: calc(50% - 4rem); }

  .rsvp__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rsvp__actions .button {
    width: 100%;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }

  .cursor-orbit {
    display: none;
  }
}

@media (hover: none) {
  .cursor-orbit {
    display: none;
  }

  .gallery-card:hover,
  .event-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .js .reveal,
  .js .reveal.is-visible {
    transform: none;
    filter: none;
    transition: opacity 150ms ease-out;
  }

  .parallax-media,
  .tilt-card,
  .magnetic {
    transform: none !important;
  }
}
