:root {
  --color-canvas: #fbf7f2;
  --color-surface: #fffdfb;
  --color-blush: #ead7d5;
  --color-blush-soft: #f4e8e5;
  --color-rose: #8c5962;
  --color-rose-light: #c9989d;
  --color-sage: #7e8973;
  --color-ink: #3d3334;
  --color-muted: #716567;
  --color-deep: #493a3d;
  --color-line: rgba(61, 51, 52, 0.16);
  --color-white-line: rgba(255, 255, 255, 0.25);
  --font-display: "Cormorant Garamond", "Iowan Old Style", Baskerville, Georgia, serif;
  --font-body: "DM Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-soft: 0 28px 80px rgba(77, 50, 55, 0.11);
  --radius-small: 14px;
  --radius-medium: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --content-width: 1180px;
  color: var(--color-ink);
  background: var(--color-canvas);
  font-family: var(--font-body);
  font-synthesis: none;
}

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

html {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background: var(--color-canvas);
}

body {
  min-height: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.locked {
  overflow: hidden;
}

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

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

button {
  border: 0;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #c47e89;
  outline-offset: 4px;
}

::selection {
  color: var(--color-surface);
  background: var(--color-rose);
}

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

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  color: white;
  background: var(--color-deep);
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

.site-shell {
  min-height: 100vh;
}

.section-pad {
  padding: clamp(88px, 10vw, 150px) max(24px, 6vw);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--color-rose);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.78);
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms var(--ease-out), box-shadow 220ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.button-primary {
  color: #fff;
  background: var(--color-rose);
  box-shadow: 0 12px 28px rgba(140, 89, 98, 0.19);
}

.button-primary:hover {
  background: #764851;
  box-shadow: 0 15px 32px rgba(140, 89, 98, 0.25);
}

.button-secondary {
  color: var(--color-ink);
  border-color: rgba(61, 51, 52, 0.36);
  background: transparent;
}

.button-secondary:hover {
  border-color: var(--color-rose);
  color: var(--color-rose);
  background: rgba(255, 255, 255, 0.5);
}

.button-light {
  color: var(--color-deep);
  background: #fff8f2;
}

.button-light:hover {
  background: #fff;
  box-shadow: 0 14px 36px rgba(22, 15, 17, 0.18);
}

.text-button {
  min-height: 44px;
  padding: 0 6px;
  border-bottom: 1px solid currentColor;
  color: var(--color-rose);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto clamp(52px, 7vw, 86px);
  text-align: center;
}

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

.section-heading h2,
.rsvp-copy h2,
.gift-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.84;
}

.section-heading h2 em,
.rsvp-copy h2 em,
.gift-copy h2 em,
.event-details h2 em {
  color: var(--color-rose);
  font-weight: 400;
}

.section-heading > p:last-child {
  max-width: 620px;
  margin: 30px auto 0;
  color: var(--color-muted);
}

.section-heading-left > p:last-child {
  margin-left: 0;
}

/* Opening gate */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #2f2829;
  isolation: isolate;
  transition: opacity 760ms ease, transform 900ms var(--ease-out), visibility 900ms;
}

.gate.opened {
  visibility: hidden;
  opacity: 0;
  transform: scale(1.035);
  pointer-events: none;
}

.gate-photo,
.gate-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gate-photo {
  z-index: -3;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.01);
}

.gate-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(41, 32, 34, 0.42), rgba(41, 32, 34, 0.12) 48%, rgba(41, 32, 34, 0.3)),
    linear-gradient(180deg, rgba(29, 23, 24, 0.08), rgba(29, 23, 24, 0.64));
}

.petal {
  position: absolute;
  z-index: -1;
  width: 290px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100% 0 100% 0;
  pointer-events: none;
}

.petal-one {
  top: -90px;
  right: -90px;
  transform: rotate(22deg);
}

.petal-two {
  bottom: -110px;
  left: -80px;
  transform: rotate(-18deg);
}

.gate-content {
  width: min(88vw, 600px);
  padding: 32px;
  text-align: center;
}

.gate-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.3rem, 11vw, 8.2rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.8;
  text-shadow: 0 10px 50px rgba(18, 11, 13, 0.3);
}

.gate-title i {
  color: #efc2c0;
  font-weight: 400;
}

.gate-date {
  margin: 27px 0 36px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.guest-card {
  max-width: 340px;
  display: grid;
  gap: 5px;
  margin: 0 auto 24px;
  padding: 17px 10px;
  border-top: 1px solid var(--color-white-line);
  border-bottom: 1px solid var(--color-white-line);
}

.guest-card span,
.gate-hint {
  font-size: 0.72rem;
}

.guest-card span {
  opacity: 0.7;
}

.guest-card strong {
  max-width: 100%;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.gate .button {
  min-width: 182px;
}

.gate-hint {
  margin: 16px 0 0;
  opacity: 0.66;
}

/* Welcome */
.welcome {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 0.72fr);
  align-items: center;
  gap: clamp(50px, 7vw, 120px);
  padding: clamp(110px, 11vh, 150px) max(30px, 8vw) clamp(105px, 12vh, 150px);
  overflow: hidden;
  background: var(--color-canvas);
  isolation: isolate;
}

.welcome-wash {
  position: absolute;
  top: -24%;
  left: -10%;
  z-index: -1;
  width: 70vw;
  height: 80vw;
  max-height: 960px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 215, 213, 0.8), rgba(244, 232, 229, 0.35) 52%, transparent 72%);
  filter: blur(2px);
}

.welcome-content {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.welcome h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(5.8rem, 11vw, 10rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.66;
}

.welcome h1 i {
  color: var(--color-rose);
  font-size: 0.7em;
  font-weight: 400;
}

.welcome-lead {
  max-width: 540px;
  margin: 38px 0 30px;
  color: var(--color-muted);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
}

.quick-facts {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.8fr;
  max-width: 660px;
  margin: 0 0 30px;
  padding: 20px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.quick-facts > div {
  min-width: 0;
  padding: 0 18px;
  border-right: 1px solid var(--color-line);
}

.quick-facts > div:first-child {
  padding-left: 0;
}

.quick-facts > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.quick-facts dt {
  color: var(--color-rose);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 5px 0 0;
  color: var(--color-ink);
  font-size: 0.91rem;
  font-weight: 500;
  line-height: 1.3;
}

.welcome-actions,
.event-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.welcome-visual {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  justify-self: center;
  padding: 28px 0 0 28px;
}

.welcome-visual img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5.35;
  border-radius: 48% 48% var(--radius-medium) var(--radius-medium);
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow-soft);
}

.welcome-frame {
  position: absolute;
  inset: 0 28px 28px 0;
  border: 1px solid rgba(140, 89, 98, 0.35);
  border-radius: 48% 48% var(--radius-medium) var(--radius-medium);
}

.welcome-caption {
  position: absolute;
  right: -30px;
  bottom: 72px;
  color: var(--color-rose);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 0.04em;
  transform: rotate(90deg);
  transform-origin: center;
}

.scroll-note {
  position: absolute;
  bottom: 35px;
  left: max(30px, 8vw);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-note span {
  width: 42px;
  height: 1px;
  background: var(--color-rose);
}

/* Couple */
.couple {
  position: relative;
  overflow: hidden;
  overflow: clip;
  background: var(--color-surface);
}

.couple::before,
.couple::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 360px;
  border: 1px solid rgba(140, 89, 98, 0.15);
  border-radius: 50% 50% 8px 8px;
  pointer-events: none;
}

.couple::before {
  top: 9%;
  left: -180px;
  transform: rotate(23deg);
}

.couple::after {
  right: -190px;
  bottom: 8%;
  transform: rotate(-20deg);
}

.couple-grid {
  width: min(100%, var(--content-width));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(28px, 5vw, 80px);
  margin: 0 auto;
}

.person-card {
  position: relative;
  padding: clamp(36px, 5vw, 64px) 24px;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  text-align: center;
}

.person-number {
  position: absolute;
  top: 18px;
  right: 0;
  color: rgba(140, 89, 98, 0.5);
  font-family: var(--font-display);
  font-size: 1rem;
}

.person-role {
  margin: 0 0 12px;
  color: var(--color-rose);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.person-card h3 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

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

.person-card strong {
  color: var(--color-ink);
  font-weight: 500;
}

.couple-mark {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-rose);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.couple-mark i {
  font-size: 2.8rem;
  font-weight: 400;
}

/* Story */
.story {
  background: var(--color-blush-soft);
}

.story-intro {
  width: min(100%, calc(var(--content-width) + 12vw));
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: clamp(40px, 8vw, 130px);
  margin: 0 auto;
  padding-bottom: clamp(60px, 7vw, 100px);
}

.story-intro .section-heading {
  margin-bottom: 0;
}

.story-intro-copy {
  max-width: 470px;
  margin: 0 0 10px;
  color: var(--color-muted);
}

.story-chapter {
  width: min(100%, calc(var(--content-width) + 12vw));
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(420px, 1.25fr);
  align-items: center;
  gap: clamp(50px, 9vw, 150px);
  margin: 0 auto;
  padding-top: clamp(60px, 6vw, 90px);
  padding-bottom: clamp(80px, 9vw, 140px);
}

.story-copy {
  max-width: 510px;
}

.chapter-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.chapter-label span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--color-rose);
}

.story-copy h3 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.84;
}

.story-copy > p:not(.chapter-label) {
  color: var(--color-muted);
}

.story-copy blockquote {
  margin: 38px 0 0;
  padding: 4px 0 4px 24px;
  border-left: 1px solid var(--color-rose);
  color: var(--color-rose);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-style: italic;
  line-height: 1.2;
}

.story-collage {
  position: relative;
  min-height: min(68vw, 730px);
}

.story-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-photo-main {
  top: 0;
  right: 0;
  width: 72%;
  height: 82%;
  border-radius: 48% 48% var(--radius-small) var(--radius-small);
}

.story-photo-small {
  bottom: 0;
  left: 0;
  width: 42%;
  height: 49%;
  border: 9px solid var(--color-blush-soft);
  border-radius: 140px 140px 10px 10px;
}

.story-flower {
  position: absolute;
  right: 4%;
  bottom: 3%;
  color: var(--color-rose-light);
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1;
}

.story-chapter-horizon {
  grid-template-columns: minmax(420px, 1.2fr) minmax(280px, 0.8fr);
}

.horizon-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-medium) 220px var(--radius-medium) var(--radius-medium);
  box-shadow: var(--shadow-soft);
}

.horizon-visual img {
  width: 100%;
  aspect-ratio: 1 / 1.14;
  object-fit: cover;
}

.horizon-visual::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(35, 27, 29, 0.64));
}

.horizon-visual p {
  position: absolute;
  right: 7%;
  bottom: 5%;
  left: 7%;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-style: italic;
  text-align: right;
}

.mini-moments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 42px;
}

.mini-moments img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.mini-moments img:first-child {
  border-radius: 100px 100px 8px 8px;
}

.mini-moments img:last-child {
  margin-top: 30px;
  border-radius: 8px 8px 100px 100px;
}

/* Event */
.event {
  position: relative;
  overflow: hidden;
  background: var(--color-blush);
}

.event-leaf {
  position: absolute;
  width: 310px;
  height: 480px;
  border: 1px solid rgba(140, 89, 98, 0.22);
  border-radius: 100% 0 100% 0;
}

.event-leaf-left {
  bottom: -260px;
  left: -120px;
  transform: rotate(-22deg);
}

.event-leaf-right {
  top: -280px;
  right: -140px;
  transform: rotate(25deg);
}

.event-card {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content-width));
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(430px, 1.28fr);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-medium);
  background: rgba(255, 253, 251, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.event-date {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 28px;
  color: #fff;
  background:
    linear-gradient(rgba(73, 58, 61, 0.35), rgba(73, 58, 61, 0.58)),
    url("assets/horizon-4.webp") center / cover;
  text-align: center;
}

.event-date span {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.event-date strong {
  margin: -3px 0 -15px;
  font-family: var(--font-display);
  font-size: clamp(9rem, 18vw, 14rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.event-details {
  align-self: center;
  padding: clamp(48px, 7vw, 90px);
}

.event-details h2 {
  margin: 0 0 30px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.event-time {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 28px;
  padding: 12px 18px;
  border-left: 3px solid var(--color-rose);
  background: var(--color-blush-soft);
}

.event-time span {
  color: var(--color-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event-time strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}

.event-details h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
}

.event-address {
  margin-bottom: 30px;
  color: var(--color-muted);
}

.status-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--color-sage);
  font-size: 0.82rem;
}

/* Gallery */
.gallery {
  background: var(--color-surface);
}

.gallery .section-heading {
  width: min(100%, var(--content-width));
}

.gallery-grid {
  width: min(100%, var(--content-width));
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(150px, 16vw, 220px);
  gap: 14px;
  margin: 0 auto;
}

.gallery-item {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--color-blush-soft);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out), filter 400ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  filter: saturate(1.04);
  transform: scale(1.035);
}

.gallery-item-one {
  grid-column: 1 / 6;
  grid-row: 1 / 3;
  border-radius: 190px 190px 6px 6px;
}

.gallery-item-two {
  grid-column: 6 / 9;
  grid-row: 1 / 2;
}

.gallery-item-three {
  grid-column: 9 / 13;
  grid-row: 1 / 2;
  border-radius: 6px 120px 6px 6px;
}

.gallery-item-four {
  grid-column: 6 / 13;
  grid-row: 2 / 4;
}

.gallery-item-five {
  grid-column: 1 / 4;
  grid-row: 3 / 4;
  border-radius: 6px 6px 6px 100px;
}

.gallery-item-six {
  grid-column: 4 / 6;
  grid-row: 3 / 4;
}

/* RSVP */
.rsvp {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.28fr);
  align-items: start;
  gap: clamp(60px, 9vw, 150px);
  color: var(--color-ink);
  background: var(--color-canvas);
}

.rsvp-copy {
  position: sticky;
  top: 110px;
  max-width: 560px;
}

.rsvp-copy > p:nth-of-type(2) {
  max-width: 500px;
  margin: 32px 0;
  color: var(--color-muted);
}

.rsvp-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 480px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}

.rsvp-note span {
  flex: 0 0 auto;
  color: var(--color-rose);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.rsvp-note p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.86rem;
}

.rsvp-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 22px;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.field {
  min-width: 0;
}

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

.field label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--color-ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field label span {
  color: var(--color-rose);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(61, 51, 52, 0.2);
  border-radius: 10px;
  outline: none;
  color: var(--color-ink);
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-rose);
  box-shadow: 0 0 0 3px rgba(140, 89, 98, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #938789;
  opacity: 1;
}

.rsvp-form > .button {
  width: 100%;
}

.form-status {
  min-height: 25px;
  margin: -8px 0 0;
  color: var(--color-sage);
  font-size: 0.86rem;
}

.form-status.is-error {
  color: #9a3e4a;
}

/* Gift */
.gift {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 0.7fr);
  align-items: center;
  justify-content: center;
  gap: clamp(60px, 10vw, 170px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 10% 10%, rgba(201, 152, 157, 0.16), transparent 36%),
    var(--color-deep);
}

.gift-copy {
  max-width: 680px;
}

.gift-copy h2 {
  color: #fff;
}

.gift-copy h2 em {
  color: #efc2c0;
}

.gift-copy > p:last-child {
  max-width: 560px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.bank-card {
  position: relative;
  max-width: 520px;
  display: grid;
  padding: clamp(36px, 6vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 180px 180px var(--radius-medium) var(--radius-medium);
  background: rgba(255, 255, 255, 0.055);
  text-align: center;
}

.bank-name {
  margin-bottom: 38px;
  font-weight: 600;
  letter-spacing: 0.3em;
}

.bank-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bank-card strong {
  margin: 4px 0 5px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1;
}

.account-name {
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.84rem;
}

.status-message-light {
  color: #d5dfc8;
}

/* Closing */
.closing {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--color-deep);
}

.closing > img,
.closing-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.closing > img {
  object-fit: cover;
  object-position: center;
}

.closing-overlay {
  background: linear-gradient(180deg, rgba(42, 32, 35, 0.18), rgba(42, 32, 35, 0.6));
}

.closing-copy {
  position: relative;
  z-index: 1;
  width: min(88%, 780px);
  text-align: center;
}

.closing-copy > p:first-child {
  max-width: 600px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.84);
}

.closing h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 12vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.78;
}

.closing h2 i {
  color: #efc2c0;
  font-weight: 400;
}

.closing-date {
  margin: 30px 0 0;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.3em;
}

.closing-thanks {
  margin: 48px 0 0;
  color: #efc2c0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-style: italic;
}

/* Persistent controls */
.utility-nav {
  position: fixed;
  z-index: 70;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  gap: 3px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(73, 58, 61, 0.91);
  box-shadow: 0 15px 40px rgba(40, 28, 31, 0.2);
  opacity: 0;
  transform: translate(-50%, 150%);
  backdrop-filter: blur(16px);
  transition: opacity 450ms ease, transform 650ms var(--ease-out);
}

.utility-nav.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.utility-nav a {
  min-width: 70px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 200ms ease, background 200ms ease;
}

.utility-nav a:hover,
.utility-nav a[aria-current="page"] {
  color: var(--color-deep);
  background: #fff8f2;
}

.music-toggle {
  position: fixed;
  z-index: 75;
  top: max(18px, env(safe-area-inset-top));
  right: 18px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(73, 58, 61, 0.86);
  box-shadow: 0 10px 28px rgba(40, 28, 31, 0.16);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.music-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-deep);
  background: #fff8f2;
}

.music-toggle[aria-pressed="true"] .music-icon {
  animation: music-pulse 2.2s ease-in-out infinite;
}

@keyframes music-pulse {
  50% { transform: scale(0.86); }
}

/* Lightbox */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  padding: 28px;
  border: 0;
  color: #fff;
  background: rgba(34, 27, 29, 0.96);
}

.lightbox::backdrop {
  background: rgba(34, 27, 29, 0.96);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  z-index: 2;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

/* Progressive reveal */
.will-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out);
}

.will-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  .welcome {
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
    gap: 50px;
    padding-right: max(30px, 5vw);
    padding-left: max(30px, 5vw);
  }

  .welcome h1 {
    font-size: clamp(5.4rem, 11vw, 8rem);
  }

  .story-chapter {
    gap: 70px;
  }

  .event-card {
    grid-template-columns: minmax(280px, 0.7fr) minmax(390px, 1.3fr);
  }

  .event-details {
    padding: 55px 45px;
  }

  .rsvp,
  .gift {
    gap: 65px;
  }

  .rsvp {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  }
}

@media (max-width: 820px) {
  .section-pad {
    padding: 92px 26px;
  }

  .welcome {
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 105px 24px 125px;
    color: #fff;
    background: var(--color-deep);
  }

  .welcome::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(38, 29, 31, 0.16) 7%, rgba(38, 29, 31, 0.22) 38%, rgba(38, 29, 31, 0.87) 92%);
  }

  .welcome-wash,
  .welcome-frame,
  .welcome-caption,
  .scroll-note {
    display: none;
  }

  .welcome-content {
    width: 100%;
    max-width: 620px;
  }

  .welcome .eyebrow,
  .welcome h1 i {
    color: #efc2c0;
  }

  .welcome h1 {
    font-size: clamp(4.4rem, 17vw, 7.5rem);
  }

  .welcome-lead {
    max-width: 520px;
    margin: 28px 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.25rem, 4.5vw, 1.7rem);
  }

  .welcome-visual {
    position: absolute;
    inset: 0;
    width: auto;
    padding: 0;
  }

  .welcome-visual img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    object-position: center 32%;
    box-shadow: none;
  }

  .quick-facts {
    margin-bottom: 24px;
    padding: 16px 0;
    border-color: rgba(255, 255, 255, 0.25);
  }

  .quick-facts > div {
    border-color: rgba(255, 255, 255, 0.2);
  }

  .quick-facts dt {
    color: #efc2c0;
  }

  .quick-facts dd {
    color: #fff;
  }

  .welcome .button-primary {
    color: var(--color-deep);
    background: #fff8f2;
    box-shadow: none;
  }

  .welcome .button-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.52);
  }

  .couple-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    gap: 18px;
  }

  .couple-mark {
    justify-content: center;
    padding: 8px 0;
  }

  .story-intro,
  .story-chapter,
  .story-chapter-horizon,
  .rsvp,
  .gift {
    grid-template-columns: 1fr;
  }

  .story-intro {
    align-items: start;
    gap: 32px;
  }

  .story-intro-copy {
    max-width: 620px;
  }

  .story-chapter {
    gap: 55px;
  }

  .story-collage {
    min-height: min(112vw, 720px);
  }

  .story-chapter-horizon .horizon-visual {
    order: 2;
  }

  .story-chapter-horizon .story-copy {
    order: 1;
  }

  .event-card {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .event-date {
    min-height: 420px;
  }

  .event-details {
    padding: 52px 36px;
  }

  .rsvp-copy {
    position: static;
  }

  .rsvp,
  .gift {
    gap: 52px;
  }

  .gift-copy,
  .bank-card {
    width: min(100%, 620px);
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 70px;
  }

  .section-pad {
    padding: 78px 20px;
  }

  .section-heading {
    margin-bottom: 48px;
  }

  .section-heading h2,
  .rsvp-copy h2,
  .gift-copy h2 {
    font-size: clamp(3.2rem, 15vw, 4.7rem);
  }

  .gate-content {
    width: 100%;
    padding: 22px;
  }

  .gate-photo {
    object-position: 49% center;
  }

  .gate-overlay {
    background: linear-gradient(180deg, rgba(28, 21, 23, 0.08), rgba(28, 21, 23, 0.28) 40%, rgba(28, 21, 23, 0.78));
  }

  .gate-title {
    font-size: clamp(4rem, 19vw, 5.8rem);
  }

  .welcome {
    padding: 82px 20px 116px;
  }

  .welcome h1 {
    font-size: clamp(4.2rem, 20vw, 6rem);
  }

  .welcome-lead {
    margin-top: 23px;
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .quick-facts {
    grid-template-columns: 1.25fr 0.9fr 0.7fr;
  }

  .quick-facts > div {
    padding: 0 10px;
  }

  .quick-facts dt {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }

  .quick-facts dd {
    font-size: 0.875rem;
  }

  .welcome-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .welcome-actions .button {
    min-height: 48px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .person-card {
    padding: 42px 16px;
  }

  .story-intro {
    padding-bottom: 48px;
  }

  .story-copy h3 {
    font-size: clamp(3.1rem, 14vw, 4.4rem);
  }

  .story-collage {
    min-height: 118vw;
  }

  .horizon-visual {
    border-radius: 18px 130px 18px 18px;
  }

  .event-date {
    min-height: 350px;
  }

  .event-date strong {
    font-size: 10rem;
  }

  .event-details {
    padding: 40px 22px;
  }

  .event-details h2 {
    font-size: 2.9rem;
  }

  .event-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    gap: 8px;
  }

  .gallery-item,
  .gallery-item-one,
  .gallery-item-two,
  .gallery-item-three,
  .gallery-item-four,
  .gallery-item-five,
  .gallery-item-six {
    grid-column: auto;
    grid-row: auto;
    border-radius: 6px;
    aspect-ratio: 4 / 5;
  }

  .gallery-item-one,
  .gallery-item-four {
    grid-row: span 2;
    aspect-ratio: auto;
  }

  .gallery-item-one {
    border-radius: 100px 100px 6px 6px;
  }

  .gallery-item-four {
    border-radius: 6px 6px 100px 100px;
  }

  .rsvp-form {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 20px;
  }

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

  .bank-card {
    padding: 52px 24px 34px;
    border-radius: 130px 130px 18px 18px;
  }

  .bank-name {
    margin-bottom: 27px;
  }

  .bank-card strong {
    font-size: clamp(2.5rem, 13vw, 3.6rem);
  }

  .closing {
    min-height: 860px;
  }

  .closing > img {
    object-position: 54% center;
  }

  .closing h2 {
    font-size: clamp(4rem, 20vw, 6rem);
  }

  .utility-nav {
    width: calc(100% - 24px);
    bottom: max(10px, env(safe-area-inset-bottom));
    justify-content: space-between;
  }

  .utility-nav a {
    min-width: 0;
    flex: 1;
    padding: 0 8px;
    font-size: 0.75rem;
  }

  .music-toggle {
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.75rem;
  }
}

@media (max-width: 370px), (max-height: 700px) and (max-width: 820px) {
  .welcome {
    padding-top: 68px;
    padding-bottom: 92px;
  }

  .welcome h1 {
    font-size: 4rem;
  }

  .welcome-lead {
    margin: 18px 0;
    font-size: 1.08rem;
  }

  .quick-facts {
    margin-bottom: 18px;
    padding: 12px 0;
  }

  .gate-date {
    margin: 20px 0 25px;
  }
}

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

  .will-reveal {
    opacity: 1;
    transform: none;
  }
}
