:root {
  --midnight: #142433;
  --pearl: #f5f0e7;
  --rose: #c59a9d;
  --beige: #d4b98c;
  --sage: #637568;
  --ink: #24313b;
  --paper: #fffdf8;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(20, 36, 51, 0.16);
  --shadow-soft: 0 14px 35px rgba(20, 36, 51, 0.1);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--midnight);
  background: var(--pearl);
  transform: translateY(-150%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  color: var(--pearl);
  isolation: isolate;
  overflow: hidden;
}
.hero__image {
  position: absolute;
  inset: 0;
  z-index: -4;
  background: url('../images/hero.webp') center 31% / cover no-repeat;
  transform: scale(1.03);
  animation: heroZoom 16s ease-out both;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(20,36,51,.7) 0%, rgba(20,36,51,.25) 38%, rgba(20,36,51,.7) 100%),
    radial-gradient(circle at center, rgba(20,36,51,.05), rgba(20,36,51,.6));
}
.hero__frame {
  position: absolute;
  inset: clamp(14px, 2vw, 28px);
  border: 1px solid rgba(245,240,231,.62);
  pointer-events: none;
}
.hero__frame::before,
.hero__frame::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  border-color: var(--beige);
  opacity: .9;
}
.hero__frame::before { top: 10px; left: 10px; border-top: 2px solid; border-left: 2px solid; }
.hero__frame::after { right: 10px; bottom: 10px; border-right: 2px solid; border-bottom: 2px solid; }

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(28px, 5vw, 78px);
}
.monogram {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .04em;
}
.monogram span { color: var(--beige); font-style: italic; font-weight: 400; }
.menu { display: flex; gap: 28px; align-items: center; }
.menu a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  transition: opacity .2s ease;
}
.menu a:hover { opacity: .7; }
.menu__rsvp { border: 1px solid rgba(245,240,231,.7); padding: 9px 15px; }
.menu-button { display: none; }

.hero__content {
  width: min(94%, 980px);
  text-align: center;
  padding: 116px 18px 90px;
  animation: heroRise 1.2s .15s ease-out both;
}
.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
}
.eyebrow { color: rgba(245,240,231,.86); }
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(64px, 11vw, 136px);
  font-weight: 500;
  line-height: .76;
  letter-spacing: -.055em;
  text-shadow: 0 9px 35px rgba(0,0,0,.24);
}
.hero h1 span { display: block; }
.hero h1 b {
  display: block;
  margin: .13em 0 .05em;
  color: var(--beige);
  font-size: .43em;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
}
.hero__date {
  margin: 30px 0 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: .18em;
}
.hero__place {
  margin: 4px 0 27px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .22em;
}
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--light { color: var(--midnight); background: rgba(245,240,231,.93); box-shadow: 0 12px 35px rgba(0,0,0,.14); }
.button--dark { color: var(--pearl); background: var(--midnight); }
.button--rose { color: var(--white); background: var(--rose); }
.button--gold { color: var(--midnight); background: var(--beige); box-shadow: 0 12px 28px rgba(212,185,140,.24); }
.button--full { width: 100%; }
.button--whatsapp { color: white; background: #1f9f55; }
.button[hidden] { display: none; }
.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  width: 24px;
  height: 42px;
  transform: translateX(-50%);
  border: 1px solid rgba(245,240,231,.55);
  border-radius: 999px;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pearl);
  transform: translateX(-50%);
  animation: scrollDot 1.8s infinite;
}

.section { position: relative; padding: clamp(76px, 10vw, 130px) 20px; }
.section__inner { width: min(1160px, 100%); margin: 0 auto; }
.section__inner--narrow { width: min(760px, 100%); text-align: center; }
.section-kicker { color: var(--rose); }
.section-kicker--light { color: var(--beige); }
h2 {
  margin: 0 0 22px;
  color: var(--midnight);
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 78px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.035em;
}
.light-title { color: var(--pearl); }
.lead { margin: 0 auto; font-family: var(--serif); font-size: clamp(25px, 3.4vw, 37px); line-height: 1.35; }
.signature { margin: 0; color: var(--sage); font-family: var(--serif); font-size: 34px; font-style: italic; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 34px auto 20px; color: var(--beige); }
.ornament span { width: 55px; height: 1px; background: currentColor; }
.ornament i { font-size: 8px; }

.welcome { overflow: hidden; background: var(--paper); }
.welcome::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  top: -120px;
  right: -110px;
  border: 1px solid rgba(197,154,157,.35);
  border-radius: 50%;
}
.floral-mark {
  position: absolute;
  left: -55px;
  bottom: 25px;
  width: 180px;
  height: 310px;
  opacity: .13;
  background: url('../images/bouquet.webp') center/cover no-repeat;
  border-radius: 50% 50% 10px 10px;
  transform: rotate(8deg);
}

.countdown-section {
  color: var(--pearl);
  text-align: center;
  background:
    linear-gradient(rgba(20,36,51,.88), rgba(20,36,51,.92)),
    url('../images/bicycle.webp') center 60% / cover fixed;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: clamp(10px, 2vw, 22px);
  width: min(850px, 100%);
  margin: 42px auto 28px;
}
.countdown div {
  padding: clamp(20px, 3vw, 34px) 12px;
  border: 1px solid rgba(245,240,231,.22);
  border-radius: 24px;
  background: rgba(245,240,231,.08);
  backdrop-filter: blur(12px);
}
.countdown strong { display: block; font-family: var(--serif); font-size: clamp(48px, 7vw, 76px); font-weight: 500; line-height: 1; }
.countdown span { text-transform: uppercase; font-size: 10px; letter-spacing: .18em; }
.countdown__date { margin: 0 0 12px; color: rgba(245,240,231,.82); }
.text-link { display: inline-block; text-underline-offset: 5px; text-transform: uppercase; font-size: 10px; letter-spacing: .15em; }
.text-link--light { color: var(--beige); }

.details { background: var(--pearl); }
.details-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 7vw, 92px); align-items: center; }
.detail-card { position: relative; padding: 40px; background: rgba(255,255,255,.7); border: 1px solid rgba(20,36,51,.08); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.detail-card__number { position: absolute; top: 20px; right: 28px; color: rgba(20,36,51,.1); font-family: var(--serif); font-size: 88px; line-height: 1; }
.detail-card p { margin: 10px 0; }
.detail-card .button { margin-top: 20px; }
.details-photo { position: relative; margin: 0; }
.details-photo img { width: 100%; height: min(72vw, 720px); object-fit: cover; border-radius: 48% 48% 24px 24px; box-shadow: var(--shadow); }
.details-photo::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; z-index: -1; border: 1px solid var(--beige); border-radius: 48% 48% 24px 24px; }
.details-photo figcaption { margin-top: 18px; text-align: center; color: var(--sage); font-family: var(--serif); font-size: 24px; font-style: italic; }

.story-section { background: var(--paper); }
.story-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(32px, 7vw, 96px); align-items: center; }
.story-copy p:last-child { max-width: 430px; }
.video-frame { position: relative; padding: 13px; border: 1px solid rgba(20,36,51,.15); border-radius: 26px; background: var(--white); box-shadow: var(--shadow); }
.video-frame::after { content: ""; position: absolute; right: -22px; bottom: -22px; z-index: -1; width: 55%; height: 70%; border-radius: 22px; background: var(--sage); opacity: .16; }
.video-frame video { width: 100%; max-height: 680px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; background: var(--midnight); }

.venue-section { background: #ece8df; }
.venue-card { display: grid; grid-template-columns: .78fr 1.22fr; min-height: 520px; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.venue-card__copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(36px, 6vw, 76px); }
.venue-card__copy h2 { font-size: clamp(42px, 5.2vw, 66px); }
.venue-card__hint { color: #69747b; }
.venue-card__copy .button { margin-top: 15px; }
.map-wrap { min-height: 420px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: saturate(.7) contrast(.95); }

.gallery-section { background: var(--paper); }
.section-heading { width: min(720px, 100%); margin: 0 auto 50px; text-align: center; }
.section-heading p:last-child { margin-bottom: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 16px; }
.gallery__item { position: relative; padding: 0; overflow: hidden; border: 0; border-radius: 20px; cursor: zoom-in; background: #ddd; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.gallery__item:hover img { transform: scale(1.055); filter: brightness(.9); }
.gallery__item::after { content: "+"; position: absolute; right: 18px; bottom: 16px; display: grid; width: 38px; height: 38px; place-items: center; color: var(--midnight); border-radius: 50%; background: rgba(245,240,231,.9); opacity: 0; transform: translateY(6px); transition: .25s ease; }
.gallery__item:hover::after { opacity: 1; transform: translateY(0); }

.rsvp-section { color: var(--pearl); background: var(--midnight); overflow: hidden; }
.rsvp-backdrop { position: absolute; inset: 0; opacity: .13; background: url('../images/bicycle-event.webp') center / cover no-repeat; mix-blend-mode: screen; }
.rsvp-section::after { content: ""; position: absolute; width: 420px; height: 420px; right: -180px; top: -200px; border: 1px solid rgba(212,185,140,.3); border-radius: 50%; }
.rsvp-layout { position: relative; z-index: 1; display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(36px, 8vw, 100px); align-items: start; }
.rsvp-copy { position: sticky; top: 40px; }
.rsvp-copy > p:not(.section-kicker) { color: rgba(245,240,231,.76); }
.public-count { display: flex; align-items: baseline; gap: 14px; margin-top: 38px; padding-top: 28px; border-top: 1px solid rgba(245,240,231,.16); }
.public-count strong { color: var(--beige); font-family: var(--serif); font-size: 66px; font-weight: 500; line-height: 1; }
.public-count span { max-width: 140px; text-transform: uppercase; font-size: 10px; letter-spacing: .16em; }
.rsvp-form { padding: clamp(25px, 5vw, 48px); color: var(--ink); border: 1px solid rgba(245,240,231,.2); border-radius: var(--radius); background: rgba(245,240,231,.96); box-shadow: 0 24px 80px rgba(0,0,0,.25); backdrop-filter: blur(18px); }
.attendance-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.attendance-choice input { position: absolute; opacity: 0; }
.attendance-choice span { display: grid; min-height: 48px; place-items: center; padding: 8px 14px; border: 1px solid rgba(20,36,51,.13); border-radius: 999px; cursor: pointer; text-align: center; font-size: 12px; font-weight: 500; transition: .2s ease; }
.attendance-choice input:checked + span { color: var(--pearl); border-color: var(--midnight); background: var(--midnight); }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; margin-bottom: 7px; text-transform: uppercase; font-size: 10px; font-weight: 600; letter-spacing: .13em; }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(20,36,51,.24); border-radius: 0; outline: none; padding: 11px 2px; color: var(--midnight); background: transparent; transition: border-color .2s ease; }
.field input:focus, .field textarea:focus { border-color: var(--rose); }
.field input:disabled { opacity: .45; }
.field textarea { resize: vertical; min-height: 90px; }
.field small { display: block; margin-top: 6px; color: #707980; font-size: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 18px; color: #5b666d; font-size: 11px; line-height: 1.5; }
.consent input { margin-top: 3px; accent-color: var(--midnight); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-error { min-height: 22px; margin: 0 0 8px; color: #9b3838; font-size: 12px; }
.button__loader { display: none; width: 18px; height: 18px; border: 2px solid rgba(20,36,51,.3); border-top-color: var(--midnight); border-radius: 50%; animation: spin .8s linear infinite; }
.button.is-loading .button__label { display: none; }
.button.is-loading .button__loader { display: block; }
.button:disabled { cursor: wait; opacity: .72; transform: none; }

.footer { padding: 55px 20px; text-align: center; color: var(--pearl); background: #0d1923; }
.footer p { margin: 4px 0; }
.footer__monogram { font-family: var(--serif); font-size: 40px; }
.footer__monogram span { color: var(--beige); font-style: italic; }
.footer__date { color: var(--beige); text-transform: uppercase; font-size: 10px; letter-spacing: .18em; }

.lightbox,
.success-dialog { padding: 0; border: 0; outline: 0; background: transparent; }
.lightbox::backdrop,
.success-dialog::backdrop { background: rgba(7,14,19,.87); backdrop-filter: blur(8px); }
.lightbox { width: min(94vw, 930px); max-width: none; }
.lightbox img { width: 100%; max-height: 88vh; object-fit: contain; border-radius: 18px; }
.lightbox__close { position: fixed; top: 18px; right: 24px; z-index: 3; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; color: white; background: rgba(20,36,51,.35); cursor: pointer; font-size: 30px; line-height: 1; }
.success-dialog { width: min(92vw, 460px); padding: 42px; text-align: center; border-radius: 26px; color: var(--ink); background: var(--pearl); box-shadow: var(--shadow); }
.success-dialog__icon { display: grid; width: 68px; height: 68px; margin: 0 auto 18px; place-items: center; color: var(--pearl); border-radius: 50%; background: var(--sage); font-size: 30px; }
.success-dialog h2 { font-size: 46px; }
.success-dialog .button { margin-top: 12px; }
.text-button { display: block; margin: 18px auto 0; border: 0; color: var(--midnight); background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes heroZoom { from { transform: scale(1.11); } to { transform: scale(1.03); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%,0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,18px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .topbar { padding: 22px 28px; }
  .menu-button { display: inline-flex; padding: 8px 12px; border: 1px solid rgba(245,240,231,.45); color: var(--pearl); background: rgba(20,36,51,.25); text-transform: uppercase; font-size: 10px; letter-spacing: .12em; }
  .menu { position: absolute; top: 70px; right: 24px; display: none; min-width: 190px; flex-direction: column; gap: 0; align-items: stretch; overflow: hidden; border: 1px solid rgba(245,240,231,.2); border-radius: 16px; background: rgba(20,36,51,.95); backdrop-filter: blur(16px); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
  .menu--open { display: flex; }
  .menu a { padding: 14px 18px; border-bottom: 1px solid rgba(245,240,231,.1); }
  .menu__rsvp { border: 0; }
  .details-grid, .story-grid, .venue-card, .rsvp-layout { grid-template-columns: 1fr; }
  .details-photo { width: min(620px, 100%); margin: 30px auto 0; }
  .story-copy p:last-child { max-width: none; }
  .video-frame { width: min(560px, 100%); margin: 0 auto; }
  .venue-card__copy { min-height: 360px; }
  .rsvp-copy { position: static; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .hero__image { background-position: 48% 28%; }
  .hero__frame { inset: 10px; }
  .hero__content { padding-top: 108px; }
  .hero h1 { font-size: clamp(58px, 20vw, 92px); }
  .hero__date { font-size: 24px; letter-spacing: .1em; }
  .eyebrow { max-width: 280px; margin-inline: auto; line-height: 1.7; }
  .button { width: 100%; max-width: 340px; }
  .scroll-cue { bottom: 22px; }
  .section { padding: 72px 18px; }
  .floral-mark { display: none; }
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .countdown div { border-radius: 18px; }
  .details-photo img { height: 118vw; max-height: 620px; }
  .detail-card { padding: 30px 24px; }
  .venue-card { border-radius: 22px; }
  .venue-card__copy { padding: 38px 26px; }
  .map-wrap, .map-wrap iframe { min-height: 360px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; gap: 9px; }
  .gallery__item { border-radius: 12px; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item::after { display: none; }
  .attendance-choice { grid-template-columns: 1fr; }
  .field-row { gap: 12px; }
  .rsvp-form { padding: 25px 20px; border-radius: 22px; }
  .success-dialog { padding: 32px 22px; }
  .success-dialog h2 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .countdown-section { background-attachment: scroll; }
}
