:root {
  --bg: #F5F0E8;
  --surface: rgba(255, 253, 248, 0.82);
  --surface-strong: #FFFDF8;
  --surface-border: rgba(176, 141, 87, 0.28);
  --text: #4A3B2F;
  --muted: #7c6c5b;
  --primary: #A0522D;
  --primary-deep: #8B3A1A;
  --gold: #b08d57;
  --sage: #9CAF88;
  --sage-dark: #7E926B;
  --rose-soft: #e8d9c2;
  --shadow: 0 24px 70px rgba(74, 59, 47, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --font-display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --page-width: 1140px;
  --page-padding-x: 12px;
  --page-padding-bottom: 108px;
  --section-space: 22px;
  --stack-gap: 16px;
  --panel-padding: 22px;
  --panel-padding-lg: 28px;
  --form-gap: 16px;
  --hero-padding: 24px 14px;
  --hero-copy-padding: 36px 22px;
  --opening-padding: 46px 28px;
  --heading-gap: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(156, 175, 136, 0.20), transparent 26%),
    radial-gradient(circle at top right, rgba(176, 141, 87, 0.16), transparent 24%),
    linear-gradient(180deg, #F7F2EA 0%, #F0E9DB 48%, #F7F2EA 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(185, 138, 99, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 138, 99, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 92%);
}

.texture,
.batik-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.texture--left {
  background: radial-gradient(circle at 10% 18%, rgba(156, 175, 136, 0.28), transparent 17%);
}

.texture--right {
  background: radial-gradient(circle at 86% 12%, rgba(176, 141, 87, 0.22), transparent 19%);
}

.batik-overlay {
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(126, 146, 107, 0.30) 0.7px, transparent 0.7px),
    radial-gradient(circle at 75% 75%, rgba(176, 141, 87, 0.26) 0.6px, transparent 0.6px);
  background-size: 14px 14px, 18px 18px;
}

.opening-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: hidden;
}

.opening-screen.is-hidden {
  visibility: hidden;
}

.opening-screen__background {
  position: absolute;
  inset: 0;
}

.opening-screen__petals {
  position: absolute;
  inset: -10vh 0 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.72;
}

.opening-screen__petal {
  position: absolute;
  top: -12vh;
  left: 0;
  width: var(--petal-size, 18px);
  height: calc(var(--petal-size, 18px) * 0.72);
  border-radius: 70% 30% 70% 30%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 252, 245, 0.78), transparent 34%),
    linear-gradient(135deg, rgba(232, 160, 168, 0.92), rgba(201, 110, 125, 0.88));
  opacity: 0.7;
  filter: blur(0.2px);
  transform: translate3d(0, 0, 0) rotate(0deg);
  animation:
    petal-fall var(--fall-duration, 12s) linear infinite,
    petal-sway var(--sway-duration, 4s) ease-in-out infinite alternate;
  animation-delay: var(--petal-delay, 0s);
}

.opening-screen__petal::after {
  content: "";
  position: absolute;
  inset: 18% 22% 24% 22%;
  border-radius: 60% 40% 60% 40%;
  background: rgba(255, 239, 245, 0.46);
}

.opening-screen__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.opening-screen__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(35, 14, 23, 0.3), rgba(58, 24, 38, 0.62)),
    radial-gradient(circle at center, rgba(255, 247, 250, 0.16), transparent 58%);
  backdrop-filter: blur(6px);
}

.opening-screen__content {
  position: relative;
  z-index: 2;
  width: min(100%, 440px);
  min-height: auto;
  padding: var(--opening-padding);
  text-align: center;
  display: block;
  border-radius: 34px;
  background: rgba(255, 248, 251, 0.82);
  border: 0;
  box-shadow: 0 24px 60px rgba(21, 7, 14, 0.24);
  backdrop-filter: blur(16px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary-deep);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 800;
}

.opening-screen__content h1,
.hero__copy h2,
.section-heading h2,
.blessing-panel__arabic,
.countdown-panel h2,
.couple-card h3,
.event-summary h3,
.event-card h3,
.location-panel__copy h2,
.gift-card h3,
.note-panel h3,
.closing-panel h2 {
  margin: 0;
  font-family: var(--font-display);
}

.opening-screen__content h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(3.2rem, 14vw, 5rem);
  line-height: 0.84;
  font-style: normal;
  font-weight: 600;
  text-shadow: none;
}

.opening-screen__content h1 span {
  display: block;
  margin: 8px 0;
  color: var(--gold);
  font-size: 0.5em;
}

.opening-screen__date,
.opening-screen__subtitle,
.opening-screen__recipient,
.hero__recipient,
.hero__lead,
.blessing-panel__copy,
.couple-card p,
.event-summary p,
.event-card p,
.heritage-item p,
.location-panel__copy p,
.note-panel p,
.gift-card p,
.wish-card p,
.wish-card span,
.form-note,
.gallery-card figcaption {
  color: var(--muted);
}

.opening-screen__recipient,
.hero__recipient {
  color: var(--primary-deep);
  font-weight: 800;
}

.opening-screen .eyebrow,
.opening-screen__content h1 {
  color: #3d212d;
}

.opening-screen__date,
.opening-screen__subtitle,
.opening-screen__recipient {
  color: #553443;
}

.opening-screen .eyebrow {
  position: relative;
  z-index: 1;
  color: #8B3A1A;
}

.opening-screen__content h1 span {
  color: #b9805c;
}

.opening-screen__date,
.opening-screen__subtitle,
.opening-screen__recipient,
.opening-screen [data-open-invitation] {
  position: relative;
  z-index: 1;
}

.opening-screen__date {
  margin-top: 0;
  font-size: 1rem;
}

.opening-screen__subtitle {
  margin-top: 16px;
}

.opening-screen__recipient {
  margin-top: 10px;
  font-size: 1.06rem;
}

.opening-screen [data-open-invitation] {
  min-width: 190px;
  margin-top: 22px;
  background: linear-gradient(180deg, var(--primary), var(--primary-deep));
  box-shadow: 0 12px 28px rgba(139, 58, 26, 0.28);
  border-radius: 999px;
}

@media (max-width: 560px) {
  .opening-screen__content {
    width: min(100%, 440px);
    min-height: auto;
    padding: 46px 28px;
  }
}

@keyframes petal-fall {
  0% {
    transform: translate3d(0, -8vh, 0) rotate(0deg);
  }

  100% {
    transform: translate3d(var(--petal-drift, 40px), 118vh, 0) rotate(340deg);
  }
}

@keyframes petal-sway {
  0% {
    margin-left: -10px;
  }

  100% {
    margin-left: 10px;
  }
}

.page {
  position: relative;
  z-index: 1;
  width: min(100% - (var(--page-padding-x) * 2), var(--page-width));
  margin: 0 auto;
  padding: 12px 0 var(--page-padding-bottom);
}

.page.is-locked {
  pointer-events: none;
  opacity: 0.45;
  filter: blur(6px);
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--surface-border);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(185, 138, 99, 0.1), transparent 18%),
    linear-gradient(135deg, transparent 0 46%, rgba(185, 138, 99, 0.05) 46% 54%, transparent 54% 100%);
  opacity: 0.72;
}

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

.panel-center {
  text-align: center;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: var(--hero-padding);
  overflow: hidden;
  border-radius: 40px;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.hero__video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 19, 29, 0.22) 0%, rgba(42, 19, 29, 0.58) 100%),
    radial-gradient(circle at center, rgba(255, 245, 249, 0.06), transparent 48%);
}

.hero__copy {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  padding: var(--hero-copy-padding);
  text-align: center;
  background: rgba(255, 250, 252, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 60px rgba(30, 11, 19, 0.18);
  backdrop-filter: blur(14px);
}

.hero__copy h2 {
  font-size: clamp(3.5rem, 14vw, 5.4rem);
  line-height: 0.86;
  color: #fff8fb;
}

.hero__lead {
  margin: 20px auto 0;
  max-width: 620px;
  line-height: 1.82;
  color: rgba(255, 245, 249, 0.88);
}

.hero__facts,
.hero__actions {
  display: grid;
  gap: 10px;
}

.hero__facts {
  margin-top: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero__fact,
.countdown-item,
.heritage-item,
.choice-card {
  padding: 16px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(167, 87, 123, 0.1);
}

.hero__fact {
  background: rgba(255, 248, 251, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero__fact span,
.stat-card span,
.couple-card__label,
.event-summary__label,
.event-card__label,
.gift-card__label {
  display: block;
  color: var(--primary-deep);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 800;
}

.hero .eyebrow,
.hero__recipient,
.hero__fact span,
.hero__fact strong {
  color: #fff4f8;
}

.hero__fact strong,
.stat-card strong {
  display: block;
  margin-top: 8px;
}

.hero__actions {
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
}

.button-secondary {
  border: 1px solid rgba(167, 87, 123, 0.12);
  color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.72);
}

.quick-nav {
  position: sticky;
  top: 8px;
  z-index: 10;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px;
  margin-top: 14px;
  border-radius: 999px;
}

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

.quick-nav a {
  flex: 0 0 auto;
  padding: 11px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  font-weight: 700;
}

.section {
  padding: var(--section-space) 0;
}

.section-heading {
  margin-bottom: var(--heading-gap);
  text-align: center;
}

.section-heading--left {
  text-align: left;
}

.section-heading h2 {
  font-size: clamp(2.3rem, 10vw, 3.5rem);
  line-height: 0.95;
}

.blessing-panel,
.countdown-panel,
.closing-panel {
  padding: 32px 22px;
}

.blessing-panel__arabic {
  font-size: clamp(1.4rem, 6vw, 2.2rem);
  line-height: 1.55;
}

.blessing-panel__copy {
  margin: 18px auto 0;
  max-width: 760px;
  line-height: 1.8;
}

.couple-grid,
.gallery-grid,
.event-grid,
.heritage-grid,
.gift-grid,
.stats-grid,
.form-layout,
.wish-list {
  display: grid;
  gap: var(--stack-gap);
}

.couple-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.couple-card__body {
  padding: 22px 20px 26px;
}

.couple-card h3 {
  font-size: 2.7rem;
}

.couple-card__meta {
  margin-top: 10px;
  color: var(--primary-deep);
  font-weight: 700;
}

.couple-divider {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  font-family: var(--font-display);
  font-size: 2rem;
}

.countdown-panel h2 {
  font-size: clamp(2.4rem, 10vw, 3.3rem);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.countdown-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
}

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

.gallery-card__image,
.gallery-card__video {
  display: block;
  width: 100%;
  object-fit: cover;
  background: #000;
}

.gallery-intro {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--muted);
  line-height: 1.7;
}

.gallery-card__image {
  aspect-ratio: 4 / 5;
}

.gallery-card__image--tall {
  aspect-ratio: 4 / 6;
}

.gallery-card__image--wide {
  aspect-ratio: 16 / 10;
}

.gallery-card__video {
  aspect-ratio: 9 / 16;
}

.gallery-masonry {
  column-count: 1;
  column-gap: 18px;
  margin-top: 22px;
}

.gallery-card--masonry {
  break-inside: avoid;
  margin: 0 0 18px;
  overflow: visible;
  border: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.gallery-card--masonry::before {
  display: none;
}

.gallery-card--masonry .gallery-card__frame {
  overflow: hidden;
  border-radius: 22px;
  background: #f4dfe7;
  box-shadow: 0 14px 30px rgba(118, 71, 93, 0.14);
}

.gallery-card--masonry .gallery-card__image,
.gallery-card--masonry .gallery-card__image--tall,
.gallery-card--masonry .gallery-card__image--wide {
  aspect-ratio: auto;
}

.gallery-card__image--face {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 24%;
}

.gallery-card--masonry:nth-child(3n + 1) .gallery-card__image--face {
  aspect-ratio: 3 / 4.2;
}

.gallery-card--masonry:nth-child(3n + 2) .gallery-card__image--face {
  aspect-ratio: 3 / 4.8;
}

.gallery-card--masonry:nth-child(3n) .gallery-card__image--face {
  aspect-ratio: 3 / 3.8;
}

.event-summary,
.event-card,
.heritage-panel,
.location-panel,
.form-panel,
.note-panel,
.gift-card,
.wish-card {
  padding: var(--panel-padding);
}

.event-summary h3,
.event-card h3,
.note-panel h3,
.gift-card h3 {
  font-size: 2rem;
}

.event-summary,
.event-card,
.gift-card {
  text-align: center;
}

.event-summary__note,
.event-card__detail,
.closing-panel__blessing,
.location-panel__address,
.location-panel__note,
.gift-card__helper,
.note-panel__example {
  color: var(--primary-deep);
  line-height: 1.7;
  font-size: 0.92rem;
}

.event-summary__actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.event-card__time {
  color: var(--primary-deep);
  font-weight: 800;
}

.heritage-grid {
  margin-top: 12px;
}

.heritage-item strong {
  display: block;
  margin-bottom: 8px;
}

.location-panel {
  display: grid;
  gap: 20px;
}

.location-panel__map {
  position: relative;
  height: 260px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.65), transparent 18%),
    linear-gradient(180deg, rgba(255, 247, 250, 0.92), rgba(247, 224, 232, 0.86));
  border: 1px solid rgba(167, 87, 123, 0.1);
}

.location-panel__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.95) contrast(1.02);
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  padding: 20px 14px;
  text-align: center;
}

.stat-card strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.form-stack {
  display: grid;
  gap: var(--form-gap);
}

.form-stack label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.attendance-field {
  display: grid;
  gap: 10px;
}

.attendance-field__label {
  font-weight: 700;
}

.form-stack input,
.form-stack textarea {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(167, 87, 123, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font: inherit;
  outline: none;
}

.form-stack input:focus,
.form-stack textarea:focus {
  border-color: rgba(167, 87, 123, 0.34);
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.choice-card {
  display: flex;
  gap: 10px;
  align-items: center;
}

.choice-grid--attendance {
  grid-template-columns: 1fr;
  gap: 12px;
}

.choice-card--attendance {
  position: relative;
  align-items: flex-start;
  padding: 18px 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 250, 0.84));
  border: 1px solid rgba(167, 87, 123, 0.12);
  box-shadow: 0 10px 24px rgba(161, 98, 127, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.choice-card--attendance:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(161, 98, 127, 0.12);
}

.choice-card--attendance input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card__indicator {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  border: 1.5px solid rgba(167, 87, 123, 0.42);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.98);
}

.choice-card__content {
  display: grid;
  gap: 5px;
}

.choice-card__content strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

.choice-card__content small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.choice-card--attendance input:checked + .choice-card__indicator {
  border-color: rgba(167, 87, 123, 0.95);
  background: rgba(255, 240, 246, 0.96);
}

.choice-card--attendance input:checked + .choice-card__indicator::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--primary), var(--primary-deep));
}

.choice-card--attendance:has(input:checked) {
  border-color: rgba(167, 87, 123, 0.42);
  background: linear-gradient(180deg, rgba(255, 241, 247, 0.98), rgba(255, 248, 251, 0.92));
  box-shadow: 0 18px 34px rgba(161, 98, 127, 0.14);
}

.choice-card--attendance:has(input:focus-visible) {
  outline: 2px solid rgba(167, 87, 123, 0.26);
  outline-offset: 2px;
}

.wish-card span {
  display: block;
  margin-top: 8px;
}

.wish-item--new {
  background: rgba(255, 255, 255, 0.9);
}

.closing-panel__blessing {
  margin-bottom: 0;
}

.closing-panel__mark {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 24px auto 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  font-family: var(--font-display);
  font-size: 2rem;
}

.mobile-dock {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid rgba(167, 87, 123, 0.12);
  background: rgba(255, 251, 252, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 30px rgba(157, 92, 118, 0.14);
}

.mobile-dock a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.78);
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

@media (min-width: 820px) {
  :root {
    --page-padding-x: 16px;
    --page-padding-bottom: 86px;
    --section-space: 30px;
    --stack-gap: 18px;
    --panel-padding: 26px;
    --panel-padding-lg: 34px;
    --form-gap: 18px;
    --hero-padding: 38px;
    --hero-copy-padding: 50px 40px;
    --opening-padding: 54px 38px;
    --heading-gap: 20px;
  }

  .page {
    padding-bottom: var(--page-padding-bottom);
  }

  .hero {
    padding: var(--hero-padding);
  }

  .hero__copy {
    padding: var(--hero-copy-padding);
    text-align: left;
  }

  .hero__actions {
    grid-template-columns: repeat(3, max-content);
    justify-content: start;
  }

  .quick-nav {
    justify-content: center;
  }

  .couple-grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .gallery-masonry {
    column-count: 3;
    column-gap: 20px;
  }

  .event-grid {
    grid-template-columns: 1.1fr 1fr 1fr;
  }

  .heritage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .location-panel {
    grid-template-columns: 1fr 0.92fr;
    align-items: center;
  }

  .form-layout {
    grid-template-columns: 1fr 0.86fr;
    align-items: start;
  }

  .choice-grid--attendance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wish-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-summary__actions {
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
  }

  .mobile-dock {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --page-padding-x: 10px;
    --page-padding-bottom: 96px;
    --section-space: 16px;
    --stack-gap: 12px;
    --panel-padding: 18px;
    --form-gap: 14px;
    --hero-padding: 18px 10px;
    --hero-copy-padding: 28px 18px;
    --opening-padding: 38px 22px;
    --heading-gap: 12px;
  }

  .page {
    padding-top: 8px;
  }

  .quick-nav {
    margin-top: 10px;
    padding: 8px;
  }

  .hero__facts,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .blessing-panel,
  .countdown-panel,
  .closing-panel {
    padding: 24px 18px;
  }

  .couple-card__body {
    padding: 18px 16px 20px;
  }

  .event-summary,
  .event-card,
  .location-panel,
  .form-panel,
  .note-panel,
  .gift-card,
  .wish-card {
    padding: 18px 16px;
  }

  .gallery-masonry {
    margin-top: 18px;
    column-gap: 12px;
  }

  .gallery-card--masonry {
    margin-bottom: 12px;
  }

  .location-panel__map {
    height: 220px;
  }

  .stat-card {
    padding: 16px 12px;
  }

  .choice-card--attendance {
    padding: 16px 14px;
  }

  .choice-card__content strong {
    font-size: 0.95rem;
  }
}

@media (min-width: 561px) and (max-width: 819px) {
  :root {
    --page-padding-x: 14px;
    --page-padding-bottom: 96px;
    --section-space: 24px;
    --stack-gap: 16px;
    --panel-padding: 22px;
    --form-gap: 16px;
    --hero-padding: 24px 18px;
    --hero-copy-padding: 34px 24px;
    --opening-padding: 46px 28px;
    --heading-gap: 16px;
  }

  .gallery-masonry {
    column-count: 2;
    column-gap: 16px;
  }

  .location-panel__map {
    height: 240px;
  }
}

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

  .opening-screen__petal {
    animation: none;
  }
}


/* ============================================================
   BOTANICAL GARDEN LAYER (mixed theme)
   ============================================================ */

/* Script display names on cover + hero + closing mark */
.opening-screen__content h1,
.hero__copy h2 {
  font-family: var(--font-script) !important;
  font-weight: 400 !important;
  line-height: 0.95 !important;
  letter-spacing: 0.5px;
  color: var(--primary) !important;
}
.opening-screen__content h1 { font-size: clamp(3.6rem, 16vw, 5.4rem) !important; }
.hero__copy h2 { font-size: clamp(3rem, 13vw, 4.4rem) !important; }
.opening-screen__content h1 span,
.hero__copy h2 span { font-family: var(--font-script) !important; color: var(--gold) !important; }

/* Cinzel caps for structural headings / names */
.eyebrow,
.couple-card__label,
.event-card__label,
.event-summary__label,
.gift-card__label {
  font-family: var(--font-display);
}
.couple-card h3 {
  font-family: var(--font-display);
  letter-spacing: 1.5px;
  font-size: 1.18rem;
  color: var(--primary-deep);
}
.section-heading h2 { letter-spacing: 1px; }

/* Arabic calligraphy verse */
.blessing-panel__arabic {
  font-family: "Amiri", serif !important;
  direction: rtl;
  line-height: 2.4 !important;
  color: var(--primary) !important;
}
.blessing-panel__latin {
  margin: 10px 0 0;
  font-style: italic;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Pearl / dot garland divider */
.pearl-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 18px auto 4px;
}
.pearl-divider .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: 0.6; }
.pearl-divider .dot.big { width: 9px; height: 9px; opacity: 0.9; }

/* Lovebird divider between event cards */
.lovebird-divider { display: flex; justify-content: center; margin: 6px 0; }
.lovebird-divider svg { width: 70px; opacity: 0.85; }

/* Circular date medallion on cover */
.date-medallion {
  width: 120px; height: 120px; border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 6px rgba(176, 141, 87, 0.18);
  margin: 16px auto 6px;
  position: relative; z-index: 1;
}
.date-medallion .d { font-family: var(--font-display); font-size: 2rem; color: var(--primary-deep); line-height: 1; }
.date-medallion .m { font-family: var(--font-display); letter-spacing: 3px; font-size: 0.62rem; color: var(--primary); margin-top: 3px; text-transform: uppercase; }
.date-medallion .y { font-family: var(--font-display); font-size: 0.95rem; color: var(--primary-deep); }

/* Garden arch behind opening content */
.opening-arch {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: min(460px, 96%);
  z-index: 1; opacity: 0.85; pointer-events: none;
}

/* Floating botanical decorations inside sections */
.botanical-deco {
  position: absolute;
  width: 130px; pointer-events: none; opacity: 0.5; z-index: 0;
  animation: deco-sway 7s ease-in-out infinite;
}
.botanical-deco--tl { top: -8px; left: -14px; transform: rotate(-8deg); }
.botanical-deco--br { bottom: -10px; right: -16px; transform: scaleX(-1) rotate(-6deg); width: 150px; }
.botanical-deco--bl { bottom: -8px; left: -18px; }
@keyframes deco-sway { 0%,100% { transform: translateY(0) rotate(var(--dr,0deg)); } 50% { transform: translateY(-9px) rotate(var(--dr,0deg)); } }
.botanical-deco--tl { --dr: -8deg; }
.section, .opening-screen__content, .panel { position: relative; }
.section { overflow: hidden; }

/* Closing monogram in script */
.closing-panel__mark {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--primary);
  letter-spacing: 2px;
}

/* Couple divider ampersand in script */
.couple-divider { font-family: var(--font-script); color: var(--sage-dark); font-size: 3rem; }

/* Secondary button border tone */
.button-secondary { border-color: rgba(176, 141, 87, 0.32) !important; }


/* ============================================================
   POLISH PASS — cohesion, spacing & tidiness
   ============================================================ */

/* 1. Calmer panels: drop the diagonal stripe, keep one soft corner glow */
.panel::before {
  background: radial-gradient(circle at 14% 10%, rgba(176, 141, 87, 0.10), transparent 30%);
  opacity: 0.55;
}

/* 2. Quieter background ornaments so the garden palette stays clean */
.batik-overlay { opacity: 0.03; }
.texture--left { background: radial-gradient(circle at 8% 14%, rgba(156, 175, 136, 0.20), transparent 20%); }
.texture--right { background: radial-gradient(circle at 90% 10%, rgba(176, 141, 87, 0.16), transparent 22%); }

/* 3. Harmonize leftover pink tints -> warm gold / sage */
.hero__fact,
.countdown-item,
.heritage-item,
.choice-card,
.stat-card,
.form-stack input,
.form-stack textarea,
.choice-card--attendance,
.location-panel__map {
  border-color: rgba(176, 141, 87, 0.22);
}
.form-stack input:focus,
.form-stack textarea:focus { border-color: rgba(160, 82, 45, 0.45); }

.choice-card--attendance {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(245, 240, 232, 0.86));
  box-shadow: 0 10px 24px rgba(126, 99, 64, 0.08);
}
.choice-card--attendance:hover { box-shadow: 0 16px 30px rgba(126, 99, 64, 0.14); }
.choice-card--attendance:has(input:checked) {
  border-color: rgba(160, 82, 45, 0.40);
  background: linear-gradient(180deg, rgba(250, 243, 233, 0.98), rgba(255, 253, 248, 0.92));
  box-shadow: 0 18px 34px rgba(126, 99, 64, 0.16);
}
.choice-card--attendance:has(input:focus-visible) { outline-color: rgba(160, 82, 45, 0.28); }
.choice-card__indicator { border-color: rgba(160, 82, 45, 0.45); }
.choice-card--attendance input:checked + .choice-card__indicator {
  border-color: rgba(160, 82, 45, 0.95);
  background: rgba(250, 243, 233, 0.96);
}

.mobile-dock {
  border-color: rgba(176, 141, 87, 0.22);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 30px rgba(126, 99, 64, 0.14);
}

.location-panel__map {
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.6), transparent 18%),
    linear-gradient(180deg, rgba(245, 240, 232, 0.92), rgba(231, 222, 205, 0.86));
}

.gallery-card--masonry .gallery-card__frame {
  background: #efe7da;
  box-shadow: 0 14px 30px rgba(126, 99, 64, 0.16);
}

/* 4. Warm up the dark video veils (was plum/pink -> soft sepia) */
.opening-screen__veil {
  background:
    linear-gradient(180deg, rgba(38, 26, 17, 0.34), rgba(46, 32, 20, 0.64)),
    radial-gradient(circle at center, rgba(255, 250, 242, 0.14), transparent 58%);
}
.hero__video-overlay {
  background:
    linear-gradient(180deg, rgba(38, 26, 17, 0.24) 0%, rgba(38, 26, 17, 0.60) 100%),
    radial-gradient(circle at center, rgba(255, 250, 242, 0.06), transparent 48%);
}
.opening-screen__content {
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 24px 60px rgba(38, 26, 17, 0.26);
}

/* 5. Cohesive ivory text tones on the opening card */
.opening-screen .eyebrow { color: var(--primary-deep); }
.opening-screen__subtitle { color: var(--muted); }
.opening-screen__recipient { color: var(--primary-deep); }

/* 6. Fix the event grid: lovebird divider was eating a column on desktop */
.event-grid .lovebird-divider { grid-column: 1 / -1; }
@media (min-width: 820px) {
  .event-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
  .event-grid .event-summary,
  .event-grid .event-card { height: 100%; }
  .event-grid .lovebird-divider { display: none; }
}
.event-summary,
.event-card,
.gift-card {
  display: flex;
  flex-direction: column;
}
.event-summary__actions,
.gift-card .button,
.gift-card .copy-button { margin-top: auto; }
.gift-card__helper { margin-top: 14px; }

/* 7. Clearer vertical rhythm between sections */
.section { padding: 28px 0; }
.section-heading { margin-bottom: 24px; }
.section-heading h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
@media (min-width: 820px) {
  .section { padding: 44px 0; }
  .section-heading { margin-bottom: 30px; }
}

/* 8. Softer, smaller floral decorations so they never crowd the text */
.botanical-deco { opacity: 0.36; width: 112px; }
.botanical-deco--br { width: 128px; }
@media (max-width: 560px) {
  .botanical-deco { width: 86px; opacity: 0.3; }
  .botanical-deco--br { width: 96px; }
}

/* 9. Tidy countdown into one even row */
@media (min-width: 480px) {
  .countdown-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 10. Balanced couple cards */
.couple-card { display: flex; flex-direction: column; }
.couple-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.couple-card__meta { margin-top: 2px; }

/* Tap-to-copy account number */
.gift-card .account-copy {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 8px auto 4px;
  padding: 12px 24px;
  border-radius: 16px;
  border: 1px dashed rgba(176, 141, 87, 0.55);
  background: rgba(255, 253, 248, 0.7);
  cursor: pointer;
  font: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.gift-card .account-copy:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  background: rgba(250, 243, 233, 0.92);
}
.gift-card .account-copy:active { transform: translateY(0); }
.account-copy__number {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--primary-deep);
}
.account-copy__hint {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
}
.account-copy.is-copied { border-color: var(--sage-dark); border-style: solid; }
.account-copy.is-copied .account-copy__hint { color: var(--sage-dark); }

/* Featured video at top of gallery (desktop + mobile) */
.gallery-feature {
  margin: 0 0 18px;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
}
.gallery-feature::before { display: none; }
.gallery-feature__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.gallery-feature__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 700px) {
  .gallery-feature { margin-bottom: 14px; }
  .gallery-feature__frame { aspect-ratio: 4 / 3; }
}

/* Keep couple names on a single line, auto-fit to the card width */
.couple-card__body { container-type: inline-size; }
.couple-card h3 {
  white-space: nowrap;
  letter-spacing: 0.3px;
  font-size: 0.95rem; /* fallback for older browsers */
  font-size: clamp(0.66rem, 4.6cqi, 1.12rem);
}

/* Wish board: limit visible wishes with a toggle */
.wish-card.is-collapsed { display: none !important; }
.wish-toggle {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.wish-toggle .button[hidden] { display: none; }

/* Wish board full-width after merging the forms */
.wish-list--full { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .wish-list--full { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.wish-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--primary-deep);
  font-family: var(--font-body);
  font-size: 1.05rem;
  opacity: 0.75;
  padding: 28px 16px;
  margin: 0;
}

/* Opening screen: decorative layers must never block the open button */
.opening-screen__veil,
.opening-screen__video,
.opening-screen__background { pointer-events: none; }
