:root {
  --ivory: #f7efe3;
  --cream: #fff8ee;
  --sand: #d8b88f;
  --gold: #c5a24f;
  --copper: #b86638;
  --rust: #9a3f22;
  --red: #8e1117;
  --wine: #5b1020;
  --burgundy: #781824;
  --brown: #5a3423;
  --graphite: #343639;
  --black: #11100e;
  --soft-black: #24211e;
  --muted: #756c62;
  --line: rgba(17, 16, 14, 0.14);
  --line-light: rgba(255, 248, 238, 0.24);
  --card-bg: rgba(255, 248, 238, 0.74);
  --card-bg-strong: rgba(255, 248, 238, 0.84);
  --dark-panel: rgba(17, 16, 14, 0.76);
  --shadow: 0 1.4rem 3.6rem rgba(17, 16, 14, 0.18);
  --shadow-strong: 0 2.4rem 5rem rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-fast: 460ms;
  --motion-medium: 640ms;
  --header-offset: 5.4rem;
  color-scheme: light;
}

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

html {
  min-width: 0;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  overflow-x: hidden;
}

body {
  position: relative;
  min-width: 0;
  margin: 0;
  background: var(--black);
  color: var(--black);
  font-family: var(--sans);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.55;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

body::before {
  z-index: 0;
  background: url("../img/optimized/background-480.webp") center top / cover no-repeat;
}

body::after {
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 248, 238, 0.34), rgba(255, 248, 238, 0.08) 40%, rgba(17, 16, 14, 0.44) 100%),
    linear-gradient(180deg, rgba(17, 16, 14, 0.24), rgba(255, 248, 238, 0.1) 34%, rgba(17, 16, 14, 0.34));
}

body.is-locked {
  overflow: hidden;
}

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

picture,
img {
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
}

::selection {
  background: var(--red);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.site-header,
.site-content,
.footer,
.intro-screen {
  position: relative;
  z-index: 1;
}

.container {
  width: min(100% - 40px, 1040px);
  margin-inline: auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 100%;
  height: 2px;
  background: rgba(255, 248, 238, 0.18);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  min-width: 9.5rem;
  padding: 0.92rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: clamp(0.72rem, 1.6vw, 0.78rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform var(--motion-fast) var(--ease),
    background-color var(--motion-fast) var(--ease),
    border-color var(--motion-fast) var(--ease),
    color var(--motion-fast) var(--ease);
}

.cta-red {
  background: var(--red);
  color: var(--cream);
  border-color: rgba(142, 17, 23, 0.92);
}

.cta-black {
  background: var(--black);
  color: var(--cream);
  border-color: rgba(17, 16, 14, 0.9);
}

.sticky-answer {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(255, 248, 238, 0.36);
  border-radius: 999px;
  background: rgba(142, 17, 23, 0.94);
  color: var(--cream);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.24);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease);
}

.is-locked .sticky-answer,
.is-answer-visible .sticky-answer {
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem);
}

.site-header {
  position: sticky;
  top: 0.5rem;
  z-index: 30;
  width: min(100% - 12px, 1120px);
  margin: 0.5rem auto 0;
  border: 1px solid rgba(255, 248, 238, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 248, 238, 0.78);
  box-shadow: 0 0.8rem 2.2rem rgba(17, 16, 14, 0.16);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  min-height: 4rem;
  padding-block: 0.65rem;
}

.nav__brand {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.46rem 0.8rem;
  color: rgba(17, 16, 14, 0.72);
  font-size: clamp(0.58rem, 1.5vw, 0.68rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.15;
  text-transform: uppercase;
}

.nav__links a {
  text-decoration: none;
}

.site-content {
  width: min(100% - 12px, 1120px);
  margin: clamp(0.6rem, 2vw, 1.15rem) auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 238, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 248, 238, 0.24);
  box-shadow: var(--shadow-strong);
}

.section {
  position: relative;
  padding: clamp(3.6rem, 9vw, 7rem) 0;
  overflow: visible;
}

.section__inner {
  position: relative;
  z-index: 1;
}

.section--ivory {
  background:
    linear-gradient(135deg, rgba(255, 248, 238, 0.68), rgba(247, 239, 227, 0.44)),
    rgba(247, 239, 227, 0.26);
}

.section--black {
  background:
    linear-gradient(135deg, rgba(17, 16, 14, 0.82), rgba(36, 33, 30, 0.68));
  color: var(--cream);
}

.section--glass,
.section--leopard {
  background:
    linear-gradient(135deg, rgba(255, 248, 238, 0.66), rgba(247, 239, 227, 0.42)),
    rgba(255, 248, 238, 0.16);
}

.section__kicker {
  margin: 0 0 0.85rem;
  color: var(--red);
  font-size: clamp(0.68rem, 1.5vw, 0.76rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section--black .section__kicker {
  color: var(--sand);
}

.section__title {
  max-width: 12ch;
  margin: 0 0 clamp(1rem, 2.4vw, 1.5rem);
  font-family: var(--serif);
  font-size: clamp(2.35rem, 8.5vw, 5rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.96;
  text-wrap: balance;
}

.section-lead {
  max-width: 42rem;
  margin: 0 0 clamp(1.5rem, 4vw, 2.25rem);
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.22rem);
  line-height: 1.48;
}

.section--black .section-lead,
.section--black .prose,
.section--black .note {
  color: rgba(255, 248, 238, 0.78);
}

.prose {
  max-width: 48rem;
}

.prose p {
  margin: 0;
  font-size: clamp(1.12rem, 3vw, 1.55rem);
}

.prose--large p {
  font-family: var(--serif);
  font-size: clamp(2.05rem, 7vw, 4.35rem);
  line-height: 1.02;
  text-wrap: balance;
}

.red-rule {
  width: min(100%, 18rem);
  height: 2px;
  margin: clamp(0.95rem, 2vw, 1.2rem) 0;
  background: var(--red);
  transform-origin: left center;
}

.noir-card {
  position: relative;
  border: 1px solid rgba(17, 16, 14, 0.13);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--black);
  box-shadow: var(--shadow);
}

.section--black .noir-card {
  border-color: rgba(255, 248, 238, 0.2);
  background: rgba(255, 248, 238, 0.78);
}

.leopard-mask {
  display: none;
}

.intro-screen {
  display: none;
}

.js .intro-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.78), rgba(17, 16, 14, 0.38)),
    url("../img/optimized/background-480.webp") center / cover no-repeat,
    var(--black);
  color: var(--black);
}

.intro-screen[hidden] {
  display: none;
}

.intro-screen__halo {
  position: absolute;
  width: min(76vmin, 34rem);
  aspect-ratio: 1;
  border: 1px solid rgba(142, 17, 23, 0.15);
  border-radius: 50%;
  background: rgba(255, 248, 238, 0.48);
  box-shadow: 0 0 7rem rgba(255, 248, 238, 0.48);
  opacity: 0.72;
}

.intro-screen__inner {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(100%, 38rem);
  max-height: calc(100svh - 2rem);
  padding: clamp(1rem, 4vw, 2rem);
  overflow: auto;
  border: 1px solid rgba(255, 248, 238, 0.38);
  border-radius: var(--radius);
  background: rgba(255, 248, 238, 0.72);
  box-shadow: var(--shadow-strong);
  text-align: center;
}

.envelope-stage {
  width: min(100%, 29rem);
  margin-inline: auto;
}

.envelope-svg {
  overflow: visible;
  filter: drop-shadow(0 1.5rem 2.2rem rgba(17, 16, 14, 0.2));
}

.envelope-svg .envelope-flap,
.envelope-svg .invitation-card,
.envelope-svg .monogram {
  transform-box: fill-box;
}

.envelope-svg .envelope-flap {
  transform-origin: 50% 100%;
}

.intro-screen__copy {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin-top: clamp(-0.35rem, -1vw, -0.1rem);
}

.intro-screen__copy h1 {
  max-width: 9.5ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 11vw, 5.1rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.9;
}

.intro-screen__copy h1 span,
.hero__title span {
  display: block;
}

.intro-screen__date,
.hero__date {
  display: inline-grid;
  place-items: center;
  min-height: 2.25rem;
  margin: 0;
  padding: 0.48rem 0.78rem;
  border: 1px solid rgba(142, 17, 23, 0.22);
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.58);
  color: var(--red);
  font-size: clamp(0.72rem, 1.6vw, 0.82rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.intro-screen__actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(1rem, 3vw, 1.35rem);
}

.intro-screen:not(.is-ready) .intro-screen__inner {
  opacity: 0;
  transform: translateY(10px);
}

.section--cover {
  color: var(--black);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-offset));
  display: grid;
  align-items: end;
  padding: clamp(16rem, 42svh, 26rem) 0 clamp(1.35rem, 5vw, 3.2rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(17, 16, 14, 0.08), rgba(17, 16, 14, 0.12) 42%, rgba(247, 239, 227, 0.28) 70%, rgba(247, 239, 227, 0.72) 100%),
    radial-gradient(ellipse at 50% 76%, rgba(255, 248, 238, 0.82), rgba(255, 248, 238, 0.18) 36%, transparent 62%);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--black);
}

.hero__media picture,
.hero__media img,
.where-media picture,
.where-media img,
.dress-visual picture,
.dress-visual img {
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: center 62%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(17, 16, 14, 0.04) 0%, rgba(17, 16, 14, 0.05) 42%, rgba(247, 239, 227, 0.62) 79%, rgba(247, 239, 227, 0.92) 100%),
    linear-gradient(90deg, rgba(17, 16, 14, 0.26), transparent 24%, transparent 74%, rgba(17, 16, 14, 0.24));
}

.hero__copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(100% - 32px, 44rem);
  padding: clamp(1rem, 3.2vw, 1.7rem);
  border: 1px solid rgba(255, 248, 238, 0.46);
  border-radius: var(--radius);
  background: rgba(255, 248, 238, 0.76);
  box-shadow: 0 1.5rem 4rem rgba(17, 16, 14, 0.22);
  text-align: center;
}

.hero__title {
  max-width: 9.4ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 11vw, 6.9rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.88;
  text-wrap: balance;
}

.hero .red-rule {
  width: min(100%, 16rem);
  margin-inline: auto;
  transform-origin: center;
}

.hero__lead {
  max-width: 26rem;
  margin: clamp(0.85rem, 2vw, 1rem) auto 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 5vw, 2.6rem);
  line-height: 1.05;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.72rem;
  margin-top: clamp(1.1rem, 3vw, 1.5rem);
}

.hero__scroll-hint {
  display: inline-flex;
  margin-top: 0.9rem;
  color: rgba(17, 16, 14, 0.62);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.invite-note {
  text-align: center;
}

.invite-note .section__title,
.invite-note .prose {
  margin-inline: auto;
}

.where-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 18%, rgba(142, 17, 23, 0.12), transparent 18rem),
    linear-gradient(115deg, transparent 0 55%, rgba(216, 184, 143, 0.14));
}

.where-layout {
  display: grid;
  gap: clamp(1rem, 3vw, 1.6rem);
  align-items: stretch;
}

.where-media {
  position: relative;
  min-height: 16rem;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1.42 / 1;
  border: 1px solid rgba(255, 248, 238, 0.34);
  border-radius: var(--radius);
  background: var(--black);
  box-shadow: var(--shadow);
}

.where-media::after,
.dress-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(17, 16, 14, 0.02), rgba(17, 16, 14, 0.18));
}

.where-media img,
.dress-visual img {
  object-fit: cover;
  object-position: center;
}

.where-card {
  display: grid;
  align-content: center;
  gap: clamp(1rem, 2.5vw, 1.25rem);
  padding: clamp(1.1rem, 4vw, 2rem);
  background: var(--card-bg-strong);
}

.where-card .section__title {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 7vw, 4.1rem);
}

.where-facts {
  display: grid;
  gap: 0.78rem;
}

.where-facts div {
  display: grid;
  gap: 0.18rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.where-facts span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.where-facts strong {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.8vw, 2rem);
  font-weight: 600;
  line-height: 1.05;
}

.where-card p {
  margin: 0;
  color: var(--red);
  font-weight: 800;
}

.section-head {
  display: grid;
  gap: 1rem;
  align-items: end;
  margin-bottom: clamp(1.2rem, 3vw, 1.6rem);
}

.timeline {
  --line-scale: 1;
  position: relative;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0.22rem;
  width: 2px;
  background: var(--red);
  transform: scaleY(var(--line-scale));
  transform-origin: top;
  transition: transform var(--motion-medium) var(--ease-out);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(5.8rem, 8rem) 1fr;
  gap: 0.9rem;
  align-items: baseline;
  min-width: 0;
  padding-left: 1.15rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.52rem;
  left: -0.08rem;
  width: 0.62rem;
  height: 0.62rem;
  border: 2px solid var(--red);
  border-radius: 50%;
  background: var(--ivory);
}

.timeline time {
  color: var(--red);
  font-size: clamp(0.76rem, 2vw, 0.86rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.timeline span {
  min-width: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 4vw, 1.9rem);
  line-height: 1.08;
}

.note {
  margin: 1.3rem 0 0;
  color: var(--muted);
}

.dress-section {
  overflow: visible;
}

.dress-section .section__title,
.dress-section .section-lead {
  max-width: 44rem;
}

.dress-showcase {
  display: grid;
  gap: 0.9rem;
  margin-top: clamp(1.3rem, 3vw, 1.7rem);
}

.dress-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1.5 / 1;
  border: 1px solid rgba(255, 248, 238, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 248, 238, 0.08);
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.18);
}

.dress-palette {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.fabric-swatch {
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid rgba(255, 248, 238, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 248, 238, 0.06);
  color: var(--cream);
}

.fabric-swatch__sample {
  position: relative;
  display: block;
  min-height: 3rem;
  aspect-ratio: 1.18 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 238, 0.22);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 24%, rgba(0, 0, 0, 0.24) 74%),
    linear-gradient(115deg, var(--tone-dark), var(--tone) 45%, var(--shine) 54%, var(--tone) 64%, var(--tone-dark));
  box-shadow:
    inset 0 0 1.5rem rgba(0, 0, 0, 0.24),
    0 0.85rem 1.7rem rgba(0, 0, 0, 0.14);
}

.fabric-swatch__sample::before,
.fabric-swatch__sample::after {
  content: "";
  position: absolute;
  inset: -40%;
  pointer-events: none;
}

.fabric-swatch__sample::before {
  background:
    repeating-linear-gradient(88deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 8px),
    linear-gradient(112deg, transparent 23%, rgba(255, 255, 255, 0.42) 39%, transparent 53%);
  opacity: 0.54;
  transform: rotate(7deg);
  mix-blend-mode: screen;
}

.fabric-swatch__sample::after {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
}

.fabric-swatch strong {
  display: block;
  margin-top: 0.5rem;
  overflow-wrap: anywhere;
  font-size: clamp(0.58rem, 1.5vw, 0.66rem);
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.18;
  text-transform: uppercase;
}

.dress-white {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 100%;
  margin-top: 1.35rem;
  padding: 0.72rem 0.88rem;
  border: 1px solid rgba(255, 248, 238, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 248, 238, 0.06);
  color: rgba(255, 248, 238, 0.84);
}

.dress-white__sample {
  position: relative;
  flex: 0 0 auto;
  width: 3.4rem;
  height: 2.3rem;
  border: 1px solid rgba(17, 16, 14, 0.16);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(232, 225, 214, 0.9));
}

.dress-white__sample::after {
  content: "";
  position: absolute;
  left: -0.28rem;
  right: -0.28rem;
  top: 50%;
  height: 2px;
  background: var(--red);
  transform: rotate(-28deg);
}

.dress-white p {
  margin: 0;
  font-size: clamp(0.92rem, 2.3vw, 1.04rem);
  font-weight: 800;
  line-height: 1.2;
}

.dress-white p span {
  display: block;
  margin-top: 0.12rem;
  color: var(--sand);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.adult-card {
  max-width: 50rem;
  padding: clamp(1.2rem, 4vw, 2.4rem);
}

.adult-card .section__title {
  color: var(--red);
}

.adult-card p:not(.section__kicker) {
  max-width: 36rem;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 4.4vw, 2.35rem);
  line-height: 1.1;
}

.adult-card p + p {
  margin-top: 0.75rem;
}

.rsvp-form {
  display: grid;
  gap: 1rem;
  max-width: 49rem;
  padding: clamp(1rem, 4vw, 2rem);
}

.field {
  display: grid;
  gap: 0.42rem;
}

.field--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.field label,
.radio-group legend,
.checkbox-group legend {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(17, 16, 14, 0.18);
  border-radius: 8px;
  background: rgba(255, 248, 238, 0.82);
  color: var(--black);
  padding: 0.9rem 0.95rem;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.radio-group,
.checkbox-group {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  border: 0;
}

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

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

.radio-group legend,
.checkbox-group legend {
  grid-column: 1 / -1;
}

.radio-group label,
.checkbox-group label,
.consent {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  min-height: 2.85rem;
  padding: 0.72rem 0.78rem;
  border: 1px solid rgba(17, 16, 14, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.3);
}

.radio-group input,
.checkbox-group input,
.consent input {
  flex: 0 0 auto;
  accent-color: var(--red);
}

.radio-group span,
.checkbox-group span,
.consent span {
  min-width: 0;
}

.consent {
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.form-hint,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status {
  min-height: 1.45rem;
  font-weight: 800;
}

.form-status:not(:empty) {
  color: var(--red);
}

.form-status.is-error {
  color: #7d1015;
}

.final-section {
  text-align: center;
}

.final__inner {
  max-width: 54rem;
}

.final__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 12vw, 7.5rem);
  font-weight: 600;
  line-height: 0.9;
  text-wrap: balance;
}

.final__signature {
  margin: 1.2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 4.4rem);
  line-height: 1;
}

.final__actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.final-section .red-rule {
  margin-inline: auto;
  transform-origin: center;
}

.footer {
  width: min(100% - 12px, 1120px);
  margin: 0 auto clamp(0.65rem, 2vw, 1.25rem);
  padding: 1.2rem 0;
  border: 1px solid rgba(255, 248, 238, 0.16);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(17, 16, 14, 0.8);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer p {
  margin: 0;
  color: rgba(255, 248, 238, 0.74);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer__replay {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sand);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.thanks-page {
  min-height: 100svh;
  display: grid;
  align-items: center;
}

.motion-pending,
.motion-pending.motion-line {
  opacity: 1;
  transform: translateY(14px);
}

.motion-pending.motion-image-reveal {
  opacity: 0;
  transform: translateY(14px) scale(0.992);
}

.motion-pending.motion-from-left {
  transform: translateX(-18px);
}

.motion-pending.motion-from-right {
  transform: translateX(18px);
}

.motion-pending.motion-stagger > *,
.motion-pending.motion-lines > * {
  opacity: 1;
  transform: translateY(12px);
}

.motion-pending.timeline {
  --line-scale: 0;
}

.motion-visible,
.motion-visible.motion-image-reveal,
.motion-visible.motion-line,
.motion-visible.motion-stagger > *,
.motion-visible.motion-lines > * {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--motion-medium) var(--ease-out),
    transform var(--motion-medium) var(--ease-out);
}

.motion-visible.timeline {
  --line-scale: 1;
}

.split-word,
.split-word > span {
  display: inline-block;
}

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

  .nav__links a:hover {
    color: var(--red);
  }

  .fabric-swatch:hover {
    transform: translateY(-3px);
  }
}

@media (min-width: 48rem) {
  :root {
    --header-offset: 5.8rem;
  }

  .container {
    width: min(100% - 64px, 1040px);
  }

  .nav__links {
    gap: 0.65rem 1.05rem;
  }

  .hero {
    min-height: calc(100svh - var(--header-offset));
    padding-top: clamp(14rem, 34svh, 21rem);
  }

  .hero__copy {
    width: min(100% - 64px, 45rem);
  }

  .where-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  }

  .dress-showcase {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  }

  .dress-palette {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 0.52rem;
  }

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

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

  .sticky-answer {
    display: none;
  }
}

@media (min-width: 64rem) {
  .site-content,
  .site-header,
  .footer {
    width: min(100% - 32px, 1120px);
  }

  .hero {
    min-height: min(52rem, calc(100svh - var(--header-offset)));
    padding-top: clamp(14rem, 30svh, 20rem);
  }

  .hero__copy {
    width: min(100% - 96px, 46rem);
  }
}

@media (min-width: 75rem) {
  body::before {
    background-image: url("../img/optimized/background-1600.webp");
    background-position: center center;
  }

  .container {
    width: min(100% - 96px, 1060px);
  }

  .hero__copy.container {
    width: min(100% - 96px, 46rem);
  }

  .js .intro-screen {
    background-image:
      linear-gradient(180deg, rgba(255, 248, 238, 0.78), rgba(17, 16, 14, 0.38)),
      url("../img/optimized/background-1600.webp");
  }

  .site-header,
  .site-content,
  .footer,
  .noir-card,
  .intro-screen__inner,
  .hero__copy {
    backdrop-filter: blur(6px) saturate(1.04);
  }
}

@media (min-width: 48rem) and (max-width: 74.9375rem) {
  body::before {
    background-image: url("../img/optimized/background-1200.webp");
    background-position: center center;
  }

  .js .intro-screen {
    background-image:
      linear-gradient(180deg, rgba(255, 248, 238, 0.78), rgba(17, 16, 14, 0.38)),
      url("../img/optimized/background-1200.webp");
  }
}

@media (max-width: 47.9375rem) {
  body {
    padding-bottom: 4.4rem;
  }

  .site-header {
    top: 0.35rem;
  }

  .nav {
    align-items: flex-start;
    min-height: auto;
  }

  .nav__links {
    max-width: 13rem;
  }

  .section {
    padding-block: clamp(3.2rem, 10vw, 4.8rem);
  }

  .site-content {
    background: rgba(255, 248, 238, 0.18);
  }

  .hero {
    min-height: calc(100svh - 5.2rem);
    padding-top: clamp(15rem, 44svh, 22rem);
  }

  .hero__copy {
    width: min(100% - 24px, 28rem);
  }

  .button {
    min-width: 8.8rem;
  }

  .noir-card {
    background: rgba(255, 248, 238, 0.82);
  }
}

@media (max-width: 30rem) {
  .container {
    width: min(100% - 40px, 1040px);
  }

  .nav {
    gap: 0.6rem;
  }

  .nav__links {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: end;
    gap: 0.42rem 0.58rem;
  }

  .intro-screen__inner {
    padding: 0.95rem;
  }

  .envelope-stage {
    width: min(100%, 24rem);
  }

  .hero {
    padding-top: clamp(14rem, 42svh, 19rem);
  }

  .hero__title {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .hero__actions,
  .final__actions {
    width: 100%;
  }

  .hero__actions .button,
  .final__actions .button,
  .intro-screen__button {
    width: 100%;
  }

  .radio-group,
  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 5.7rem 1fr;
    gap: 0.7rem;
  }

  .fabric-swatch {
    padding: 0.48rem;
  }

  .fabric-swatch__sample {
    min-height: 2.55rem;
  }

  .dress-white {
    align-items: flex-start;
  }
}

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

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

  .motion-pending,
  .motion-pending.motion-image-reveal,
  .motion-pending.motion-line,
  .motion-pending.motion-stagger > *,
  .motion-pending.motion-lines > * {
    opacity: 1;
    transform: none;
  }
}
