@font-face {
  font-family: "Antarctic";
  src: url("./Antarctic.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg-top: #f7f2ea;
  --bg-bottom: #e8dccd;
  --paper: rgba(255, 251, 246, 0.76);
  --paper-strong: rgba(255, 251, 247, 0.92);
  --stroke: rgba(122, 98, 81, 0.14);
  --ink: #45342c;
  --muted: #7b6659;
  --accent: #a27e69;
  --accent-deep: #7b5a4a;
  --accent-soft: #d7c1ae;
  --light: #fffaf5;
  --shadow-lg: 0 30px 80px rgba(86, 62, 48, 0.24);
  --shadow-md: 0 18px 44px rgba(108, 84, 67, 0.14);
  --radius-xl: 2rem;
  --radius-lg: 1.45rem;
  --radius-md: 1rem;
  --font-antic: "Antarctic", "Baskerville", "Iowan Old Style", "Palatino Linotype", serif;
  --font-display: "Baskerville", "Iowan Old Style", "Palatino Linotype", serif;
  --font-script: "Snell Roundhand", "Apple Chancery", "URW Chancery L", cursive;
  --font-body: "Avenir Next", "Optima", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

.is-hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(237, 224, 208, 0.72), transparent 24%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  transition: background 1.1s ease;
}

body[data-stage="hero"] {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 246, 234, 0.82), transparent 26%),
    radial-gradient(circle at 88% 16%, rgba(237, 224, 208, 0.68), transparent 24%),
    linear-gradient(180deg, #f1e6da 0%, #d7c1ae 100%);
}

body[data-stage="promise"] {
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 255, 255, 0.76), transparent 24%),
    radial-gradient(circle at 82% 26%, rgba(240, 220, 205, 0.62), transparent 28%),
    linear-gradient(180deg, #efe2d5 0%, #dcc3b0 100%);
}

body[data-stage="day"] {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 248, 235, 0.62), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(235, 214, 190, 0.46), transparent 24%),
    linear-gradient(180deg, #ead9c7 0%, #c8a98a 100%);
}

body[data-stage="evening"] {
  background:
    radial-gradient(circle at 70% 14%, rgba(255, 239, 219, 0.34), transparent 20%),
    radial-gradient(circle at 18% 78%, rgba(188, 149, 119, 0.28), transparent 24%),
    linear-gradient(180deg, #ddc1ac 0%, #b3845d 100%);
}

body[data-stage="night"] {
  background:
    radial-gradient(circle at 52% 10%, rgba(247, 220, 182, 0.18), transparent 16%),
    radial-gradient(circle at 88% 70%, rgba(117, 84, 64, 0.22), transparent 22%),
    linear-gradient(180deg, #9f7456 0%, #4b342b 100%);
}

body[data-stage="finale"] {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 249, 241, 0.62), transparent 24%),
    radial-gradient(circle at 84% 76%, rgba(207, 183, 164, 0.22), transparent 22%),
    linear-gradient(180deg, #ece0d5 0%, #d1b9aa 100%);
}

.page-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.atmosphere-stage {
  position: absolute;
  inset: -12%;
  opacity: 0;
  transition: opacity 1.1s ease;
  filter: blur(14px);
}

.atmosphere-stage-hero {
  background:
    radial-gradient(circle at 50% 4%, rgba(255, 246, 234, 0.8), transparent 26%),
    linear-gradient(180deg, rgba(248, 241, 233, 0.52), rgba(221, 202, 188, 0.28));
}

.atmosphere-stage-promise {
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.7), transparent 22%),
    radial-gradient(circle at 82% 38%, rgba(238, 220, 208, 0.46), transparent 28%),
    linear-gradient(180deg, rgba(245, 235, 225, 0.58), rgba(222, 204, 192, 0.34));
}

.atmosphere-stage-day {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 249, 239, 0.6), transparent 22%),
    radial-gradient(circle at 82% 32%, rgba(226, 211, 192, 0.44), transparent 22%),
    linear-gradient(180deg, rgba(241, 228, 214, 0.46), rgba(212, 188, 168, 0.38));
}

.atmosphere-stage-evening {
  background:
    radial-gradient(circle at 68% 20%, rgba(255, 241, 222, 0.42), transparent 18%),
    radial-gradient(circle at 24% 78%, rgba(184, 145, 117, 0.24), transparent 24%),
    linear-gradient(180deg, rgba(227, 205, 190, 0.34), rgba(178, 138, 110, 0.34));
}

.atmosphere-stage-night {
  background:
    radial-gradient(circle at 52% 14%, rgba(244, 223, 194, 0.26), transparent 16%),
    linear-gradient(180deg, rgba(110, 80, 64, 0.26), rgba(45, 31, 26, 0.42));
}

.atmosphere-stage-finale {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 247, 236, 0.5), transparent 20%),
    radial-gradient(circle at 84% 78%, rgba(206, 181, 163, 0.26), transparent 22%),
    linear-gradient(180deg, rgba(243, 233, 224, 0.36), rgba(224, 207, 195, 0.28));
}

body[data-stage="hero"] .atmosphere-stage-hero,
body[data-stage="promise"] .atmosphere-stage-promise,
body[data-stage="day"] .atmosphere-stage-day,
body[data-stage="evening"] .atmosphere-stage-evening,
body[data-stage="night"] .atmosphere-stage-night,
body[data-stage="finale"] .atmosphere-stage-finale {
  opacity: 1;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
}

body::before {
  inset: -9rem auto auto -8rem;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 68%);
}

body::after {
  inset: auto -10rem -10rem auto;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(191, 162, 142, 0.22), transparent 66%);
}

.ambient-layer {
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  animation: float-layer 18s ease-in-out infinite;
}

.ambient-layer-left {
  top: 6rem;
  left: -6rem;
  width: 16rem;
  height: 28rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(222, 209, 194, 0.34), transparent);
  filter: blur(2px);
}

.ambient-layer-right {
  right: -7rem;
  bottom: 4rem;
  width: 18rem;
  height: 30rem;
  background:
    linear-gradient(180deg, rgba(242, 231, 220, 0.24), rgba(255, 255, 255, 0)),
    linear-gradient(145deg, rgba(226, 202, 183, 0.24), transparent);
  animation-delay: -9s;
}

.experience {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1.5rem 1rem 2.5rem;
}

.device-shell {
  position: relative;
  width: min(100%, 1280px);
}

.device-notch {
  display: none;
}

.device-screen {
  position: relative;
  min-height: 100vh;
}

.browser-bar {
  display: none;
}

.browser-pill {
  width: 1.95rem;
  height: 0.62rem;
  border-radius: 999px;
  background: rgba(93, 74, 63, 0.14);
}

.browser-pill-right {
  justify-self: end;
}

.browser-url {
  justify-self: center;
  max-width: 15rem;
  overflow: hidden;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  overflow: hidden;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 249, 239, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.08);
  filter: brightness(0.8) saturate(0.94) contrast(1.04);
  animation: hero-kenburns 28s ease-in-out infinite alternate;
}

.hero-curtain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 243, 225, 0.26), transparent 28%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.08), rgba(52, 36, 29, 0.2) 34%, rgba(13, 9, 8, 0.76) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.05) 8%,
      rgba(255, 255, 255, 0) 8%,
      rgba(255, 255, 255, 0) 17%
    ),
    linear-gradient(145deg, rgba(31, 21, 17, 0.12), rgba(10, 6, 6, 0.44));
  animation: curtain-shift 18s ease-in-out infinite;
}

.hero-curtain::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 52% 16%, rgba(255, 246, 233, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(11, 8, 7, 0) 0%, rgba(11, 8, 7, 0.08) 36%, rgba(4, 3, 3, 0.28) 100%);
  pointer-events: none;
}

.hero-curtain__sheen,
.hero-curtain__dust {
  position: absolute;
  pointer-events: none;
}

.hero-curtain__sheen {
  top: -10%;
  bottom: -14%;
  width: 32%;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 248, 238, 0.04) 34%, rgba(255, 248, 238, 0) 100%);
  filter: blur(18px);
  mix-blend-mode: screen;
  opacity: 0.5;
}

.hero-curtain__sheen-left {
  left: -6%;
  transform: skewX(-10deg);
  animation: hero-sheen-left 22s ease-in-out infinite;
}

.hero-curtain__sheen-right {
  right: -8%;
  width: 28%;
  transform: skewX(10deg);
  animation: hero-sheen-right 19s ease-in-out infinite;
}

.hero-curtain__dust {
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 245, 231, 0.14), transparent 22%),
    radial-gradient(circle at 22% 34%, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 78% 28%, rgba(255, 243, 226, 0.08), transparent 18%);
  mix-blend-mode: screen;
  animation: hero-dust 15s ease-in-out infinite;
}

.section-kicker {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-title,
.footer-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
}

.primary-button {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    opacity 0.22s ease;
}

.invitation-scroll {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
}

.invitation-scroll::before {
  content: "";
  position: absolute;
  inset: 7rem 6% 8rem;
  z-index: 0;
  border-radius: 4rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(242, 228, 214, 0.28) 24%,
    rgba(220, 195, 174, 0.28) 52%,
    rgba(124, 93, 74, 0.2) 78%,
    rgba(255, 251, 246, 0.26) 100%
  );
  filter: blur(82px);
  pointer-events: none;
}

.invitation-scroll::after {
  content: "";
  position: absolute;
  top: 12rem;
  bottom: 10rem;
  left: 50%;
  z-index: 0;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(180, 147, 122, 0),
    rgba(180, 147, 122, 0.28),
    rgba(112, 84, 67, 0.18),
    rgba(180, 147, 122, 0)
  );
  opacity: 0.8;
  pointer-events: none;
}

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

.hero,
.story-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  padding: 1.35rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke);
  background:
    linear-gradient(180deg, var(--paper-strong), var(--paper)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.36), transparent 36%);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.story-card {
  isolation: isolate;
}

.scene-card {
  --scene-outline: rgba(122, 98, 81, 0.14);
  --scene-wash: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  --scene-chapter-bg: rgba(255, 255, 255, 0.5);
  --scene-chapter-ink: rgba(123, 102, 89, 0.92);
  --scene-accent: rgba(189, 160, 138, 0.46);
  --scene-shadow: 0 28px 60px rgba(97, 74, 60, 0.14);
  --reveal-x: 0px;
  border-color: var(--scene-outline);
  box-shadow:
    var(--scene-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.scene-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--scene-wash);
}

.scene-card .section-copy,
.scene-card .facts-grid,
.scene-card .timeline,
.scene-card .faq-list,
.scene-card .dresscode-gallery,
.scene-card .rsvp-shell,
.scene-card .rsvp-progress,
.scene-card .rsvp-success-card,
.scene-card .venue-media,
.scene-card .venue-card,
.scene-card .rsvp-form,
.scene-card .countdown-overlay,
.scene-card .footer-copy {
  position: relative;
  z-index: 1;
}

.scene-card::after {
  display: none;
}

.scene-prologue {
  --scene-outline: rgba(201, 182, 166, 0.26);
  --scene-wash:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.86), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(236, 222, 210, 0.42));
  --scene-chapter-bg: rgba(255, 252, 248, 0.74);
  --scene-accent: rgba(223, 204, 188, 0.78);
  --scene-shadow: 0 28px 60px rgba(198, 166, 145, 0.22);
  --reveal-x: -22px;
}

.scene-vow {
  --scene-outline: rgba(207, 170, 151, 0.24);
  --scene-wash:
    radial-gradient(circle at 18% 46%, rgba(255, 233, 220, 0.48), transparent 26%),
    linear-gradient(135deg, rgba(247, 229, 220, 0.4), rgba(255, 255, 255, 0.08));
  --scene-chapter-bg: rgba(255, 247, 239, 0.68);
  --scene-accent: rgba(223, 173, 154, 0.72);
  --scene-shadow: 0 28px 60px rgba(186, 141, 126, 0.2);
  --reveal-x: 22px;
}

.scene-light {
  --scene-outline: rgba(204, 179, 153, 0.22);
  --scene-wash:
    radial-gradient(circle at 82% 20%, rgba(255, 244, 226, 0.4), transparent 24%),
    linear-gradient(155deg, rgba(247, 237, 221, 0.32), rgba(227, 216, 199, 0.24));
  --scene-chapter-bg: rgba(255, 248, 239, 0.66);
  --scene-accent: rgba(231, 200, 160, 0.72);
  --scene-shadow: 0 28px 60px rgba(176, 145, 112, 0.22);
  --reveal-x: 16px;
}

.scene-day {
  --scene-outline: rgba(191, 164, 140, 0.22);
  --scene-wash:
    radial-gradient(circle at 20% 14%, rgba(255, 248, 236, 0.34), transparent 20%),
    linear-gradient(180deg, rgba(247, 235, 222, 0.28), rgba(231, 212, 197, 0.28));
  --scene-chapter-bg: rgba(255, 249, 243, 0.66);
  --scene-accent: rgba(210, 181, 146, 0.72);
  --scene-shadow: 0 28px 60px rgba(160, 125, 95, 0.18);
  --reveal-x: -18px;
}

.scene-evening {
  --scene-outline: rgba(182, 147, 119, 0.22);
  --scene-wash:
    radial-gradient(circle at 82% 24%, rgba(255, 239, 224, 0.34), transparent 18%),
    linear-gradient(160deg, rgba(240, 221, 207, 0.34), rgba(201, 166, 139, 0.2));
  --scene-chapter-bg: rgba(248, 238, 229, 0.62);
  --scene-accent: rgba(200, 149, 111, 0.76);
  --scene-shadow: 0 28px 60px rgba(140, 99, 70, 0.22);
  --reveal-x: 18px;
}

.scene-calm {
  --scene-outline: rgba(188, 169, 154, 0.2);
  --scene-wash:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.52), transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(233, 223, 214, 0.3));
  --scene-chapter-bg: rgba(255, 252, 248, 0.68);
  --scene-accent: rgba(207, 187, 170, 0.72);
  --scene-shadow: 0 28px 60px rgba(157, 133, 116, 0.16);
  --reveal-x: -16px;
}

.scene-night {
  --scene-outline: rgba(115, 87, 72, 0.22);
  --scene-wash:
    radial-gradient(circle at 50% 18%, rgba(255, 228, 187, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(52, 38, 33, 0.14), rgba(24, 18, 16, 0.26));
  --scene-chapter-bg: rgba(45, 32, 27, 0.62);
  --scene-chapter-ink: rgba(255, 242, 231, 0.84);
  --scene-accent: rgba(148, 111, 90, 0.76);
  --scene-shadow: 0 28px 70px rgba(53, 38, 31, 0.24);
  --reveal-x: 12px;
}

.scene-response {
  --scene-outline: rgba(190, 158, 136, 0.24);
  --scene-wash:
    radial-gradient(circle at 82% 14%, rgba(255, 247, 235, 0.38), transparent 18%),
    linear-gradient(145deg, rgba(255, 247, 239, 0.22), rgba(221, 198, 178, 0.28));
  --scene-chapter-bg: rgba(255, 248, 241, 0.68);
  --scene-accent: rgba(214, 178, 148, 0.78);
  --scene-shadow: 0 28px 60px rgba(160, 123, 95, 0.2);
  --reveal-x: 16px;
}

.scene-finale {
  --scene-outline: rgba(201, 177, 159, 0.22);
  --scene-wash:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.6), transparent 24%),
    linear-gradient(180deg, rgba(255, 247, 241, 0.24), rgba(232, 215, 203, 0.26));
  --scene-chapter-bg: rgba(255, 252, 248, 0.72);
  --scene-accent: rgba(223, 196, 177, 0.8);
  --scene-shadow: 0 28px 60px rgba(174, 146, 128, 0.18);
  --reveal-x: -10px;
}

.scene-card.is-stage-focus {
  box-shadow:
    0 40px 84px rgba(87, 63, 50, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 0 0 1px var(--scene-accent);
}

.scene-card.is-stage-focus::before {
  opacity: 1;
}

.scene-card.is-stage-focus::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), var(--scene-chapter-bg));
  box-shadow:
    0 14px 28px rgba(97, 74, 60, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.28) inset;
}

.hero {
  min-height: min(88vh, 52rem);
  display: grid;
  place-items: center;
  align-content: end;
  gap: 0.85rem;
  padding: clamp(3.2rem, 6vw, 5.75rem) clamp(1.4rem, 4vw, 4.25rem) clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  width: min(100%, 58rem);
}

.hero-copy > * {
  opacity: 0;
  filter: blur(14px);
  transition:
    opacity 1.2s cubic-bezier(0.18, 0.72, 0.2, 1),
    transform 1.2s cubic-bezier(0.18, 0.72, 0.2, 1),
    filter 1.2s cubic-bezier(0.18, 0.72, 0.2, 1);
}

.hero-quote {
  position: relative;
  z-index: 1;
  max-width: 12ch;
  margin: 0;
  color: rgba(255, 245, 236, 0.96);
  font-family: var(--font-antic);
  font-size: clamp(3.02rem, 7.2vw, 5.76rem);
  line-height: 1.05;
  text-wrap: balance;
  --hero-quote-shift: -6.25rem;
  transform: translate3d(0, calc(var(--hero-quote-shift) + 1.9rem), 0) scale(0.985);
  margin-bottom: -6.25rem;
  text-shadow:
    0 1px 0 rgba(255, 248, 240, 0.08),
    0 10px 22px rgba(25, 16, 13, 0.18),
    0 20px 48px rgba(25, 16, 13, 0.36),
    0 32px 78px rgba(12, 8, 7, 0.36);
}

.hero-title {
  display: grid;
  gap: 0.06em;
  max-width: none;
  font-family: var(--font-antic);
  font-size: clamp(3.4rem, 8.2vw, 6.7rem);
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-wrap: balance;
  color: rgba(255, 248, 242, 0.98);
  transform: translate3d(0, 2.1rem, 0) scale(0.965);
  text-shadow:
    0 1px 0 rgba(255, 248, 242, 0.08),
    0 12px 28px rgba(30, 20, 17, 0.18),
    0 24px 52px rgba(30, 20, 17, 0.4),
    0 38px 88px rgba(14, 9, 8, 0.38);
}

.hero-title__names,
.hero-title__family {
  display: block;
}

.hero-title__names {
  white-space: nowrap;
}

.hero-date {
  position: relative;
  z-index: 1;
  margin: 0;
  display: grid;
  gap: 0.2rem;
  justify-items: center;
  font-family: var(--font-display);
  text-transform: uppercase;
  color: rgba(255, 242, 232, 0.88);
  transform: translate3d(0, 2.7rem, 0);
  text-shadow:
    0 1px 0 rgba(255, 246, 238, 0.08),
    0 10px 22px rgba(31, 21, 17, 0.18),
    0 18px 38px rgba(31, 21, 17, 0.3),
    0 28px 66px rgba(12, 8, 7, 0.32);
}

.hero-date__main {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  letter-spacing: 0.22em;
}

.hero-date__year {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.28em;
}

.hero.is-visible .hero-quote,
.hero.is-visible .hero-title,
.hero.is-visible .hero-date {
  opacity: 1;
  filter: blur(0);
}

.hero.is-visible .hero-quote {
  transform: translate3d(0, var(--hero-quote-shift), 0) scale(1);
  transition-delay: 0.16s;
}

.hero.is-visible .hero-quote::after {
  animation: cinematic-sheen 1.55s cubic-bezier(0.2, 0.72, 0.2, 1) 0.24s both;
}

.hero.is-visible .hero-title {
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: 0.34s;
}

.hero.is-visible .hero-title::after {
  animation: cinematic-sheen 1.7s cubic-bezier(0.2, 0.72, 0.2, 1) 0.4s both;
}

.hero.is-visible .hero-date {
  transform: translate3d(0, 0, 0);
  transition-delay: 0.5s;
}

.hero.is-visible .hero-date::after,
.reveal.is-visible .section-title::after,
.reveal.is-visible .scripted::after,
.reveal.is-visible .footer-title::after,
.reveal.is-visible .rsvp-step__title::after,
.rsvp-success-card.is-visible .rsvp-success-card__title::after {
  animation: cinematic-sheen 1.55s cubic-bezier(0.2, 0.72, 0.2, 1) 0.18s both;
}

.primary-button {
  color: var(--light);
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  box-shadow: 0 14px 28px rgba(96, 71, 58, 0.22);
}

.primary-button--full {
  width: 100%;
}

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

.secondary-button {
  appearance: none;
  border: 1px solid rgba(122, 98, 81, 0.16);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font: inherit;
  box-shadow: 0 14px 28px rgba(96, 71, 58, 0.08);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.secondary-button--soft {
  background: rgba(255, 251, 246, 0.7);
  border-color: rgba(122, 98, 81, 0.12);
  box-shadow:
    0 14px 28px rgba(96, 71, 58, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.secondary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(96, 71, 58, 0.12);
}

.primary-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.section-copy {
  position: relative;
  z-index: 1;
}

.centered {
  text-align: center;
}

.section-title {
  position: relative;
  z-index: 1;
  margin-top: 0.35rem;
  font-family: var(--font-antic);
  font-weight: 400;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: 0.01em;
  line-height: 0.98;
  text-wrap: balance;
}

.scripted {
  font-family: var(--font-antic);
  font-size: clamp(2.5rem, 4.2vw, 4rem);
  letter-spacing: 0;
  color: var(--accent-deep);
  line-height: 1.02;
  text-wrap: balance;
}

.hero-quote,
.hero-title,
.hero-date,
.section-title,
.scripted,
.footer-title,
.rsvp-success-card__title,
.rsvp-step__title {
  position: relative;
  isolation: isolate;
}

.hero-quote::after,
.hero-title::after,
.hero-date::after,
.section-title::after,
.scripted::after,
.footer-title::after,
.rsvp-success-card__title::after,
.rsvp-step__title::after {
  content: "";
  position: absolute;
  inset: -16% -12%;
  z-index: -1;
  background: linear-gradient(
    102deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 247, 236, 0.06) 38%,
    rgba(255, 253, 248, 0.42) 50%,
    rgba(255, 247, 236, 0.06) 62%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  filter: blur(10px);
  mix-blend-mode: screen;
  transform: translate3d(-120%, 0, 0) skewX(-16deg);
  pointer-events: none;
}

.section-lead {
  margin-top: 0.95rem;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.72;
}

.section-copy p {
  color: var(--muted);
  line-height: 1.72;
}

.section-copy.centered p,
.footer-card p {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.section-copy p:last-child {
  margin-bottom: 0;
}

.guest-card__shine {
  position: absolute;
  inset: -3rem auto auto -4rem;
  width: 14rem;
  height: 14rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.72), transparent 70%);
}

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

.fact-card {
  padding: 0.95rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(128, 103, 87, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 246, 0.52));
  text-align: left;
}

.fact-card span {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.fact-card strong {
  display: block;
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.2;
  font-weight: 400;
}

.split-card {
  display: grid;
  gap: 1.25rem;
}

.love-photo,
.dresscode-reference {
  position: relative;
  margin: 0;
  border-radius: calc(var(--radius-xl) - 0.35rem);
  overflow: hidden;
  border: 1px solid rgba(124, 101, 86, 0.12);
  box-shadow:
    0 24px 48px rgba(108, 84, 67, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.love-photo img,
.dresscode-reference img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.love-photo {
  min-height: 22rem;
}

.love-photo img {
  min-height: 22rem;
  object-position: center center;
}

.venue-section,
.timeline-section,
.palette-section,
.faq-section,
.guest-section,
.rsvp-section {
  display: grid;
  gap: 1.2rem;
}

.venue-media {
  position: relative;
  margin: 1.15rem 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(122, 98, 81, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.venue-media img {
  display: block;
  width: 100%;
  height: 23rem;
  object-fit: cover;
}

.venue-pet {
  position: absolute;
  right: 0.55rem;
  bottom: -0.2rem;
  z-index: 1;
  width: clamp(4.8rem, 18vw, 7.6rem);
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 115%, 0) rotate(-8deg);
  transform-origin: bottom right;
  transition:
    opacity 0.8s ease,
    transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: 0.14s;
  filter: drop-shadow(0 14px 20px rgba(41, 30, 23, 0.22));
}

.venue-pet img {
  display: block;
  width: 100%;
  height: auto;
}

.venue-section.is-visible .venue-pet {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(-4deg);
}

.venue-card {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(122, 98, 81, 0.1);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.72), rgba(255, 249, 243, 0.52));
}

.venue-name {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.28rem;
}

.venue-address {
  margin: 0.55rem 0 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.timeline {
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
  padding: 1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(122, 98, 81, 0.1);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.72), rgba(255, 247, 241, 0.5));
}

.scene-day .timeline-item:nth-child(2n) {
  background: linear-gradient(180deg, rgba(249, 239, 230, 0.78), rgba(255, 247, 241, 0.5));
}

.timeline-time {
  min-width: 4.6rem;
  margin: 0;
  color: var(--accent);
  font-family: var(--font-script);
  font-size: 2rem;
}

.timeline-item h3 {
  margin: 0 0 0.32rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 400;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.dresscode-gallery {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.dresscode-reference-main img {
  height: 100%;
  min-height: 24rem;
  object-position: center top;
}

.dresscode-reference-palette img {
  height: 100%;
  min-height: 24rem;
  object-position: center;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.faq-item {
  padding: 1rem 1rem 0;
  border-radius: 1.2rem;
  border: 1px solid rgba(122, 98, 81, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(253, 248, 243, 0.52));
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  cursor: pointer;
  list-style: none;
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 1.16rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 1.25rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0.85rem 0 1rem;
  color: var(--muted);
  line-height: 1.66;
}

.faq-item a {
  color: var(--accent-deep);
}

.countdown-card {
  min-height: 33rem;
  padding: 0;
}

.scene-response .primary-button--full {
  box-shadow:
    0 16px 32px rgba(96, 71, 58, 0.2),
    0 0 0 1px rgba(255, 244, 233, 0.18) inset;
}

.countdown-visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 15, 14, 0.18), rgba(14, 10, 10, 0.72)),
    radial-gradient(circle at 28% 24%, rgba(248, 224, 187, 0.18), transparent 18%),
    radial-gradient(circle at 72% 18%, rgba(255, 245, 231, 0.14), transparent 18%),
    linear-gradient(180deg, #cfb29a 0%, #8d705d 48%, #3e312b 100%);
}

.countdown-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: inherit;
  border: none;
  box-shadow: none;
  opacity: 0;
  transform: scale(1.08);
  transform-origin: center center;
  transition:
    opacity 0.9s ease,
    transform 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.photo-print-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 251, 243, 0.18), transparent 24%),
    radial-gradient(circle at 82% 78%, rgba(120, 96, 82, 0.12), transparent 22%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      rgba(0, 0, 0, 0.015) 1px,
      rgba(0, 0, 0, 0.015) 2px
    ),
    linear-gradient(180deg, rgba(255, 248, 240, 0.08), rgba(25, 18, 16, 0.08));
  mix-blend-mode: soft-light;
  opacity: 0.9;
  pointer-events: none;
}

.countdown-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 246, 233, 0.14), rgba(16, 12, 11, 0.3) 42%, rgba(8, 6, 6, 0.54) 100%),
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.16), transparent 28%);
  pointer-events: none;
}

.countdown-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  filter: saturate(0.96) contrast(1.02) brightness(0.94);
}

.countdown-section.is-visible .countdown-photo {
  opacity: 1;
  transform: scale(1);
}

.countdown-visual::before,
.countdown-visual::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px 999px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.12), rgba(255, 252, 247, 0.02)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 40%);
}

.countdown-visual::before {
  left: 16%;
  bottom: 0;
  width: 32%;
  height: 56%;
}

.countdown-visual::after {
  right: 16%;
  bottom: 0;
  width: 30%;
  height: 52%;
}

.countdown-overlay {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 1rem;
  min-height: 33rem;
  padding: 1.6rem;
  color: var(--light);
  text-align: center;
}

.light {
  color: rgba(255, 249, 243, 0.82);
}

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

.countdown-cell {
  position: relative;
  padding: 0.14rem 0.34rem 0.5rem;
  border: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.countdown-cell span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.76rem;
  line-height: 0.92;
  text-shadow:
    0 1px 0 rgba(255, 247, 238, 0.14),
    0 12px 24px rgba(10, 7, 7, 0.24),
    0 20px 40px rgba(10, 7, 7, 0.32);
}

.countdown-cell::after {
  content: "";
  position: absolute;
  top: 8%;
  right: 0;
  bottom: 8%;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    rgba(255, 247, 239, 0.42),
    rgba(255, 255, 255, 0)
  );
}

.countdown-cell:last-child::after {
  display: none;
}

.countdown-cell small {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.62rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.countdown-cell small,
.countdown-note {
  color: rgba(255, 249, 243, 0.82);
}

.countdown-note {
  margin: 0;
  max-width: 22rem;
  font-size: 0.88rem;
}

.inline-guest {
  color: var(--accent-deep);
  font-weight: 600;
}

.rsvp-shell {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.rsvp-progress {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(122, 98, 81, 0.12);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.78), transparent 24%),
    linear-gradient(180deg, rgba(255, 252, 248, 0.86), rgba(249, 241, 234, 0.72));
  box-shadow:
    0 18px 36px rgba(108, 84, 67, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.rsvp-progress__caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rsvp-progress__track {
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(122, 98, 81, 0.1);
  overflow: hidden;
}

.rsvp-progress__bar {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d8bcaa 0%, #a27e69 55%, #7b5a4a 100%);
  box-shadow: 0 8px 18px rgba(123, 90, 74, 0.22);
  transition: width 0.38s ease;
}

.rsvp-progress__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.rsvp-progress__step {
  display: grid;
  gap: 0.22rem;
  padding: 0.75rem 0.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(122, 98, 81, 0.1);
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease,
    color 0.28s ease;
}

.rsvp-progress__step span {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1;
}

.rsvp-progress__step small {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rsvp-progress__step.is-active,
.rsvp-progress__step.is-complete {
  color: var(--ink);
  border-color: rgba(162, 126, 105, 0.22);
  background: linear-gradient(180deg, rgba(255, 249, 243, 0.92), rgba(241, 226, 213, 0.76));
  box-shadow: 0 16px 30px rgba(96, 71, 58, 0.08);
}

.rsvp-progress__step.is-active {
  transform: translateY(-1px);
}

.rsvp-progress__step.is-complete span {
  color: var(--accent-deep);
}

.rsvp-form {
  display: grid;
  gap: 1rem;
}

.rsvp-form fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

.rsvp-form legend,
.rsvp-form label {
  color: var(--ink);
  font-size: 0.95rem;
}

.rsvp-step {
  display: none;
  gap: 1rem;
  animation: rsvp-step-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rsvp-step.is-active {
  display: grid;
}

.rsvp-step__intro {
  display: grid;
  gap: 0.35rem;
}

.rsvp-step__eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.rsvp-step__title {
  margin: 0;
  font-family: var(--font-antic);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 400;
  line-height: 0.96;
}

.rsvp-step__lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.attendance-grid,
.drink-grid {
  display: grid;
  gap: 0.75rem;
}

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

.choice-card,
.check-card {
  position: relative;
  display: block;
}

.choice-card input,
.check-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.choice-card span,
.check-card span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.45rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(122, 98, 81, 0.12);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.choice-card input:checked + span {
  color: var(--light);
  border-color: transparent;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  box-shadow: 0 16px 24px rgba(98, 73, 60, 0.18);
}

.check-card span {
  justify-content: flex-start;
}

.check-card span::before {
  content: "";
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 98, 81, 0.22);
  background: rgba(255, 255, 255, 0.8);
}

.check-card input:checked + span {
  border-color: rgba(122, 98, 81, 0.2);
  background: rgba(162, 126, 105, 0.14);
}

.check-card input:checked + span::before {
  border-color: transparent;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  box-shadow: inset 0 0 0 0.18rem rgba(255, 255, 255, 0.92);
}

.attendance-extra {
  display: grid;
  gap: 1rem;
}

.attendance-extra.is-hidden,
.attendance-promise.is-hidden {
  display: none;
}

.rsvp-summary {
  display: grid;
  gap: 0.75rem;
}

.rsvp-summary__item {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(122, 98, 81, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 249, 244, 0.56));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.rsvp-summary__item span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rsvp-summary__item strong {
  display: block;
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 400;
  line-height: 1.5;
}

.attendance-promise {
  padding: 0.95rem 1rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(122, 98, 81, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 249, 244, 0.44));
}

.promise-check {
  position: relative;
  display: block;
}

.promise-check input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.promise-check span {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.1rem 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.promise-check span::before {
  content: "";
  flex: none;
  width: 0.84rem;
  height: 0.84rem;
  margin-top: 0.18rem;
  border-radius: 0.2rem;
  border: 1px solid rgba(122, 98, 81, 0.24);
  background: rgba(255, 255, 255, 0.9);
}

.promise-check input:checked + span {
  color: var(--ink);
}

.promise-check input:checked + span::before {
  border-color: transparent;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  box-shadow: inset 0 0 0 0.16rem rgba(255, 255, 255, 0.92);
}

.promise-error {
  min-height: 1.1rem;
  margin: 0.32rem 0 0 1.45rem;
  color: #b33131;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.promise-error.is-visible {
  opacity: 1;
}

.rsvp-form input[type="text"],
.rsvp-form textarea {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(122, 98, 81, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.rsvp-form input[type="text"]:focus,
.rsvp-form textarea:focus {
  outline: none;
  border-color: rgba(162, 126, 105, 0.34);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(210, 181, 146, 0.14);
}

.rsvp-form textarea {
  resize: vertical;
}

.rsvp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rsvp-actions > * {
  flex: 1 1 13rem;
}

.form-success {
  min-height: 1.4rem;
  margin: 0;
  color: var(--accent-deep);
}

.form-success.is-error {
  color: #b33131;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rsvp-success-card {
  position: relative;
  display: grid;
  align-items: end;
  gap: 1rem;
  overflow: hidden;
  padding: 1.35rem 1.2rem 1rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(122, 98, 81, 0.12);
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.76), transparent 24%),
    linear-gradient(135deg, rgba(255, 252, 248, 0.92), rgba(241, 226, 214, 0.78));
  box-shadow:
    0 28px 54px rgba(114, 88, 68, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.54);
  opacity: 0;
  transform: translate3d(0, 1rem, 0) scale(0.985);
  transition:
    opacity 0.55s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rsvp-success-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.rsvp-success-card__glow {
  position: absolute;
  inset: auto auto -5rem -4rem;
  width: 15rem;
  height: 15rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7), transparent 70%);
  pointer-events: none;
}

.rsvp-success-card__copy {
  position: relative;
  z-index: 1;
  max-width: 28rem;
}

.rsvp-success-card__title {
  margin: 0.2rem 0 0.45rem;
  font-family: var(--font-antic);
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 400;
  line-height: 0.98;
}

.rsvp-success-card__copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.rsvp-success-card__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.rsvp-success-card__actions > * {
  flex: 1 1 12rem;
}

.rsvp-success-card__pet {
  position: relative;
  z-index: 1;
  justify-self: end;
  align-self: end;
  width: clamp(8.6rem, 18vw, 12rem);
  margin: 0 -0.15rem -0.95rem 0;
  opacity: 0;
  transform: translate3d(0, 1.6rem, 0) rotate(-5deg);
  transition:
    opacity 0.55s ease 0.12s,
    transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s;
  filter: drop-shadow(0 20px 28px rgba(70, 51, 38, 0.18));
}

.rsvp-success-card__pet img {
  display: block;
  width: 100%;
  height: auto;
}

.rsvp-success-card.is-visible .rsvp-success-card__pet {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(-2deg);
}

.footer-card {
  position: relative;
  margin-bottom: 0;
  text-align: center;
  padding: 2.3rem 1.25rem 4.9rem;
}

.footer-copy {
  position: relative;
  z-index: 1;
}

.footer-title {
  font-family: var(--font-antic);
  font-size: clamp(2.1rem, 3.2vw, 3.6rem);
  letter-spacing: 0;
  line-height: 1.05;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.footer-pet {
  position: absolute;
  right: 0.8rem;
  bottom: -0.15rem;
  z-index: 0;
  width: clamp(4.7rem, 16vw, 8.4rem);
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 110%, 0) rotate(-7deg);
  transform-origin: bottom center;
  transition:
    opacity 0.8s ease,
    transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: 0.18s;
  filter: drop-shadow(0 16px 22px rgba(71, 52, 39, 0.18));
}

.footer-pet img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-section.is-visible .footer-pet {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(-3deg);
}

.reveal {
  opacity: 0;
  filter: blur(14px);
  transform: translate3d(var(--reveal-x, 0), var(--reveal-y, 40px), 0) scale(0.985);
  transition:
    opacity 0.95s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.95s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.95s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity, filter;
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

.reveal.is-visible.scene-card.is-stage-focus {
  transform: translate3d(0, -10px, 0) scale(1.01);
}

@keyframes curtain-shift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-2%, 1%, 0) scale(1.03);
  }
}

@keyframes hero-kenburns {
  0% {
    transform: scale(1.08) translate3d(-1.4%, -1.2%, 0);
  }

  50% {
    transform: scale(1.12) translate3d(0.8%, -2.2%, 0);
  }

  100% {
    transform: scale(1.1) translate3d(1.6%, 1%, 0);
  }
}

@keyframes hero-kenburns-mobile {
  0% {
    transform: scale(1.05) translate3d(-0.8%, -0.8%, 0);
  }

  50% {
    transform: scale(1.08) translate3d(0.5%, -1.2%, 0);
  }

  100% {
    transform: scale(1.06) translate3d(1%, 0.6%, 0);
  }
}

@keyframes hero-sheen-left {
  0%,
  100% {
    transform: translate3d(0, 0, 0) skewX(-10deg);
    opacity: 0.34;
  }

  50% {
    transform: translate3d(12%, -1%, 0) skewX(-8deg);
    opacity: 0.62;
  }
}

@keyframes hero-sheen-right {
  0%,
  100% {
    transform: translate3d(0, 0, 0) skewX(10deg);
    opacity: 0.28;
  }

  50% {
    transform: translate3d(-10%, 1%, 0) skewX(7deg);
    opacity: 0.52;
  }
}

@keyframes hero-dust {
  0%,
  100% {
    opacity: 0.34;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 0.58;
    transform: translate3d(0, -1.2%, 0) scale(1.02);
  }
}

@keyframes cinematic-sheen {
  0% {
    opacity: 0;
    transform: translate3d(-120%, 0, 0) skewX(-16deg);
  }

  18% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
    transform: translate3d(120%, 0, 0) skewX(-10deg);
  }
}

@keyframes rsvp-step-in {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translate3d(0, 14px, 0);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes float-layer {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-1.5rem) rotate(2deg);
  }
}

@media (min-width: 900px) {
  .experience {
    padding: 2rem 1.5rem 3rem;
  }

  .invitation-scroll {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.35rem;
  }

  .invitation-scroll::before {
    inset: 8rem 8% 9rem;
  }

  .invitation-scroll > * {
    margin-bottom: 0;
  }

  .hero-section,
  .footer-section {
    grid-column: 1 / -1;
  }

  .guest-section,
  .venue-section,
  .palette-section,
  .rsvp-section {
    grid-column: span 7;
  }

  .vow-section,
  .timeline-section,
  .faq-section,
  .countdown-section {
    grid-column: span 5;
  }

  .hero-section {
    min-height: min(84vh, 48rem);
  }

  .hero-section .hero-title {
    gap: 0;
  }

  .guest-section {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 2rem;
  }

  .guest-section .section-copy {
    text-align: left;
  }

  .guest-section .section-copy p,
  .guest-section .section-title {
    margin-left: 0;
    margin-right: 0;
  }

  .guest-section .facts-grid {
    margin-top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vow-section {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    padding: 2rem;
  }

  .vow-section .love-photo {
    min-height: 0;
    align-self: start;
  }

  .vow-section .love-photo img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 40rem;
    object-fit: contain;
    object-position: center center;
  }

  .venue-section {
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-areas:
      "copy copy"
      "media meta";
    align-items: start;
    padding: 2rem;
  }

  .venue-section .section-copy {
    grid-area: copy;
  }

  .venue-section .venue-media {
    grid-area: media;
    margin: 0;
  }

  .venue-pet {
    right: 0.95rem;
    bottom: -0.3rem;
    width: clamp(7.6rem, 13vw, 10rem);
  }

  .venue-section .venue-card {
    grid-area: meta;
    margin-top: 0;
    min-height: 100%;
    display: grid;
    align-content: start;
  }

  .timeline-section,
  .palette-section,
  .faq-section,
  .rsvp-section {
    padding: 2rem;
  }

  .rsvp-shell {
    gap: 1.15rem;
  }

  .rsvp-progress {
    padding: 1.1rem 1.15rem;
  }

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

  .rsvp-summary__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .rsvp-success-card {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1.55rem 1.5rem 1.2rem;
  }

  .rsvp-success-card__actions {
    grid-column: 1 / 2;
    max-width: 30rem;
  }

  .timeline-section {
    align-content: start;
  }

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

  .palette-section .dresscode-gallery {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    align-items: stretch;
  }

  .faq-section .faq-list {
    margin-top: 0.2rem;
  }

  .countdown-section {
    min-height: 100%;
  }

  .countdown-grid {
    width: min(100%, 29.5rem);
    gap: 0.46rem;
  }

  .countdown-cell {
    padding: 0.16rem 0.42rem 0.56rem;
  }

  .countdown-cell span {
    font-size: 1.92rem;
  }

  .countdown-cell small {
    font-size: 0.66rem;
    letter-spacing: 0.18em;
  }

  .countdown-photo {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.06);
    transform-origin: center center;
  }

  .countdown-section.is-visible .countdown-photo {
    transform: scale(1);
  }

  .countdown-overlay {
    min-height: 100%;
    align-content: end;
    padding: 2rem;
    text-align: center;
  }

  .countdown-note {
    max-width: 24rem;
    font-size: 0.9rem;
  }

  .countdown-grid {
    width: min(100%, 24.5rem);
    gap: 0.58rem;
  }

  .countdown-cell {
    padding: 0.72rem 0.3rem;
  }

  .countdown-cell span {
    font-size: 1.42rem;
  }

  .countdown-note {
    max-width: 20rem;
    font-size: 0.84rem;
  }

  .footer-card {
    padding: 2.8rem 9.5rem 3.2rem 3rem;
    min-height: 13.5rem;
    text-align: left;
  }

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

  .footer-title {
    max-width: 13ch;
    margin-left: 0;
    margin-right: 0;
  }

  .footer-pet {
    right: 1.6rem;
    bottom: -0.25rem;
    width: clamp(8rem, 16vw, 11.5rem);
  }
}

@media (max-width: 540px) {
  .experience {
    padding: 0.75rem 0.75rem 1.4rem;
  }

  .device-shell {
    width: 100%;
  }

  .invitation-scroll {
    padding: 0;
  }

  .invitation-scroll::before,
  .invitation-scroll::after {
    display: none;
  }

  .device-screen {
    min-height: auto;
  }

  .hero {
    min-height: min(84vh, 42rem);
    padding: 2.2rem 1.15rem 1.85rem;
  }

  .hero-copy {
    position: static;
    width: 100%;
    gap: 0.72rem;
    max-width: none;
  }

  .hero-title {
    font-size: clamp(2.9rem, 14vw, 4.35rem);
  }

  .hero-title__names {
    white-space: normal;
  }

  .hero-quote {
    font-size: clamp(2.6rem, 13vw, 3.9rem);
    position: absolute;
    top: 4.9rem;
    left: 50%;
    z-index: 2;
    width: min(82%, 16rem);
    max-width: none;
    margin: 0;
    margin-bottom: 0;
    transform: translate3d(-50%, 1.35rem, 0) scale(0.985);
    text-align: center;
    text-shadow:
      0 1px 0 rgba(255, 248, 240, 0.12),
      0 10px 18px rgba(19, 12, 10, 0.2),
      0 22px 38px rgba(19, 12, 10, 0.34),
      0 34px 68px rgba(7, 5, 4, 0.38);
  }

  .hero.is-visible .hero-quote {
    transform: translate3d(-50%, 0, 0) scale(1);
  }

  .hero-title {
    position: relative;
    z-index: 1;
    text-shadow:
      0 1px 0 rgba(255, 248, 242, 0.14),
      0 12px 22px rgba(18, 12, 10, 0.24),
      0 28px 50px rgba(18, 12, 10, 0.4),
      0 40px 86px rgba(7, 5, 4, 0.42);
  }

  .hero-date {
    position: relative;
    z-index: 1;
    text-shadow:
      0 1px 0 rgba(255, 246, 238, 0.12),
      0 10px 20px rgba(18, 12, 10, 0.2),
      0 22px 42px rgba(18, 12, 10, 0.34),
      0 34px 72px rgba(7, 5, 4, 0.36);
  }

  .hero-media img {
    object-position: center top;
    animation-name: hero-kenburns-mobile;
    animation-duration: 24s;
  }

  .scene-card::after {
    top: 0.82rem;
    left: 0.82rem;
    padding: 0.28rem 0.56rem;
    font-size: 0.52rem;
    letter-spacing: 0.18em;
  }

  .hero-date__main {
    letter-spacing: 0.16em;
  }

  .hero-date__year {
    letter-spacing: 0.18em;
  }

  .guest-section,
  .vow-section,
  .venue-section,
  .timeline-section,
  .palette-section,
  .faq-section,
  .rsvp-section {
    gap: 1rem;
  }

  .rsvp-progress {
    padding: 0.9rem;
  }

  .countdown-card {
    min-height: 31rem;
  }

  .countdown-overlay {
    min-height: 31rem;
    padding: 1.25rem;
    gap: 0.72rem;
  }

  .countdown-photo {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .countdown-grid {
    width: min(100%, 17.2rem);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.24rem;
  }

  .countdown-cell {
    position: relative;
    padding: 0.1rem 0.18rem 0.42rem;
    border: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .countdown-cell span {
    font-size: 1.52rem;
    line-height: 0.92;
    text-shadow:
      0 1px 0 rgba(255, 247, 238, 0.14),
      0 10px 20px rgba(10, 7, 7, 0.22),
      0 18px 36px rgba(10, 7, 7, 0.3);
  }

  .countdown-cell::after {
    content: "";
    position: absolute;
    top: 8%;
    right: 0;
    bottom: 8%;
    width: 1px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0),
      rgba(255, 247, 239, 0.44),
      rgba(255, 255, 255, 0)
    );
  }

  .countdown-cell:last-child::after {
    display: none;
  }

  .countdown-cell small {
    display: block;
    margin-top: 0.26rem;
    font-size: 0.58rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .countdown-note {
    max-width: 15rem;
    font-size: 0.78rem;
  }

  .rsvp-progress__steps {
    gap: 0.45rem;
  }

  .rsvp-progress__step {
    padding: 0.62rem 0.55rem;
  }

  .rsvp-progress__step small {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
  }

  .rsvp-actions > * {
    flex-basis: 100%;
  }

  .rsvp-success-card {
    padding-bottom: 0.6rem;
  }

  .rsvp-success-card__pet {
    justify-self: center;
    width: min(10rem, 54vw);
    margin-right: 0;
  }

  .rsvp-success-card__actions > * {
    flex-basis: 100%;
  }

  .footer-card {
    padding: 2.1rem 1.15rem 5.2rem;
  }

  .venue-pet {
    right: 0.45rem;
    width: 5.2rem;
  }

  .footer-pet {
    right: 0.55rem;
    width: 5.4rem;
  }
}

@media (max-width: 420px) {
  .hero,
  .story-card {
    padding: 1.1rem;
    border-radius: 1.6rem;
  }

  .countdown-card {
    min-height: 29.5rem;
  }

  .countdown-overlay {
    min-height: 29.5rem;
    padding: 1.05rem;
    gap: 0.66rem;
  }

  .countdown-photo {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .countdown-grid {
    width: min(100%, 15.2rem);
    gap: 0.18rem;
  }

  .countdown-cell {
    padding: 0.08rem 0.12rem 0.34rem;
  }

  .countdown-cell span {
    font-size: 1.28rem;
  }

  .countdown-note {
    max-width: 13.4rem;
    font-size: 0.72rem;
  }

  .footer-card {
    padding: 1.85rem 1rem 4.6rem;
  }

  .venue-pet {
    right: 0.35rem;
    width: 4.6rem;
  }

  .footer-pet {
    right: 0.45rem;
    width: 4.7rem;
  }

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

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

  .rsvp-progress__caption {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .rsvp-step__title {
    font-size: 1.65rem;
  }

  .scripted {
    font-size: 2.2rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .timeline-time {
    min-width: 0;
  }
}
