:root {
  --color-ivory: #fffaf0;
  --color-ivory-2: #f7eddf;
  --color-champagne: #d6b46b;
  --color-gold: #b88a36;
  --color-maroon: #6d1f2f;
  --color-emerald: #1f4b3f;
  --color-ink: #241816;
  --color-muted: #756760;
  --color-white: #ffffff;
  --color-glass: rgba(255, 250, 240, 0.72);
  --shadow-soft: 0 18px 48px rgba(81, 48, 31, 0.14);
  --shadow-card: 0 12px 34px rgba(78, 45, 29, 0.12);
  --border-soft: 1px solid rgba(184, 138, 54, 0.2);
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --section-space: clamp(4.5rem, 12vw, 8rem);
  --container: min(100% - 1.5rem, 1120px);
  --font-script: "Great Vibes", cursive;
  --font-display: "Marcellus", Georgia, serif;
  --font-serif: "Marcellus", Georgia, serif;
  --font-sans: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
  background: var(--color-ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

a {
  color: inherit;
}

button {
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(184, 138, 54, 0.55);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--color-ink);
  color: var(--color-white);
  text-decoration: none;
  transition: transform 180ms ease;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  width: 100%;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, rgba(109, 31, 47, 0.82), var(--color-champagne), rgba(31, 75, 63, 0.82));
  box-shadow: 0 0 18px rgba(184, 138, 54, 0.22);
  will-change: transform;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  color: var(--color-ink);
  background:
    radial-gradient(circle at 50% 42%, rgba(214, 180, 107, 0.16), transparent 13rem),
    #fffaf1;
  overflow: hidden;
}

.preloader::before,
.preloader::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.preloader::before {
  width: 18rem;
  aspect-ratio: 1;
  border: 1px solid rgba(184, 138, 54, 0.13);
}

.preloader::after {
  width: 7rem;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.42);
  filter: blur(34px);
}

.preloader__stars {
  position: absolute;
  inset: 1.5rem;
  pointer-events: none;
}

.preloader__stars span {
  position: absolute;
  width: 0.32rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(184, 138, 54, 0.58);
  box-shadow: 0 0 18px rgba(184, 138, 54, 0.28);
}

.preloader__stars span:nth-child(1) {
  left: 18%;
  top: 22%;
}

.preloader__stars span:nth-child(2) {
  right: 18%;
  top: 28%;
}

.preloader__stars span:nth-child(3) {
  left: 25%;
  bottom: 24%;
}

.preloader__stars span:nth-child(4) {
  right: 24%;
  bottom: 20%;
}

.preloader__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(100% - 3rem, 14rem);
  text-align: center;
}

.preloader__seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 6.7rem;
  aspect-ratio: 1;
  border: 1px solid rgba(184, 138, 54, 0.25);
  border-radius: 50%;
}

.preloader__seal::before,
.preloader__seal::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.preloader__seal::before {
  inset: 0.48rem;
  border: 1px dashed rgba(154, 161, 143, 0.34);
}

.preloader__seal::after {
  inset: -0.35rem;
  border: 1px solid rgba(184, 138, 54, 0.1);
}

.preloader__initials {
  z-index: 1;
  color: #34332c;
  font-family: var(--font-script);
  font-size: clamp(2.7rem, 13vw, 3.65rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.preloader__guest,
.preloader__date,
.preloader__percent,
.preloader__text {
  z-index: 1;
  color: var(--color-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.preloader__guest {
  margin-top: 1rem;
}

.preloader__guest span {
  display: block;
  margin-top: 0.25rem;
  color: #34332c;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: none;
  overflow-wrap: anywhere;
}

.preloader__date {
  margin-top: 0.6rem;
  color: rgba(53, 52, 45, 0.58);
  letter-spacing: 0.12em;
}

.preloader__bar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 2px;
  margin-top: 1.25rem;
  overflow: hidden;
  background: rgba(53, 52, 45, 0.12);
}

.preloader__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: translateX(-120%);
  animation: preloaderShimmer 1.4s ease-in-out infinite;
}

.preloader__bar span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--color-gold), #9aa18f);
}

.preloader__percent {
  margin-top: 0.75rem;
  color: var(--color-gold);
}

.preloader__text {
  margin-top: 0.35rem;
  color: rgba(53, 52, 45, 0.52);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

/* Award-style preloader */
.preloader {
  color: #35342d;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.72), transparent 9rem),
    radial-gradient(circle at 18% 82%, rgba(154, 161, 143, 0.18), transparent 12rem),
    linear-gradient(180deg, #f7eee4, #fffaf1 48%, #efe3d6);
}

.preloader::before {
  width: min(82vw, 22rem);
  border: 1px solid rgba(53, 52, 45, 0.08);
  border-radius: 8px;
}

.preloader::after {
  width: min(64vw, 16rem);
  background: rgba(255, 255, 255, 0.52);
  filter: blur(42px);
}

.preloader__stars {
  inset: 1.25rem;
}

.preloader__stars span {
  width: 0.28rem;
  background: rgba(184, 138, 54, 0.64);
  box-shadow: 0 0 18px rgba(184, 138, 54, 0.24);
}

.preloader__inner {
  width: min(100% - 3rem, 18rem);
  padding: 2rem 1.15rem 1.35rem;
  border: 1px solid rgba(53, 52, 45, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 250, 241, 0.2)),
    rgba(255, 250, 241, 0.86);
  box-shadow: 0 28px 70px rgba(53, 52, 45, 0.14);
  backdrop-filter: blur(18px);
}

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

.preloader__inner::before {
  inset: 0.58rem;
  border: 1px solid rgba(184, 138, 54, 0.16);
  border-radius: 6px;
}

.preloader__inner::after {
  left: 50%;
  top: 1rem;
  width: min(38%, 6rem);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(184, 138, 54, 0.52), transparent);
}

.preloader__seal {
  width: 6.25rem;
  border-color: rgba(184, 138, 54, 0.26);
  background: rgba(255, 250, 241, 0.68);
}

.preloader__seal::before {
  inset: 0.42rem;
  border-style: solid;
  border-color: rgba(154, 161, 143, 0.26);
}

.preloader__seal::after {
  inset: -0.42rem;
  border-color: rgba(184, 138, 54, 0.12);
}

.preloader__initials {
  color: var(--color-gold);
  font-size: clamp(2.75rem, 13vw, 3.85rem);
}

.preloader__chapter {
  z-index: 1;
  margin: 1rem 0 0;
  color: rgba(53, 52, 45, 0.54);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.preloader__guest {
  margin-top: 0.75rem;
  color: rgba(53, 52, 45, 0.54);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
}

.preloader__guest span {
  margin-top: 0.38rem;
  color: #35342d;
  font-size: clamp(1.2rem, 5.8vw, 1.55rem);
  line-height: 1.05;
}

.preloader__date {
  margin-top: 0.7rem;
  color: rgba(53, 52, 45, 0.62);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.preloader__bar {
  width: min(100%, 13.5rem);
  height: 3px;
  margin-top: 1.35rem;
  border-radius: 999px;
  background: rgba(53, 52, 45, 0.1);
}

.preloader__bar span {
  border-radius: inherit;
  background: linear-gradient(90deg, #9aa18f, var(--color-gold), #6d1f2f);
}

.preloader__percent {
  margin-top: 0.78rem;
  color: #35342d;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.preloader__text {
  margin-top: 0.25rem;
  color: rgba(53, 52, 45, 0.5);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
}

/* Mobile invitation preloader refresh */
.preloader {
  isolation: isolate;
  padding: 1.2rem;
  color: #302720;
  background: var(--color-ivory);
}

.preloader::before,
.preloader::after,
.preloader__stars {
  display: none;
}

.preloader__inner {
  width: min(100%, 18.75rem);
  min-height: 24rem;
  align-content: center;
  padding: 2.65rem 1.25rem 1.45rem;
  overflow: hidden;
  border: 1px solid rgba(36, 24, 22, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 0 49.6%, rgba(184, 138, 54, 0.11) 49.8% 50.2%, transparent 50.4%),
    linear-gradient(225deg, transparent 0 49.6%, rgba(184, 138, 54, 0.08) 49.8% 50.2%, transparent 50.4%),
    #fffaf0;
  box-shadow: 0 1.4rem 3.5rem rgba(36, 24, 22, 0.08);
  backdrop-filter: none;
}

.preloader__inner::before {
  inset: 0.72rem;
  border: 1px solid rgba(184, 138, 54, 0.2);
  border-radius: 6px;
}

.preloader__inner::after {
  top: auto;
  bottom: 1.05rem;
  width: min(42%, 6.2rem);
  background: linear-gradient(90deg, transparent, rgba(184, 138, 54, 0.5), transparent);
}

.preloader__fold {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.preloader__fold::before,
.preloader__fold::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 76%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(36, 24, 22, 0.1), transparent);
  animation: preloaderFoldBreath 2.6s ease-in-out infinite alternate;
}

.preloader__fold::before {
  top: 27%;
}

.preloader__fold::after {
  bottom: 27%;
  animation-delay: 0.35s;
}

.preloader__seal {
  z-index: 1;
  width: 5.7rem;
  border-color: rgba(184, 138, 54, 0.34);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.78), rgba(255, 250, 240, 0.36)),
    rgba(255, 250, 240, 0.6);
  box-shadow: 0 0.85rem 2rem rgba(184, 138, 54, 0.1);
}

.preloader__seal::before {
  inset: 0.4rem;
  border-color: rgba(184, 138, 54, 0.18);
}

.preloader__seal::after {
  inset: -0.34rem;
  border-color: rgba(36, 24, 22, 0.08);
}

.preloader__initials {
  color: #a8782c;
  font-size: clamp(2.75rem, 14vw, 3.55rem);
}

.preloader__chapter {
  margin-top: 1.15rem;
  color: rgba(36, 24, 22, 0.6);
  font-size: 0.57rem;
  letter-spacing: 0.2em;
}

.preloader__guest {
  margin-top: 0.82rem;
  color: rgba(36, 24, 22, 0.52);
  font-size: 0.58rem;
}

.preloader__guest span {
  margin-top: 0.42rem;
  color: #302720;
  font-size: clamp(1.28rem, 6.2vw, 1.62rem);
  letter-spacing: 0.02em;
}

.preloader__date {
  margin-top: 0.82rem;
  color: rgba(36, 24, 22, 0.7);
  font-size: 0.8rem;
}

.preloader__bar {
  width: min(100%, 13.75rem);
  height: 4px;
  margin-top: 1.45rem;
  background: rgba(36, 24, 22, 0.1);
}

.preloader__bar::after {
  display: none;
}

.preloader__bar span {
  background: linear-gradient(90deg, #9aa18f, #b88a36);
}

.preloader__percent {
  margin-top: 0.78rem;
  color: #302720;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.preloader__text {
  margin-top: 0.32rem;
  color: rgba(36, 24, 22, 0.5);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
}

.particle-layer {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 0.3rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(214, 180, 107, 0.55);
  box-shadow: 0 0 18px rgba(214, 180, 107, 0.42);
  opacity: 0.55;
}

.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  display: none;
  width: 2.5rem;
  aspect-ratio: 1;
  border: 1px solid rgba(184, 138, 54, 0.55);
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
  mix-blend-mode: multiply;
  transition: width 160ms ease, background 160ms ease;
}

.custom-cursor.is-active {
  width: 3.2rem;
  background: rgba(214, 180, 107, 0.14);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 6.5rem 1rem 5.8rem;
  color: var(--color-white);
  overflow: hidden;
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -5;
  background:
    url("assets/couple.jpg") center 35% / cover no-repeat,
    linear-gradient(135deg, #6d1f2f, #d6b46b);
  transform: scale(1.08);
  filter: saturate(0.86) contrast(1.03);
}

.hero__overlay {
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(18, 11, 10, 0.2), rgba(18, 11, 10, 0.44) 50%, rgba(18, 11, 10, 0.78)),
    radial-gradient(circle at 50% 45%, rgba(255, 250, 240, 0.12), transparent 24rem);
}

.nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  margin: 0 auto;
  padding-block: 1rem;
}

.nav__brand {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(16px);
}

.nav__brand span {
  color: var(--color-champagne);
}

.hero__content {
  position: relative;
  z-index: 3;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 0 0.3rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--color-gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__eyebrow {
  margin-bottom: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.hero__title {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.15rem, 21vw, 9.2rem);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.hero__title small {
  color: var(--color-champagne);
  font-size: 0.36em;
  font-weight: 500;
  line-height: 1.04;
  text-shadow: 0 0 28px rgba(214, 180, 107, 0.38);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  max-width: 36rem;
  margin: 1.35rem auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.78rem, 3.3vw, 0.94rem);
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.7;
  text-transform: uppercase;
}

.hero__meta span {
  width: 0.28rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-champagne);
  box-shadow: 0 0 16px rgba(214, 180, 107, 0.5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn,
.back-top {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.88rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  overflow: hidden;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease);
}

.btn::after,
.back-top::after {
  content: "";
  position: absolute;
  inset: auto;
  width: var(--ripple-size, 0);
  aspect-ratio: 1;
  left: var(--ripple-x, 50%);
  top: var(--ripple-y, 50%);
  z-index: -1;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.42);
  opacity: 0;
}

.btn.is-rippling::after,
.back-top.is-rippling::after {
  animation: ripple 620ms ease-out;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-champagne), var(--color-gold));
  color: #2e1d13;
  box-shadow: 0 18px 34px rgba(184, 138, 54, 0.28);
}

.btn--ghost {
  border: 1px solid rgba(184, 138, 54, 0.34);
  background: rgba(255, 255, 255, 0.18);
  color: currentColor;
  backdrop-filter: blur(18px);
}

.hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.44);
  color: var(--color-white);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 4;
  display: inline-grid;
  justify-items: center;
  gap: 0.42rem;
  transform: translateX(-50%);
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.hero__scroll span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__scroll i {
  position: relative;
  width: 1px;
  height: 2.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.hero__scroll i::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 45%;
  background: var(--color-champagne);
  animation: scrollLine 1.7s ease-in-out infinite;
}

.btn:hover,
.back-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(109, 31, 47, 0.18);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding-block: var(--section-space);
}

.section__header {
  max-width: 620px;
  margin: 0 auto 2.25rem;
  text-align: center;
}

h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2.45rem, 12vw, 5rem);
}

h3 {
  font-size: clamp(2rem, 8vw, 3rem);
}

p {
  margin: 0;
}

.couple-grid {
  display: grid;
  gap: 1rem;
}

.person-card,
.couple-photo,
.count-card,
.timeline-item__card,
.message-card,
.venue-card,
.rsvp-form,
.wish-form {
  border: var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--color-glass);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.person-card {
  padding: 1rem;
}

.person-card__image {
  aspect-ratio: 4 / 5;
  margin-bottom: 1.1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.person-card p:last-child {
  margin-top: 0.85rem;
  color: var(--color-muted);
}

.couple-photo {
  position: relative;
  min-height: 26rem;
  overflow: hidden;
}

.couple-photo img {
  position: absolute;
  inset: 0;
}

.couple-photo__caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(36, 24, 22, 0.48);
  color: var(--color-white);
  backdrop-filter: blur(18px);
}

.couple-photo__caption span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--color-champagne);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
}

.image-fallback {
  position: relative;
  background:
    linear-gradient(135deg, rgba(214, 180, 107, 0.42), rgba(109, 31, 47, 0.2)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 12px),
    var(--color-ivory-2);
}

.image-fallback::before {
  content: "Image";
  position: absolute;
  inset: 1rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 138, 54, 0.2);
  border-radius: inherit;
  color: rgba(109, 31, 47, 0.45);
  font-family: var(--font-serif);
  font-size: 2rem;
}

.image-fallback img {
  position: relative;
  z-index: 1;
}

.image-fallback.is-missing img {
  display: none;
}

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

.count-card {
  display: grid;
  place-items: center;
  min-height: 8rem;
  padding: 1rem 0.6rem;
  text-align: center;
}

.count-card strong {
  color: var(--color-maroon);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 15vw, 5rem);
  font-weight: 600;
  line-height: 0.9;
}

.count-card span {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.countdown__message {
  margin-top: 1.5rem;
  color: var(--color-maroon);
  font-family: var(--font-serif);
  font-size: 2rem;
  text-align: center;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-left: 1.25rem;
}

.timeline__line {
  position: absolute;
  left: 0.28rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  transform: scaleY(0);
  transform-origin: top;
  background: linear-gradient(var(--color-champagne), var(--color-maroon));
}

.timeline-item {
  position: relative;
}

.timeline-item__dot {
  position: absolute;
  left: -1.26rem;
  top: 1.35rem;
  width: 0.75rem;
  aspect-ratio: 1;
  border: 2px solid var(--color-ivory);
  border-radius: 50%;
  background: var(--color-champagne);
  box-shadow: 0 0 0 7px rgba(214, 180, 107, 0.16), 0 0 22px rgba(214, 180, 107, 0.6);
}

.timeline-item__card {
  padding: 1.2rem;
}

.timeline-item time {
  color: var(--color-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin-top: 0.35rem;
  font-size: 1.85rem;
}

.timeline-item p {
  margin-top: 0.35rem;
  color: var(--color-muted);
}

.message-section {
  width: min(100% - 1.5rem, 920px);
}

.message-card {
  position: relative;
  padding: clamp(2rem, 8vw, 4.5rem) 1.25rem;
  text-align: center;
  overflow: hidden;
}

.message-card::before,
.message-card::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(184, 138, 54, 0.25);
  border-radius: calc(var(--radius-md) - 0.35rem);
  pointer-events: none;
}

.message-card::after {
  inset: 1.35rem;
  border-style: dashed;
  opacity: 0.5;
}

.message-card blockquote {
  position: relative;
  max-width: 700px;
  margin: 1.5rem auto 0;
  color: var(--color-muted);
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 7vw, 2.45rem);
  line-height: 1.25;
}

.message-card blockquote::before,
.message-card blockquote::after {
  color: rgba(184, 138, 54, 0.42);
  font-size: 2.7rem;
  line-height: 0;
}

.message-card blockquote::before {
  content: open-quote;
}

.message-card blockquote::after {
  content: close-quote;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 0.75rem;
}

.gallery-item {
  min-height: 12rem;
  padding: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  overflow: hidden;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(4) {
  grid-row: span 2;
  min-height: 20rem;
}

.gallery-item img {
  transition: transform 650ms var(--ease), filter 650ms var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

.venue-wrap {
  position: relative;
  display: grid;
  gap: 1rem;
}

.map-frame {
  min-height: 24rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  background: var(--color-ivory-2);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 24rem;
  border: 0;
  filter: sepia(0.12) saturate(0.85);
}

.venue-card {
  padding: 1.35rem;
}

.venue-card h3 {
  margin-bottom: 0.75rem;
}

.venue-card p {
  margin-bottom: 0.8rem;
  color: var(--color-muted);
}

.rsvp-form,
.wish-form {
  display: grid;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem;
}

.form-row {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

label,
legend {
  color: var(--color-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(184, 138, 54, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.66);
  color: var(--color-ink);
  padding: 0.9rem 0.95rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(184, 138, 54, 0.62);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(214, 180, 107, 0.14);
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(184, 138, 54, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.48);
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.choice input {
  width: auto;
  accent-color: var(--color-maroon);
}

.form-error {
  min-height: 1rem;
  color: var(--color-maroon);
  font-size: 0.78rem;
  font-weight: 700;
}

.form-submit.is-loading {
  pointer-events: none;
  opacity: 0.75;
}

.form-submit.is-loading span::after {
  content: "";
  display: inline-block;
  width: 0.78rem;
  aspect-ratio: 1;
  margin-left: 0.6rem;
  border: 2px solid rgba(46, 29, 19, 0.28);
  border-top-color: #2e1d13;
  border-radius: 50%;
  vertical-align: -0.12rem;
  animation: spin 720ms linear infinite;
}

.wishes-wall {
  display: grid;
  gap: 0.85rem;
  max-width: 860px;
  margin: 1rem auto 0;
}

.empty-state,
.wish-card {
  border: var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: var(--shadow-card);
  padding: 1rem;
}

.empty-state {
  color: var(--color-muted);
  text-align: center;
}

.wish-card h3 {
  color: var(--color-maroon);
  font-size: 1.55rem;
}

.wish-card p {
  color: var(--color-muted);
}

.footer {
  width: var(--container);
  margin: 0 auto;
  padding: 4rem 1rem 2rem;
  text-align: center;
}

.footer h2 {
  margin-bottom: 0.5rem;
}

.footer p:last-of-type {
  color: var(--color-muted);
}

.back-top {
  margin-top: 1.4rem;
  border: 1px solid rgba(184, 138, 54, 0.34);
  background: var(--color-white);
  color: var(--color-maroon);
}

.music-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 700;
  display: grid;
  place-items: center;
  width: 3.45rem;
  aspect-ratio: 1;
  border: 1px solid rgba(184, 138, 54, 0.38);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.music-toggle::before {
  content: "";
  position: absolute;
  inset: -0.28rem;
  border-radius: inherit;
  border: 1px solid rgba(214, 180, 107, 0.35);
  animation: pulse 1.8s ease-in-out infinite;
}

.music-toggle__icon {
  width: 0;
  height: 0;
  margin-left: 0.18rem;
  border-top: 0.52rem solid transparent;
  border-bottom: 0.52rem solid transparent;
  border-left: 0.78rem solid var(--color-maroon);
}

.music-toggle.is-playing .music-toggle__icon {
  width: 0.86rem;
  height: 1rem;
  margin-left: 0;
  border: 0;
  background: linear-gradient(90deg, var(--color-maroon) 0 32%, transparent 32% 68%, var(--color-maroon) 68% 100%);
}

.music-toggle.is-playing {
  border-color: rgba(184, 138, 54, 0.62);
  background: rgba(255, 250, 240, 0.94);
}

.music-toggle.is-loading .music-toggle__icon {
  width: 1rem;
  height: 1rem;
  margin-left: 0;
  border: 2px solid rgba(109, 31, 47, 0.22);
  border-top-color: var(--color-maroon);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.music-toggle.is-unavailable {
  opacity: 0.55;
  cursor: not-allowed;
}

.music-toggle.is-unavailable::before {
  animation: none;
  opacity: 0.25;
}

.music-toggle__status {
  position: absolute;
  right: 0.64rem;
  bottom: 0.62rem;
  width: 0.42rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(53, 52, 45, 0.28);
}

.music-toggle.is-playing .music-toggle__status {
  background: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(184, 138, 54, 0.14);
}

.lightbox,
.modal {
  position: fixed;
  inset: 0;
  z-index: 950;
}

.lightbox {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) 3.25rem;
  align-items: center;
  gap: 0.3rem;
  padding: 4.5rem 0.5rem 1rem;
  background: rgba(20, 13, 12, 0.88);
  backdrop-filter: blur(14px);
}

.lightbox[hidden],
.modal[hidden] {
  display: none;
}

.lightbox img {
  max-height: 78svh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.lightbox.is-missing::before {
  content: "Image placeholder";
  grid-column: 2;
  display: grid;
  place-items: center;
  min-height: 65svh;
  border: 1px solid rgba(214, 180, 107, 0.28);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(214, 180, 107, 0.34), rgba(109, 31, 47, 0.22)),
    var(--color-ivory-2);
  color: rgba(255, 250, 240, 0.82);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 4rem);
}

.lightbox.is-missing img {
  display: none;
}

.lightbox button,
.modal button {
  cursor: pointer;
}

.lightbox__close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: grid;
  place-items: center;
  width: 2.8rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.92);
  color: var(--color-maroon);
  font-size: 1.7rem;
}

.lightbox__nav {
  display: grid;
  place-items: center;
  min-height: 3rem;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.88);
  color: var(--color-maroon);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal {
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 13, 12, 0.48);
  backdrop-filter: blur(10px);
}

.modal__panel {
  position: relative;
  width: min(100%, 440px);
  padding: 2rem 1.2rem;
  border: var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--color-ivory);
  box-shadow: 0 32px 90px rgba(20, 13, 12, 0.22);
  text-align: center;
  overflow: hidden;
}

.modal__panel p:not(.eyebrow) {
  margin: 1rem 0 1.2rem;
  color: var(--color-muted);
}

.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  top: -1rem;
  width: 0.4rem;
  height: 0.72rem;
  border-radius: 0.2rem;
  background: var(--confetti-color, var(--color-champagne));
  animation: confettiDrop 1.4s ease-out forwards;
}

@keyframes ripple {
  0% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes preloaderShimmer {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(360%);
  }
}

@keyframes preloaderFoldBreath {
  from {
    opacity: 0.42;
  }

  to {
    opacity: 0.9;
  }
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.96);
  }
  50% {
    opacity: 0;
    transform: scale(1.25);
  }
}

@keyframes scrollLine {
  0% {
    transform: translateY(-110%);
  }
  55%,
  100% {
    transform: translateY(230%);
  }
}

@keyframes confettiDrop {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--confetti-x), 22rem, 0) rotate(260deg);
  }
}

@media (min-width: 560px) {
  .rsvp-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1.25rem;
  }

  .form-row--full,
  .rsvp-form .form-submit {
    grid-column: 1 / -1;
  }

  .wish-form {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
}

@media (min-width: 768px) {
  :root {
    --container: min(100% - 3rem, 1120px);
  }

  .hero {
    padding-inline: 2rem;
    padding-bottom: 6rem;
  }

  .hero__content {
    width: min(100%, 860px);
  }

  .hero__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.18em;
    font-size: clamp(4.8rem, 12vw, 8.5rem);
  }

  .hero__title small {
    transform: translateY(0.08em);
  }

  .couple-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.2fr) minmax(0, 0.9fr);
    align-items: center;
  }

  .couple-photo {
    min-height: 34rem;
  }

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

  .timeline {
    max-width: 900px;
    margin: 0 auto;
    padding-left: 0;
  }

  .timeline__line {
    left: 50%;
  }

  .timeline-item {
    width: calc(50% - 1.6rem);
  }

  .timeline-item:nth-child(odd) {
    margin-left: auto;
  }

  .timeline-item:nth-child(even) {
    text-align: right;
  }

  .timeline-item:nth-child(even) .timeline-item__dot {
    left: auto;
    right: -2rem;
  }

  .timeline-item:nth-child(odd) .timeline-item__dot {
    left: -1.95rem;
  }

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

  .venue-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .venue-card {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    max-width: 420px;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 34rem;
  }

  .lightbox {
    grid-template-columns: 5rem minmax(0, 1fr) 5rem;
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .custom-cursor {
    display: block;
  }

  body.has-cursor,
  body.has-cursor button,
  body.has-cursor a {
    cursor: none;
  }

  .nav {
    padding-block: 1.3rem;
  }

  .hero {
    min-height: 104svh;
    align-items: center;
    padding-bottom: 6.5rem;
  }

  .hero__content {
    width: min(100%, 980px);
    margin: 0 auto;
    text-align: center;
  }

  .hero__title {
    justify-content: center;
    font-size: clamp(6rem, 9.5vw, 9.75rem);
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__media {
    background-position: center 30%;
  }

  .hero__overlay {
    background:
      radial-gradient(circle at 70% 22%, rgba(255, 255, 255, 0.16), transparent 16rem),
      linear-gradient(180deg, rgba(18, 11, 10, 0.14), rgba(18, 11, 10, 0.38) 50%, rgba(18, 11, 10, 0.78));
  }

  .section__header {
    margin-bottom: 3.25rem;
  }

  .person-card {
    padding: 1.2rem;
  }

  .rsvp-form,
  .wish-form {
    padding: 1.5rem;
  }

  .wish-form {
    grid-template-columns: 0.7fr 1fr auto;
    align-items: end;
  }
}

/* Reference-inspired mobile invitation composition */
html {
  background: #171713;
}

body {
  position: relative;
  background: transparent;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background:
    url("assets/couple.jpg") center / cover no-repeat,
    linear-gradient(135deg, #25241e, #0f100e);
  filter: blur(2px) saturate(0.72) brightness(0.65);
  transform: scale(1.05);
}

body::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 9, 8, 0.28), rgba(8, 9, 8, 0.72)),
    rgba(20, 21, 17, 0.42);
}

.hero,
main,
.footer {
  width: min(100% - 1.25rem, 430px);
  margin-inline: auto;
}

.hero {
  min-height: min(92svh, 780px);
  align-items: end;
  margin-top: 0.75rem;
  padding: 5rem 1.35rem 4.9rem;
  border-radius: 1.6rem 1.6rem 0 0;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.hero__media {
  background:
    url("assets/couple.jpg") center 42% / cover no-repeat,
    linear-gradient(135deg, #5f594d, #e6d4be);
  filter: saturate(0.82) contrast(1.02);
}

.hero__overlay {
  background:
    linear-gradient(180deg, rgba(17, 17, 13, 0.04), rgba(17, 17, 13, 0.18) 42%, rgba(17, 17, 13, 0.76)),
    linear-gradient(90deg, rgba(17, 17, 13, 0.36), transparent 42%, rgba(17, 17, 13, 0.28));
}

.hero__content {
  width: 100%;
  padding: 0 0 0.8rem;
}

.hero__eyebrow {
  margin-bottom: 1.1rem;
  color: rgba(255, 250, 240, 0.78);
}

.hero__title {
  font-size: clamp(4.8rem, 21vw, 6.8rem);
  line-height: 0.78;
  text-transform: uppercase;
}

.hero__title small {
  color: rgba(255, 250, 240, 0.88);
  font-size: 0.28em;
  text-transform: none;
}

.hero__meta {
  max-width: 20rem;
  color: rgba(255, 250, 240, 0.9);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 5.2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.28;
  text-transform: none;
}

.hero__meta span {
  display: none;
}

.hero__actions {
  margin-top: 1.55rem;
}

.hero__scroll {
  bottom: 1.35rem;
}

.nav {
  width: calc(100% - 2.25rem);
}

.nav__brand {
  background: rgba(255, 250, 240, 0.14);
  border-color: rgba(255, 250, 240, 0.38);
}

main {
  overflow: hidden;
  border-radius: 0 0 1.6rem 1.6rem;
  background: var(--color-ivory);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.section {
  position: relative;
  width: 100%;
  padding: clamp(3.8rem, 14vw, 5.5rem) 1.3rem;
}

.section + .section {
  border-top: 1px solid rgba(45, 43, 35, 0.08);
}

.intro-section,
.message-section {
  margin-top: -2.2rem;
  padding-top: 4.8rem;
  background: var(--color-ivory);
  clip-path: polygon(0 2.2rem, 7% 1.8rem, 15% 2.25rem, 24% 1.65rem, 34% 2.1rem, 45% 1.75rem, 56% 2.2rem, 66% 1.7rem, 78% 2.15rem, 90% 1.8rem, 100% 2.2rem, 100% 100%, 0 100%);
}

.section__header {
  margin-bottom: 1.9rem;
}

.section__header h2,
.message-card h2 {
  color: #35342d;
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 13vw, 3.9rem);
  font-weight: 500;
  line-height: 0.95;
  text-transform: uppercase;
}

.section__header .eyebrow,
.message-card .eyebrow {
  color: rgba(53, 52, 45, 0.56);
}

.person-card,
.count-card,
.timeline-item__card,
.message-card,
.venue-card,
.rsvp-form,
.wish-form {
  border-color: rgba(53, 52, 45, 0.1);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.couple-grid {
  gap: 1.2rem;
}

.person-card {
  padding: 0;
}

.person-card__image,
.couple-photo,
.gallery-item,
.map-frame {
  border-radius: 1.35rem;
}

.couple-photo {
  min-height: 24rem;
}

.countdown {
  gap: 0.6rem;
}

.count-card {
  min-height: 7.2rem;
  border: 1px solid rgba(53, 52, 45, 0.08);
  border-radius: 999px 999px 1rem 1rem;
  background: #f6efe5;
}

.count-card strong {
  color: #35342d;
}

.timeline {
  padding-left: 0;
  gap: 0.35rem;
}

.timeline__line,
.timeline-item__dot {
  display: none;
}

.timeline-item__card {
  display: grid;
  grid-template-columns: 5.3rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.55rem 0;
}

.timeline-item time {
  color: rgba(53, 52, 45, 0.58);
  letter-spacing: 0;
  text-transform: none;
}

.timeline-item h3 {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
}

.timeline-item p {
  grid-column: 2;
  color: rgba(53, 52, 45, 0.62);
  font-size: 0.9rem;
}

.message-card {
  padding: 0;
}

.message-card::before,
.message-card::after {
  display: none;
}

.message-card blockquote {
  max-width: 22rem;
  color: rgba(53, 52, 45, 0.68);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
}

.gallery-grid {
  gap: 0.6rem;
}

.venue-card,
.rsvp-form,
.wish-form,
.empty-state,
.wish-card {
  border: 1px solid rgba(53, 52, 45, 0.1);
  background: #f8f1e8;
}

.footer {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 1.4rem;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

@media (min-width: 768px) {
  .hero,
  main,
  .footer {
    width: min(100% - 2rem, 460px);
  }

  .hero__title {
    display: grid;
    gap: 0.1rem;
    font-size: clamp(5.7rem, 13vw, 7.1rem);
  }

  .couple-grid,
  .countdown,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    width: 100%;
    margin-left: 0;
  }

  .timeline-item:nth-child(even) {
    text-align: left;
  }
}

/* Editorial gallery redesign */
.gallery-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(184, 138, 54, 0.1), transparent 13rem),
    linear-gradient(180deg, #fffaf1, #faf2e8);
}

.gallery-section::before {
  display: none;
}

.gallery-intro {
  max-width: 20rem;
  margin: 0.85rem auto 0;
  color: rgba(53, 52, 45, 0.62);
  font-size: 0.95rem;
  line-height: 1.55;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  min-height: 0;
  grid-column: auto;
  grid-row: auto;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 0.95rem;
  background: #f1e5d8;
  box-shadow: 0 12px 26px rgba(53, 52, 45, 0.09);
  cursor: pointer;
  overflow: hidden;
}

.gallery-item--feature {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 5;
  border-radius: 1.4rem;
  box-shadow: 0 24px 55px rgba(53, 52, 45, 0.13);
}

.gallery-item--wide {
  grid-column: auto;
  aspect-ratio: 1;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 58%, rgba(18, 17, 14, 0.42));
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
}

.gallery-item img {
  transition: transform 900ms var(--ease), filter 900ms var(--ease);
}

.gallery-item span {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.75rem;
  z-index: 3;
  color: rgba(255, 250, 241, 0.92);
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1;
  text-align: left;
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity 350ms ease, transform 350ms ease;
}

.gallery-item--feature::after,
.gallery-item--feature span {
  opacity: 1;
}

.gallery-item--feature span {
  font-size: 1.15rem;
  transform: translateY(0);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: saturate(0.95) contrast(1.04);
}

.gallery-item:hover::after,
.gallery-item:hover span,
.gallery-item:focus-visible::after,
.gallery-item:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:focus-visible {
  outline-offset: 4px;
}

@media (min-width: 430px) {
  .gallery-grid {
    gap: 0.75rem;
  }
}

/* Modern gallery showcase */
.gallery-showcase {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
}

.gallery-feature,
.gallery-thumb {
  position: relative;
  padding: 0;
  border: 0;
  background: #f1e5d8;
  cursor: pointer;
  overflow: hidden;
}

.gallery-feature {
  aspect-ratio: 4 / 5;
  border-radius: 1.35rem;
  box-shadow: 0 26px 58px rgba(53, 52, 45, 0.14);
}

.gallery-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(18, 17, 14, 0.04), transparent 36%, rgba(18, 17, 14, 0.58)),
    radial-gradient(circle at 50% 10%, rgba(255, 250, 241, 0.18), transparent 12rem);
  pointer-events: none;
}

.gallery-feature img,
.gallery-thumb img {
  transition: transform 850ms var(--ease), filter 850ms var(--ease);
}

.gallery-feature__count,
.gallery-feature__caption {
  position: absolute;
  z-index: 3;
  color: rgba(255, 250, 241, 0.94);
}

.gallery-feature__count {
  left: 1rem;
  top: 1rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(255, 250, 241, 0.32);
  border-radius: 999px;
  background: rgba(18, 17, 14, 0.18);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  backdrop-filter: blur(14px);
}

.gallery-feature__caption {
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 7vw, 2.15rem);
  line-height: 1;
  text-align: left;
}

.gallery-rail {
  display: grid;
  grid-auto-columns: 5.25rem;
  grid-auto-flow: column;
  gap: 0.55rem;
  margin-inline: -1.3rem;
  padding: 0.1rem 1.3rem 0.35rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-rail::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  aspect-ratio: 4 / 5;
  border-radius: 0.85rem;
  scroll-snap-align: start;
  box-shadow: 0 12px 24px rgba(53, 52, 45, 0.1);
}

.gallery-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 48%, rgba(18, 17, 14, 0.44));
  pointer-events: none;
}

.gallery-thumb span {
  position: absolute;
  left: 0.55rem;
  bottom: 0.48rem;
  z-index: 3;
  color: rgba(255, 250, 241, 0.9);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.gallery-thumb.is-active {
  box-shadow: 0 0 0 2px rgba(184, 138, 54, 0.55), 0 12px 24px rgba(53, 52, 45, 0.1);
}

.gallery-feature:hover img,
.gallery-thumb:hover img,
.gallery-feature:focus-visible img,
.gallery-thumb:focus-visible img {
  transform: scale(1.06);
  filter: saturate(0.95) contrast(1.04);
}

/* Editorial gallery redesign */
.gallery-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fbf6ef 0%, #fffaf1 46%, #f4eadf 100%),
    #fffaf1;
}

.gallery-section::before {
  content: "";
  position: absolute;
  inset: 1.1rem 1.05rem auto;
  z-index: -1;
  height: 12rem;
  border: 1px solid rgba(53, 52, 45, 0.08);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  pointer-events: none;
}

.gallery-section .section__header {
  display: grid;
  justify-items: center;
  gap: 0.72rem;
  max-width: 24rem;
  margin: 0 auto;
  text-align: center;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.gallery-section .section__header h2,
.gallery-section .eyebrow,
.gallery-section .gallery-intro {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.gallery-section .section__header h2 {
  max-width: 9ch;
  text-wrap: balance;
}

.gallery-intro {
  max-width: 19rem;
  margin: 0;
  color: rgba(53, 52, 45, 0.66);
  font-size: 0.94rem;
  line-height: 1.55;
}

.gallery-grid--minimal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
  margin-top: 2rem;
}

.gallery-grid--minimal .gallery-item {
  position: relative;
  min-height: 0;
  grid-column: auto;
  grid-row: auto;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 1px solid rgba(53, 52, 45, 0.08);
  border-radius: 8px;
  background: #eee2d4;
  box-shadow: 0 20px 42px rgba(53, 52, 45, 0.11);
  cursor: pointer;
  overflow: hidden;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.gallery-grid--minimal .gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  background:
    linear-gradient(180deg, rgba(15, 14, 12, 0.04), transparent 44%, rgba(15, 14, 12, 0.56)),
    linear-gradient(90deg, rgba(15, 14, 12, 0.16), transparent 42%);
  opacity: 0.86;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.gallery-grid--minimal .gallery-item img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 760ms var(--ease), filter 760ms var(--ease);
}

.gallery-grid--minimal .image-fallback::before {
  inset: 0;
  z-index: 0;
  border: 0;
  border-radius: 8px;
  font-size: 1.1rem;
}

.gallery-grid--minimal .image-fallback.is-missing::before {
  position: absolute;
  width: auto;
  aspect-ratio: auto;
  box-shadow: none;
}

.gallery-grid--minimal .gallery-item__meta {
  position: absolute;
  left: 0.72rem;
  right: 0.72rem;
  bottom: 0.68rem;
  z-index: 3;
  display: grid;
  gap: 0.16rem;
  color: rgba(255, 250, 241, 0.94);
  font-family: var(--font-sans);
  line-height: 1.1;
  text-align: left;
  opacity: 1;
  transform: none;
  transition: transform 320ms var(--ease), opacity 320ms ease;
}

.gallery-grid--minimal .gallery-item__meta span {
  position: static;
  display: block;
  color: inherit;
  font-family: inherit;
  opacity: 1;
  transform: none;
}

.gallery-grid--minimal .gallery-item__meta span:first-child {
  color: rgba(255, 250, 241, 0.68);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.gallery-grid--minimal .gallery-item__meta span:last-child {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
}

.gallery-grid--minimal .gallery-item:hover img,
.gallery-grid--minimal .gallery-item:focus-visible img {
  transform: scale(1.055);
  filter: saturate(0.94) contrast(1.03);
}

.gallery-grid--minimal .gallery-item:hover::after,
.gallery-grid--minimal .gallery-item:focus-visible::after {
  opacity: 0.72;
}

.gallery-grid--minimal .gallery-item:hover .gallery-item__meta,
.gallery-grid--minimal .gallery-item:focus-visible .gallery-item__meta {
  transform: translateY(-0.12rem);
}

.gallery-grid--minimal .gallery-item:nth-child(6) {
  order: -2;
  grid-column: 1 / -1;
  aspect-ratio: 4 / 5;
}

.gallery-grid--minimal .gallery-item:nth-child(5) {
  order: -1;
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.gallery-grid--minimal .gallery-item:nth-child(5)::after {
  background:
    linear-gradient(180deg, rgba(15, 14, 12, 0.02), transparent 40%, rgba(15, 14, 12, 0.34)),
    linear-gradient(90deg, rgba(15, 14, 12, 0.18), transparent 45%);
}

.gallery-grid--minimal .gallery-item:nth-child(2),
.gallery-grid--minimal .gallery-item:nth-child(4) {
  margin-top: 1.25rem;
}

.gallery-grid--minimal .gallery-item:nth-child(2) img {
  object-position: 52% 45%;
}

.gallery-grid--minimal .gallery-item:nth-child(3) img {
  object-position: 50% 64%;
}

.gallery-grid--minimal .gallery-item:nth-child(4) img {
  object-position: 50% 42%;
}

.gallery-grid--minimal .gallery-item:nth-child(5) img {
  object-position: center top;
}

.gallery-grid--minimal .gallery-item:nth-child(6) img {
  object-position: 50% 24%;
}

@media (min-width: 430px) {
  .gallery-grid--minimal {
    gap: 0.85rem;
  }

  .gallery-grid--minimal .gallery-item__meta {
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.82rem;
  }
}

/* Award-style venue section */
.venue-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(154, 161, 143, 0.24), transparent 13rem),
    linear-gradient(180deg, #fffaf1, #f2e7db);
}

.venue-section::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  top: 1.15rem;
  z-index: -1;
  height: 19rem;
  border: 1px solid rgba(53, 52, 45, 0.08);
  border-radius: 8px 8px 0 0;
  pointer-events: none;
}

.venue-intro {
  max-width: 20rem;
  margin: 0.85rem auto 0;
  color: rgba(53, 52, 45, 0.64);
  font-size: 0.94rem;
  line-height: 1.55;
}

.venue-experience {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
}

.venue-image {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 5;
  margin: 0;
  border: 1px solid rgba(53, 52, 45, 0.08);
  border-radius: 8px;
  box-shadow: 0 24px 54px rgba(53, 52, 45, 0.13);
  overflow: hidden;
  opacity: 1 !important;
  visibility: visible !important;
}

.venue-image::before {
  content: "Hotel image";
  z-index: 0;
  font-size: 1.2rem;
}

.venue-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(19, 18, 15, 0.02), transparent 42%, rgba(19, 18, 15, 0.54)),
    linear-gradient(90deg, rgba(19, 18, 15, 0.2), transparent 48%);
  pointer-events: none;
}

.venue-image img {
  position: relative;
  z-index: 1;
  transform: scale(1.01);
  transition: transform 760ms var(--ease), filter 760ms var(--ease);
}

.venue-image:hover img {
  transform: scale(1.045);
  filter: saturate(0.95) contrast(1.03);
}

.venue-image figcaption {
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.9rem;
  z-index: 3;
  display: grid;
  gap: 0.2rem;
  color: rgba(255, 250, 241, 0.94);
}

.venue-image figcaption span {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.venue-image figcaption strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 8vw, 2.2rem);
  font-weight: 400;
  line-height: 1;
}

.venue-section .venue-card {
  position: relative;
  inset: auto;
  display: grid;
  gap: 1rem;
  max-width: none;
  padding: 1.35rem;
  border: 1px solid rgba(53, 52, 45, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.78);
  box-shadow: 0 20px 46px rgba(53, 52, 45, 0.1);
  backdrop-filter: blur(16px);
  opacity: 1 !important;
  visibility: visible !important;
}

.venue-section .venue-card h3 {
  color: #35342d;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 10vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

.venue-facts {
  display: grid;
  gap: 0.55rem;
}

.venue-facts p {
  display: grid;
  gap: 0.12rem;
  margin: 0;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(53, 52, 45, 0.1);
}

.venue-facts p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.venue-facts span {
  color: rgba(53, 52, 45, 0.48);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.venue-facts strong {
  color: rgba(53, 52, 45, 0.82);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.35;
}

.venue-actions {
  display: grid;
  gap: 0.55rem;
}

.venue-actions .btn {
  justify-content: center;
  width: 100%;
}

.venue-section .map-frame {
  position: relative;
  min-height: 19rem;
  border: 1px solid rgba(53, 52, 45, 0.08);
  border-radius: 8px;
  box-shadow: 0 22px 48px rgba(53, 52, 45, 0.12);
  overflow: hidden;
  opacity: 1 !important;
  visibility: visible !important;
}

.venue-section .map-frame::before {
  content: "Map";
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  z-index: 2;
  padding: 0.38rem 0.55rem;
  border: 1px solid rgba(255, 250, 241, 0.5);
  border-radius: 999px;
  background: rgba(53, 52, 45, 0.28);
  color: rgba(255, 250, 241, 0.94);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.venue-section .map-frame iframe {
  min-height: 19rem;
  filter: grayscale(0.18) sepia(0.08) saturate(0.86) contrast(0.96);
}

@media (min-width: 430px) {
  .venue-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .venue-experience {
    grid-template-columns: minmax(0, 1fr);
  }

  .venue-section .venue-card {
    left: auto;
    right: auto;
    bottom: auto;
  }

  .venue-section .map-frame,
  .venue-section .map-frame iframe {
    min-height: 20rem;
  }
}

/* RSVP experience refinement */
.rsvp-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(184, 138, 54, 0.13), transparent 12rem),
    linear-gradient(180deg, #f8efe5, #fffaf1);
}

.rsvp-section::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  top: 1.1rem;
  z-index: -1;
  height: 15rem;
  border: 1px solid rgba(53, 52, 45, 0.08);
  border-radius: 8px 8px 0 0;
  pointer-events: none;
}

.rsvp-intro {
  max-width: 18rem;
  margin: 0.85rem auto 0;
  color: rgba(53, 52, 45, 0.64);
  font-size: 0.94rem;
  line-height: 1.55;
}

.rsvp-section .rsvp-form {
  position: relative;
  display: grid;
  gap: 0.9rem;
  max-width: 28rem;
  margin-top: 1.9rem;
  padding: 1.05rem;
  border: 1px solid rgba(53, 52, 45, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 250, 241, 0.2)),
    rgba(255, 250, 241, 0.82);
  box-shadow: 0 24px 54px rgba(53, 52, 45, 0.12);
  backdrop-filter: blur(16px);
}

.rsvp-section .rsvp-form::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  right: 1.05rem;
  top: 0.75rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 138, 54, 0.42), transparent);
  pointer-events: none;
}

.rsvp-section .form-row {
  gap: 0.5rem;
}

.rsvp-section label,
.rsvp-section legend {
  color: rgba(53, 52, 45, 0.62);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.rsvp-section input,
.rsvp-section textarea {
  min-height: 3.35rem;
  border: 1px solid rgba(53, 52, 45, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #35342d;
  padding: 0.92rem 0.95rem;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.rsvp-section input::placeholder,
.rsvp-section textarea::placeholder {
  color: rgba(53, 52, 45, 0.38);
}

.rsvp-section input:focus,
.rsvp-section textarea:focus {
  border-color: rgba(184, 138, 54, 0.56);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(214, 180, 107, 0.15);
}

.rsvp-section textarea {
  min-height: 7.25rem;
  resize: vertical;
}

.choice-grid {
  display: grid;
  gap: 0.55rem;
}

.rsvp-section .choice {
  position: relative;
  min-height: 3.35rem;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(53, 52, 45, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(53, 52, 45, 0.74);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  cursor: pointer;
}

.rsvp-section .choice input {
  flex: 0 0 auto;
  width: 1.05rem;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  accent-color: var(--color-gold);
  box-shadow: none;
}

.rsvp-section .choice span {
  line-height: 1.25;
}

.rsvp-section .choice:has(input:checked) {
  border-color: rgba(184, 138, 54, 0.48);
  background: rgba(255, 250, 241, 0.94);
  color: #35342d;
  box-shadow: 0 12px 24px rgba(53, 52, 45, 0.08);
}

.rsvp-section .form-error {
  min-height: 0.9rem;
  color: #8a2638;
  font-size: 0.76rem;
}

.rsvp-section .form-submit {
  width: 100%;
  justify-content: center;
  min-height: 3.35rem;
  margin-top: 0.15rem;
  border-radius: 8px;
}

@media (min-width: 430px) {
  .choice-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Guest wishes refinement */
.wishes-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 16%, rgba(154, 161, 143, 0.18), transparent 12rem),
    linear-gradient(180deg, #fffaf1, #f7eee4);
}

.wishes-section::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  top: 1.1rem;
  z-index: -1;
  height: 15rem;
  border: 1px solid rgba(53, 52, 45, 0.08);
  border-radius: 8px 8px 0 0;
  pointer-events: none;
}

.wishes-intro {
  max-width: 19rem;
  margin: 0.85rem auto 0;
  color: rgba(53, 52, 45, 0.64);
  font-size: 0.94rem;
  line-height: 1.55;
}

.wishes-section .wish-form {
  position: relative;
  display: grid;
  gap: 0.9rem;
  max-width: 28rem;
  margin-top: 1.9rem;
  padding: 1.05rem;
  border: 1px solid rgba(53, 52, 45, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 250, 241, 0.2)),
    rgba(255, 250, 241, 0.82);
  box-shadow: 0 24px 54px rgba(53, 52, 45, 0.11);
  backdrop-filter: blur(16px);
}

.wishes-section .wish-form::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  right: 1.05rem;
  top: 0.75rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(154, 161, 143, 0.5), transparent);
  pointer-events: none;
}

.wishes-section .form-row {
  gap: 0.5rem;
}

.wishes-section label {
  color: rgba(53, 52, 45, 0.62);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.wishes-section input,
.wishes-section textarea {
  min-height: 3.35rem;
  border: 1px solid rgba(53, 52, 45, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #35342d;
  padding: 0.92rem 0.95rem;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.wishes-section input::placeholder,
.wishes-section textarea::placeholder {
  color: rgba(53, 52, 45, 0.38);
}

.wishes-section input:focus,
.wishes-section textarea:focus {
  border-color: rgba(154, 161, 143, 0.68);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(154, 161, 143, 0.16);
}

.wishes-section textarea {
  min-height: 8rem;
  resize: vertical;
}

.wishes-section .form-error {
  min-height: 0.9rem;
  color: #8a2638;
  font-size: 0.76rem;
}

.wishes-section .form-submit {
  width: 100%;
  justify-content: center;
  min-height: 3.35rem;
  border-radius: 8px;
}

.wishes-section .wishes-wall {
  display: grid;
  gap: 0.72rem;
  max-width: 28rem;
  margin: 1rem auto 0;
}

.wishes-section .empty-state,
.wishes-section .wish-card {
  position: relative;
  padding: 1rem;
  border: 1px solid rgba(53, 52, 45, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.72);
  box-shadow: 0 16px 36px rgba(53, 52, 45, 0.08);
}

.wishes-section .empty-state {
  color: rgba(53, 52, 45, 0.6);
  font-size: 0.94rem;
  line-height: 1.55;
  text-align: center;
}

.wishes-section .wish-card::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 0.38rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #9aa18f;
  box-shadow: 0 0 0 0.35rem rgba(154, 161, 143, 0.14);
}

.wishes-section .wish-card h3 {
  padding-left: 1.2rem;
  color: #35342d;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.05;
}

.wishes-section .wish-card p {
  margin-top: 0.5rem;
  color: rgba(53, 52, 45, 0.66);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* Award-style invitation message */
.invitation-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.78), transparent 10rem),
    linear-gradient(180deg, #fbf4eb, #fffaf1);
}

.invitation-section .message-card {
  position: relative;
  padding: 3.2rem 1.35rem 2.35rem;
  border: 1px solid rgba(53, 52, 45, 0.1);
  border-radius: 2rem 2rem 1.2rem 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 250, 241, 0.1)),
    #fffaf1;
  box-shadow: 0 24px 55px rgba(53, 52, 45, 0.1);
  text-align: center;
}

.invitation-section .message-card::before,
.invitation-section .message-card::after {
  content: "";
  position: absolute;
  display: block;
  pointer-events: none;
}

.invitation-section .message-card::before {
  inset: 0.85rem;
  border: 1px solid rgba(184, 138, 54, 0.18);
  border-radius: 1.55rem 1.55rem 0.9rem 0.9rem;
}

.invitation-section .message-card::after {
  left: 50%;
  top: 1.6rem;
  width: min(42%, 8rem);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(184, 138, 54, 0.55), transparent);
}

.invitation-flower {
  position: relative;
  display: block;
  width: 4.5rem;
  aspect-ratio: 1;
  margin: 0 auto 1.25rem;
}

.invitation-flower::before,
.invitation-flower::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(154, 161, 143, 0.72);
  border-color: rgba(154, 161, 143, 0.72) transparent transparent rgba(184, 138, 54, 0.55);
  border-radius: 85% 0 85% 0;
}

.invitation-flower::before {
  inset: 5% 34% 14% 14%;
  transform: rotate(30deg);
}

.invitation-flower::after {
  inset: 30% 12% 8% 42%;
  transform: rotate(-18deg);
}

.invitation-section h2 {
  color: #34332c;
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 12vw, 3.75rem);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
}

.invitation-section h2 span {
  display: block;
}

.invitation-text {
  max-width: 20rem;
  margin: 1.25rem auto 0;
  color: rgba(53, 52, 45, 0.68);
  font-size: 1rem;
  line-height: 1.7;
}

.invitation-details {
  display: grid;
  gap: 0.55rem;
  margin: 1.6rem auto 0;
  max-width: 18rem;
}

.invitation-details p {
  display: grid;
  gap: 0.12rem;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(53, 52, 45, 0.09);
  border-radius: 999px;
  background: rgba(246, 237, 227, 0.72);
}

.invitation-details span {
  color: rgba(53, 52, 45, 0.46);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1;
  text-transform: uppercase;
}

.invitation-details strong {
  color: #34332c;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
}

.invitation-signature {
  margin-top: 1.7rem;
  color: #34332c;
  font-family: var(--font-script);
  font-size: clamp(2.45rem, 12vw, 3.65rem);
  line-height: 0.9;
}

.invitation-signature span {
  color: var(--color-gold);
}

/* Formal invitation redesign */
.invitation-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f8efe5 0%, #fffaf1 48%, #f3e8dc 100%);
}

.invitation-section::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  top: 1.1rem;
  z-index: -1;
  height: 18rem;
  border: 1px solid rgba(53, 52, 45, 0.08);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  pointer-events: none;
}

.invitation-section .message-card {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 3.6rem 1.1rem 2.35rem;
  border: 1px solid rgba(53, 52, 45, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 250, 241, 0.16)),
    rgba(255, 250, 241, 0.9);
  box-shadow: 0 26px 58px rgba(53, 52, 45, 0.13);
  text-align: center;
}

.invitation-section .message-card::before {
  inset: 0.72rem;
  border: 1px solid rgba(184, 138, 54, 0.2);
  border-radius: 6px;
}

.invitation-section .message-card::after {
  left: 50%;
  top: 2.15rem;
  width: min(36%, 6rem);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(184, 138, 54, 0.58), transparent);
}

.invitation-flower {
  display: grid;
  place-items: center;
  width: 4.35rem;
  margin: 0 auto 1.1rem;
  border: 1px solid rgba(184, 138, 54, 0.24);
  border-radius: 50%;
}

.invitation-flower::before,
.invitation-flower::after {
  border-color: rgba(154, 161, 143, 0.7) transparent transparent rgba(184, 138, 54, 0.52);
}

.invitation-section .eyebrow {
  margin: 0;
}

.invitation-hosts {
  max-width: 15rem;
  margin-top: 0.8rem;
  color: rgba(53, 52, 45, 0.58);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.invitation-section h2 {
  display: grid;
  gap: 0.04rem;
  margin-top: 1.2rem;
  color: #35342d;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 12vw, 3.85rem);
  font-weight: 400;
  line-height: 0.95;
  text-transform: none;
}

.invitation-section h2 span {
  display: block;
}

.invitation-section h2 span:nth-child(2) {
  color: var(--color-gold);
  font-family: var(--font-script);
  font-size: 1.2em;
  line-height: 0.62;
}

.invitation-text {
  max-width: 21rem;
  margin: 1.25rem auto 0;
  color: rgba(53, 52, 45, 0.7);
  font-size: 1rem;
  line-height: 1.72;
}

.invitation-details {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 21rem;
  margin: 1.65rem auto 0;
  border-top: 1px solid rgba(53, 52, 45, 0.1);
  border-bottom: 1px solid rgba(53, 52, 45, 0.1);
}

.invitation-details p {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0.86rem 0.2rem;
  border: 0;
  border-bottom: 1px solid rgba(53, 52, 45, 0.09);
  border-radius: 0;
  background: transparent;
}

.invitation-details p:last-child {
  border-bottom: 0;
}

.invitation-details span {
  color: rgba(53, 52, 45, 0.48);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.invitation-details strong {
  color: #35342d;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.2;
}

.invitation-signature {
  max-width: 17rem;
  margin-top: 1.45rem;
  color: rgba(53, 52, 45, 0.62);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.55;
  text-transform: uppercase;
}

/* Closing footer redesign */
.footer {
  position: relative;
  width: min(100% - 2rem, 460px);
  margin: 0.85rem auto 1rem;
  padding: 0;
  border: 1px solid rgba(53, 52, 45, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 250, 241, 0.18)),
    #fffaf1;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  text-align: center;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0.72rem;
  border: 1px solid rgba(184, 138, 54, 0.18);
  border-radius: 6px;
  pointer-events: none;
}

.footer__inner {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 2.45rem 1.15rem 1.45rem;
}

.footer__inner::before {
  content: "";
  width: min(42%, 7rem);
  height: 1px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, transparent, rgba(184, 138, 54, 0.55), transparent);
}

.footer h2 {
  margin-top: 0.72rem;
  color: #35342d;
  font-family: var(--font-script);
  font-size: clamp(3rem, 14vw, 4.25rem);
  font-weight: 400;
  line-height: 0.9;
}

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

.footer__date {
  margin-top: 0.85rem;
  color: rgba(53, 52, 45, 0.72);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer__note {
  max-width: 20rem;
  margin-top: 0.9rem;
  color: rgba(53, 52, 45, 0.62);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer .back-top {
  min-height: 2.8rem;
  margin-top: 1.25rem;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(53, 52, 45, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.78);
  color: #35342d;
  box-shadow: none;
}

/* Award-style wedding agenda */
.agenda-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 12%, rgba(154, 161, 143, 0.2), transparent 12rem),
    linear-gradient(180deg, #fffaf1, #f6ede3);
}

.agenda-section::before {
  content: "";
  position: absolute;
  right: -3rem;
  top: 3.5rem;
  width: 9rem;
  aspect-ratio: 1;
  border: 1px solid rgba(184, 138, 54, 0.18);
  border-radius: 50%;
}

.agenda-intro {
  max-width: 20rem;
  margin: 0.85rem auto 0;
  color: rgba(53, 52, 45, 0.62);
  font-size: 0.95rem;
  line-height: 1.55;
}

.agenda-section .timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 2rem;
  padding: 1.15rem 0 0;
}

.agenda-section .timeline__line {
  display: block;
  left: 1.15rem;
  top: 1.6rem;
  bottom: 1.8rem;
  width: 1px;
  transform: scaleY(0);
  transform-origin: top;
  background: linear-gradient(180deg, transparent, rgba(184, 138, 54, 0.58), transparent);
}

.agenda-section .timeline-item {
  position: relative;
  width: 100%;
  margin: 0;
  padding-left: 2.55rem;
  text-align: left;
}

.agenda-section .timeline-item + .timeline-item {
  margin-top: 0.2rem;
}

.agenda-section .timeline-item__dot {
  display: block;
  left: 0.82rem;
  top: 1.55rem;
  width: 0.68rem;
  border: 2px solid #fffaf1;
  background: #9aa18f;
  box-shadow: 0 0 0 0.42rem rgba(154, 161, 143, 0.14);
}

.agenda-section .timeline-item__card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.85rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border: 0;
  border-bottom: 1px solid rgba(53, 52, 45, 0.09);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.agenda-section .timeline-item:last-child .timeline-item__card {
  border-bottom: 0;
}

.timeline-item__number {
  grid-row: 1 / 4;
  display: grid;
  place-items: center;
  width: 2.35rem;
  aspect-ratio: 1;
  border: 1px solid rgba(53, 52, 45, 0.12);
  border-radius: 50%;
  color: rgba(53, 52, 45, 0.55);
  font-family: var(--font-display);
  font-size: 0.85rem;
  background: rgba(255, 250, 241, 0.7);
}

.agenda-section .timeline-item time {
  color: rgba(53, 52, 45, 0.56);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.agenda-section .timeline-item h3 {
  margin-top: 0.32rem;
  color: #34332c;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 7vw, 2.1rem);
  font-weight: 400;
  line-height: 1.02;
}

.agenda-section .timeline-item p {
  grid-column: 2;
  margin-top: 0.28rem;
  color: rgba(53, 52, 45, 0.62);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .agenda-section .timeline {
    max-width: none;
  }

  .agenda-section .timeline__line {
    left: 1.15rem;
  }

  .agenda-section .timeline-item,
  .agenda-section .timeline-item:nth-child(odd) {
    width: 100%;
    margin-left: 0;
  }

  .agenda-section .timeline-item:nth-child(even) {
    text-align: left;
  }

  .agenda-section .timeline-item:nth-child(even) .timeline-item__dot,
  .agenda-section .timeline-item:nth-child(odd) .timeline-item__dot {
    left: 0.82rem;
    right: auto;
  }
}

/* Premium countdown redesign */
.countdown-section {
  overflow: hidden;
  padding-top: 2.6rem;
  padding-bottom: 2.75rem;
  background: #fffaf1;
}

.countdown-section::before,
.countdown-section::after {
  display: none;
}

.countdown-intro {
  display: none;
}

.countdown {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 1rem;
}

.countdown::before {
  display: none;
}

.count-card {
  position: relative;
  min-height: 4.25rem;
  padding: 0.35rem 0.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  contain: layout paint;
}

.count-card::before {
  display: none;
}

.count-card + .count-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(53, 52, 45, 0.12);
}

.count-card strong {
  display: block;
  min-width: 3ch;
  color: #34332c;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 6.4vw, 1.95rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
  text-align: center;
}

.count-card span {
  margin-top: 0.2rem;
  color: rgba(53, 52, 45, 0.55);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.countdown__message {
  color: #34332c;
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 12vw, 3.5rem);
}

@media (min-width: 430px) {
  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .count-card {
    min-height: 4.25rem;
  }
}

/* Award-style storytelling chapter */
.story-section {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(214, 180, 107, 0.13), transparent 16rem),
    linear-gradient(180deg, var(--color-ivory), #fbf4ea);
}

.guest-intro {
  position: relative;
  margin: 0 0 2.8rem;
  padding: 2.15rem 1.15rem 1.75rem;
  border: 1px solid rgba(53, 52, 45, 0.1);
  border-radius: 1.7rem 1.7rem 1rem 1rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.78), transparent 8rem),
    rgba(255, 250, 241, 0.72);
  box-shadow: 0 24px 50px rgba(53, 52, 45, 0.09);
  text-align: center;
}

.guest-intro::before,
.guest-intro::after {
  content: "";
  position: absolute;
  left: 50%;
  pointer-events: none;
}

.guest-intro::before {
  top: 0.95rem;
  width: min(42%, 8rem);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(184, 138, 54, 0.55), transparent);
}

.guest-intro::after {
  bottom: -1.45rem;
  width: 1px;
  height: 2.2rem;
  background: linear-gradient(rgba(184, 138, 54, 0.48), transparent);
}

.guest-intro__label,
.guest-intro__note {
  display: block;
  color: rgba(53, 52, 45, 0.52);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.guest-intro p {
  margin-top: 0.7rem;
  color: #34332c;
  font-family: var(--font-script);
  font-size: clamp(2.7rem, 13vw, 4rem);
  line-height: 0.9;
}

.guest-intro strong {
  display: block;
  margin-top: 0.22rem;
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 8vw, 2.45rem);
  font-weight: 400;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.guest-intro__note {
  max-width: 16rem;
  margin: 1rem auto 0;
  color: rgba(53, 52, 45, 0.58);
  letter-spacing: 0.1em;
}

.story-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 5.4rem;
  z-index: -1;
  width: 1px;
  height: calc(100% - 8rem);
  transform: translateX(-50%) scaleY(var(--story-line, 0));
  transform-origin: top;
  background: linear-gradient(transparent, rgba(184, 138, 54, 0.42), transparent);
}

.story-kicker {
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.story-kicker .eyebrow {
  margin: 0;
}

.story-kicker span {
  color: rgba(53, 52, 45, 0.48);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-hero {
  display: grid;
  gap: 1.7rem;
}

.story-copy h2 {
  color: #34332c;
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 13vw, 4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.story-copy h2 span {
  display: block;
}

.story-lead {
  max-width: 24rem;
  margin-top: 1.2rem;
  color: rgba(53, 52, 45, 0.68);
  font-size: 1rem;
  line-height: 1.7;
}

.story-portrait {
  position: relative;
  min-height: 26rem;
  border-radius: 9rem 9rem 1.2rem 1.2rem;
  box-shadow: 0 24px 60px rgba(53, 52, 45, 0.16);
  overflow: hidden;
}

.story-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 42%, rgba(20, 18, 15, 0.18)),
    radial-gradient(circle at 50% 8%, rgba(255, 250, 240, 0.18), transparent 12rem);
  pointer-events: none;
}

.story-portrait img {
  transform: scale(1.06);
}

.story-bloom {
  position: absolute;
  z-index: 3;
  width: 5.2rem;
  aspect-ratio: 1;
  opacity: 0.9;
  pointer-events: none;
}

.story-bloom::before,
.story-bloom::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 250, 240, 0.76);
  border-color: rgba(255, 250, 240, 0.76) transparent transparent rgba(214, 180, 107, 0.72);
  border-radius: 85% 0 85% 0;
}

.story-bloom::before {
  inset: 7% 33% 14% 14%;
  transform: rotate(28deg);
}

.story-bloom::after {
  inset: 30% 12% 8% 42%;
  transform: rotate(-20deg);
}

.story-bloom--one {
  right: 1rem;
  top: 1rem;
}

.story-bloom--two {
  left: 1rem;
  bottom: 1rem;
  transform: rotate(180deg);
}

.story-path {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
}

.story-moment {
  position: relative;
  padding: 1.15rem 0 1.15rem 1.35rem;
  border-left: 1px solid rgba(184, 138, 54, 0.28);
}

.story-moment::before {
  content: "";
  position: absolute;
  left: -0.36rem;
  top: 1.55rem;
  width: 0.7rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 0.42rem rgba(184, 138, 54, 0.12);
}

.story-moment span {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(53, 52, 45, 0.42);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.story-moment h3 {
  color: #34332c;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 8vw, 2.35rem);
  font-weight: 500;
  text-transform: uppercase;
}

.story-moment p {
  margin-top: 0.45rem;
  color: rgba(53, 52, 45, 0.66);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .story-hero,
  .story-path {
    grid-template-columns: 1fr;
  }
}

/* Editorial story refinement */
.story-section {
  background:
    radial-gradient(circle at 18% 8%, rgba(154, 161, 143, 0.16), transparent 12rem),
    radial-gradient(circle at 88% 36%, rgba(184, 138, 54, 0.11), transparent 12rem),
    linear-gradient(180deg, #fffaf1, #fbf4ea);
}

.guest-intro {
  border-radius: 2rem 2rem 1.15rem 1.15rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 250, 241, 0.18)),
    rgba(255, 250, 241, 0.78);
}

.story-kicker {
  margin-bottom: 1.35rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(53, 52, 45, 0.08);
}

.story-copy h2 {
  max-width: 19rem;
  font-size: clamp(2.45rem, 12.5vw, 3.75rem);
  line-height: 1;
}

.story-copy h2 span:last-child {
  color: rgba(53, 52, 45, 0.66);
  font-family: var(--font-script);
  font-size: 1.35em;
  line-height: 0.74;
  text-transform: none;
}

.story-lead {
  max-width: 21rem;
  margin-top: 1.4rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(184, 138, 54, 0.36);
  color: rgba(53, 52, 45, 0.7);
}

.story-portrait {
  min-height: 27rem;
  border-radius: 1.4rem;
  box-shadow: 0 26px 58px rgba(53, 52, 45, 0.14);
}

.story-portrait::before {
  content: "";
  position: absolute;
  inset: 0.65rem;
  z-index: 3;
  border: 1px solid rgba(255, 250, 241, 0.32);
  border-radius: 1rem;
  pointer-events: none;
}

.story-portrait::after {
  background:
    linear-gradient(180deg, rgba(18, 17, 14, 0.06), transparent 36%, rgba(18, 17, 14, 0.58)),
    radial-gradient(circle at 50% 8%, rgba(255, 250, 240, 0.12), transparent 12rem);
}

.story-photo-note {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  padding: 0.9rem;
  border: 1px solid rgba(255, 250, 241, 0.24);
  border-radius: 0.9rem;
  background: rgba(18, 17, 14, 0.24);
  color: rgba(255, 250, 241, 0.9);
  text-align: left;
  backdrop-filter: blur(14px);
}

.story-photo-note span {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
}

.story-photo-note p {
  margin-top: 0.25rem;
  color: rgba(255, 250, 241, 0.72);
  font-size: 0.78rem;
  line-height: 1.45;
}

.story-bloom {
  width: 4.6rem;
  opacity: 0.62;
}

.story-path {
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.story-moment {
  padding: 1rem 1rem 1rem 1.1rem;
  border: 1px solid rgba(53, 52, 45, 0.08);
  border-radius: 1rem;
  background: rgba(255, 250, 241, 0.58);
}

.story-moment::before {
  left: auto;
  right: 1rem;
  top: 1rem;
  width: 0.45rem;
  background: #9aa18f;
  box-shadow: 0 0 0 0.32rem rgba(154, 161, 143, 0.13);
}

.story-moment span {
  color: rgba(184, 138, 54, 0.72);
}

.story-moment h3 {
  font-size: clamp(1.45rem, 7vw, 2rem);
  font-weight: 400;
}

.story-signature {
  margin-top: 1.65rem;
}

.story-signature::before {
  content: "";
  display: block;
  width: min(46%, 8rem);
  height: 1px;
  margin: 0 auto 1.15rem;
  background: linear-gradient(90deg, transparent, rgba(184, 138, 54, 0.42), transparent);
}

/* Award-winning story redesign */
.story-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fffaf1 0%, #f8efe5 50%, #fffaf1 100%);
}

.story-section::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  top: 1.1rem;
  z-index: -1;
  height: 21rem;
  transform: none;
  border: 1px solid rgba(53, 52, 45, 0.08);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: none;
  pointer-events: none;
}

.guest-intro {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.58rem;
  margin: 0 0 2.35rem;
  padding: 1.6rem 1.1rem 1.3rem;
  border: 1px solid rgba(53, 52, 45, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 250, 241, 0.18)),
    rgba(255, 250, 241, 0.86);
  box-shadow: 0 22px 48px rgba(53, 52, 45, 0.1);
  text-align: center;
}

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

.guest-intro::before {
  display: block;
  inset: 0.58rem;
  border: 1px solid rgba(184, 138, 54, 0.16);
  border-radius: 6px;
}

.guest-intro::after {
  display: block;
  left: 50%;
  top: 1rem;
  width: min(34%, 5.8rem);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(184, 138, 54, 0.52), transparent);
}

.guest-intro__seal {
  display: grid;
  place-items: center;
  width: 3.65rem;
  aspect-ratio: 1;
  margin-top: 0.2rem;
  border: 1px solid rgba(184, 138, 54, 0.25);
  border-radius: 50%;
  color: var(--color-gold);
  font-family: var(--font-script);
  font-size: 1.9rem;
  line-height: 1;
}

.guest-intro__label,
.guest-intro__note {
  margin: 0;
  color: rgba(53, 52, 45, 0.56);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.35;
}

.guest-intro p {
  margin: 0;
  color: #35342d;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 8vw, 2.42rem);
  line-height: 1.02;
}

.guest-intro strong {
  display: block;
  margin-top: 0.18rem;
  color: var(--color-gold);
  font-family: inherit;
  font-size: 1.08em;
  font-weight: inherit;
  overflow-wrap: anywhere;
}

.guest-intro__note {
  max-width: 17rem;
  color: rgba(53, 52, 45, 0.62);
  letter-spacing: 0.1em;
}

.story-kicker {
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.72rem;
  border-bottom: 1px solid rgba(53, 52, 45, 0.1);
}

.story-kicker span {
  color: rgba(53, 52, 45, 0.46);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
}

.story-hero {
  display: grid;
  gap: 1.25rem;
}

.story-copy h2 {
  max-width: 8.8ch;
  color: #35342d;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 14vw, 4.35rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: none;
  text-wrap: balance;
}

.story-copy h2 span {
  display: block;
}

.story-copy h2 span:last-child {
  margin-top: 0.08em;
  color: var(--color-gold);
  font-family: var(--font-script);
  font-size: 1.16em;
  line-height: 0.82;
  text-transform: none;
}

.story-lead {
  max-width: 22rem;
  margin-top: 1.25rem;
  padding: 0 0 0 1rem;
  border-left: 1px solid rgba(184, 138, 54, 0.44);
  color: rgba(53, 52, 45, 0.7);
  font-size: 1rem;
  line-height: 1.72;
}

.story-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.story-tokens span {
  padding: 0.42rem 0.58rem;
  border: 1px solid rgba(53, 52, 45, 0.1);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.66);
  color: rgba(53, 52, 45, 0.58);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.story-portrait {
  min-height: 30rem;
  border: 1px solid rgba(53, 52, 45, 0.08);
  border-radius: 8px;
  box-shadow: 0 26px 58px rgba(53, 52, 45, 0.16);
  overflow: hidden;
}

.story-portrait::before {
  inset: 0.7rem;
  z-index: 3;
  border: 1px solid rgba(255, 250, 241, 0.3);
  border-radius: 6px;
}

.story-portrait::after {
  background:
    linear-gradient(180deg, rgba(18, 17, 14, 0.02), transparent 42%, rgba(18, 17, 14, 0.62)),
    linear-gradient(90deg, rgba(18, 17, 14, 0.18), transparent 44%);
}

.story-portrait img {
  transform: scale(1.03);
  object-position: center;
}

.story-photo-note {
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.story-photo-note span {
  color: rgba(255, 250, 241, 0.96);
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1;
}

.story-photo-note p {
  max-width: 15rem;
  margin-top: 0.35rem;
  color: rgba(255, 250, 241, 0.74);
  font-size: 0.82rem;
  line-height: 1.45;
}

.story-bloom {
  width: 4rem;
  opacity: 0.42;
}

.story-path {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 1.35rem;
  border-top: 1px solid rgba(53, 52, 45, 0.1);
}

.story-moment {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.85rem;
  padding: 1rem 0;
  border: 0;
  border-bottom: 1px solid rgba(53, 52, 45, 0.1);
  border-radius: 0;
  background: transparent;
}

.story-moment::before {
  display: none;
}

.story-moment span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 2.2rem;
  aspect-ratio: 1;
  margin: 0;
  border: 1px solid rgba(53, 52, 45, 0.12);
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.78);
  color: rgba(184, 138, 54, 0.86);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
}

.story-moment h3 {
  color: #35342d;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 7vw, 2rem);
  font-weight: 400;
  line-height: 1.02;
  text-transform: none;
}

.story-moment p {
  margin-top: 0.34rem;
  color: rgba(53, 52, 45, 0.64);
  font-size: 0.94rem;
  line-height: 1.55;
}

.story-signature {
  margin-top: 1.55rem;
  text-align: left;
}

.story-signature::before {
  width: 100%;
  margin: 0 0 1rem;
  background: linear-gradient(90deg, rgba(184, 138, 54, 0.42), transparent);
}

.story-signature p {
  color: #35342d;
  font-size: clamp(2.35rem, 11vw, 3.55rem);
}

@media (min-width: 430px) {
  .story-portrait {
    min-height: 34rem;
  }
}

/* Final UI and scroll polish */
main > .section {
  --section-glow: 0;
  transform-origin: 50% 18%;
  will-change: transform, opacity, filter;
}

main > .section::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(72%, 18rem);
  height: 1px;
  transform: translateX(-50%) scaleX(var(--section-glow));
  transform-origin: center;
  background: linear-gradient(90deg, transparent, rgba(184, 138, 54, 0.42), transparent);
  pointer-events: none;
}

.btn,
.back-top,
.music-toggle,
.gallery-item {
  will-change: transform;
}

.btn:active,
.back-top:active,
.music-toggle:active,
.gallery-item:active {
  transform: translateY(1px) scale(0.99);
}

.message-card,
.rsvp-form,
.wish-form,
.venue-card,
.guest-intro,
.count-card,
.timeline-item__card,
.wish-card,
.empty-state {
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease), border-color 280ms var(--ease), background 280ms var(--ease);
}

.message-card:hover,
.rsvp-form:hover,
.wish-form:hover,
.venue-card:hover,
.guest-intro:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(53, 52, 45, 0.1);
}

.gallery-item,
.map-frame,
.story-portrait,
.couple-photo {
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
}

.gallery-item img,
.story-portrait img,
.couple-photo img,
.venue-image img,
.map-frame iframe {
  will-change: transform;
}

input,
textarea {
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

input:focus,
textarea:focus {
  transform: translateY(-1px);
}

.choice {
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.choice:has(input:checked) {
  border-color: rgba(184, 138, 54, 0.42);
  background: rgba(255, 250, 241, 0.9);
  transform: translateY(-1px);
}

.form-row.is-invalid input,
.form-row.is-invalid textarea {
  border-color: rgba(138, 38, 56, 0.66);
  background: rgba(255, 248, 247, 0.94);
  box-shadow: 0 0 0 4px rgba(138, 38, 56, 0.1);
}

.form-row.is-invalid .choice {
  border-color: rgba(138, 38, 56, 0.5);
  background: rgba(255, 248, 247, 0.78);
}

.form-row.is-valid input,
.form-row.is-valid textarea {
  border-color: rgba(31, 75, 63, 0.34);
}

.form-row.is-valid .choice:has(input:checked) {
  border-color: rgba(31, 75, 63, 0.34);
}

.form-row.is-invalid .form-error {
  min-height: 1.05rem;
}

.section__header h2 {
  text-wrap: balance;
}

.eyebrow {
  text-wrap: balance;
}

/* Award-winning hero cover refresh */
.hero {
  min-height: min(94svh, 790px);
  align-items: end;
  padding: 4.2rem 1.25rem 5.25rem;
  border-radius: 1.8rem 1.8rem 0 0;
}

.hero__media {
  background:
    url("assets/couple.jpg") center 44% / cover no-repeat,
    linear-gradient(145deg, #efe0d0 0%, #cbb79f 48%, #5f574c 100%);
  filter: saturate(0.82) contrast(1.04) brightness(0.92);
}

.hero__overlay {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 250, 241, 0.16), transparent 13rem),
    linear-gradient(180deg, rgba(18, 17, 14, 0.04), rgba(18, 17, 14, 0.2) 42%, rgba(18, 17, 14, 0.82)),
    linear-gradient(90deg, rgba(18, 17, 14, 0.34), transparent 44%, rgba(18, 17, 14, 0.22));
}

.hero__content {
  padding-bottom: 0.45rem;
}

.hero__eyebrow {
  color: rgba(255, 250, 240, 0.76);
}

.hero__title {
  color: rgba(255, 250, 240, 0.96);
  font-size: clamp(2.75rem, 12vw, 4rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 26px 52px rgba(0, 0, 0, 0.48);
}

.hero__names {
  margin-top: 0.75rem;
  color: rgba(255, 250, 240, 0.92);
  font-family: var(--font-script);
  font-size: clamp(2.05rem, 9.5vw, 3rem);
  line-height: 0.98;
  text-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.hero__names span {
  color: var(--color-champagne);
}

.hero__meta {
  max-width: 19.5rem;
  margin-top: 0.75rem;
  color: rgba(255, 250, 240, 0.82);
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 3.7vw, 1.08rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  width: auto;
  margin: 1.15rem auto 0;
}

.hero .btn {
  min-height: 2.45rem;
  padding: 0.62rem 0.95rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  justify-content: center;
}

.hero .btn svg {
  width: 0.88rem;
  height: 0.88rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero .btn--primary {
  color: #2f291f;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.hero .btn--ghost {
  color: #2f291f;
  background: rgba(255, 250, 240, 0.84);
  border-color: rgba(255, 250, 240, 0.42);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

@media (min-width: 430px) {
  .hero__actions {
    flex-wrap: nowrap;
    width: auto;
  }
}

@media (min-width: 768px) {
  .hero {
    padding-bottom: 5.4rem;
  }

  .hero__title {
    display: grid;
    font-size: clamp(3.4rem, 8vw, 4.7rem);
  }
}

/* Final design-system polish */
:root {
  --color-ivory: #fffaf1;
  --color-ivory-2: #f3e8dc;
  --color-gold: #ad8435;
  --color-champagne: #d3b36f;
  --color-maroon: #7b2638;
  --color-emerald: #657463;
  --color-ink: #35342d;
  --color-muted: #6d6259;
  --color-glass: rgba(255, 250, 241, 0.82);
  --shadow-soft: 0 24px 58px rgba(53, 52, 45, 0.12);
  --shadow-card: 0 18px 42px rgba(53, 52, 45, 0.1);
  --border-soft: 1px solid rgba(53, 52, 45, 0.1);
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --section-space: clamp(3.6rem, 12vw, 5.5rem);
}

body {
  color: var(--color-ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(53, 52, 45, 0.045) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 36%),
    var(--color-ivory);
}

main {
  background: var(--color-ivory);
  border-radius: 0 0 8px 8px;
}

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

.section + .section {
  border-top-color: rgba(53, 52, 45, 0.07);
}

.section__header {
  margin-bottom: 1.75rem;
}

.section__header h2,
.message-card h2,
.story-copy h2,
.venue-section .venue-card h3,
.agenda-section .timeline-item h3,
.wish-card h3 {
  color: var(--color-ink);
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.eyebrow,
label,
legend,
.guest-intro__label,
.guest-intro__note,
.story-tokens span,
.venue-facts span,
.invitation-details span,
.rsvp-section label,
.rsvp-section legend,
.wishes-section label {
  letter-spacing: 0.14em;
}

.story-lead,
.invitation-text,
.venue-intro,
.rsvp-intro,
.wishes-intro,
.gallery-intro,
.agenda-intro,
.footer__note,
.wish-card p {
  color: rgba(53, 52, 45, 0.66);
  line-height: 1.62;
}

.guest-intro,
.story-portrait,
.gallery-grid--minimal .gallery-item,
.venue-image,
.venue-section .venue-card,
.venue-section .map-frame,
.rsvp-section .rsvp-form,
.wishes-section .wish-form,
.wishes-section .empty-state,
.wishes-section .wish-card,
.invitation-section .message-card,
.footer {
  border-radius: 8px;
  border-color: rgba(53, 52, 45, 0.1);
}

.guest-intro::before,
.story-portrait::before,
.invitation-section .message-card::before,
.footer::before {
  border-radius: 6px;
}

.btn,
.back-top,
.form-submit,
input,
textarea,
.choice,
.story-tokens span,
.venue-section .map-frame::before,
.gallery-grid--minimal .gallery-item,
.gallery-grid--minimal .gallery-item img,
.venue-image,
.venue-image img {
  border-radius: 8px;
}

.btn,
.form-submit,
.back-top {
  min-height: 2.85rem;
  font-size: 0.64rem;
  letter-spacing: 0.13em;
}

.btn--primary,
.form-submit {
  background: linear-gradient(135deg, #d3b36f, #ad8435);
  color: #2f291f;
  box-shadow: 0 16px 34px rgba(173, 132, 53, 0.22);
}

.btn--ghost,
.footer .back-top {
  background: rgba(255, 250, 241, 0.82);
  color: var(--color-ink);
}

input,
textarea {
  color: var(--color-ink);
  caret-color: var(--color-gold);
}

input:focus,
textarea:focus,
.choice:has(input:focus-visible),
.gallery-item:focus-visible,
.btn:focus-visible,
.back-top:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(211, 179, 111, 0.2);
  border-color: rgba(173, 132, 53, 0.5);
}

.preloader__initials,
.guest-intro strong,
.story-copy h2 span:last-child,
.invitation-section h2 span:nth-child(2),
.footer h2 span,
.story-signature span {
  color: var(--color-gold);
}

.hero {
  border-radius: 8px 8px 0 0;
}

.hero__title {
  max-width: 8ch;
  margin-inline: auto;
  line-height: 1;
}

.hero__names,
.hero__meta {
  text-wrap: balance;
}

.gallery-grid--minimal,
.venue-experience {
  gap: 0.8rem;
}

.story-tokens {
  gap: 0.5rem;
}

.story-tokens span,
.venue-section .map-frame::before {
  padding-inline: 0.62rem;
}

.rsvp-section .rsvp-form,
.wishes-section .wish-form {
  gap: 0.85rem;
}

.countdown-section,
.gallery-section,
.venue-section,
.rsvp-section,
.wishes-section,
.invitation-section,
.agenda-section,
.story-section {
  background-color: var(--color-ivory);
}

@media (min-width: 430px) {
  .section {
    padding-inline: 1.35rem;
  }
}

/* Mobile-only invitation canvas */
html,
body {
  background: var(--color-ivory) !important;
}

body {
  min-width: 320px;
}

.hero,
main,
.footer {
  width: min(100%, 460px);
  margin-inline: auto;
}

.hero {
  min-height: min(94svh, 790px);
  border-radius: 0;
  margin-top: 0;
  padding-top: 0;
}

main {
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.footer {
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 0;
  box-shadow: none;
}

.section {
  width: 100%;
  padding: var(--section-space) 1.2rem;
}

body::before,
body::after {
  display: none !important;
}

/* Award-style mobile hero cover */
.hero {
  min-height: 100svh;
  align-items: end;
  padding: 0 1.2rem 5.15rem;
  border-radius: 0;
  color: rgba(255, 250, 241, 0.96);
}

.hero__media {
  background:
    url("assets/couple.jpg") center 42% / cover no-repeat,
    linear-gradient(145deg, #efe0d0 0%, #7a6b5b 100%);
  filter: saturate(0.78) contrast(1.06) brightness(0.86);
  transform: scale(1.08);
  transform-origin: 50% 42%;
  will-change: transform;
}

.hero__overlay {
  background:
    linear-gradient(180deg, rgba(15, 14, 12, 0.08) 0%, rgba(15, 14, 12, 0.24) 38%, rgba(15, 14, 12, 0.86) 100%),
    radial-gradient(circle at 50% 22%, rgba(255, 250, 241, 0.16), transparent 12rem),
    linear-gradient(90deg, rgba(15, 14, 12, 0.34), transparent 46%, rgba(15, 14, 12, 0.22));
}

.hero__content {
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 23rem;
  margin-inline: auto;
  padding: 0;
  text-align: center;
}

.hero__eyebrow {
  position: relative;
  margin: 0 0 1rem;
  color: rgba(255, 250, 241, 0.74);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.hero__eyebrow::after {
  content: "";
  display: block;
  width: 5.8rem;
  height: 1px;
  margin: 0.7rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(211, 179, 111, 0.72), transparent);
}

.hero__title {
  display: grid;
  gap: 0;
  max-width: none;
  margin: 0;
  color: rgba(255, 250, 241, 0.98);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 17vw, 5rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: 0 22px 46px rgba(0, 0, 0, 0.48);
}

.hero__title span {
  display: block;
}

.hero__title small {
  display: block;
  margin: 0.04em 0 0.08em;
  color: var(--color-champagne);
  font-family: var(--font-script);
  font-size: 0.74em;
  font-weight: 400;
  line-height: 0.52;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

.hero__names {
  margin-top: 1.05rem;
  color: rgba(255, 250, 241, 0.84);
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 12px 26px rgba(0, 0, 0, 0.42);
}

.hero__meta {
  margin-top: 0.7rem;
  color: rgba(255, 250, 241, 0.92);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 12px 26px rgba(0, 0, 0, 0.42);
}

.hero__actions {
  margin-top: 1.2rem;
}

.hero .btn {
  min-height: 2.75rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 250, 241, 0.4);
  background: rgba(255, 250, 241, 0.88);
  color: #2f291f;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.hero__scroll {
  bottom: 1.05rem;
}

/* Restored wedding-day hero direction */
.hero {
  min-height: 100svh;
  align-items: end;
  padding: 0 1.2rem 5.15rem;
  border-radius: 0;
}

.hero__title {
  display: grid;
  gap: 0.05rem;
  max-width: 8ch;
  margin: 0 auto;
  color: rgba(255, 250, 241, 0.98);
  font-family: var(--font-display);
  font-size: clamp(3.35rem, 16vw, 5.05rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 24px 52px rgba(0, 0, 0, 0.5);
}

.hero__title span {
  display: block;
}

.hero__names {
  margin-top: 0.85rem;
  color: rgba(255, 250, 241, 0.94);
  font-family: var(--font-script);
  font-size: clamp(2.25rem, 10vw, 3.25rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.94;
  text-transform: none;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
}

.hero__names span {
  color: var(--color-champagne);
}

.hero__meta {
  margin-top: 0.82rem;
}

#saveDateBtn {
  min-height: 2.18rem;
  gap: 0.34rem;
  padding: 0.48rem 0.76rem;
  font-size: 0.54rem;
  letter-spacing: 0.105em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

#saveDateBtn svg {
  width: 0.72rem;
  height: 0.72rem;
}

main > .section {
  content-visibility: auto;
  contain-intrinsic-size: 44rem;
}

.section {
  scroll-margin-top: 1rem;
}

.section__header {
  margin-bottom: clamp(1.35rem, 5vw, 2.25rem);
}

.section__header h2,
.story-copy h2,
.invitation-section h2 {
  text-wrap: balance;
}

.story-lead,
.gallery-intro,
.venue-intro,
.rsvp-intro,
.wishes-intro,
.invitation-text,
.footer__note {
  text-wrap: pretty;
}

.gallery-item img,
.venue-image img,
.story-portrait img {
  background: #eee5da;
  transform: translateZ(0);
}

.gallery-grid--minimal {
  gap: 0.62rem;
}

.gallery-item {
  box-shadow: 0 0.7rem 1.8rem rgba(36, 24, 22, 0.08);
}

.gallery-item__meta {
  backdrop-filter: blur(12px);
}

.form-row input,
.form-row textarea,
.choice span {
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.form-row:focus-within label,
.form-row:focus-within legend {
  color: var(--color-maroon);
}

.form-row input:focus,
.form-row textarea:focus,
.choice input:focus-visible + span {
  border-color: rgba(123, 38, 56, 0.42);
  box-shadow: 0 0 0 4px rgba(123, 38, 56, 0.09);
}

.map-frame iframe[src="about:blank"] {
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.92), rgba(243, 232, 220, 0.72)),
    radial-gradient(circle at 30% 25%, rgba(184, 138, 54, 0.16), transparent 34%);
}

/* Refined couple monogram */
.preloader__seal,
.invitation-flower {
  overflow: visible;
  border-color: rgba(184, 138, 54, 0.28);
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.82), rgba(255, 250, 240, 0.28) 62%),
    linear-gradient(135deg, rgba(184, 138, 54, 0.12), rgba(154, 161, 143, 0.08));
  box-shadow: 0 1rem 2.4rem rgba(36, 24, 22, 0.08);
}

.preloader__seal::before,
.invitation-flower::before {
  inset: 0.42rem;
  border: 1px solid rgba(184, 138, 54, 0.18);
  border-radius: inherit;
  transform: none;
  background: none;
}

.preloader__seal::after,
.invitation-flower::after {
  content: "&";
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 1.45rem;
  aspect-ratio: 1;
  border: 1px solid rgba(184, 138, 54, 0.28);
  border-radius: 50%;
  background: #fffaf0;
  color: #a8782c;
  font-family: var(--font-script);
  font-size: 1.05rem;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.preloader__initials,
.guest-intro__seal,
.invitation-flower {
  color: #2f2921;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.preloader__initials {
  padding-left: 0.14em;
  font-size: clamp(2.15rem, 10vw, 2.85rem);
}

.invitation-flower {
  position: relative;
  width: 4.75rem;
  aspect-ratio: 1;
  margin-bottom: 1.2rem;
  font-size: 1.65rem;
}

.invitation-section h2 {
  gap: 0.1rem;
}

.invitation-section h2 span:nth-child(2) {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  aspect-ratio: 1;
  margin: 0.05rem auto 0.12rem;
  border: 1px solid rgba(184, 138, 54, 0.3);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.72);
  color: #a8782c;
  font-size: 1.55rem;
  line-height: 1;
}

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

  .preloader {
    display: none;
  }
}
