:root {
  --ink: #24323a;
  --ink-soft: #42545c;
  --cream: #f6f5f0;
  --paper: #fffefa;
  --gold: #c98e54;
  --gold-light: #e0b07b;
  --sage: #9bb6af;
  --sky: #dcecf2;
  --sky-deep: #9fc8d6;
  --line: rgba(23, 27, 25, 0.16);
  --serif: "Italiana", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: .03;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 28%, #000 0 .6px, transparent .8px),
    radial-gradient(circle at 72% 63%, #000 0 .5px, transparent .7px);
  background-size: 5px 5px, 7px 7px;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  color: var(--ink);
  background:
    radial-gradient(circle at 74% 20%, rgba(255,255,255,.95), transparent 25%),
    linear-gradient(155deg, #edf7fa 0%, #d8ebf1 50%, #f8eee2 100%);
  text-align: center;
  transition: opacity 1s ease, visibility 1s ease, transform 1s ease;
}
.intro::before, .intro::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(36, 50, 58, .16);
}
.intro::after { inset: 32px; border-color: rgba(255, 255, 255, .7); }
.intro.opened { opacity: 0; visibility: hidden; transform: scale(1.04); }
.intro-content { position: relative; z-index: 1; width: min(780px, 86vw); }
.intro-mark, .brand, .footer-mark { font-family: var(--serif); letter-spacing: .14em; }
.intro-mark { margin-bottom: 20px; color: var(--ink); font-size: clamp(42px, 6vw, 76px); letter-spacing: .2em; }
.intro-mark span, .brand span, .footer-mark span { font-style: italic; color: var(--gold); }
.intro-date { margin: 0 0 26px; color: #7c5a3f; font-family: var(--serif); font-size: clamp(18px, 2vw, 28px); letter-spacing: .22em; }
.intro h1 { margin: 18px 0; font-family: var(--serif); font-size: clamp(48px, 7vw, 96px); font-weight: 400; line-height: .98; }
.intro h1 em, h2 em { color: var(--gold-light); font-weight: 400; }
.intro-copy { margin: 0 auto 35px; color: rgba(36,50,58,.62); letter-spacing: .03em; }
.intro-foot { position: absolute; bottom: 44px; color: rgba(36,50,58,.4); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.seal-button { display: inline-flex; align-items: center; gap: 18px; border: 0; color: var(--ink); background: transparent; cursor: pointer; text-transform: uppercase; letter-spacing: .18em; font-size: 10px; }
.seal { display: grid; place-items: center; width: 70px; aspect-ratio: 1; border-radius: 22px; color: white; background: var(--ink); box-shadow: 0 10px 30px rgba(36,50,58,.2); font-family: var(--serif); font-size: 16px; letter-spacing: .08em; transition: transform .35s ease, box-shadow .35s ease; }
.seal-button:hover .seal { transform: translateY(-4px) rotate(-4deg); box-shadow: 0 15px 35px rgba(36,50,58,.25); }
.flight-scene { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.flight-route { position: absolute; top: 25%; left: 8%; width: 84%; height: 120px; border-top: 2px dashed rgba(61,120,144,.25); border-radius: 50%; transform: rotate(-5deg); }
.flight-plane { position: absolute; top: 20%; left: 7%; color: #3d7890; font-size: 30px; filter: drop-shadow(0 8px 10px rgba(61,120,144,.2)); animation: planeJourney 6s cubic-bezier(.35,.02,.55,1) infinite; }
@keyframes planeJourney {
  0% { transform: translate(-80px, 45px) rotate(8deg); opacity: 0; }
  12% { opacity: 1; }
  55% { transform: translate(42vw, -15px) rotate(-2deg); }
  88% { opacity: 1; }
  100% { transform: translate(92vw, 18px) rotate(7deg); opacity: 0; }
}

.eyebrow { margin: 0 0 22px; color: #736a5d; font-size: 10px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.eyebrow.light { color: var(--gold-light); }
.section { position: relative; padding: 140px max(6vw, 24px); }
.section-number { position: absolute; top: 58px; left: max(6vw,24px); color: #9b917f; font-size: 10px; letter-spacing: .22em; }
h2 { margin: 0; font-family: var(--serif); font-size: clamp(45px, 6vw, 80px); font-weight: 400; line-height: 1.04; }

.site-header {
  position: fixed;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 4vw;
  color: white;
  transition: background .4s ease, color .4s ease, padding .4s ease, transform .4s ease;
}
.site-header.scrolled { padding-block: 15px; color: var(--ink); background: rgba(255,254,250,.88); border-bottom: 1px solid rgba(36,50,58,.08); backdrop-filter: blur(18px); }
.brand { font-size: 28px; }
.journey-progress { display: flex; align-items: center; gap: 14px; font-size: 8px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.journey-progress > span { opacity: .62; }
.journey-progress > div { width: 100px; height: 2px; overflow: hidden; background: rgba(255,255,255,.28); }
.site-header.scrolled .journey-progress > div { background: rgba(36,50,58,.12); }
.journey-progress i { display: block; width: 14%; height: 100%; background: currentColor; transition: width .4s ease; }
.journey-progress strong { min-width: 44px; font-weight: 500; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: white; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; background: url("assets/seville.jpeg") center 34% / cover no-repeat; transform: scale(1.03); animation: heroZoom 12s ease-out both; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,10,.18) 0%, rgba(8,12,10,.04) 36%, rgba(8,12,10,.86) 100%), linear-gradient(90deg, rgba(8,12,10,.25), transparent 55%); }
.hero-copy { position: relative; align-self: center; padding: 12vh max(6vw,24px) 0; }
.hero-copy h1 { margin: 0; font-family: var(--serif); font-size: clamp(72px, 11.5vw, 174px); font-weight: 400; line-height: .84; letter-spacing: -.025em; }
.hero-copy h1 span { color: var(--gold-light); font-size: .7em; font-style: italic; }
.hero-subtitle { margin: 30px 0 0 8px; font-size: 16px; letter-spacing: .04em; }
.hero-bottom { position: relative; display: flex; align-items: end; justify-content: space-between; padding: 0 max(6vw,24px) 5vh; }
.date-block { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 16px; text-transform: uppercase; }
.date-block strong { color: var(--gold-light); font-family: var(--serif); font-size: 54px; font-weight: 400; }
.date-block span { width: 58px; font-size: 8px; letter-spacing: .2em; line-height: 1.7; }
.scroll-cue { display: flex; align-items: center; gap: 12px; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.scroll-cue span { display: block; width: 46px; height: 1px; background: rgba(255,255,255,.6); }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1.03); } }

.save-date {
  padding-top: 75px;
  padding-bottom: 75px;
  background: var(--paper);
}
.save-date-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto 28px;
}
.save-date-heading .eyebrow { margin: 0; }
.save-date-heading > p:last-child {
  margin: 0;
  color: #77766f;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
}
.save-date-frame {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 12px 0;
  background: #fffdf8;
  box-shadow: 0 28px 70px rgba(39, 35, 28, .15);
  transform: rotate(-.35deg);
}
.save-date-frame img { aspect-ratio: 1.25; object-fit: cover; }
.save-date-frame figcaption {
  display: flex;
  justify-content: space-between;
  padding: 16px 4px 18px;
  color: #7e776b;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.welcome { display: grid; grid-template-columns: .85fr 1.15fr; gap: 10vw; align-items: center; min-height: 850px; }
.welcome-copy { padding-left: 4vw; }
.welcome-copy p:not(.eyebrow) { max-width: 520px; margin: 35px 0; color: #5f625e; font-size: 15px; line-height: 1.8; }
.text-link { display: inline-flex; gap: 30px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.passport-card { position: relative; max-width: 700px; padding: 26px; background: #e7e5dc; border-radius: 24px; box-shadow: 0 30px 70px rgba(37,37,28,.13); transform: rotate(1deg); overflow: hidden; }
.passport-card::after { content: "E&I"; position: absolute; right: -22px; bottom: -70px; color: rgba(255,255,255,.17); font-family: var(--serif); font-size: 150px; }
.passport-top { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid rgba(23,27,25,.22); font-size: 9px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.passport-body { display: grid; grid-template-columns: 34% 1fr; gap: 28px; padding: 28px 0; }
.passport-photo { aspect-ratio: .8; overflow: hidden; filter: sepia(.22) saturate(.74); }
.passport-photo img { height: 100%; object-fit: cover; }
.mini-label, .passport-grid span { display: block; margin-bottom: 5px; color: #6f6b5f; font-size: 7px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.passport-details h3 { margin: 12px 0 30px; font-family: var(--serif); font-size: clamp(34px,4vw,52px); font-weight: 400; line-height: .85; }
.passport-details h3 em { color: #736a55; font-weight: 400; }
.passport-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; }
.passport-grid strong { font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.status-dot::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: #607b64; }
.passport-code { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; border-top: 1px dashed rgba(23,27,25,.28); padding-top: 18px; font-size: 8px; letter-spacing: .2em; }
.passport-code div { width: 50%; height: 35px; background: repeating-linear-gradient(90deg, #1b211e 0 2px, transparent 2px 4px, #1b211e 4px 5px, transparent 5px 9px); }

.dark-section { color: var(--ink); background: var(--sky); }
.dark-section .eyebrow.light { color: #6c7280; }
.countdown { display: grid; grid-template-columns: 1fr 1.2fr; align-items: end; min-height: 650px; background-image: radial-gradient(circle at 82% 24%, rgba(255,255,255,.65), transparent 32%); }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(36,50,58,.12); border-radius: 24px; overflow: hidden; background: rgba(255,255,255,.36); }
.countdown-grid div { display: grid; place-items: center; padding: 35px 10px; border-right: 1px solid rgba(36,50,58,.12); }
.countdown-grid div:last-child { border: 0; }
.countdown-grid strong { font-family: var(--serif); font-size: clamp(42px,5vw,74px); font-weight: 400; }
.countdown-grid span { color: rgba(36,50,58,.48); font-size: 8px; letter-spacing: .2em; text-transform: uppercase; }
.countdown-note { position: absolute; right: max(6vw,24px); bottom: 70px; color: rgba(36,50,58,.48); font-size: 10px; font-style: italic; }

.journey { background: var(--paper); }
.journey-heading { display: grid; grid-template-columns: 1fr .6fr; align-items: end; gap: 10vw; max-width: 1150px; margin: 0 auto 100px; }
.journey-heading > p { max-width: 320px; color: #6b6e69; line-height: 1.8; }
.timeline { max-width: 1150px; margin: auto; border-top: 1px solid var(--line); }
.stop { display: grid; grid-template-columns: 100px 70px 1fr 50px; align-items: center; min-height: 150px; border-bottom: 1px solid var(--line); transition: background .25s ease, padding .25s ease; }
.stop:hover, .stop:focus { padding-inline: 18px; background: rgba(187,160,106,.08); outline: none; }
.stop-time { font-family: var(--serif); font-size: 24px; }
.stop-marker { position: relative; display: grid; place-items: center; height: 100%; }
.stop-marker::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line); }
.stop-marker span { z-index: 1; display: grid; place-items: center; width: 30px; aspect-ratio: 1; border: 1px solid var(--gold); border-radius: 50%; color: #7a6a48; background: var(--paper); font-size: 8px; }
.stop-copy p { margin: 0 0 7px; color: #958b7d; font-size: 8px; letter-spacing: .2em; text-transform: uppercase; }
.stop-copy h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 31px; font-weight: 400; }
.stop-copy span { color: #777b76; font-size: 12px; }
.stop button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 20px; font-weight: 200; transition: transform .25s, background .25s; }
.stop.active button { transform: rotate(45deg); color: white; background: var(--ink); }

.memories { display: grid; grid-template-columns: 1.2fr .8fr; gap: 9vw; align-items: center; min-height: 900px; }
.collage { position: relative; height: 650px; }
.photo { position: absolute; margin: 0; padding: 8px 8px 28px; background: #fffdf8; box-shadow: 0 20px 55px rgba(39,35,28,.14); }
.photo img { height: 100%; object-fit: cover; }
.photo-one { left: 5%; top: 10%; width: 44%; height: 67%; transform: rotate(-7deg); }
.photo-two { right: 4%; top: 2%; z-index: 2; width: 39%; height: 54%; transform: rotate(7deg); }
.photo-three { right: 13%; bottom: 2%; z-index: 3; width: 42%; height: 52%; transform: rotate(-2deg); }
.stamp { position: absolute; left: 44%; top: 43%; z-index: 5; display: grid; place-items: center; width: 135px; aspect-ratio: 1; border: 1px solid rgba(126,106,68,.55); border-radius: 50%; color: #765f38; background: rgba(243,238,228,.88); font-family: var(--serif); font-size: 15px; line-height: 1.15; text-align: center; transform: rotate(8deg); backdrop-filter: blur(5px); }
.stamp span { margin-top: 6px; font-family: var(--sans); font-size: 7px; letter-spacing: .16em; }
.memories-copy { max-width: 520px; }
.memories-copy > p:not(.eyebrow,.signature) { margin: 35px 0; color: #62655f; font-size: 14px; line-height: 1.9; }
.signature { font-family: var(--serif); font-size: 26px; font-style: italic; color: #8a744b; }

.rsvp { display: grid; grid-template-columns: .75fr 1.25fr; gap: 9vw; min-height: 850px; background-image: linear-gradient(120deg, rgba(255,255,255,.45), transparent 45%); }
.rsvp-copy { padding-top: 20px; }
.rsvp-copy > p:not(.eyebrow) { max-width: 330px; margin: 35px 0 55px; color: rgba(36,50,58,.58); line-height: 1.8; }
.rsvp-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 25px; border-top: 1px solid rgba(36,50,58,.14); }
.rsvp-meta span { display: block; margin-bottom: 6px; color: rgba(36,50,58,.45); font-size: 7px; letter-spacing: .16em; text-transform: uppercase; }
.rsvp-meta strong { font-family: var(--serif); font-size: 16px; font-weight: 400; }
.rsvp-form { position: relative; min-height: 580px; padding: 54px; color: var(--ink); background: var(--paper); border-radius: 28px; box-shadow: 0 25px 70px rgba(65,96,108,.12); overflow: hidden; }
.form-progress { position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: #ded8cb; }
.form-progress span { display: block; width: 33.33%; height: 100%; background: var(--gold); transition: width .4s ease; }
.form-step { display: none; padding: 0; border: 0; animation: stepIn .45s ease both; }
.form-step.active { display: block; }
.form-step legend { width: 100%; margin-bottom: 46px; font-family: var(--serif); font-size: 30px; }
.form-step legend span { display: block; margin-bottom: 12px; color: #938b7c; font-family: var(--sans); font-size: 8px; font-weight: 600; letter-spacing: .2em; }
.form-step > label { display: block; margin-bottom: 28px; color: #6d6d67; font-size: 9px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
input[type="text"], textarea { width: 100%; margin-top: 10px; padding: 14px 0; border: 0; border-bottom: 1px solid #cfc9bb; border-radius: 0; outline: none; color: var(--ink); background: transparent; font-size: 15px; text-transform: none; letter-spacing: 0; resize: none; transition: border-color .2s; }
input[type="text"]:focus, textarea:focus { border-color: var(--ink); }
.field-label { margin: 25px 0 12px; color: #6d6d67; font-size: 9px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.choice-grid { display: grid; gap: 10px; margin-bottom: 32px; }
.attendance-grid { grid-template-columns: 1fr 1fr; }
.menu-grid { grid-template-columns: repeat(3,1fr); }
.choice { position: relative; padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; text-align: left; }
.choice input { position: absolute; opacity: 0; }
.choice > span { display: flex; flex-direction: column; justify-content: center; min-height: 90px; padding: 18px; border: 1px solid #d9d3c7; font-family: var(--serif); font-size: 18px; transition: color .2s, background .2s, border-color .2s; }
.choice small { margin-top: 6px; color: #88877f; font-family: var(--sans); font-size: 8px; letter-spacing: .08em; }
.choice input:checked + span, .choice.selected > span { color: white; border-color: var(--ink); background: var(--ink); }
.choice input:checked + span small, .choice.selected > span small { color: rgba(255,255,255,.55); }
.attendance-option > span { width: 100%; border-radius: 16px; }
.attendance-error { display: none; margin: -18px 0 0; color: #a45f5f; font-size: 10px; }
.attendance-error.visible { display: block; }
.form-next, .submit-button { display: flex; justify-content: space-between; width: 100%; margin-top: 35px; padding: 17px 20px; border: 1px solid var(--ink); color: white; background: var(--ink); cursor: pointer; font-size: 9px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.form-actions .form-next, .form-actions .submit-button { width: auto; flex: 1; }
.form-back { margin-top: 35px; border: 0; background: transparent; cursor: pointer; color: #76776f; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.check-label { display: flex !important; align-items: center; gap: 12px; text-transform: none !important; letter-spacing: 0 !important; }
.check-label input { accent-color: var(--ink); }
.success-state { display: none; min-height: 470px; place-items: center; align-content: center; text-align: center; animation: stepIn .5s ease both; }
.success-state.visible { display: grid; }
.success-mark { display: grid; place-items: center; width: 68px; aspect-ratio: 1; margin-bottom: 30px; border: 1px solid var(--gold); border-radius: 50%; color: #806f4c; font-size: 22px; }
.success-state h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 42px; font-weight: 400; }
.success-state p:not(.eyebrow) { color: #70726c; }
.success-state button { margin-top: 20px; border: 0; border-bottom: 1px solid; background: none; cursor: pointer; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.decline-state { display: none; min-height: 470px; place-items: center; align-content: center; text-align: center; animation: stepIn .5s ease both; }
.decline-state.visible { display: grid; }
.decline-icon { display: grid; place-items: center; width: 72px; aspect-ratio: 1; margin-bottom: 28px; border-radius: 24px; color: #a76666; background: #f7e6e2; font-size: 28px; }
.decline-state h3 { margin: 0 0 16px; font-family: var(--serif); font-size: 42px; font-weight: 400; line-height: 1.05; }
.decline-state > p:not(.eyebrow) { max-width: 390px; color: #707a7d; line-height: 1.7; }
.decline-state button { margin-top: 20px; border: 0; border-bottom: 1px solid; background: none; cursor: pointer; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.coming { text-align: center; background: var(--paper); }
.coming h2 { margin-bottom: 70px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; max-width: 1150px; margin: auto; }
.feature-grid > * { position: relative; min-height: 330px; padding: 42px 34px; border: 1px solid rgba(36,50,58,.09); border-radius: 24px; background: #f8f8f4; text-align: left; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.feature-grid > *:hover { transform: translateY(-6px); background: white; box-shadow: 0 20px 50px rgba(36,50,58,.1); }
.feature-grid > * > span { color: #8d8174; font-size: 7px; letter-spacing: .18em; text-transform: uppercase; }
.feature-grid > * > div { margin: 58px 0 28px; color: #7aa9ba; font-size: 32px; }
.feature-grid h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 27px; font-weight: 400; }
.feature-grid p { color: #72756f; font-size: 12px; line-height: 1.7; }
.feature-grid b { position: absolute; bottom: 34px; left: 34px; font-size: 8px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.secret-upload-letter { display: inline; margin: 0; padding: 0; border: 0; color: inherit; background: transparent; cursor: default; font-family: inherit; font-size: inherit; }
.secret-upload-letter:focus-visible { border-radius: 50%; outline: 2px solid var(--sky-deep); }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 55px max(6vw,24px); color: var(--ink); background: #dcecf2; }
.footer-mark { font-size: 24px; }
footer p { color: rgba(36,50,58,.48); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }
footer a { justify-self: end; color: #6c7f86; font-size: 8px; letter-spacing: .15em; text-transform: uppercase; }

.upload-modal { width: min(620px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 52px; border: 0; border-radius: 28px; color: var(--ink); background: #fffefa; box-shadow: 0 35px 100px rgba(36,50,58,.25); }
.upload-modal::backdrop { background: rgba(52,72,80,.34); backdrop-filter: blur(10px); }
.upload-modal h2 { margin-bottom: 18px; font-size: 54px; }
.upload-modal > p:not(.eyebrow,.upload-demo-message) { color: #6f7b80; line-height: 1.7; }
.modal-close { position: absolute; top: 22px; right: 22px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 22px; }
.upload-dropzone { display: grid; place-items: center; margin-top: 28px; padding: 35px; border: 1px dashed #9bb6c0; border-radius: 20px; background: #edf6f8; cursor: pointer; text-align: center; }
.upload-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-plus { display: grid; place-items: center; width: 46px; aspect-ratio: 1; margin-bottom: 12px; border-radius: 15px; color: white; background: #7aa9ba; font-size: 25px; }
.upload-dropzone strong { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.upload-dropzone small { margin-top: 5px; color: #819096; font-size: 8px; letter-spacing: .12em; }
.upload-preview { display: none; align-items: center; gap: 14px; margin-top: 18px; padding: 12px; border-radius: 16px; background: #f1f1ed; }
.upload-preview.visible { display: flex; }
.upload-preview img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.upload-preview span { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.upload-demo-submit { width: 100%; margin-top: 18px; padding: 16px; border: 0; border-radius: 14px; color: white; background: var(--ink); cursor: pointer; font-size: 9px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.upload-demo-message { min-height: 18px; margin-bottom: 0; color: #66846f; font-size: 11px; text-align: center; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .section { padding-block: 100px; }
  .welcome, .memories, .rsvp, .countdown { grid-template-columns: 1fr; gap: 75px; }
  .welcome { padding-top: 130px; }
  .welcome-copy { padding-left: 0; }
  .passport-card { margin: auto; }
  .countdown { align-items: center; min-height: 780px; }
  .countdown-note { bottom: 45px; }
  .memories { padding-bottom: 130px; }
  .collage { height: 560px; }
  .rsvp-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .rsvp-copy .eyebrow, .rsvp-copy h2 { grid-column: 1 / -1; }
  .rsvp-copy > p:not(.eyebrow) { margin: 0; }
  .rsvp-meta { align-self: end; }
}

@media (max-width: 620px) {
  .intro::before { inset: 12px; }
  .intro::after { inset: 18px; }
  .intro h1 { font-size: 47px; }
  .intro-mark { font-size: 56px; }
  .intro-date { font-size: 16px; }
  .flight-route { top: 19%; }
  .flight-plane { top: 15%; }
  .intro-copy { max-width: 280px; font-size: 12px; line-height: 1.7; }
  .intro-foot { bottom: 28px; max-width: 250px; line-height: 1.6; }
  .hero-copy { align-self: end; padding-bottom: 26vh; }
  .hero-copy h1 { font-size: 66px; line-height: .92; }
  .hero-subtitle { max-width: 230px; font-size: 13px; }
  .hero-bottom { padding-bottom: 28px; }
  .scroll-cue { display: none; }
  .section { padding: 90px 22px; }
  .journey-progress > span { display: none; }
  .journey-progress > div { width: 58px; }
  .brand { font-size: 24px; }
  .save-date { padding: 55px 14px 65px; }
  .save-date-heading { display: block; margin: 0 8px 20px; }
  .save-date-heading > p:last-child { margin-top: 12px; font-size: 14px; line-height: 1.5; }
  .save-date-frame { padding: 6px 6px 0; transform: rotate(-.25deg); }
  .save-date-frame figcaption { padding: 11px 2px 12px; font-size: 6px; }
  .section-number { top: 32px; left: 22px; }
  h2 { font-size: 46px; }
  .welcome { gap: 60px; }
  .passport-card { width: 105%; margin-left: -2.5%; padding: 18px; transform: rotate(1deg); }
  .passport-body { grid-template-columns: 32% 1fr; gap: 18px; }
  .passport-details h3 { margin-bottom: 22px; font-size: 31px; }
  .passport-grid { gap: 14px; }
  .passport-grid strong { font-size: 8px; }
  .countdown { min-height: 710px; }
  .countdown-grid { grid-template-columns: 1fr 1fr; }
  .countdown-grid div:nth-child(2) { border-right: 0; }
  .countdown-grid div:nth-child(-n+2) { border-bottom: 1px solid rgba(36,50,58,.12); }
  .journey-heading { grid-template-columns: 1fr; gap: 28px; margin-bottom: 60px; }
  .stop { grid-template-columns: 58px 40px 1fr 32px; min-height: 130px; }
  .stop-time { font-size: 16px; }
  .stop-marker span { width: 25px; }
  .stop-copy h3 { font-size: 23px; }
  .stop-copy span { display: block; max-width: 180px; font-size: 9px; line-height: 1.5; }
  .stop button { width: 30px; height: 30px; }
  .memories { gap: 55px; }
  .collage { height: 440px; }
  .photo-one { left: 0; width: 50%; height: 62%; }
  .photo-two { right: 0; width: 45%; }
  .photo-three { right: 6%; width: 48%; height: 48%; }
  .stamp { left: 37%; top: 39%; width: 110px; font-size: 12px; }
  .rsvp-copy { display: block; }
  .rsvp-copy > p:not(.eyebrow) { margin: 25px 0 40px; }
  .rsvp-form { min-height: 620px; padding: 38px 22px; }
  .form-step legend { font-size: 26px; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-grid .choice > span { min-height: 65px; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; gap: 0; }
  .form-back { margin-top: 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid > * { min-height: 280px; }
  .feature-grid > * > div { margin-top: 50px; }
  .upload-modal { padding: 42px 22px 26px; }
  .upload-modal h2 { font-size: 43px; }
  footer { grid-template-columns: 1fr auto; gap: 20px; }
  footer p { grid-column: 1 / -1; grid-row: 2; }
}

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