:root {
  --ink: #030711;
  --ink-soft: #071126;
  --navy: #071a48;
  --blue: #0b3fae;
  --blue-bright: #2f6dff;
  --blue-pale: #accaff;
  --silver: #dce6f4;
  --silver-dim: #8e9cb3;
  --white: #f8fbff;
  --paper: #eef3fb;
  --line: rgba(220, 230, 244, 0.2);
  --line-strong: rgba(220, 230, 244, 0.42);
  --font-display: "Italiana", Georgia, serif;
  --font-script: "Parisienne", "Segoe Script", cursive;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --content: 1180px;
  --header-height: 82px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

a {
  color: inherit;
}

::selection {
  background: var(--blue-bright);
  color: var(--white);
}

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

.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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 11px 16px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(220, 230, 244, 0.12);
  background: rgba(3, 7, 17, 0.9);
  backdrop-filter: blur(16px);
  transition:
    background 250ms ease,
    border-color 250ms ease,
    backdrop-filter 250ms ease;
}

.site-header.is-scrolled {
  background: rgba(3, 7, 17, 0.82);
  border-color: rgba(220, 230, 244, 0.12);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(calc(100% - 48px), var(--content));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(220, 230, 244, 0.7);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  box-shadow:
    inset 0 0 0 4px rgba(220, 230, 244, 0.06),
    0 0 22px rgba(47, 109, 255, 0.2);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.08;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-copy span:last-child {
  color: var(--silver-dim);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
}

.site-nav a {
  position: relative;
  color: rgba(248, 251, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.site-nav a:not(.nav-rsvp)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--blue-pale);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
}

.site-nav a:not(.nav-rsvp):hover::after,
.site-nav a:not(.nav-rsvp):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-rsvp {
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition:
    background 180ms ease,
    border-color 180ms ease !important;
}

.nav-rsvp:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink) !important;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.menu-button > span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 200ms ease;
}

.hero {
  position: relative;
  min-height: max(780px, 100svh);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 13%, rgba(255, 255, 255, 0.99), rgba(249, 247, 242, 0.97) 38%, rgba(226, 234, 247, 0.98) 100%);
  color: var(--ink-soft);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, #020c2c 0, #082a70 5%, rgba(11, 63, 174, 0.88) 9%, rgba(4, 24, 72, 0.52) 14%, transparent 21%),
    linear-gradient(260deg, #020c2c 0, #082a70 5%, rgba(11, 63, 174, 0.88) 9%, rgba(4, 24, 72, 0.52) 14%, transparent 21%),
    repeating-linear-gradient(90deg, rgba(7, 26, 72, 0.025) 0 1px, transparent 1px 72px);
  content: "";
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 190px;
  background: linear-gradient(to bottom, transparent, var(--ink));
  content: "";
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.34;
}

.hero-glow-one {
  top: -280px;
  left: -160px;
  background: radial-gradient(circle, rgba(47, 109, 255, 0.24), transparent 68%);
}

.hero-glow-two {
  right: -180px;
  bottom: -290px;
  background: radial-gradient(circle, rgba(31, 91, 230, 0.28), transparent 68%);
}

.star-field {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 23% 74%, rgba(143, 185, 255, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 13%, rgba(255, 255, 255, 0.85) 0 1px, transparent 2px),
    radial-gradient(circle at 87% 33%, rgba(255, 255, 255, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 81%, rgba(143, 185, 255, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 42%, rgba(255, 255, 255, 0.48) 0 1px, transparent 2px);
  background-size: 310px 250px, 370px 320px, 280px 340px, 440px 290px, 390px 360px, 220px 270px;
  animation: starDrift 22s linear infinite alternate;
}

@keyframes starDrift {
  to {
    transform: translate3d(10px, 12px, 0);
  }
}

.carpet-lines {
  position: absolute;
  right: auto;
  bottom: -17%;
  left: 50%;
  width: min(52%, 760px);
  height: 66%;
  opacity: 0.9;
  transform: translateX(-50%) perspective(650px) rotateX(67deg);
  transform-origin: bottom;
  border: 1px solid rgba(220, 230, 244, 0.8);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 18% 82%, rgba(255, 255, 255, 0.12)),
    repeating-linear-gradient(90deg, #061846 0 78px, #0a2e79 79px 80px);
  box-shadow: 0 0 0 8px rgba(7, 26, 72, 0.13), 0 -18px 70px rgba(11, 63, 174, 0.18);
  clip-path: polygon(37% 0, 63% 0, 100% 100%, 0 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 64px), var(--content));
  min-height: 720px;
  padding: calc(var(--header-height) + 58px) 0 76px;
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.hero-copy {
  padding-top: 20px;
}

.hero .eyebrow,
.hero .hero-script {
  color: var(--blue);
}

.eyebrow,
.section-kicker {
  margin: 0 0 20px;
  color: var(--blue-pale);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow span {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-bright), var(--silver));
}

.hero-script {
  margin: 0 0 -19px 4px;
  color: var(--blue-pale);
  font-family: var(--font-script);
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1;
  transform: rotate(-3deg);
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(68px, 8.1vw, 124px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.78;
  text-wrap: balance;
  color: #030b22;
}

.hero-intro {
  max-width: 530px;
  margin: 34px 0 0;
  color: rgba(7, 26, 72, 0.72);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.75;
}

.hero-intro strong {
  color: var(--navy);
  font-weight: 600;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.button {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms ease,
    background 220ms ease,
    color 220ms ease;
}

.button svg,
.retailer-grid svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

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

.button-primary {
  background: linear-gradient(135deg, #1f58d5, #2f74ff);
  color: var(--white);
  box-shadow: 0 14px 36px rgba(23, 80, 215, 0.32);
}

.button-primary:hover {
  box-shadow: 0 18px 44px rgba(23, 80, 215, 0.5);
}

.text-link,
.text-button {
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: rgba(248, 251, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.text-link:hover,
.text-button:hover {
  border-color: var(--white);
  color: var(--white);
}

.hero .text-link {
  border-color: rgba(7, 26, 72, 0.32);
  color: rgba(7, 26, 72, 0.82);
}

.hero .text-link:hover,
.hero .text-link:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.hero-date {
  margin-top: 42px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.date-day {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
}

.date-rule {
  width: 1px;
  height: 38px;
  background: var(--line-strong);
}

.hero-date strong,
.hero-date small {
  display: block;
}

.hero-date strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-date small {
  margin-top: 3px;
  color: rgba(7, 26, 72, 0.62);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portrait-stage {
  position: relative;
  width: min(100%, 510px);
  margin-left: auto;
  padding: 34px 34px 44px;
}

.portrait-orbit {
  position: absolute;
  inset: 1% -7% 7%;
  border: 1px solid rgba(172, 202, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 90px rgba(33, 93, 221, 0.2),
    inset 0 0 80px rgba(33, 93, 221, 0.08);
}

.portrait-orbit::before,
.portrait-orbit::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 18px 6px rgba(172, 202, 255, 0.7);
  content: "";
}

.portrait-orbit::before {
  top: 16%;
  right: 12%;
}

.portrait-orbit::after {
  bottom: 24%;
  left: 4%;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 0.76;
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(220, 230, 244, 0.68);
  border-radius: 48% 48% 8px 8px / 20% 20% 8px 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.025));
  box-shadow:
    0 38px 100px rgba(0, 0, 0, 0.66),
    0 0 0 7px rgba(255, 255, 255, 0.025),
    0 0 55px rgba(47, 109, 255, 0.18);
}

.portrait-frame::before {
  position: absolute;
  z-index: 3;
  inset: 17px;
  border: 1px solid rgba(220, 230, 244, 0.34);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  border-radius: calc(48% - 7px) calc(48% - 7px) 4px 4px / calc(20% - 5px) calc(20% - 5px) 4px 4px;
  filter: saturate(0.83) contrast(1.04);
  object-fit: cover;
  object-position: center 18%;
}

.portrait-frame-invitation {
  aspect-ratio: 1055 / 1491;
  padding: 7px;
  border-radius: 5px;
  background: #02050d;
  box-shadow:
    0 35px 86px rgba(4, 18, 55, 0.34),
    0 0 0 7px rgba(255, 255, 255, 0.5),
    0 0 60px rgba(47, 109, 255, 0.2);
}

.portrait-frame-invitation::before {
  inset: 13px;
  border-radius: 2px;
}

.portrait-frame-invitation img {
  border-radius: 2px;
  background: #02050d;
  filter: none;
  object-fit: contain;
  object-position: center;
}

.portrait-frame-invitation .portrait-shade {
  display: none;
}

.portrait-shade {
  position: absolute;
  inset: 9px;
  border-radius: inherit;
  background:
    linear-gradient(to top, rgba(3, 7, 17, 0.65), transparent 38%),
    linear-gradient(110deg, rgba(11, 63, 174, 0.2), transparent 46%);
  pointer-events: none;
}

.frame-corner {
  position: absolute;
  z-index: 4;
  width: 34px;
  height: 34px;
  pointer-events: none;
}

.frame-corner-one {
  top: 22px;
  left: 22px;
  border-top: 1px solid var(--silver);
  border-left: 1px solid var(--silver);
}

.frame-corner-two {
  right: 22px;
  bottom: 22px;
  border-right: 1px solid var(--silver);
  border-bottom: 1px solid var(--silver);
}

.age-seal {
  position: absolute;
  z-index: 6;
  right: -12px;
  bottom: 7px;
  width: 132px;
  height: 132px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 230, 244, 0.72);
  border-radius: 50%;
  background: rgba(5, 18, 50, 0.9);
  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.52),
    inset 0 0 0 5px rgba(220, 230, 244, 0.06);
  backdrop-filter: blur(12px);
  text-align: center;
}

.age-seal::before,
.age-seal::after {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(172, 202, 255, 0.22);
  border-radius: inherit;
  content: "";
}

.age-seal span {
  color: var(--silver-dim);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.age-seal strong {
  margin: 1px 0;
  color: #f7f9fc;
  background: linear-gradient(180deg, #ffffff 0%, #dce3ec 48%, #aeb8c6 68%, #f7f9fc 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  line-height: 0.9;
  text-shadow: 0 0 18px rgba(238, 244, 252, 0.45);
  -webkit-text-fill-color: transparent;
}

.portrait-caption {
  position: absolute;
  bottom: 11px;
  left: 35px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(7, 26, 72, 0.62);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portrait-caption span {
  width: 25px;
  height: 1px;
  background: var(--line-strong);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 37px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--silver-dim);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  width: 1px;
  height: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.scroll-cue i::after {
  display: block;
  width: 1px;
  height: 14px;
  background: var(--white);
  content: "";
  animation: scrollLine 1.9s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: translateY(-16px); }
  70%, 100% { transform: translateY(30px); }
}

.countdown-section {
  position: relative;
  z-index: 4;
  border-top: 1px solid rgba(220, 230, 244, 0.1);
  border-bottom: 1px solid rgba(220, 230, 244, 0.1);
  background: #050b18;
}

.countdown-inner {
  width: min(calc(100% - 64px), var(--content));
  min-height: 188px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 60px;
}

.countdown-heading .section-kicker {
  margin-bottom: 7px;
}

.countdown-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.countdown-unit {
  min-width: 104px;
  text-align: center;
}

.countdown-unit strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown-unit span {
  color: var(--silver-dim);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.countdown-separator {
  padding-bottom: 18px;
  color: var(--line-strong);
  font-family: var(--font-display);
  font-size: 34px;
}

.countdown-finished {
  grid-column: 2;
  margin: 0;
  color: var(--blue-pale);
  font-family: var(--font-display);
  font-size: 34px;
  text-align: right;
}

.section {
  padding: clamp(92px, 11vw, 160px) 0;
}

.section-inner {
  width: min(calc(100% - 64px), var(--content));
  margin: 0 auto;
}

.occasion {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 30%, rgba(22, 69, 169, 0.13), transparent 37%),
    var(--paper);
  color: var(--ink);
}

.occasion::after {
  position: absolute;
  top: 0;
  right: 6%;
  width: 1px;
  height: 100%;
  background: rgba(7, 26, 72, 0.07);
  content: "";
}

.occasion-grid {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  align-items: start;
  gap: clamp(60px, 9vw, 130px);
}

.occasion .section-kicker,
.gift-section .section-kicker {
  color: var(--blue);
}

.occasion h2,
.section-heading h2,
.gift-copy h2,
.rsvp-copy h2,
.dress-copy h2,
.finale h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(50px, 6vw, 82px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.lead {
  color: #536078;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.85;
}

.occasion-copy .lead {
  margin: 30px 0;
  color: #34425d;
  font-weight: 500;
}

.occasion-copy blockquote {
  margin: 40px 0 0;
  padding: 5px 0 5px 23px;
  border-left: 2px solid var(--blue);
  color: #0c1830;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-style: italic;
  line-height: 1.35;
}

.story-body {
  max-width: 62ch;
  margin-top: 30px;
  color: #263650;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.78;
}

.story-body > p {
  margin: 0;
}

.story-body > p + p {
  margin-top: 1.15em;
}

.story-milestones {
  margin: 32px 0;
  padding: 24px 26px;
  display: grid;
  gap: 11px;
  border: 1px solid rgba(7, 26, 72, 0.14);
  border-left: 4px solid #c5ceda;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(220, 230, 244, 0.38));
  box-shadow: 0 18px 45px rgba(7, 26, 72, 0.08);
  list-style: none;
}

.story-milestones li {
  position: relative;
  padding-left: 20px;
  color: #071a48;
  line-height: 1.45;
}

.story-milestones li::before {
  position: absolute;
  top: 0.55em;
  left: 1px;
  width: 7px;
  height: 7px;
  background: #c8d1dc;
  box-shadow: 0 0 0 2px rgba(22, 69, 169, 0.16);
  content: "";
  transform: rotate(45deg);
}

.story-milestones strong {
  font-size: clamp(18px, 1.55vw, 21px);
  font-weight: 700;
}

.story-closing {
  color: #0c1830;
  font-weight: 600;
}

.details-panel {
  position: relative;
  padding: clamp(27px, 4vw, 48px);
  border: 1px solid rgba(7, 26, 72, 0.24);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 70px rgba(7, 26, 72, 0.15);
}

.details-panel::before,
.details-panel::after {
  position: absolute;
  width: 34px;
  height: 34px;
  content: "";
}

.details-panel::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
}

.details-panel::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
}

.details-topline {
  padding-bottom: 22px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(7, 26, 72, 0.2);
  color: #3e4d67;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.details-topline span:first-child {
  color: var(--blue);
}

.detail-row {
  padding: 24px 0;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  border-bottom: 1px solid rgba(7, 26, 72, 0.16);
}

.detail-number {
  padding-top: 2px;
  color: #53637f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.detail-row p,
.detail-row h3,
.detail-row div > span {
  margin: 0;
}

.detail-row p {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail-row h3 {
  margin-top: 3px;
  color: #071126;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 400;
  line-height: 1.15;
}

.detail-row div > span {
  display: block;
  margin-top: 5px;
  color: #3f4d64;
  font-size: 13px;
  line-height: 1.5;
}

.details-actions {
  padding-top: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.button-light {
  background: var(--ink-soft);
  color: var(--white);
}

.occasion .text-button {
  border-color: rgba(7, 26, 72, 0.3);
  color: var(--ink-soft);
}

.memory-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(2, 12, 44, 0.98) 0, rgba(11, 63, 174, 0.9) 5%, rgba(7, 31, 87, 0.42) 11%, transparent 18%),
    linear-gradient(260deg, rgba(2, 12, 44, 0.98) 0, rgba(11, 63, 174, 0.9) 5%, rgba(7, 31, 87, 0.42) 11%, transparent 18%),
    radial-gradient(circle at 50% 10%, #ffffff, #f7f4ed 46%, #e9eff8 100%);
  color: var(--ink-soft);
}

.memory-section::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(102deg, transparent 0 38px, rgba(255, 255, 255, 0.11) 39px 41px, transparent 42px 78px),
    repeating-linear-gradient(258deg, transparent 0 38px, rgba(255, 255, 255, 0.11) 39px 41px, transparent 42px 78px);
  content: "";
  opacity: 0.52;
  pointer-events: none;
}

.memory-section::after {
  position: absolute;
  bottom: -185px;
  left: 50%;
  width: min(56vw, 700px);
  height: 310px;
  border: 5px solid rgba(220, 230, 244, 0.78);
  background: linear-gradient(90deg, #061846, #0b3fae 48% 52%, #061846);
  box-shadow: 0 0 0 8px rgba(7, 26, 72, 0.12);
  clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%);
  content: "";
  opacity: 0.8;
  transform: translateX(-50%);
  pointer-events: none;
}

.memory-section .section-inner {
  position: relative;
  z-index: 2;
}

.section-heading {
  margin-bottom: clamp(46px, 6vw, 76px);
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  align-items: end;
  gap: 60px;
}

.section-heading .section-kicker {
  margin-bottom: 14px;
}

.section-heading > p {
  margin: 0 0 5px;
  color: rgba(248, 251, 255, 0.58);
  font-size: 15px;
  line-height: 1.8;
}

.memory-section .section-kicker {
  color: var(--blue);
}

.memory-section .section-heading > p {
  color: rgba(7, 26, 72, 0.68);
}

.memory-carousel {
  position: relative;
}

.carousel-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(220, 230, 244, 0.22);
  background: #070b13;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.46);
}

.carousel-stage::after {
  position: absolute;
  z-index: 6;
  inset: 0;
  border: 10px solid rgba(3, 7, 17, 0.32);
  content: "";
  pointer-events: none;
}

.memory-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: block;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms var(--ease), visibility 900ms;
}

.memory-slide::before {
  position: absolute;
  inset: -30px;
  background:
    linear-gradient(rgba(3, 7, 17, 0.4), rgba(3, 7, 17, 0.4)),
    var(--slide-image) center / cover no-repeat;
  content: "";
  filter: blur(28px) saturate(0.7);
  opacity: 0.48;
  transform: scale(1.08);
}

.memory-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.memory-slide img {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.84) contrast(1.02);
  transform: none;
}

.memory-slide.is-active img {
  transform: none;
}

.memory-slide figcaption {
  position: absolute;
  z-index: 7;
  right: 24px;
  bottom: 22px;
  left: 24px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(90deg, rgba(3, 7, 17, 0.88), rgba(3, 7, 17, 0.36), transparent);
  color: rgba(248, 251, 255, 0.9);
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.memory-slide figcaption span {
  color: var(--blue-pale);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.carousel-controls {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.carousel-buttons {
  display: flex;
  gap: 8px;
}

.carousel-buttons button,
.slideshow-toggle {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.carousel-buttons button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.carousel-buttons button:hover,
.slideshow-toggle:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.carousel-buttons svg,
.slideshow-toggle svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.carousel-progress {
  display: grid;
  grid-template-columns: 25px 1fr 25px;
  align-items: center;
  gap: 12px;
  color: var(--silver-dim);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.carousel-progress i {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.carousel-progress b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--blue-pale);
  transform-origin: left;
  transition: width 500ms var(--ease);
}

.slideshow-toggle {
  min-width: 156px;
  height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  color: var(--silver-dim);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slideshow-toggle .play-icon {
  display: none;
}

.memory-section .carousel-buttons button,
.memory-section .slideshow-toggle {
  border-color: rgba(7, 26, 72, 0.24);
  background: rgba(255, 255, 255, 0.64);
  color: var(--navy);
}

.memory-section .carousel-buttons button:hover,
.memory-section .slideshow-toggle:hover {
  border-color: rgba(11, 63, 174, 0.58);
  background: #ffffff;
}

.memory-section .carousel-progress {
  color: rgba(7, 26, 72, 0.66);
}

.memory-section .carousel-progress i {
  background: rgba(7, 26, 72, 0.18);
}

.memory-section .carousel-progress b {
  background: var(--blue);
}

.slideshow-toggle.is-paused .pause-icon {
  display: none;
}

.slideshow-toggle.is-paused .play-icon {
  display: block;
}

.dress-section {
  min-height: 700px;
  display: grid;
  grid-template-columns: 0.93fr 1.07fr;
  background: #071126;
}

.dress-photo {
  position: relative;
  min-height: 700px;
  overflow: hidden;
}

.dress-photo::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 60%, #071126),
    linear-gradient(to top, rgba(7, 17, 38, 0.58), transparent 40%),
    linear-gradient(130deg, rgba(9, 55, 153, 0.18), transparent 45%);
  content: "";
}

.dress-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(0.86) contrast(1.06);
}

.dress-photo-mrs-poe img {
  object-position: center 8%;
}

.dress-copy {
  padding: clamp(70px, 9vw, 138px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dress-copy h2 {
  font-size: clamp(48px, 5.8vw, 78px);
}

.dress-copy > p:not(.section-kicker) {
  max-width: 530px;
  margin: 30px 0;
  color: rgba(248, 251, 255, 0.62);
  font-size: 17px;
  line-height: 1.85;
}

.palette {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.palette span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(248, 251, 255, 0.7);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.swatch {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.swatch-black { background: #020308; }
.swatch-blue { background: #164cd0; }
.swatch-silver { background: linear-gradient(135deg, #8793a8, #f0f4fa); }

.gift-section {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.gift-section::before {
  position: absolute;
  right: -100px;
  bottom: -130px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(7, 26, 72, 0.08);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 60px rgba(7, 26, 72, 0.025), 0 0 0 120px rgba(7, 26, 72, 0.018);
}

.gift-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: center;
}

.gift-copy .lead {
  max-width: 560px;
  margin: 28px 0 32px;
}

.gift-steps {
  margin: 38px 0;
  display: grid;
  gap: 15px;
}

.gift-steps > div {
  display: flex;
  align-items: center;
  gap: 15px;
}

.gift-steps span {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(7, 26, 72, 0.18);
  border-radius: 50%;
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
}

.gift-steps p {
  margin: 0;
  color: #55627a;
  font-size: 14px;
}

.gift-email-card {
  max-width: 550px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(7, 26, 72, 0.14);
  background: rgba(255, 255, 255, 0.6);
}

.gift-email-card span,
.gift-email-card a {
  display: block;
}

.gift-email-card > div > span {
  margin-bottom: 2px;
  color: #778298;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gift-email-card a {
  color: var(--navy);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 600;
  text-decoration: none;
}

.gift-email-card button {
  min-width: 82px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(7, 26, 72, 0.18);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.gift-email-card button:hover {
  background: var(--navy);
  color: var(--white);
}

.gift-email-card svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.gift-note {
  max-width: 540px;
  margin: 12px 0 0;
  color: #788398;
  font-size: 11px;
}

.retailer-panel {
  padding: clamp(27px, 4vw, 46px);
  border: 1px solid rgba(172, 202, 255, 0.2);
  background: var(--ink-soft);
  box-shadow: 0 30px 80px rgba(7, 26, 72, 0.2);
}

.retailer-label {
  margin: 0 0 22px;
  color: #d9e7ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.retailer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.retailer-grid a {
  position: relative;
  min-height: 180px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid rgba(220, 230, 244, 0.2);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(19, 40, 82, 0.94), rgba(7, 17, 38, 0.98));
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.16);
  color: var(--white);
  text-decoration: none;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms var(--ease);
}

.retailer-grid a:hover {
  z-index: 2;
  border-color: rgba(172, 202, 255, 0.7);
  background: linear-gradient(145deg, #17356c, #0a1936);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.24);
  transform: translateY(-3px);
}

.retailer-logo {
  width: 100%;
  height: 70px;
  flex: 0 0 70px;
  margin-bottom: 18px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(7, 26, 72, 0.1);
  border-radius: 5px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 8px 20px rgba(0, 0, 0, 0.12);
}

.retailer-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 46px;
  display: block;
  object-fit: contain;
}

.retailer-amazon .retailer-logo img {
  width: 112px;
  max-height: 38px;
}

.retailer-walmart .retailer-logo img {
  width: 126px;
  max-height: 30px;
}

.retailer-target .retailer-logo img,
.retailer-sams .retailer-logo img,
.retailer-home-depot .retailer-logo img {
  width: 46px;
  max-height: 46px;
}

.retailer-visa .retailer-logo img {
  width: 112px;
  max-height: 36px;
}

.retailer-grid strong {
  padding-right: 28px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.retailer-grid small {
  margin-top: 4px;
  padding-right: 28px;
  color: #b8c5d9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.retailer-grid svg {
  position: absolute;
  top: auto;
  right: 18px;
  bottom: 20px;
  color: #d9e7ff;
}

.retailer-disclaimer {
  margin: 18px 2px 0;
  color: #aebbd0;
  font-size: 10px;
  line-height: 1.55;
}

.rsvp-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(3, 7, 17, 0.76), rgba(3, 7, 17, 0.94)),
    radial-gradient(circle at 8% 22%, #174bb7, transparent 38%),
    #030711;
}

.rsvp-section::before {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 77% 18%, rgba(172, 202, 255, 0.45) 0 1px, transparent 2px),
    radial-gradient(circle at 54% 78%, rgba(255, 255, 255, 0.4) 0 1px, transparent 2px);
  background-size: 260px 280px, 320px 270px, 370px 350px;
  content: "";
  opacity: 0.48;
}

.rsvp-glow {
  position: absolute;
  top: 18%;
  left: -180px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 96, 232, 0.26), transparent 67%);
}

.rsvp-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  align-items: start;
  gap: clamp(55px, 9vw, 135px);
}

.rsvp-copy {
  position: sticky;
  top: 145px;
}

.rsvp-copy > p:not(.section-kicker) {
  max-width: 440px;
  margin: 28px 0 0;
  color: rgba(248, 251, 255, 0.62);
  font-size: 16px;
  line-height: 1.85;
}

.rsvp-copy > p strong {
  color: var(--white);
}

.rsvp-aside {
  margin-top: 50px;
  padding-top: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.rsvp-aside > span {
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 26px;
}

.rsvp-aside p,
.rsvp-aside strong,
.rsvp-aside a {
  display: block;
  margin: 0;
}

.rsvp-aside p {
  color: var(--silver-dim);
  font-size: 12px;
}

.rsvp-aside strong {
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rsvp-aside a {
  color: var(--blue-pale);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.rsvp-form {
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--line-strong);
  background: rgba(7, 17, 38, 0.84);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(16px);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-heading {
  margin-bottom: 35px;
  padding-bottom: 25px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.form-heading span {
  color: var(--blue-pale);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.form-heading h3 {
  margin: 3px 0 0;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
}

.form-heading .form-number {
  color: var(--silver-dim);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.11em;
}

.attendance-fieldset {
  margin: 0 0 25px;
  padding: 0;
  border: 0;
}

.attendance-fieldset legend,
.field > span {
  display: block;
  margin-bottom: 8px;
  color: rgba(248, 251, 255, 0.66);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.attendance-fieldset legend span,
.field > span b {
  color: var(--blue-pale);
}

.attendance-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.attendance-options label {
  cursor: pointer;
}

.attendance-options input {
  position: absolute;
  opacity: 0;
}

.attendance-options label > span {
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(220, 230, 244, 0.2);
  color: rgba(248, 251, 255, 0.67);
  font-size: 12px;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.attendance-options i {
  width: 15px;
  height: 15px;
  border: 1px solid rgba(220, 230, 244, 0.44);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px transparent;
}

.attendance-options input:checked + span {
  border-color: var(--blue-pale);
  background: rgba(47, 109, 255, 0.11);
  color: var(--white);
}

.attendance-options input:checked + span i {
  background: var(--blue-pale);
  border-color: var(--blue-pale);
  box-shadow: inset 0 0 0 3px var(--ink-soft);
}

.attendance-options input:focus-visible + span {
  outline: 3px solid var(--blue-pale);
  outline-offset: 3px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 21px 18px;
}

.field {
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.field > span small {
  color: var(--silver-dim);
  font-size: inherit;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(220, 230, 244, 0.2);
  border-radius: 0;
  background: rgba(3, 7, 17, 0.52);
  color: var(--white);
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.field input,
.field select {
  height: 49px;
  padding: 0 14px;
}

.field textarea {
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(220, 230, 244, 0.34);
}

.field select {
  color-scheme: dark;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-pale);
  background: rgba(3, 7, 17, 0.74);
}

.attending-details {
  margin: 23px 0;
  padding: 23px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  opacity: 0.44;
  transition: opacity 200ms ease;
}

.attending-details.is-active {
  opacity: 1;
}

.attending-details[hidden] {
  display: none;
}

.button-submit {
  width: 100%;
  margin-top: 28px;
  border: 0;
  background: linear-gradient(135deg, #245bd6, #3479ff);
  color: var(--white);
  box-shadow: 0 17px 42px rgba(20, 75, 203, 0.3);
}

.button-submit:disabled,
.button-submit:disabled:hover {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-status {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(220, 230, 244, 0.35);
  background: rgba(3, 7, 17, 0.58);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
}

.form-status[hidden] {
  display: none;
}

.form-status.is-success {
  border-color: rgba(134, 239, 172, 0.68);
  background: rgba(20, 83, 45, 0.42);
  color: #dcfce7;
}

.form-status.is-error {
  border-color: rgba(253, 164, 175, 0.72);
  background: rgba(127, 29, 29, 0.42);
  color: #fff1f2;
}

.form-status:focus {
  outline: 2px solid var(--blue-pale);
  outline-offset: 3px;
}

.form-privacy {
  margin: 13px 0 0;
  color: rgba(220, 230, 244, 0.4);
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.finale {
  position: relative;
  min-height: 0;
  padding: clamp(76px, 9vw, 132px) 32px clamp(70px, 8vw, 110px);
  overflow: hidden;
  background:
    linear-gradient(100deg, #020c2c 0, #082a70 5%, rgba(11, 63, 174, 0.82) 9%, rgba(4, 24, 72, 0.38) 14%, transparent 21%),
    linear-gradient(260deg, #020c2c 0, #082a70 5%, rgba(11, 63, 174, 0.82) 9%, rgba(4, 24, 72, 0.38) 14%, transparent 21%),
    radial-gradient(circle at 50% 8%, #ffffff, #f8f4ec 48%, #e7edf7 100%);
  color: var(--ink-soft);
}

.finale::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(102deg, transparent 0 38px, rgba(255, 255, 255, 0.1) 39px 41px, transparent 42px 78px),
    repeating-linear-gradient(258deg, transparent 0 38px, rgba(255, 255, 255, 0.1) 39px 41px, transparent 42px 78px);
  content: "";
  opacity: 0.5;
  pointer-events: none;
}

.finale::after {
  position: absolute;
  bottom: -230px;
  left: 50%;
  width: min(58vw, 760px);
  height: 390px;
  border: 5px solid rgba(220, 230, 244, 0.78);
  background: linear-gradient(90deg, #061846, #0b3fae 48% 52%, #061846);
  box-shadow: 0 0 0 8px rgba(7, 26, 72, 0.12);
  clip-path: polygon(36% 0, 64% 0, 100% 100%, 0 100%);
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}

.finale-stage {
  position: relative;
  z-index: 2;
  width: min(100%, 960px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
}

.finale-stage figure {
  min-width: 0;
  margin: 0;
}

.finale-last-photo,
.finale-thank-you {
  position: relative;
  padding: 8px;
  border: 1px solid rgba(7, 26, 72, 0.2);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 30px 80px rgba(7, 26, 72, 0.22);
}

.finale-last-photo {
  transform: rotate(-1.2deg);
}

.finale-last-photo img,
.finale-thank-you img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.finale-last-photo figcaption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  padding: 16px 18px;
  background: rgba(3, 7, 17, 0.82);
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.2;
  backdrop-filter: blur(8px);
}

.finale-last-photo figcaption span {
  margin-bottom: 4px;
  display: block;
  color: var(--blue-pale);
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.finale-thank-you {
  transform: rotate(0.6deg);
}

.finale-copy {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 48px), 920px);
  margin: 0 auto clamp(58px, 7vw, 86px);
  text-align: center;
}

.finale .hero-script {
  margin-bottom: -10px;
  color: var(--blue);
  transform: none;
}

.finale h2 {
  color: #030b22;
  font-size: clamp(48px, 6.5vw, 86px);
  text-shadow: none;
}

.finale-copy > p:not(.hero-script) {
  margin: 25px 0 32px;
  color: rgba(7, 26, 72, 0.7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer {
  min-height: 190px;
  padding: 45px max(32px, calc((100vw - var(--content)) / 2));
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 70px;
  border-top: 1px solid var(--line);
  background: #02050c;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer > div:first-child > p {
  margin: 0;
  color: var(--silver-dim);
  font-size: 11px;
}

.footer-links {
  display: flex;
  gap: 27px;
}

.footer-links a {
  color: var(--silver-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-date {
  margin: 0;
  color: var(--silver-dim);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.14em;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  max-width: min(330px, calc(100vw - 48px));
  padding: 13px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(7, 17, 38, 0.94);
  color: var(--white);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 220ms ease, transform 220ms var(--ease);
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 850ms var(--ease), transform 850ms var(--ease);
}

.js .reveal-delay {
  transition-delay: 130ms;
}

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

@media (max-width: 1050px) {
  .hero-inner {
    grid-template-columns: 1fr 0.86fr;
    gap: 25px;
  }

  .hero h1 {
    font-size: clamp(65px, 9vw, 92px);
  }

  .portrait-stage {
    padding: 25px 25px 42px;
  }

  .occasion-grid,
  .gift-grid {
    gap: 58px;
  }

  .dress-copy {
    padding: 70px 55px;
  }

  .rsvp-grid {
    grid-template-columns: 0.68fr 1.32fr;
    gap: 55px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 72px;
  }

  .header-inner,
  .hero-inner,
  .countdown-inner,
  .section-inner {
    width: min(calc(100% - 40px), var(--content));
  }

  .menu-button {
    position: relative;
    z-index: 2;
    display: block;
  }

  .menu-button[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-3px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    padding: 120px 32px 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    background:
      radial-gradient(circle at 70% 20%, rgba(47, 109, 255, 0.26), transparent 34%),
      rgba(3, 7, 17, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 220ms ease, transform 220ms var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    font-family: var(--font-display);
    font-size: clamp(29px, 8vw, 46px);
    font-weight: 400;
    letter-spacing: -0.01em;
    text-transform: none;
  }

  .site-nav .nav-rsvp {
    margin-top: 10px;
    padding: 13px 24px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 125px;
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero-copy {
    text-align: center;
  }

  .eyebrow,
  .hero-actions,
  .hero-date {
    justify-content: center;
  }

  .hero h1,
  .hero-intro {
    margin-right: auto;
    margin-left: auto;
  }

  .portrait-stage {
    width: min(84vw, 480px);
    margin: 0 auto 70px;
    order: -1;
  }

  .scroll-cue {
    display: none;
  }

  .countdown-inner {
    padding: 38px 0;
    grid-template-columns: 1fr;
    gap: 26px;
    text-align: center;
  }

  .countdown {
    justify-content: center;
  }

  .countdown-finished {
    grid-column: 1;
    text-align: center;
  }

  .occasion-grid,
  .gift-grid,
  .rsvp-grid {
    grid-template-columns: 1fr;
  }

  .occasion-copy {
    max-width: 650px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .carousel-stage {
    aspect-ratio: 4 / 3;
  }

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

  .dress-photo {
    min-height: 640px;
  }

  .dress-photo::after {
    background: linear-gradient(to bottom, transparent 58%, #071126);
  }

  .dress-copy {
    padding: 40px 40px 85px;
  }

  .rsvp-copy {
    position: static;
  }

  .finale {
    min-height: 0;
    padding-right: 24px;
    padding-left: 24px;
  }

  .finale-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    gap: 35px;
  }

  .footer-links {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 580px) {
  .header-inner,
  .hero-inner,
  .countdown-inner,
  .section-inner {
    width: min(calc(100% - 32px), var(--content));
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .brand-copy {
    font-size: 11px;
  }

  .brand-copy span:last-child {
    font-size: 8px;
  }

  .menu-button {
    width: 42px;
    height: 42px;
  }

  .hero-inner {
    padding-top: 116px;
  }

  .hero-script {
    margin-bottom: -10px;
    font-size: 44px;
  }

  .hero h1 {
    font-size: clamp(57px, 18vw, 76px);
    line-height: 0.84;
  }

  .hero-intro {
    margin-top: 26px;
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 18px;
  }

  .hero-date {
    margin-top: 35px;
    text-align: left;
  }

  .portrait-stage {
    width: min(96%, 420px);
    padding: 18px 18px 42px;
  }

  .age-seal {
    right: 0;
    width: 112px;
    height: 112px;
  }

  .age-seal strong {
    font-size: 43px;
  }

  .story-milestones {
    padding: 21px 18px;
  }

  .countdown-unit {
    min-width: 0;
    flex: 1;
  }

  .countdown-unit strong {
    font-size: 36px;
  }

  .countdown-separator {
    padding: 0 3px 17px;
    font-size: 27px;
  }

  .section {
    padding: 88px 0;
  }

  .occasion h2,
  .section-heading h2,
  .gift-copy h2,
  .rsvp-copy h2,
  .dress-copy h2 {
    font-size: clamp(44px, 14vw, 61px);
  }

  .details-panel {
    padding: 25px 20px;
  }

  .details-topline span:last-child {
    display: none;
  }

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

  .details-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .carousel-stage {
    aspect-ratio: 4 / 5;
  }

  .memory-slide figcaption {
    right: 11px;
    bottom: 11px;
    left: 11px;
    padding: 15px;
  }

  .carousel-controls {
    grid-template-columns: auto 1fr;
    gap: 18px;
  }

  .carousel-progress {
    min-width: 0;
  }

  .slideshow-toggle {
    grid-column: 1 / -1;
    justify-self: end;
    margin-top: -10px;
  }

  .dress-photo {
    min-height: 520px;
  }

  .dress-copy {
    padding: 25px 24px 76px;
  }

  .palette {
    gap: 13px;
  }

  .gift-email-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .retailer-panel {
    margin-right: -4px;
    margin-left: -4px;
    padding: 24px 18px;
  }

  .retailer-grid a {
    min-height: 158px;
    padding: 15px;
  }

  .retailer-logo {
    height: 62px;
    flex-basis: 62px;
    margin-bottom: 14px;
    padding: 8px 10px;
  }

  .retailer-grid svg {
    right: 14px;
    bottom: 16px;
  }

  .retailer-grid strong {
    font-size: 17px;
  }

  .rsvp-grid {
    gap: 48px;
  }

  .rsvp-form {
    margin-right: -7px;
    margin-left: -7px;
    padding: 28px 20px;
  }

  .attendance-options,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }

  .form-heading .form-number {
    display: none;
  }

  .finale {
    min-height: 0;
    padding: 70px 18px 76px;
  }

  .finale-stage {
    width: min(100%, 440px);
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .finale-last-photo {
    width: 86%;
    justify-self: center;
  }

  .finale-last-photo figcaption {
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 13px 14px;
  }

  .finale h2 {
    font-size: 48px;
  }

  .finale-copy {
    width: 100%;
    margin: 0 auto 52px;
  }

  .site-footer {
    padding: 45px 24px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer > div:first-child,
  .footer-links {
    justify-self: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-links {
    grid-column: 1;
    grid-row: auto;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-date {
    display: none;
  }
}

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

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

  .memory-slide img,
  .memory-slide.is-active img {
    transform: none;
  }
}

.success-page {
  min-height: 100svh;
}

.success-shell {
  position: relative;
  min-height: 100svh;
  padding: 40px 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(3, 7, 17, 0.72), rgba(3, 7, 17, 0.94)),
    radial-gradient(circle at 50% 38%, #1649ad, #071533 45%, #030711 76%);
}

.success-shell::before,
.success-shell::after {
  position: absolute;
  width: 44vw;
  height: 110vh;
  top: -7vh;
  background: linear-gradient(90deg, #07143b, #124cb8 42%, #04102e 100%);
  box-shadow: inset -15px 0 38px rgba(0, 0, 0, 0.65);
  content: "";
  opacity: 0.86;
}

.success-shell::before {
  left: -34vw;
  transform: rotate(8deg);
}

.success-shell::after {
  right: -34vw;
  transform: rotate(-8deg) scaleX(-1);
}

.success-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 73% 16%, rgba(172, 202, 255, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 70%, rgba(255, 255, 255, 0.74) 0 1px, transparent 2px),
    radial-gradient(circle at 35% 83%, rgba(172, 202, 255, 0.65) 0 1px, transparent 2px);
  background-size: 290px 270px, 320px 310px, 370px 330px, 250px 300px;
}

.success-card {
  position: relative;
  z-index: 2;
  width: min(100%, 740px);
  padding: clamp(48px, 7vw, 85px) clamp(24px, 7vw, 78px);
  border: 1px solid var(--line-strong);
  background: rgba(3, 7, 17, 0.72);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
  text-align: center;
}

.success-card::before,
.success-card::after {
  position: absolute;
  width: 34px;
  height: 34px;
  content: "";
}

.success-card::before {
  top: 13px;
  left: 13px;
  border-top: 1px solid var(--silver);
  border-left: 1px solid var(--silver);
}

.success-card::after {
  right: 13px;
  bottom: 13px;
  border-right: 1px solid var(--silver);
  border-bottom: 1px solid var(--silver);
}

.success-seal {
  width: 70px;
  height: 70px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 27px;
  box-shadow: inset 0 0 0 5px rgba(220, 230, 244, 0.05);
}

.success-card .section-kicker {
  margin-bottom: 28px;
}

.success-card .hero-script {
  margin-bottom: -7px;
  transform: none;
}

.success-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 78px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.success-card > p:not(.section-kicker):not(.hero-script) {
  max-width: 570px;
  margin: 28px auto;
  color: rgba(248, 251, 255, 0.64);
}

.success-details {
  margin: 0 0 32px;
  display: flex;
  justify-content: center;
  gap: 9px;
  color: var(--blue-pale);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 580px) {
  .success-card {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .success-details {
    flex-direction: column;
    gap: 2px;
  }

  .success-details span:nth-child(2) {
    display: none;
  }
}
