:root {
  --cream: #fbf7e8;
  --butter: #f3d98b;
  --butter-light: #f8e8af;
  --oat: #d7c3a3;
  --rope: #b89f7a;
  --sage: #a7af78;
  --moss: #7b8d3e;
  --forest: #395228;
  --forest-deep: #1f301a;
  --ink: #202019;
  --amber: #c78332;
  --white: #fffdf4;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Be Vietnam Pro", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --page-pad: clamp(1.25rem, 4vw, 5rem);
  --content: 88rem;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--moss) var(--cream);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 900ms var(--ease), color 700ms var(--ease);
}

.js body.gate-visible,
.js body.gate-opening {
  overflow: hidden;
}

body[data-theme="butter"] { background: var(--butter); }
body[data-theme="cream"] { background: var(--cream); }
body[data-theme="moss"] { background: var(--moss); color: var(--cream); }
body[data-theme="forest"] { background: var(--forest-deep); color: var(--cream); }

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

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

button:focus-visible,
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

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

.skip-link {
  position: fixed;
  z-index: 1001;
  top: .75rem;
  left: .75rem;
  padding: .65rem .9rem;
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

.paper-grain {
  position: fixed;
  z-index: 900;
  inset: 0;
  pointer-events: none;
  opacity: .055;
  mix-blend-mode: multiply;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.93' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.page-progress {
  position: fixed;
  z-index: 920;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, .12);
  pointer-events: none;
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .25em;
  line-height: 1.4;
  text-transform: uppercase;
}

.display-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.3rem, 7.3vw, 7.6rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .85;
}

.display-title em {
  font-weight: 400;
}

.section {
  position: relative;
  isolation: isolate;
}

.section-heading {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: clamp(6rem, 13vw, 11rem) var(--page-pad) clamp(4rem, 8vw, 7rem);
}

/* Invitation gate */
.invitation-gate {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  visibility: hidden;
  transition: visibility 0s linear 1.45s;
}

.js .invitation-gate { visibility: visible; }

.gate-curtain {
  position: absolute;
  z-index: 1;
  top: -4%;
  bottom: -4%;
  width: 55%;
  background:
    linear-gradient(90deg, rgba(104, 77, 31, .17), transparent 9%, rgba(255,255,255,.75) 19%, rgba(127,91,32,.12) 37%, rgba(255,255,255,.7) 54%, rgba(101,76,33,.14) 73%, rgba(255,255,255,.6) 88%, rgba(92,64,25,.16)),
    linear-gradient(180deg, #f6e6b8 0%, #fff9e7 38%, #ead29a 100%);
  box-shadow: inset 0 0 70px rgba(104, 74, 24, .16);
  will-change: transform;
  transition: transform 1.35s var(--ease);
}

.gate-curtain::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(92deg, transparent 0 12%, rgba(255,255,255,.16) 13%, transparent 22%);
}

.gate-curtain--left {
  left: 0;
  transform-origin: 0 50%;
  clip-path: polygon(0 0, 100% 0, 88% 28%, 97% 55%, 86% 78%, 100% 100%, 0 100%);
}

.gate-curtain--right {
  right: 0;
  transform-origin: 100% 50%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14% 78%, 3% 55%, 12% 28%);
}

.gate-glow {
  position: absolute;
  z-index: 0;
  width: 38rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 173, 66, .65) 0, rgba(243, 217, 139, .22) 38%, transparent 70%);
  filter: blur(24px);
  animation: breathe 4s ease-in-out infinite;
}

.gate-content {
  position: relative;
  z-index: 3;
  width: min(88vw, 34rem);
  padding: 3rem 1.5rem;
  text-align: center;
  transition: opacity 380ms ease, transform 700ms var(--ease);
}

.gate-content h1 {
  margin: .2rem 0;
  font-family: var(--serif);
  font-size: clamp(4.4rem, 12vw, 8.5rem);
  font-weight: 400;
  letter-spacing: -.07em;
  line-height: .9;
}

.gate-content h1 em {
  display: inline-block;
  margin: 0 .08em;
  color: var(--forest);
  font-size: .7em;
  font-weight: 400;
}

.monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin: 1.5rem 0 2.2rem;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.monogram i {
  width: 2.75rem;
  height: 1px;
  background: var(--forest);
}

.gate-date {
  margin: 1.4rem 0 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: .18em;
}

.gate-note {
  margin: .4rem 0 2.2rem;
  font-size: .76rem;
  letter-spacing: .08em;
}

.open-invitation {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  border: 1px solid rgba(32, 32, 25, .55);
  border-radius: 999px;
  padding: .85rem 1rem .85rem 1.5rem;
  background: rgba(255, 253, 244, .52);
  color: var(--ink);
  cursor: pointer;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background 300ms ease, color 300ms ease, transform 300ms var(--ease);
}

.open-invitation svg {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  padding: .42rem;
  background: var(--forest);
  stroke: var(--cream);
  fill: none;
  stroke-width: 1.5;
}

.open-invitation:hover {
  background: var(--forest);
  color: var(--cream);
  transform: translateY(-2px);
}

body.gate-opening .gate-curtain--left { transform: translateX(-96%) scaleX(.9); }
body.gate-opening .gate-curtain--right { transform: translateX(96%) scaleX(.9); }
body.gate-opening .gate-content { opacity: 0; transform: scale(.96) translateY(-12px); }
body.gate-open .invitation-gate { visibility: hidden; pointer-events: none; transition: none; }

@keyframes breathe {
  0%, 100% { transform: scale(.88); opacity: .6; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Section navigation */
.section-nav {
  position: fixed;
  z-index: 850;
  top: 50%;
  right: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .72rem;
  transform: translateY(-50%);
  mix-blend-mode: difference;
}

.section-nav a {
  position: relative;
  display: block;
  width: .52rem;
  height: .52rem;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
  transition: transform 250ms var(--ease), background 250ms ease;
}

.section-nav a.is-active {
  background: #fff;
  transform: scale(1.35);
}

.section-nav span {
  position: absolute;
  top: 50%;
  right: 1.1rem;
  padding: .25rem .45rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  white-space: nowrap;
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: opacity 180ms ease, transform 180ms ease;
}

.section-nav a:hover span,
.section-nav a:focus-visible span { opacity: 1; transform: translate(0, -50%); }

/* Hero */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(24rem, 1.08fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 7rem);
  padding: clamp(5.5rem, 9vw, 8rem) var(--page-pad) clamp(6.5rem, 10vw, 9rem);
  overflow: hidden;
  background: var(--butter);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 38rem);
  margin-left: auto;
}

.hero-names {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(5rem, 10.5vw, 10rem);
  font-weight: 400;
  letter-spacing: -.075em;
  line-height: .76;
  white-space: nowrap;
}

.hero-names em {
  color: var(--forest);
  font-size: .58em;
  font-weight: 400;
}

.hero-tagline {
  margin: 0 0 2.8rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.65rem);
  font-style: italic;
  line-height: 1.02;
}

.hero-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(32, 32, 25, .34);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-meta strong {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 500;
  letter-spacing: .08em;
}

.hero-visual {
  position: relative;
  z-index: 1;
  height: min(82svh, 58rem);
  min-height: 34rem;
  margin: 0;
  overflow: hidden;
  clip-path: inset(0 round 48% 48% 2rem 2rem);
  transform: translate3d(0, var(--parallax-y, 0), 0);
  box-shadow: 0 2rem 4.5rem rgba(74, 55, 20, .18);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(29, 39, 20, .45));
  pointer-events: none;
}

.hero-visual img { object-position: center 42%; }

.hero-visual figcaption {
  position: absolute;
  z-index: 2;
  right: 1.4rem;
  bottom: 1.2rem;
  left: 1.4rem;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .08em;
  text-align: right;
}

.hero-orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(57, 82, 40, .26);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit--one {
  top: -18vw;
  left: -13vw;
  width: 42vw;
  aspect-ratio: 1;
}

.hero-orbit--two {
  right: 27vw;
  bottom: -25vw;
  width: 48vw;
  aspect-ratio: 1;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 1.5rem;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  transform: translateX(-50%);
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 2.6rem;
  overflow: hidden;
  background: rgba(32, 32, 25, .28);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  animation: scroll-line 2s var(--ease) infinite;
}

@keyframes scroll-line {
  0% { transform: translateY(-105%); }
  50%, 100% { transform: translateY(105%); }
}

/* Manifesto */
.manifesto {
  min-height: 180svh;
  background: var(--cream);
  color: var(--ink);
  overflow: clip;
}

.manifesto-sticky {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 76rem);
  padding: 6rem var(--page-pad);
  margin: 0 auto;
}

.manifesto-text {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.55rem, 5.6vw, 6.25rem);
  letter-spacing: -.04em;
  line-height: .95;
}

.manifesto-text span {
  display: block;
  margin-bottom: .12em;
}

.manifesto-text span:nth-child(4),
.manifesto-text span:nth-child(5) {
  color: var(--forest);
  font-style: italic;
}

.manifesto-end {
  max-width: 36rem;
  margin: 3rem 0 0 auto;
  font-size: clamp(.9rem, 1.25vw, 1.08rem);
}

.thread-art {
  position: absolute;
  z-index: 0;
  top: 12%;
  right: -1rem;
  width: min(22vw, 16rem);
  height: 74%;
  opacity: .36;
}

.thread-art svg { width: 100%; height: 100%; }
.thread-art path { fill: none; stroke: var(--rope); stroke-width: 2; stroke-dasharray: 6 7; }

/* Dates */
.dates {
  min-height: 100svh;
  background: var(--butter);
  color: var(--ink);
}

.date-composition {
  display: grid;
  grid-template-columns: minmax(16rem, .85fr) minmax(22rem, 1.15fr) minmax(16rem, .85fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 5rem);
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 0 var(--page-pad) clamp(7rem, 13vw, 12rem);
}

.date-card {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
  border-top: 1px solid rgba(32,32,25,.38);
  border-bottom: 1px solid rgba(32,32,25,.38);
}

.date-card > p:first-child {
  margin: 0 0 1.25rem;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.date-card h3 {
  margin: 1rem 0 .2rem;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
}

.date-card p { font-size: .82rem; }
.date-card .date-weekday { margin: 0 0 1.5rem; color: var(--forest); font-weight: 600; }

.date-number {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.date-number strong {
  font-family: var(--serif);
  font-size: clamp(6.5rem, 10vw, 10rem);
  font-weight: 400;
  letter-spacing: -.08em;
  line-height: .66;
}

.date-number span {
  padding-bottom: .2rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: .06em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.date-photo {
  height: clamp(36rem, 66vw, 58rem);
  margin: 0;
  overflow: hidden;
  border-radius: 48% 48% .35rem .35rem;
  transform: translate3d(0, var(--parallax-y, 0), 0);
  box-shadow: 0 2rem 4rem rgba(81, 57, 13, .2);
}

.date-photo img { object-position: 50% 45%; }

/* Formal invitation */
.formal-invite {
  display: grid;
  min-height: 115svh;
  place-items: center;
  overflow: hidden;
  padding: clamp(6rem, 12vw, 10rem) var(--page-pad);
  background: linear-gradient(130deg, #f4ead3, var(--cream) 46%, #e8d4a8);
  color: var(--ink);
}

.fabric-fold {
  position: absolute;
  z-index: 0;
  top: -9%;
  width: 48%;
  height: 118%;
  background:
    repeating-linear-gradient(100deg, rgba(83,61,24,.06) 0 7%, rgba(255,255,255,.34) 10% 16%, transparent 20% 27%),
    linear-gradient(180deg, rgba(245,222,166,.8), rgba(255,253,244,.95));
  filter: drop-shadow(0 0 2rem rgba(55,43,23,.16));
}

.fabric-fold--left { left: -17%; transform: rotate(4deg); clip-path: polygon(0 0, 100% 6%, 74% 48%, 95% 100%, 0 100%); }
.fabric-fold--right { right: -18%; transform: rotate(-5deg); clip-path: polygon(0 6%, 100% 0, 100% 100%, 5% 100%, 25% 48%); }

.invite-card {
  position: relative;
  z-index: 2;
  width: min(100%, 49rem);
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1.5rem, 7vw, 6.5rem);
  border: 1px solid rgba(57,82,40,.34);
  background: rgba(255, 253, 244, .84);
  box-shadow: 0 2.5rem 5rem rgba(60, 47, 24, .14);
  text-align: center;
  backdrop-filter: blur(8px);
}

.invite-card::before,
.invite-card::after {
  content: "";
  position: absolute;
  width: 4rem;
  height: 4rem;
}

.invite-card::before { top: .75rem; left: .75rem; border-top: 1px solid var(--moss); border-left: 1px solid var(--moss); }
.invite-card::after { right: .75rem; bottom: .75rem; border-right: 1px solid var(--moss); border-bottom: 1px solid var(--moss); }

.invite-names h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6vw, 5.1rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: .9;
  text-transform: uppercase;
}

.invite-names span {
  display: block;
  margin: .5rem 0 .35rem;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 2.8rem;
  font-style: italic;
}

.invite-card > p:not(.eyebrow):not(.guest-name) { max-width: 31rem; margin: 1.1rem auto; font-size: .86rem; }

.guest-name {
  margin: .35rem 0 .6rem;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(2.15rem, 4vw, 3.5rem);
  font-style: italic;
  line-height: 1;
}

.invite-seal {
  display: grid;
  width: 4.6rem;
  aspect-ratio: 1;
  place-items: center;
  margin: 2.1rem auto;
  border: 1px solid var(--forest);
  border-radius: 50%;
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.invite-seal span { margin: 0 .14em; font-style: italic; }

.invite-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 1px solid rgba(32,32,25,.25);
  border-bottom: 1px solid rgba(32,32,25,.25);
}

.invite-details div { padding: 1.25rem; }
.invite-details div + div { border-left: 1px solid rgba(32,32,25,.25); }
.invite-details dt { margin-bottom: .45rem; font-size: .6rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.invite-details dd { margin: 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--forest);
  border-radius: 999px;
  padding: .8rem 1.25rem;
  cursor: pointer;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: transform 250ms var(--ease), background 250ms ease, color 250ms ease;
}

.button:hover { transform: translateY(-3px); }
.button--solid { background: var(--forest); color: var(--cream); }
.button--line { background: transparent; color: var(--forest); }
.button--line:hover { background: var(--forest); color: var(--cream); }

/* Gallery */
.gallery {
  padding: clamp(7rem, 14vw, 13rem) 0;
  overflow: clip;
  background: var(--cream);
  color: var(--ink);
}

.gallery-intro {
  width: min(100%, 70rem);
  margin: 0 auto clamp(5rem, 10vw, 9rem);
  padding: 0 var(--page-pad);
}

.gallery-intro > p:last-child { max-width: 28rem; margin: 2rem 0 0 auto; }

.gallery-grid {
  display: grid;
  grid-template-columns: .9fr .55fr .8fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  width: min(100%, 92rem);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  transform: translate3d(0, var(--parallax-y, 0), 0);
}

.gallery-item--a { height: min(72vw, 58rem); border-radius: 48% 48% .2rem .2rem; }
.gallery-item--a img { object-position: 50% 50%; }
.gallery-item--b { height: min(53vw, 43rem); border-radius: .2rem .2rem 48% 48%; }

.gallery-quote {
  position: relative;
  z-index: 2;
  padding: 3rem 0;
  text-align: center;
}

.gallery-quote span {
  display: block;
  height: 2rem;
  color: var(--moss);
  font-family: var(--serif);
  font-size: 6rem;
  line-height: .7;
}

.gallery-quote p { font-family: var(--serif); font-size: clamp(1.5rem, 2.5vw, 2.4rem); font-style: italic; line-height: 1.1; }

/* Countdown */
.countdown {
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 7rem var(--page-pad);
  background: var(--moss);
  color: var(--cream);
  text-align: center;
}

.countdown-inner { position: relative; z-index: 2; width: min(100%, 72rem); }

.countdown-halo {
  position: absolute;
  width: min(80vw, 68rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255,249,227,.19);
  border-radius: 50%;
}

.countdown-halo::before,
.countdown-halo::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(255,249,227,.13);
  border-radius: inherit;
}

.countdown-halo::after { inset: 22%; }

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid rgba(255,249,227,.32);
  border-bottom: 1px solid rgba(255,249,227,.32);
}

.countdown-grid div { padding: clamp(1rem, 3vw, 2.25rem) .7rem; }
.countdown-grid div + div { border-left: 1px solid rgba(255,249,227,.32); }

.countdown-grid strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .82;
  font-variant-numeric: tabular-nums;
}

.countdown-grid span { display: block; margin-top: .8rem; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; }
.countdown-finished { margin-top: 3rem; font-family: var(--serif); font-size: 2rem; font-style: italic; }

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: minmax(18rem, .8fr) minmax(26rem, 1.2fr);
  gap: clamp(3rem, 9vw, 10rem);
  min-height: 120svh;
  padding: clamp(7rem, 13vw, 12rem) var(--page-pad);
  background:
    radial-gradient(circle at 15% 24%, rgba(199,131,50,.2), transparent 24rem),
    linear-gradient(145deg, var(--forest-deep), #2b4322 58%, #1b2a17);
  color: var(--cream);
}

.timeline-heading {
  position: sticky;
  top: 22vh;
  align-self: start;
  max-width: 37rem;
}

.timeline-heading .display-title { color: var(--butter); }
.timeline-heading > p:last-child { max-width: 28rem; margin-top: 2rem; }

.timeline-list {
  position: relative;
  margin: 0;
  padding: 0 0 0 clamp(2rem, 5vw, 5rem);
  list-style: none;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 3rem;
  bottom: 3rem;
  left: 0;
  width: 1px;
  background: linear-gradient(var(--rope), var(--butter), var(--rope));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: clamp(5rem, 9vw, 8rem) 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  min-height: 16rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,249,227,.16);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(clamp(2rem, 5vw, 5rem) * -1);
  width: .75rem;
  aspect-ratio: 1;
  border: 2px solid var(--butter);
  border-radius: 50%;
  background: var(--forest-deep);
  transform: translateX(-50%);
  box-shadow: 0 0 0 .55rem rgba(243,217,139,.08);
}

.timeline-item time {
  color: var(--butter);
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 5rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.timeline-item p { margin: 0; color: var(--sage); font-size: .6rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.timeline-item h3 { margin: .35rem 0 .75rem; font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3.4rem); font-weight: 400; line-height: .95; }
.timeline-item span { display: block; max-width: 27rem; color: rgba(255,249,227,.72); font-size: .84rem; }
.timeline-item--highlight::before { background: var(--amber); box-shadow: 0 0 2rem .65rem rgba(199,131,50,.35); }

/* Afterparty */
.afterparty {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  min-height: 110svh;
  overflow: hidden;
  background: #151c13;
  color: var(--cream);
}

.afterparty-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  padding: 7rem var(--page-pad);
}

.afterparty-copy .display-title { color: var(--butter); }
.afterparty-lead { max-width: 26rem; margin-top: 2rem; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.8rem); font-style: italic; line-height: 1.05; }
.afterparty-copy > p:not(.eyebrow):not(.afterparty-lead):not(.safe-note) { max-width: 28rem; }

.safe-note {
  max-width: 30rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,249,227,.2);
  color: rgba(255,249,227,.58);
  font-size: .7rem;
}

.afterparty-photos { position: relative; min-height: 100svh; }

.afterparty-photos::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, #151c13 0, transparent 25%, rgba(199,131,50,.09));
}

.afterparty-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  transform: translate3d(0, var(--parallax-y, 0), 0);
  box-shadow: 0 2rem 4rem rgba(0,0,0,.42);
}

.afterparty-photo--one { z-index: 1; top: 4%; right: 10%; width: 57%; height: 78%; border-radius: 48% 48% .15rem .15rem; }
.afterparty-photo--two { z-index: 3; right: 50%; bottom: 3%; width: 34%; height: 46%; border: .5rem solid #151c13; }
.afterparty-photo img { filter: saturate(.82) sepia(.08); }

/* Dresscode */
.dresscode {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(3rem, 8vw, 9rem);
  min-height: 100svh;
  align-items: center;
  padding: clamp(7rem, 13vw, 12rem) var(--page-pad);
  background: var(--butter);
  color: var(--ink);
}

.dresscode-copy { max-width: 40rem; }
.dresscode-copy > p:not(.eyebrow) { max-width: 31rem; margin-top: 2rem; }
.dresscode-note { padding-left: 1rem; border-left: 2px solid var(--forest); font-family: var(--serif); font-size: 1.25rem; font-style: italic; line-height: 1.25; }

.swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 35rem;
  overflow: hidden;
  border-radius: 50% 50% .4rem .4rem;
  box-shadow: 0 2rem 4rem rgba(80, 61, 21, .17);
}

.swatch {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 17rem;
  padding: 1.15rem;
  overflow: hidden;
  background: var(--swatch);
  color: var(--ink);
  transition: transform 420ms var(--ease), flex 420ms var(--ease);
}

.swatch:hover { transform: scale(1.035); z-index: 2; }
.swatch span { color: var(--ink); font-family: var(--serif); font-size: 1.35rem; line-height: 1; }
.swatch small { margin-top: .35rem; color: var(--ink); font-size: .52rem; letter-spacing: .12em; opacity: .68; }

/* Location */
.location {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  min-height: 100svh;
  align-items: stretch;
  background: var(--cream);
  color: var(--ink);
}

.map-art {
  position: relative;
  min-height: 42rem;
  overflow: hidden;
  background:
    linear-gradient(rgba(57,82,40,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,82,40,.08) 1px, transparent 1px),
    radial-gradient(circle at 70% 24%, rgba(243,217,139,.82), transparent 35%),
    #d9dfbd;
  background-size: 4.5rem 4.5rem, 4.5rem 4.5rem, auto, auto;
}

.map-road {
  position: absolute;
  height: 1.35rem;
  border: 2px solid rgba(255,253,244,.8);
  border-right: 0;
  border-left: 0;
  background: rgba(184,159,122,.42);
  transform-origin: 50% 50%;
}

.map-road--one { top: 26%; left: -15%; width: 130%; transform: rotate(26deg); }
.map-road--two { top: 60%; left: -18%; width: 150%; transform: rotate(-18deg); }
.map-road--three { top: 40%; left: 12%; width: 92%; transform: rotate(73deg); }

.map-pin {
  position: absolute;
  top: 48%;
  left: 52%;
  display: grid;
  width: 7rem;
  aspect-ratio: 1;
  place-items: center;
  border: .45rem solid rgba(255,253,244,.85);
  border-radius: 50% 50% 50% 0;
  background: var(--forest);
  color: var(--cream);
  transform: translate(-50%, -50%) rotate(-45deg);
  box-shadow: 0 1.5rem 3rem rgba(32,48,26,.28);
}

.map-pin > span { font-family: var(--serif); font-size: 1.35rem; transform: rotate(45deg); }
.map-pin > span span { margin: 0 .16rem; color: var(--butter); font-style: italic; }

.location-card {
  align-self: center;
  padding: clamp(5rem, 10vw, 9rem) var(--page-pad);
}

.location-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.8rem, 7vw, 7.2rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .8;
}

.location-time { margin: 2rem 0 .65rem; color: var(--forest); font-weight: 600; letter-spacing: .06em; }
.location-card address { margin: 0 0 1.5rem; font-family: var(--serif); font-size: 1.75rem; font-style: normal; line-height: 1.1; }
.location-card > p:last-of-type { max-width: 30rem; font-size: .82rem; }
.location-card .button-row { justify-content: flex-start; }

/* Closing */
.closing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  background: var(--forest-deep);
  color: var(--cream);
}

.closing-photo {
  position: relative;
  height: 100svh;
  margin: 0;
  overflow: hidden;
  transform: translate3d(0, var(--parallax-y, 0), 0);
}

.closing-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 52%, var(--forest-deep)), linear-gradient(0deg, rgba(20,31,17,.42), transparent 45%);
}

.closing-photo img { object-position: 48% 22%; filter: saturate(.82); }

.closing-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 7rem var(--page-pad);
}

.closing-copy h2 {
  margin: 0;
  color: var(--butter);
  font-family: var(--serif);
  font-size: clamp(5rem, 10vw, 10rem);
  font-weight: 400;
  letter-spacing: -.075em;
  line-height: .75;
}

.closing-copy h2 em { font-size: .58em; font-weight: 400; }
.closing-date { margin: 2rem 0 .2rem; font-family: var(--serif); font-size: 1.65rem; letter-spacing: .16em; }

.button--warm {
  gap: .8rem;
  margin-top: 2rem;
  border-color: var(--butter);
  background: var(--butter);
  color: var(--forest-deep);
}

.button--warm svg { width: 1rem; fill: currentColor; }
.share-status { min-height: 1.5em; margin: .65rem 0 0; color: var(--sage); font-size: .65rem; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem var(--page-pad);
  background: #10180e;
  color: rgba(255,249,227,.5);
  font-size: .56rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

footer p { margin: 0; }
footer span { color: var(--butter); }

/* Reveals */
.reveal,
[data-reveal] {
  --reveal-delay: 0ms;
}

.js .reveal,
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.7rem);
  transition: opacity 760ms var(--ease) var(--reveal-delay), transform 900ms var(--ease) var(--reveal-delay);
}

.js .reveal-media {
  opacity: 0;
  transform: translate3d(0, calc(var(--parallax-y, 0px) + 1.5rem), 0);
  transition: opacity 650ms ease var(--reveal-delay), transform 1.15s var(--ease) var(--reveal-delay);
}

.js .reveal-media picture {
  height: 100%;
  clip-path: inset(0 100% 0 0 round 1px);
  transition: clip-path 1.15s var(--ease) var(--reveal-delay);
}

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

.js .reveal-media.is-visible {
  opacity: 1;
  transform: translate3d(0, var(--parallax-y, 0), 0);
}

.js .reveal-media.is-visible picture {
  clip-path: inset(0 0 0 0 round 1px);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: .8fr 1.2fr;
    gap: 2rem;
  }

  .hero-names { font-size: clamp(4.7rem, 10vw, 7rem); }
  .date-composition { grid-template-columns: 1fr 1.12fr; }
  .date-card--wedding { grid-column: 1 / -1; width: 52%; margin-left: auto; }
  .gallery-grid { grid-template-columns: 1fr .7fr; }
  .gallery-quote { grid-column: 1 / -1; grid-row: 2; width: 50%; margin-left: auto; }
  .gallery-item--b { grid-column: 2; grid-row: 1; }
  .timeline { gap: 4rem; }
  .afterparty { grid-template-columns: .9fr 1.1fr; }
  .dresscode { grid-template-columns: 1fr; }
  .dresscode-copy { margin: 0 auto; text-align: center; }
  .dresscode-copy > p:not(.eyebrow) { margin-right: auto; margin-left: auto; }
  .dresscode-note { padding: 1rem 0 0; border-top: 1px solid var(--forest); border-left: 0; }
  .swatches { width: min(100%, 54rem); margin: 0 auto; }
}

@media (max-width: 760px) {
  :root { --page-pad: 1.25rem; }

  body { font-size: 15px; }
  .section-nav { right: .65rem; gap: .58rem; }
  .section-nav span { display: none; }

  .gate-content { padding-top: 1.5rem; }
  .gate-content h1 { font-size: clamp(4.25rem, 22vw, 6.4rem); }
  .gate-curtain { width: 60%; }

  .display-title { font-size: clamp(3.35rem, 15.7vw, 5.7rem); }

  .hero {
    min-height: 100svh;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    align-items: end;
    gap: 0;
    padding: 0 0 5.6rem;
  }

  .hero-visual {
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    height: 100svh;
    min-height: 0;
    border-radius: 0;
    clip-path: none;
  }


  .hero-visual::after { background: linear-gradient(180deg, rgba(18,27,14,.06), rgba(23,31,18,.75) 78%, rgba(23,31,18,.92)); }
  .hero-visual figcaption { display: none; }

  .hero-copy {
    grid-row: 1;
    grid-column: 1;
    z-index: 3;
    align-self: end;
    width: 100%;
    margin: 0;
    padding: 5.5rem 1.35rem 6.3rem;
    color: var(--cream);
  }

  .hero-copy .eyebrow { color: var(--butter); }
  .hero-names { font-size: clamp(4.8rem, 23vw, 7rem); white-space: normal; }
  .hero-names em { color: var(--butter); }
  .hero-tagline { font-size: 1.75rem; }
  .hero-meta { border-color: rgba(255,249,227,.45); font-size: .55rem; }
  .hero-meta strong { font-size: 1.25rem; }
  .hero-orbit { display: none; }
  .scroll-cue { z-index: 4; color: var(--cream); bottom: 1rem; }
  .scroll-cue i { background: rgba(255,249,227,.3); }
  .scroll-cue i::after { background: var(--cream); }

  .manifesto { min-height: 145svh; }
  .manifesto-sticky { min-height: 100svh; padding-top: 5rem; padding-bottom: 5rem; }
  .manifesto-text { font-size: clamp(2.6rem, 12.7vw, 4.2rem); }
  .manifesto-end { margin-top: 2rem; }
  .thread-art { right: -4rem; width: 10rem; }

  .section-heading { padding-top: 6rem; padding-bottom: 3.5rem; }
  .date-composition { grid-template-columns: 1fr; gap: 3.5rem; }
  .date-card { width: 92%; }
  .date-card--wedding { grid-column: auto; width: 92%; margin-left: auto; }
  .date-photo { grid-row: 2; height: 67svh; width: 86%; margin: 0 auto; }
  .date-number strong { font-size: 7.8rem; }

  .formal-invite { min-height: 100svh; padding: 5rem .8rem; }
  .fabric-fold { width: 80%; opacity: .7; }
  .fabric-fold--left { left: -51%; }
  .fabric-fold--right { right: -52%; }
  .invite-card { padding: 3.5rem 1.25rem; }
  .invite-names h2 { font-size: clamp(2.5rem, 11.8vw, 4rem); }
  .invite-details dd { font-size: 1.12rem; }
  .invite-details div { padding: 1rem .4rem; }
  .button-row { flex-direction: column; }
  .button { width: 100%; }

  .gallery { padding-top: 6rem; padding-bottom: 7rem; }
  .gallery-intro { margin-bottom: 4rem; }
  .gallery-intro > p:last-child { margin-left: 0; }
  .gallery-grid { grid-template-columns: 1fr; padding-right: 0; padding-left: 0; }
  .gallery-item--a { width: 84%; height: 68svh; border-radius: 0 48% 48% 0; }
  .gallery-item--b { grid-column: 1; grid-row: 3; width: 72%; height: 56svh; margin-left: auto; border-radius: 48% 0 0 48%; }
  .gallery-quote { grid-column: 1; grid-row: 2; width: auto; margin: 0; padding: 3.5rem 2rem; }
  .gallery-quote p { max-width: 20rem; margin-right: auto; margin-left: auto; }

  .countdown { min-height: 80svh; padding: 6rem 1rem; }
  .countdown-halo { width: 150vw; }
  .countdown-grid { margin-top: 3.5rem; }
  .countdown-grid strong { font-size: clamp(2.5rem, 13vw, 4.5rem); }
  .countdown-grid div { padding: 1.25rem .35rem; }
  .countdown-grid span { font-size: .48rem; letter-spacing: .12em; }

  .timeline { grid-template-columns: 1fr; min-height: 100svh; gap: 4rem; padding-top: 6rem; }
  .timeline-heading { position: relative; top: auto; }
  .timeline-list { padding-left: 1.7rem; }
  .timeline-item { grid-template-columns: 5.4rem 1fr; gap: 1.25rem; min-height: 13rem; }
  .timeline-item::before { left: -1.7rem; }
  .timeline-item time { font-size: 2.6rem; }
  .timeline-item h3 { font-size: 2.15rem; }

  .afterparty { grid-template-columns: 1fr; min-height: auto; }
  .afterparty-copy { padding: 6rem 1.25rem 3rem; }
  .afterparty-photos { min-height: 85svh; }
  .afterparty-photos::after { background: linear-gradient(180deg, #151c13 0, transparent 24%, rgba(199,131,50,.07)); }
  .afterparty-photo--one { top: 5%; right: 4%; width: 76%; height: 69%; }
  .afterparty-photo--two { right: auto; bottom: 3%; left: 4%; width: 46%; height: 43%; }

  .dresscode { grid-template-columns: 1fr; gap: 4rem; padding-top: 6rem; padding-bottom: 7rem; }
  .dresscode-copy { text-align: left; }
  .dresscode-copy > p:not(.eyebrow) { margin-left: 0; }
  .dresscode-note { padding: 0 0 0 1rem; border-top: 0; border-left: 2px solid var(--forest); }
  .swatches { grid-template-columns: repeat(2, 1fr); min-height: 0; border-radius: 45% 45% .3rem .3rem; }
  .swatch { min-height: 10.5rem; padding: .9rem; }
  .swatch span { font-size: 1.12rem; }

  .location { grid-template-columns: 1fr; }
  .map-art { min-height: 55svh; }
  .map-pin { width: 5.5rem; }
  .location-card { padding-top: 5rem; padding-bottom: 6rem; }
  .location-card h2 { font-size: clamp(4rem, 18vw, 6.4rem); }
  .location-card .button-row { flex-direction: column; }

  .closing { grid-template-columns: 1fr; min-height: 100svh; }
  .closing-photo { grid-row: 1; grid-column: 1; height: 100svh; }
  .closing-photo::after { background: linear-gradient(180deg, rgba(20,31,17,.12), var(--forest-deep) 90%); }
  .closing-copy { grid-row: 1; grid-column: 1; align-self: end; min-height: 100svh; justify-content: flex-end; padding-bottom: 4.5rem; }
  .closing-copy h2 { font-size: clamp(5rem, 23vw, 7rem); }
  .closing-copy .button { width: auto; }

  footer { flex-direction: column; align-items: center; padding-top: 1.5rem; padding-bottom: 1.5rem; text-align: center; }
}

@media (max-width: 390px) {
  .hero-meta { gap: .55rem; }
  .hero-meta strong { font-size: 1.05rem; }
  .invite-names h2 { font-size: 2.35rem; }
  .timeline-item { grid-template-columns: 4.7rem 1fr; }
  .timeline-item time { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .18s !important; }
  .js .reveal,
  .js [data-reveal],
  .js .reveal-media { transform: none; clip-path: none; }
  [data-parallax] { transform: none !important; }
}

@media (prefers-contrast: more) {
  .eyebrow { font-weight: 600; }
  .button { border-width: 2px; }
  .date-card,
  .invite-details,
  .countdown-grid { border-color: currentColor; }
}

/* Full-bleed photographic direction */
.language-switch {
  position: fixed;
  z-index: 1100;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .35rem .55rem;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 999px;
  background: rgba(25, 34, 21, .28);
  color: #fff;
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .12);
  backdrop-filter: blur(10px);
}

.language-switch button {
  border: 0;
  padding: .25rem .4rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;
  opacity: .58;
  transition: opacity 180ms ease, color 180ms ease;
}

.language-switch button[aria-pressed="true"] { color: var(--butter); opacity: 1; }
.language-switch span { font-size: .65rem; opacity: .45; }

.hero {
  display: grid;
  grid-template: 1fr / 1fr;
  min-height: 100svh;
  padding: 0;
  background: var(--forest-deep);
}

.hero-copy,
.hero-visual {
  grid-area: 1 / 1;
}

.hero-copy {
  z-index: 3;
  align-self: end;
  width: min(100%, 49rem);
  margin: 0;
  padding: clamp(6rem, 11vw, 10rem) var(--page-pad) clamp(6rem, 9vw, 8rem);
  color: var(--cream);
}

.hero-copy .eyebrow { color: var(--butter); }
.hero-names em { color: var(--butter); }
.hero-meta { border-color: rgba(255, 249, 227, .44); }

.hero-visual {
  z-index: 1;
  width: 100%;
  height: 100svh;
  min-height: 42rem;
  margin: 0;
  border-radius: 0;
  clip-path: none;
  box-shadow: none;
}

.hero-visual picture { height: 100%; }
.hero-visual img { object-position: center 43%; }

.hero-visual::after {
  background:
    linear-gradient(180deg, rgba(14, 22, 12, .04) 0%, rgba(14, 22, 12, .08) 35%, rgba(18, 28, 15, .9) 100%),
    linear-gradient(90deg, rgba(18, 28, 15, .48), transparent 58%);
}

.hero-visual figcaption {
  right: var(--page-pad);
  bottom: 1.5rem;
  left: auto;
  color: rgba(255, 249, 227, .72);
}

.hero-orbit { z-index: 2; border-color: rgba(255, 249, 227, .2); }

.photo-panel {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: end;
  overflow: hidden;
  margin: 0;
  background: var(--forest-deep);
  color: var(--cream);
}

.panel-photo {
  position: absolute;
  z-index: 0;
  inset: -3%;
  display: block;
  width: 106%;
  height: 106%;
  transform: translate3d(0, var(--parallax-y, 0), 0);
  will-change: transform;
}

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

.photo-fade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 13, .03) 0%, rgba(15, 23, 13, .08) 36%, rgba(15, 23, 13, .9) 100%),
    linear-gradient(90deg, rgba(15, 23, 13, .38), transparent 62%);
  pointer-events: none;
}

.photo-panel-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 50rem);
  padding: clamp(6rem, 12vw, 11rem) var(--page-pad) clamp(4.5rem, 8vw, 7rem);
}

.date-panels {
  display: block;
}

.date-panel--engagement .panel-photo img { object-position: center 42%; }
.date-panel--wedding .panel-photo img { object-position: center 52%; }

.date-panel h3 {
  margin: .8rem 0 .25rem;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(3.25rem, 7vw, 7rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .8;
}

.date-panel .date-number strong { color: var(--cream); }
.date-panel .date-number span { color: var(--butter); }
.date-panel .date-weekday { margin: 1rem 0; color: var(--butter); font-weight: 600; }
.date-panel .photo-panel-copy > p:last-child { max-width: 34rem; margin-top: 1rem; }

.gallery {
  padding: 0;
}

.gallery-intro {
  margin-bottom: 0;
  padding-top: clamp(7rem, 14vw, 13rem);
  padding-bottom: clamp(7rem, 14vw, 13rem);
}

.gallery-panel .panel-photo img { object-position: center 26%; }

.gallery-panel-copy span {
  display: block;
  height: 2rem;
  color: var(--butter);
  font-family: var(--serif);
  font-size: 7rem;
  line-height: .65;
}

.gallery-panel-copy p {
  max-width: 38rem;
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-style: italic;
  line-height: .95;
}

.afterparty {
  display: block;
  min-height: 0;
  background: var(--forest-deep);
}

.party-panel--main .panel-photo img { object-position: center 44%; }
.party-panel--final .panel-photo img { object-position: center 42%; }

.photo-panel-copy.afterparty-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: clamp(6rem, 12vw, 11rem) var(--page-pad) clamp(4.5rem, 8vw, 7rem);
}

.party-caption {
  max-width: 44rem;
  color: var(--butter);
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-style: italic;
  line-height: .9;
}

.closing {
  display: grid;
  grid-template: 1fr / 1fr;
  min-height: 100svh;
}

.closing-photo,
.closing-copy {
  grid-area: 1 / 1;
}

.closing-photo {
  width: 100%;
  height: 100svh;
  min-height: 42rem;
}

.closing-photo picture { height: 100%; }
.closing-photo img { object-position: center 43%; }

.closing-photo::after {
  background:
    linear-gradient(180deg, rgba(20,31,17,.02) 10%, rgba(20,31,17,.12) 42%, var(--forest-deep) 100%),
    linear-gradient(90deg, rgba(20,31,17,.35), transparent 64%);
}

.closing-copy {
  align-self: end;
  min-height: 100svh;
  justify-content: flex-end;
  padding: clamp(6rem, 12vw, 11rem) var(--page-pad) clamp(4rem, 7vw, 6rem);
}

.timeline-item {
  grid-template-columns: clamp(9rem, 15vw, 14rem) 1fr;
}

.rsvp {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: clamp(7rem, 12vw, 11rem) var(--page-pad);
  background:
    radial-gradient(circle at 15% 18%, rgba(255,255,255,.55), transparent 28rem),
    linear-gradient(145deg, #f8e8ad 0%, #f3d77f 52%, #ead077 100%);
  color: var(--forest-deep);
}

.rsvp::before {
  content: "";
  position: absolute;
  inset: 1.2rem;
  border: 1px solid rgba(54,75,39,.25);
  pointer-events: none;
}

.rsvp-orbit {
  position: absolute;
  border: 1px solid rgba(54,75,39,.18);
  border-radius: 50%;
  pointer-events: none;
}

.rsvp-orbit--one { width: 32rem; height: 32rem; top: -18rem; right: -8rem; }
.rsvp-orbit--two { width: 21rem; height: 21rem; bottom: -11rem; left: -6rem; }

.rsvp-shell {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 76rem);
  grid-template-columns: minmax(0, .9fr) minmax(22rem, 1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.rsvp-heading h2 {
  max-width: 10ch;
  margin: 1rem 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(3.8rem, 7vw, 7.4rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .82;
}

.rsvp-heading h2 em { font-weight: 400; }
.rsvp-heading > p:last-child { max-width: 34rem; line-height: 1.7; }

.rsvp-form {
  position: relative;
  padding: clamp(1.6rem, 4vw, 3.2rem);
  border: 1px solid rgba(54,75,39,.28);
  background: rgba(255,252,236,.7);
  box-shadow: 0 2rem 6rem rgba(52,65,36,.12);
  backdrop-filter: blur(18px);
}

.rsvp-field,
.rsvp-attendance {
  display: grid;
  gap: .75rem;
}

.rsvp-field > span,
.rsvp-attendance legend {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.rsvp-field input[type="text"] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(54,75,39,.38);
  border-radius: 0;
  outline: 0;
  background: transparent;
  padding: .65rem 0 .85rem;
  color: var(--forest-deep);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.rsvp-field input[type="text"]::placeholder { color: rgba(54,75,39,.42); }
.rsvp-field input[type="text"]:focus { border-bottom-color: var(--forest-deep); }
.rsvp-field input[type="text"]:focus-visible {
  outline: 2px solid var(--forest-deep);
  outline-offset: 4px;
}

.rsvp-attendance {
  margin: 2rem 0 1.5rem;
  padding: 0;
  border: 0;
}

.rsvp-options { display: grid; gap: .65rem; }

.rsvp-option {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: .9rem;
  align-items: start;
  padding: 1.05rem;
  border: 1px solid rgba(54,75,39,.24);
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms var(--ease);
}

.rsvp-option:hover { border-color: rgba(54,75,39,.58); transform: translateY(-1px); }
.rsvp-option:has(input:checked) { border-color: var(--forest-deep); background: rgba(123,141,62,.13); }
.rsvp-option:has(input:focus-visible) { outline: 2px solid var(--forest-deep); outline-offset: 3px; }
.rsvp-option input { width: 1.05rem; height: 1.05rem; margin-top: .16rem; accent-color: var(--forest-deep); }
.rsvp-option span { display: grid; gap: .3rem; }
.rsvp-option strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.05; }
.rsvp-option small { color: rgba(38,51,31,.72); line-height: 1.5; }

.rsvp-submit { width: 100%; margin-top: .25rem; }
.rsvp-submit:disabled { cursor: wait; opacity: .62; }
.rsvp-status { min-height: 2.8rem; margin: 1rem 0 0; font-size: .92rem; line-height: 1.55; }
.rsvp-status.is-success { color: #315126; }
.rsvp-status.is-error { color: #8b302d; }
.rsvp-note { margin: .3rem 0 0; color: rgba(38,51,31,.58); font-size: .74rem; line-height: 1.55; }

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

@media (max-width: 760px) {
  .section-nav { right: .05rem; gap: 0; }
  .section-nav a,
  .section-nav a.is-active {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 0;
    background: transparent;
    transform: none;
  }

  .section-nav a::before {
    content: "";
    display: block;
    width: .48rem;
    height: .48rem;
    border: 1px solid #fff;
    border-radius: 50%;
    transition: transform 250ms var(--ease), background 250ms ease;
  }

  .section-nav a.is-active::before { background: #fff; transform: scale(1.35); }

  .hero-copy {
    padding: 5.5rem 1.35rem 6.3rem;
  }

  .hero-visual {
    height: 100svh;
    min-height: 0;
  }

  .hero-visual::after {
    background: linear-gradient(180deg, rgba(18,27,14,.04), rgba(23,31,18,.78) 80%, rgba(23,31,18,.96));
  }

  .photo-panel { min-height: 100svh; }
  .panel-photo { inset: -2%; width: 104%; height: 104%; }
  .photo-fade {
    background: linear-gradient(180deg, rgba(15,23,13,.02) 15%, rgba(15,23,13,.14) 45%, rgba(15,23,13,.94) 100%);
  }
  .photo-panel-copy { padding: 5rem 1.35rem 4.5rem; }
  .date-panel h3 { font-size: clamp(3.6rem, 17vw, 5.6rem); }
  .date-panel .date-number strong { font-size: clamp(7rem, 32vw, 10rem); }
  .date-panel--wedding .panel-photo img { object-position: center 46%; }
  .gallery-panel .panel-photo img { object-position: center 20%; }
  .gallery-panel-copy p { font-size: clamp(2.7rem, 13vw, 4.6rem); }
  .photo-panel-copy.afterparty-copy { padding: 5rem 1.35rem 4.5rem; }
  .party-caption { font-size: clamp(3.3rem, 15vw, 5rem); }

  .closing-photo,
  .closing-copy {
    grid-row: 1;
    grid-column: 1;
  }

  .closing-photo { height: 100svh; min-height: 0; }
  .closing-copy { min-height: 100svh; padding: 5rem 1.35rem 4.5rem; }

  .timeline-item { grid-template-columns: 6.5rem 1fr; }
  .timeline-item time { font-size: 1.75rem; }

  .rsvp { min-height: auto; padding: 7rem 1.35rem 5rem; }
  .rsvp::before { inset: .55rem; }
  .rsvp-shell { grid-template-columns: 1fr; gap: 2.8rem; }
  .rsvp-heading h2 { max-width: 11ch; font-size: clamp(3.7rem, 17vw, 5.5rem); }
  .rsvp-form { padding: 1.35rem; }
  .rsvp-option { padding: .95rem .85rem; }
}
