:root {
  --ivory: #fbf5e9;
  --porcelain: #fffdf8;
  --champagne: #d7b36c;
  --antique-gold: #a77a31;
  --emerald: #213c35;
  --pine: #102823;
  --wine: #7b2639;
  --ink: #1b1712;
  --muted: #776d5f;
  --line: rgba(167, 122, 49, 0.28);
  --shadow: 0 24px 80px rgba(16, 40, 35, 0.18);
  color-scheme: light;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(215, 179, 108, 0.18), transparent 32rem),
    linear-gradient(180deg, #fbf5e9 0%, #f5ead9 44%, #fbf5e9 100%);
  color: var(--ink);
}

body.is-revealing {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(167, 122, 49, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 122, 49, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a {
  color: inherit;
}

main {
  background: var(--emerald);
}

button,
input,
select,
textarea {
  font: inherit;
}

.reveal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  background: #063a29;
  cursor: pointer;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  perspective: 1200px;
}

.reveal::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 48%, transparent 0 16rem, rgba(0, 0, 0, 0.22) 100%);
  content: "";
  pointer-events: none;
}

.reveal::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 38%, rgba(0, 0, 0, 0.2));
  content: "";
  pointer-events: none;
}

.reveal.is-opening {
  pointer-events: none;
  background: transparent;
}

.reveal.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.welcome-envelope-scene {
  position: absolute;
  inset: 0;
  background-image: url("assets/welcome-envelope.png");
  background-repeat: no-repeat;
  background-size: cover;
}

.welcome-envelope-scene {
  z-index: 0;
  background-position: center;
  filter: brightness(1.02) contrast(1.04) saturate(1.02);
  transform: scale(1.01);
  transition: opacity 1.15s ease, transform 1.15s ease, filter 1.15s ease;
}

.welcome-opening-light {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 48% 49%, rgba(255, 237, 184, 0.86), rgba(255, 237, 184, 0.28) 12rem, transparent 26rem),
    linear-gradient(180deg, rgba(255, 253, 248, 0.1), transparent);
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.72s ease, transform 0.96s ease;
  pointer-events: none;
}

.reveal.is-opening .welcome-envelope-scene {
  opacity: 0;
  filter: brightness(1.45) blur(2px);
  transform: scale(2.15) translate(1%, -1%);
}

.reveal.is-opening .welcome-opening-light {
  opacity: 1;
  transform: scale(1.35);
}

.welcome-seal-hotspot {
  position: absolute;
  top: 49.5%;
  left: 49.4%;
  z-index: 5;
  width: clamp(8.4rem, 34vw, 12rem);
  height: clamp(8.4rem, 34vw, 12rem);
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.welcome-seal-hotspot::after {
  position: absolute;
  inset: -0.45rem;
  border: 1px solid rgba(255, 232, 173, 0.28);
  border-radius: inherit;
  content: "";
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.welcome-seal-hotspot:hover::after,
.welcome-seal-hotspot:focus-visible::after {
  opacity: 1;
  transform: scale(1.04);
}

.seal-button {
  position: absolute;
  top: 51.2%;
  left: 50%;
  z-index: 4;
  display: grid;
  width: clamp(8.25rem, 34vw, 11rem);
  height: clamp(8.25rem, 34vw, 11rem);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 252, 244, 0.86);
  cursor: pointer;
  outline: none;
  transform: translate(-50%, -50%);
  touch-action: manipulation;
}

.seal-button::before,
.seal-button::after {
  position: absolute;
  inset: 9%;
  border-radius: inherit;
  content: "";
}

.seal-button::before {
  border: 1px solid rgba(255, 245, 214, 0.42);
  box-shadow:
    0 0 0 10px rgba(215, 179, 108, 0.08),
    0 18px 42px rgba(55, 38, 18, 0.28);
  animation: sealPulse 2.5s ease-in-out infinite;
}

.seal-button::after {
  inset: -28%;
  background: radial-gradient(circle, rgba(255, 247, 224, 0.18), transparent 62%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.seal-button:hover::after,
.seal-button:focus-visible::after {
  opacity: 1;
}

.seal-button span {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  width: min(16rem, 80vw);
  color: rgba(33, 60, 53, 0.72);
  font-family: "Montserrat", sans-serif;
  font-size: 0.66rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.7);
}

.language-control {
  position: relative;
  z-index: 5;
}

.paper-lift {
  position: absolute;
  left: 50%;
  bottom: 8%;
  z-index: 3;
  display: grid;
  justify-items: center;
  width: min(24rem, 76vw);
  min-height: 13rem;
  padding: 3rem 2rem;
  border: 1px solid rgba(167, 122, 49, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(249, 239, 219, 0.96)),
    var(--ivory);
  box-shadow: 0 18px 70px rgba(24, 31, 25, 0.24);
  opacity: 0;
  transform: translate(-50%, 44%) rotateX(72deg) scale(0.86);
  transform-origin: center bottom;
}

.paper-lift small {
  color: var(--antique-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.paper-lift strong {
  margin-top: 0.7rem;
  color: var(--emerald);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 11vw, 5rem);
  font-weight: 600;
  line-height: 0.95;
}

.reveal.is-opening .seal-button {
  animation: stampRelease 0.75s ease forwards;
}

.site-controls {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.site-controls {
  opacity: 0;
  bottom: max(5.25rem, calc(env(safe-area-inset-bottom) + 5.25rem));
  transform: translateY(0.75rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

body.intro-complete .site-controls {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.circle-control {
  display: grid;
  width: 2.9rem;
  height: 2.9rem;
  place-items: center;
  border: 1px solid rgba(215, 179, 108, 0.46);
  border-radius: 999px;
  background: rgba(255, 251, 242, 0.86);
  box-shadow: 0 12px 34px rgba(27, 23, 18, 0.16);
  color: var(--emerald);
  cursor: pointer;
  backdrop-filter: blur(18px);
}

.audio-toggle.is-muted::after {
  position: absolute;
  width: 1.35rem;
  height: 2px;
  background: currentColor;
  content: "";
  transform: rotate(-42deg);
}

.youtube-audio {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  inset: auto auto 0 0;
}

.back-top-control {
  position: relative;
  display: inline-flex;
  width: 2.9rem;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(215, 179, 108, 0.46);
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 251, 242, 0.9);
  box-shadow: 0 12px 34px rgba(27, 23, 18, 0.16);
  color: var(--emerald);
  cursor: pointer;
  backdrop-filter: blur(18px);
}

.floating-language-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.65rem);
  display: flex;
  gap: 0.35rem;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(215, 179, 108, 0.36);
  border-radius: 999px;
  padding: 0.28rem;
  background: rgba(255, 251, 242, 0.94);
  box-shadow: 0 20px 58px rgba(27, 23, 18, 0.2);
  backdrop-filter: blur(18px);
}

.floating-language-menu[hidden] {
  display: none;
}

.floating-language-menu button {
  border: 0;
  min-width: 2.65rem;
  height: 2.2rem;
  border-radius: 999px;
  padding: 0 0.65rem;
  background: transparent;
  color: var(--emerald);
  font-family: "Montserrat", sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
  cursor: pointer;
}

.floating-language-menu button:last-child {
  border-bottom: 0;
}

.floating-language-menu button:hover,
.floating-language-menu button.active {
  background: rgba(215, 179, 108, 0.2);
  color: var(--antique-gold);
}

.control-icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.topbar {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  left: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(24rem, calc(100vw - 2rem));
  padding: 0.55rem 1.2rem;
  border: 1px solid rgba(215, 179, 108, 0.28);
  border-radius: 999px;
  background: rgba(255, 251, 242, 0.7);
  box-shadow: 0 18px 54px rgba(25, 34, 28, 0.12);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -0.8rem);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.show-topbar .topbar {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.topbar-signature {
  color: var(--emerald);
  font-family: "Mea Culpa", "Cormorant Garamond", cursive;
  font-size: clamp(2.6rem, 8vw, 3.55rem);
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  text-shadow: rgba(215, 179, 108, 0.18) 0 1px 5px;
  opacity: 1;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: end center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-vignette,
.location-media {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  background: url("assets/hero-societe-building.png") center / cover no-repeat;
}

.hero-vignette {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 244, 216, 0.18), transparent 22rem),
    linear-gradient(180deg, rgba(9, 24, 21, 0.22), rgba(9, 24, 21, 0.42) 52%, rgba(9, 24, 21, 0.9));
}

.hero-content {
  width: min(58rem, calc(100vw - 2rem));
  padding: 9rem 0 9.2rem;
  color: var(--porcelain);
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--champagne);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.location-content .eyebrow {
  margin-bottom: 1.45rem;
}

.hero h1 {
  margin: 0;
  font-family: "Mea Culpa", "Cormorant Garamond", cursive;
  font-size: clamp(5rem, 19vw, 11rem);
  font-weight: 400;
  line-height: 0.82;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
}

.hero-copy {
  width: min(42rem, 100%);
  margin: 2rem auto 0;
  color: rgba(255, 253, 246, 0.86);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
}

.hero-actions,
.location-content .gold-button {
  margin-top: 2rem;
}

.gallery-copy .gold-button {
  margin-top: 2.45rem;
}

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

.gold-button,
.plain-button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.gold-button {
  border: 1px solid rgba(255, 236, 185, 0.8);
  background: linear-gradient(135deg, #f0d188, #a97828 48%, #f1d992);
  color: #21170b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 18px 42px rgba(97, 57, 13, 0.28);
}

.plain-button {
  border: 1px solid rgba(255, 247, 224, 0.42);
  background: rgba(255, 251, 242, 0.1);
  color: var(--porcelain);
  backdrop-filter: blur(14px);
}

.date-ribbon {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(52rem, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid rgba(215, 179, 108, 0.38);
  border-radius: 999px;
  background: rgba(13, 32, 28, 0.72);
  color: var(--ivory);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.date-ribbon span {
  min-width: 0;
  padding: 0.95rem 0.5rem;
  border-right: 1px solid rgba(215, 179, 108, 0.22);
  font-size: clamp(0.68rem, 2.4vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.date-ribbon span:last-child {
  border-right: 0;
}

.countdown-section,
.details-section,
.rsvp-section,
.gallery-section,
.location-section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) max(1rem, calc((100vw - 72rem) / 2));
}

.ring-accent {
  position: absolute;
  z-index: 0;
  width: clamp(5.8rem, 13vw, 9rem);
  height: clamp(4.7rem, 10vw, 7.2rem);
  color: rgba(167, 122, 49, 0.72);
  opacity: 0.78;
  pointer-events: none;
}

.ring-accent span {
  position: absolute;
  bottom: 0.4rem;
  width: 58%;
  aspect-ratio: 1;
  border: 3px solid currentColor;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 245, 214, 0.58),
    inset 0 -8px 18px rgba(167, 122, 49, 0.12),
    0 16px 36px rgba(33, 60, 53, 0.12);
}

.ring-accent span:first-child {
  left: 11%;
  transform: rotate(-14deg);
}

.ring-accent span:last-child {
  right: 11%;
  transform: rotate(14deg);
}

.ring-accent::before,
.ring-accent::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.ring-accent::before {
  top: 0.12rem;
  left: 50%;
  width: 1.22rem;
  height: 1.22rem;
  border: 2px solid rgba(167, 122, 49, 0.72);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(215, 179, 108, 0.36));
  box-shadow: 0 8px 18px rgba(167, 122, 49, 0.2);
  transform: translateX(-50%) rotate(45deg);
}

.ring-accent::after {
  top: 50%;
  left: 50%;
  width: min(30rem, 70vw);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(167, 122, 49, 0.44), transparent);
  box-shadow:
    0 1px 0 rgba(255, 253, 248, 0.65),
    0 0 18px rgba(215, 179, 108, 0.28);
  transform: translate(-50%, -50%);
}

.ring-accent-countdown {
  right: auto;
  bottom: -3.55rem;
  left: 50%;
  z-index: 9;
  opacity: 0.9;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 239, 227, 0.98) 0 48%, rgba(245, 239, 227, 0.72) 64%, transparent 72%);
  filter: drop-shadow(0 16px 34px rgba(16, 40, 35, 0.16));
  transform: translateX(-50%);
}

.ring-accent-details {
  display: none;
  top: clamp(1.6rem, 4vw, 3.2rem);
  left: max(1rem, calc((100vw - 72rem) / 2 + 1rem));
  color: rgba(91, 97, 67, 0.35);
}

.section-heading,
.statement {
  width: min(42rem, 100%);
  margin: 0 auto 2.2rem;
  text-align: center;
}

.countdown-section {
  z-index: 1;
  overflow: visible;
  background:
    radial-gradient(circle at 18% 12%, rgba(215, 179, 108, 0.16), transparent 22rem),
    radial-gradient(circle at 82% 84%, rgba(251, 245, 233, 0.08), transparent 18rem),
    linear-gradient(135deg, #0d2f25 0%, #123f33 48%, #0b261f 100%);
  color: var(--ivory);
}

.countdown-section .section-heading h2 {
  color: var(--ivory);
  text-shadow: rgba(0, 0, 0, 0.24) 0 2px 12px;
}

.countdown-section .section-heading::before {
  display: block;
  width: min(17rem, 58vw);
  height: min(5.8rem, 19vw);
  margin: 0 auto 0.45rem;
  background: url("assets/countdown-ribbon.png") center / contain no-repeat;
  content: "";
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.2));
  opacity: 0.98;
}

.countdown-section .eyebrow {
  color: var(--champagne);
}

.countdown-section .countdown strong {
  color: var(--ivory);
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.countdown-section .countdown span {
  color: rgba(251, 245, 233, 0.72);
}

.section-heading h2,
.statement h2,
.rsvp-intro h2,
.location-content h2 {
  margin: 0;
  color: rgb(91, 97, 67);
  font-family: "Great Vibes", "Cormorant Garamond", serif;
  font-size: clamp(2.9rem, 8vw, 5.4rem);
  font-weight: 400;
  line-height: 0.88;
  text-shadow: rgba(255, 255, 255, 0.45) 0 1px 0;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(58rem, 100%);
  margin: 0 auto;
}

.countdown div {
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.6rem) 0.55rem;
  text-align: center;
}

.countdown strong {
  display: block;
  color: var(--emerald);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 8vw, 5.4rem);
  font-weight: 600;
  line-height: 0.85;
}

.countdown span {
  display: block;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.details-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(91, 97, 67, 0.1), transparent 18rem),
    radial-gradient(circle at 88% 76%, rgba(167, 122, 49, 0.1), transparent 20rem),
    linear-gradient(180deg, #ebe8dc, #f5efe3);
  color: var(--emerald);
}

.details-section {
  border-top-left-radius: clamp(3.5rem, 12vw, 8rem);
  border-top-right-radius: clamp(3.5rem, 12vw, 8rem);
  margin-top: -0.1rem;
  box-shadow: 0 -4rem 0 var(--emerald);
}

.details-section > * {
  position: relative;
  z-index: 1;
}

.details-section::before {
  position: absolute;
  top: 0.7rem;
  left: -2.6rem;
  width: min(24rem, 55vw);
  aspect-ratio: 1.68;
  background: url("assets/details-corner-floral.png") left top / contain no-repeat;
  content: "";
  opacity: 0.9;
  pointer-events: none;
}

.details-section::after {
  position: absolute;
  right: -2.6rem;
  bottom: 0.8rem;
  width: min(22rem, 52vw);
  aspect-ratio: 1.68;
  background: url("assets/details-corner-floral.png") left top / contain no-repeat;
  content: "";
  opacity: 0.72;
  pointer-events: none;
  transform: scale(-1);
}

.details-ornament {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: min(22rem, 70vw);
  margin: -2.65rem auto 1.75rem;
  color: rgba(91, 97, 67, 0.68);
}

.details-ornament span {
  flex: 1;
  height: 1px;
  background: rgba(91, 97, 67, 0.22);
}

.details-ornament i {
  width: 0.58rem;
  height: 0.58rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  box-shadow: 0 0 0 0.32rem rgba(215, 179, 108, 0.08);
}

.details-ornament > i {
  display: none;
}

.engagement-rings {
  position: relative;
  width: 4.9rem;
  height: 2.65rem;
  color: rgba(167, 122, 49, 0.78);
}

.engagement-rings i {
  position: absolute;
  bottom: 0.06rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: rgba(245, 239, 227, 0.2);
  box-shadow:
    inset 0 0 0 1px rgba(255, 253, 248, 0.72),
    0 8px 18px rgba(33, 60, 53, 0.08);
}

.engagement-rings i:first-child {
  left: 0.65rem;
  transform: rotate(-12deg);
}

.engagement-rings i:last-child {
  right: 0.65rem;
  transform: rotate(12deg);
}

.engagement-rings::before {
  position: absolute;
  top: 0.1rem;
  left: 50%;
  width: 0.86rem;
  height: 0.86rem;
  border: 1px solid rgba(167, 122, 49, 0.76);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(215, 179, 108, 0.38));
  box-shadow: 0 6px 14px rgba(167, 122, 49, 0.2);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.details-section .statement h2,
.details-section .statement p {
  color: var(--emerald);
}

.details-section .statement h2 {
  font-size: clamp(2.65rem, 7.2vw, 4.8rem);
}

.details-section .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
}

.statement p {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.detail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: min(30rem, 100%);
  margin: clamp(1.55rem, 4vw, 2.7rem) auto 0;
  background: transparent;
}

.detail-grid article {
  position: relative;
  min-width: 0;
  padding: 0.45rem 0 1.25rem 3.55rem;
  border-bottom: 1px solid rgba(91, 97, 67, 0.12);
  background: transparent;
}

.detail-grid article::before {
  position: absolute;
  top: 1rem;
  left: 1.05rem;
  width: 1px;
  height: calc(100% + 0.1rem);
  background: rgba(91, 97, 67, 0.24);
  content: "";
}

.detail-grid article:last-child {
  border-bottom: 0;
}

.detail-grid article:last-child::before {
  height: 2.2rem;
}

.detail-grid span {
  position: absolute;
  top: 0.55rem;
  left: 0;
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 1px solid rgba(91, 97, 67, 0.22);
  border-radius: 999px;
  background: #f5efe3;
  color: var(--emerald);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.detail-grid span::after {
  position: absolute;
  inset: 0.45rem;
  border-radius: inherit;
  background: rgba(215, 179, 108, 0.22);
  content: "";
  z-index: -1;
}

.detail-grid h3 {
  margin: 0 0 0.35rem;
  color: var(--emerald);
  font-family: "Great Vibes", "Cormorant Garamond", serif;
  font-size: 2.45rem;
  font-weight: 400;
  line-height: 0.9;
  text-shadow: rgba(255, 255, 255, 0.45) 0 1px 0;
}

.detail-grid p {
  margin: 0;
  color: rgba(27, 23, 18, 0.62);
  font-size: 1rem;
  line-height: 1.6;
}

.detail-map-link {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.9rem;
  border: 1px solid rgba(167, 122, 49, 0.42);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: rgba(255, 253, 248, 0.62);
  color: var(--emerald);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(33, 60, 53, 0.08);
}

.rsvp-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 100%, rgba(91, 97, 67, 0.12), transparent 18rem),
    linear-gradient(180deg, #ebe8dc, #f4eadc);
}

.rsvp-shell {
  position: relative;
  display: grid;
  width: min(46rem, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.6rem) clamp(1rem, 4vw, 3.4rem) clamp(6.8rem, 12vw, 8.4rem);
  border: 1px solid rgba(91, 97, 67, 0.22);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.84), rgba(245, 239, 227, 0.78)),
    rgba(255, 253, 248, 0.74);
  box-shadow: 0 28px 90px rgba(16, 40, 35, 0.14);
  text-align: center;
}

.rsvp-shell::after {
  position: absolute;
  left: 50%;
  bottom: -4.1rem;
  width: min(36rem, 92vw);
  height: 13rem;
  background: url("assets/rsvp-flowers.png") center bottom / contain no-repeat;
  content: "";
  filter: drop-shadow(0 18px 30px rgba(91, 97, 67, 0.16));
  opacity: 0.96;
  transform: translateX(-50%);
  pointer-events: none;
}

.rsvp-intro {
  position: relative;
  top: auto;
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--emerald);
}

.rsvp-intro h2 {
  color: rgb(91, 97, 67);
  font-size: clamp(3rem, 8.8vw, 5.6rem);
}

.rsvp-intro p:last-child {
  width: min(30rem, 100%);
  margin: 1rem auto 0;
  color: rgba(91, 97, 67, 0.76);
  font-size: 1rem;
  line-height: 1.75;
}

.rsvp-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  width: min(18rem, 72vw);
  margin: 0 auto 1.2rem;
  color: rgba(91, 97, 67, 0.62);
}

.rsvp-ornament span {
  flex: 1;
  height: 1px;
  background: rgba(91, 97, 67, 0.24);
}

.rsvp-ornament i {
  width: 0.56rem;
  height: 0.56rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  box-shadow: 0 0 0 0.28rem rgba(215, 179, 108, 0.08);
}

.rsvp-form {
  display: grid;
  gap: 1rem;
  width: min(35rem, 100%);
  margin: 2rem auto 0;
  padding: 0;
  text-align: left;
}

.rsvp-form label,
.rsvp-form fieldset {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.rsvp-form fieldset {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0.6rem 0 0.2rem;
}

.rsvp-form label > span,
.rsvp-form legend {
  color: var(--emerald);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rsvp-form legend {
  grid-column: 1 / -1;
  margin: 0 auto 0.45rem;
  color: rgba(91, 97, 67, 0.82);
  font-family: "Great Vibes", "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

.rsvp-form input[type="text"],
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(167, 122, 49, 0.32);
  border-radius: 0.28rem;
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  outline: 0;
}

.rsvp-form input[type="text"],
.rsvp-form select {
  height: 3.3rem;
  padding: 0 1rem;
}

.rsvp-form textarea {
  resize: vertical;
  min-height: 7rem;
  padding: 1rem;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: var(--antique-gold);
  box-shadow: 0 0 0 4px rgba(215, 179, 108, 0.2);
}

.option {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem !important;
  min-height: 3.35rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(91, 97, 67, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.34);
  color: var(--emerald);
  text-align: center;
}

.option input {
  position: absolute;
  opacity: 0;
  accent-color: var(--antique-gold);
}

.option:has(input:checked) {
  border-color: rgba(167, 122, 49, 0.58);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 12px 30px rgba(33, 60, 53, 0.08);
}

.confirmation {
  align-self: center;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid rgba(167, 122, 49, 0.32);
  background: rgba(255, 253, 248, 0.78);
}

.confirmation h3 {
  margin: 0;
  color: rgb(91, 97, 67);
  font-family: "Great Vibes", "Cormorant Garamond", serif;
  font-size: clamp(2.55rem, 6.5vw, 4.2rem);
  font-weight: 400;
  line-height: 0.9;
  text-shadow: rgba(255, 255, 255, 0.45) 0 1px 0;
}

.confirmation p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.gallery-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(215, 179, 108, 0.2), transparent 22rem),
    linear-gradient(180deg, #f8efe0, #fbf5e9);
}

.gallery-copy {
  max-width: 34rem;
}

.gallery-copy h2 {
  margin: 0;
  color: var(--emerald);
  font-family: "Yellowtail", cursive;
  font-size: clamp(3.6rem, 11vw, 7rem);
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 12px 34px rgba(167, 122, 49, 0.16);
}

.gallery-copy p:not(.eyebrow) {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.68rem, 1.45vw, 0.82rem);
  font-weight: 300;
  letter-spacing: 0.11em;
  line-height: 1.75;
  text-transform: uppercase;
}

.gallery-wall {
  position: relative;
  min-height: clamp(27rem, 52vw, 42rem);
}

.gallery-wall::before {
  position: absolute;
  inset: 8% 5% 10% 0;
  border: 1px solid rgba(167, 122, 49, 0.24);
  border-radius: 50%;
  content: "";
}

.gallery-frame {
  position: absolute;
  overflow: hidden;
  border: 0.55rem solid rgba(255, 253, 248, 0.92);
  background-position: center;
  background-size: cover;
  box-shadow:
    0 26px 76px rgba(27, 23, 18, 0.22),
    inset 0 0 0 1px rgba(167, 122, 49, 0.28);
}

.gallery-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(16, 40, 35, 0.28));
  content: "";
}

.gallery-frame-large {
  top: 9%;
  left: 4%;
  width: 58%;
  aspect-ratio: 0.78;
  background:
    linear-gradient(180deg, rgba(16, 40, 35, 0.08), rgba(16, 40, 35, 0.24)),
    url("assets/luxury-event-scene.png") center / cover;
}

.gallery-frame-small {
  top: 3%;
  right: 2%;
  width: 42%;
  aspect-ratio: 1;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.1), rgba(167, 122, 49, 0.16)),
    url("assets/envelope-welcome.png") center / cover;
}

.gallery-frame-tall {
  right: 12%;
  bottom: 2%;
  width: 44%;
  aspect-ratio: 0.72;
  background:
    linear-gradient(180deg, rgba(16, 40, 35, 0.08), rgba(16, 40, 35, 0.22)),
    url("assets/engagement-hero.png") center / cover;
}

.location-section {
  display: grid;
  min-height: 85svh;
  place-items: center;
  overflow: hidden;
  color: var(--ivory);
  isolation: isolate;
}

.location-media {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(9, 24, 21, 0.42), rgba(9, 24, 21, 0.86)),
    url("assets/luxury-event-scene.png") center / cover no-repeat;
}

.location-content {
  width: min(44rem, 100%);
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid rgba(215, 179, 108, 0.38);
  background: rgba(10, 27, 23, 0.58);
  text-align: center;
  backdrop-filter: blur(18px);
}

.location-content h2 {
  color: var(--ivory);
}

.location-content p {
  margin: 1.1rem auto 0;
  max-width: 34rem;
  color: rgba(251, 245, 233, 0.78);
  line-height: 1.8;
}

.footer {
  display: grid;
  place-items: center;
  padding: 0.7rem max(1rem, calc((100vw - 72rem) / 2));
  background: var(--pine);
  color: rgba(251, 245, 233, 0.78);
  font-size: 0.82rem;
}

.footer p {
  margin: 0;
}

@keyframes sealPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes stampRelease {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -64%) scale(0.45) rotate(-22deg);
  }
}

@keyframes paperReveal {
  0% {
    opacity: 0;
    transform: translate(-50%, 44%) rotateX(72deg) scale(0.86);
  }
  52% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -52%) rotateX(0deg) scale(1);
  }
}

@keyframes scrollLine {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateY(3.5rem);
    opacity: 0;
  }
}

@keyframes crestFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.45rem);
  }
}

@media (max-width: 760px) {
  .topbar {
    width: min(22rem, calc(100vw - 1rem));
    top: 0.5rem;
  }

  .hero {
    place-items: end center;
  }

  .hero-content {
    padding: 8rem 1rem 8rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 20vw, 6.2rem);
    margin-left: 50%;
    width: max-content;
    white-space: nowrap;
    transform: translateX(-50%);
  }

  .hero-copy {
    font-size: 0.98rem;
  }

  .hero-actions {
    display: grid;
  }

  .gold-button,
  .plain-button {
    width: 100%;
  }

  .ring-accent {
    width: 4.8rem;
    height: 3.9rem;
    opacity: 0.86;
  }

  .ring-accent-countdown {
    top: auto;
    right: auto;
    bottom: -2.25rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .ring-accent-details {
    top: 1rem;
    left: 0.7rem;
  }

  .site-controls .language-control {
    position: fixed;
    left: max(1rem, env(safe-area-inset-left));
    bottom: max(5.25rem, calc(env(safe-area-inset-bottom) + 5.25rem));
  }

  .site-controls .language-control .floating-language-menu {
    right: auto;
    left: 0;
  }

  .details-section::before {
    top: 0.3rem;
    left: -4.6rem;
    width: 17rem;
    opacity: 0.5;
  }

  .details-section::after {
    right: -5.2rem;
    bottom: 0.5rem;
    width: 16rem;
    opacity: 0.42;
  }

  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .countdown div {
    padding: 0.8rem 0.25rem;
  }

  .countdown strong {
    font-size: clamp(1.55rem, 9vw, 2.6rem);
  }

  .countdown span {
    margin-top: 0.45rem;
    font-size: clamp(0.5rem, 2.2vw, 0.62rem);
    letter-spacing: 0.06em;
  }

  #countdown-heading {
    margin-left: 50%;
    width: max-content;
    max-width: calc(100vw - 1rem);
    font-size: clamp(2.05rem, 9.4vw, 3rem);
    text-align: center;
    white-space: nowrap;
    transform: translateX(-50%);
  }

  #details-heading {
    margin-left: 50%;
    width: max-content;
    max-width: calc(100vw - 1rem);
    font-size: clamp(1.42rem, 6.7vw, 2.25rem);
    text-align: center;
    white-space: nowrap;
    transform: translateX(-50%);
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .rsvp-shell {
    grid-template-columns: 1fr;
  }

  .rsvp-shell {
    padding-bottom: 6.6rem;
  }

  .rsvp-form fieldset {
    grid-template-columns: 1fr;
  }

  .gallery-section {
    grid-template-columns: 1fr;
  }

  .gallery-copy {
    max-width: none;
    text-align: center;
  }

  .gallery-wall {
    min-height: 32rem;
  }

  .rsvp-intro {
    position: relative;
    top: auto;
    min-height: 18rem;
  }

  .location-section {
    min-height: 78svh;
  }

  .footer {
    text-align: center;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }
}

@media (max-width: 430px) {
  .date-ribbon span {
    letter-spacing: 0.08em;
  }

  .seal-button {
    top: 51%;
  }

  .seal-button span {
    top: calc(100% + 0.75rem);
    font-size: 0.64rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
