:root {
  --paper: #FBF6EE;
  --blush: #F5ECE3;
  --card: #FFFDFA;
  --ink: #2B2233;
  --muted: #6B5F73;
  --line: #EBD9D6;
  --pink: #E8407A;
  --coral: #FF6B4A;
  --orange: #FF8C42;
  --marigold: #F6B942;
  --lilac: #B79CE0;
  --sky: #8FB8E8;
  --leaf: #4F8A5B;
  --plum: #3A2A4A;
  --cobalt: #2F4F9E;
  --violet: #6B4A9B;
  --raspberry: #B4245A;
  --clay: #C2452B;
  --saffron: #D99A2B;
  --saffron-ink: #94600F;
  --emerald: #2E6A4E;
  --gold: #C9A45C;
  --rsvp: #8F1D47;
  --body: #4A3F4E;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Tenor Sans', 'Trebuchet MS', sans-serif;
  --script: 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><line x1='16' y1='16' x2='29' y2='29' stroke='%233A2A4A' stroke-width='3' stroke-linecap='round'/><circle cx='10' cy='10' r='7.5' fill='none' stroke='%23E8407A' stroke-width='2.4'/><circle cx='10' cy='10' r='7.5' fill='none' stroke='%23FFFFFF' stroke-width='0.8' opacity='.8'/><circle cx='7.5' cy='7.5' r='1.3' fill='%23FFFFFF'/></svg>") 10 10, auto;
}
a, button, select, label, input[type='radio'], input[type='checkbox'] { cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><line x1='16' y1='16' x2='29' y2='29' stroke='%233A2A4A' stroke-width='3' stroke-linecap='round'/><circle cx='10' cy='10' r='7.5' fill='none' stroke='%23E8407A' stroke-width='2.4'/><circle cx='10' cy='10' r='7.5' fill='none' stroke='%23FFFFFF' stroke-width='0.8' opacity='.8'/><circle cx='7.5' cy='7.5' r='1.3' fill='%23FFFFFF'/></svg>") 10 10, auto; }
input[type='text'], input[type='date'], input:not([type]), textarea { cursor: text; }

a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--coral); }

.eyebrow {
  font-family: var(--script);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  color: var(--pink);
  letter-spacing: 0.02em;
}
.label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--tone);
}

h1 {
  font-size: clamp(44px, 9vw, 106px);
  font-weight: 500;
  line-height: 1.05;
}
h1 .amp {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, var(--pink), var(--orange), var(--marigold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 { font-size: clamp(34px, 4.4vw, 58px); font-weight: 300; line-height: 1.1; max-width: 820px; }

.prose {
  font-size: 21px;
  line-height: 1.6;
  color: var(--body);
  max-width: 640px;
}
.address { font-family: var(--sans); font-size: 12px; line-height: 2; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }

.button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 17px 30px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.button-line { border-color: var(--ink); color: var(--ink); }
.button-line:hover { background: var(--ink); color: var(--paper); }
.button-light { background: var(--paper); color: var(--rsvp); }
.button-light:hover { background: #fff; color: var(--rsvp); }
.button-solid { background: var(--rsvp); color: var(--paper); }
.button-solid:hover { background: var(--raspberry); color: var(--paper); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: clamp(640px, 100svh, 1200px);
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}


.arch-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -50px;
  top: -90px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  transform-origin: 50% 100%;
  pointer-events: none;
}
.arch {
  height: 100%;
  width: auto;
  max-width: none;
  flex: none;
  overflow: visible;
  filter: drop-shadow(0 18px 30px rgba(43, 34, 51, 0.12));
}
.arch .seg {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  will-change: transform;
  animation: grow 1s cubic-bezier(0.22, 1, 0.36, 1) both, sway 7s ease-in-out infinite;
}
.arch .s0 { animation-delay: 0.08s, 1.10s; animation-duration: 1s, 6.2s; }
.arch .s1 { animation-delay: 0.19s, 1.21s; animation-duration: 1s, 7.9s; }
.arch .s2 { animation-delay: 0.30s, 1.32s; animation-duration: 1s, 9.6s; }
.arch .s3 { animation-delay: 0.41s, 1.43s; animation-duration: 1s, 7.7s; }
.arch .s4 { animation-delay: 0.52s, 1.54s; animation-duration: 1s, 9.4s; }
.arch .s5 { animation-delay: 0.63s, 1.65s; animation-duration: 1s, 7.5s; }
.arch .s6 { animation-delay: 0.74s, 1.76s; animation-duration: 1s, 9.2s; }
.arch .s7 { animation-delay: 0.85s, 1.87s; animation-duration: 1s, 7.3s; }

.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubble {
  position: absolute;
  bottom: -60px;
  display: block;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95) 0 8%, rgba(255, 255, 255, 0.1) 32%, rgba(255, 255, 255, 0) 45%),
    conic-gradient(from 210deg, rgba(143, 184, 232, 0.35), rgba(183, 156, 224, 0.3), rgba(232, 64, 122, 0.22), rgba(246, 185, 66, 0.25), rgba(143, 184, 232, 0.35));
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.5);
  animation: bubble-rise 18s linear infinite;
}
.b1 { left: 8%; width: 46px; height: 46px; animation-duration: 21s; }
.b2 { left: 18%; width: 22px; height: 22px; animation-delay: 6s; animation-duration: 16s; }
.b3 { left: 31%; width: 34px; height: 34px; animation-delay: 11s; }
.b4 { left: 47%; width: 18px; height: 18px; animation-delay: 3s; animation-duration: 15s; }
.b5 { left: 60%; width: 52px; height: 52px; animation-delay: 9s; animation-duration: 24s; }
.b6 { left: 72%; width: 26px; height: 26px; animation-delay: 14s; }
.b7 { left: 84%; width: 38px; height: 38px; animation-delay: 1s; animation-duration: 19s; }
.b8 { left: 93%; width: 20px; height: 20px; animation-delay: 8s; animation-duration: 17s; }
.b9 { left: 12%; width: 14px; height: 14px; animation-delay: 4s; animation-duration: 12s; }
.b10 { left: 26%; width: 62px; height: 62px; animation-delay: 16s; animation-duration: 27s; }
.b11 { left: 40%; width: 12px; height: 12px; animation-delay: 12s; animation-duration: 11s; }
.b12 { left: 55%; width: 30px; height: 30px; animation-delay: 19s; animation-duration: 20s; }
.b13 { left: 67%; width: 16px; height: 16px; animation-delay: 7s; animation-duration: 13s; }
.b14 { left: 88%; width: 44px; height: 44px; animation-delay: 21s; animation-duration: 23s; }

.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 34px clamp(20px, 5vw, 72px);
  font-family: var(--sans);
}
.nav a, .nav button, .nav .mark {
  text-shadow: 0 0 2px var(--paper), 0 0 6px var(--paper), 0 0 14px var(--paper), 0 0 24px var(--paper);
}
.mark { font-size: 15px; letter-spacing: 0.3em; color: var(--ink); }
.nav-links { display: flex; gap: clamp(16px, 3vw, 44px); flex-wrap: wrap; }
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  cursor: pointer;
}
.nav-links a:nth-child(1) { color: #4F8BD6; }
.nav-links a:nth-child(2) { color: #8E6ACB; }
.nav-links a:nth-child(3) { color: var(--pink); }
.nav-links a:nth-child(4) { color: #EF5A3C; }
.nav-links a:nth-child(5) { color: #E07A1F; }
.nav-links a:nth-child(6) { color: #C99212; }
.nav-links a:hover { border-bottom-color: currentColor; }
.lang { display: flex; gap: 12px; }
.lang button {
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  border: none;
  background: none;
  padding: 0 0 2px;
  color: #B9A9BF;
  cursor: pointer;
}
.lang button[aria-pressed='true'] {
  color: var(--ink);
  border-bottom: 2px solid var(--pink);
}
@media (pointer: coarse) {
  .nav-links a { padding: 10px 0; }
  .lang button { padding: 12px 2px 2px; }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(120px, 44vh, 420px) clamp(20px, 6vw, 80px) 0;
  gap: 22px;
}
.hero-content > .eyebrow,
.hero-content > .greeting,
.hero-content > h1,
.hero-content > .hero-date {
  text-shadow:
    0 0 2px var(--paper),
    0 0 6px var(--paper),
    0 0 14px var(--paper),
    0 0 28px var(--paper),
    0 0 40px var(--paper);
}
.hero-content > h1 .amp { text-shadow: none; }

.greeting {
  font-family: var(--script);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(30px, 4vw, 44px);
  color: var(--ink);
  margin-bottom: -14px;
}
.greeting + .eyebrow { font-size: 26px; color: var(--pink); }
.hero-date {
  font-family: var(--sans);
  font-size: clamp(12px, 1.6vw, 15px);
  letter-spacing: 0.28em;
  color: var(--ink);
}
.divider { display: flex; align-items: center; gap: 18px; }
.divider .line { width: clamp(48px, 8vw, 96px); height: 1px; background: var(--lilac); }

.rise { animation: rise-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.rise-1 { animation-delay: 0.1s; }
.rise-2 { animation-delay: 0.28s; animation-duration: 1s; }
.rise-3 { animation-delay: 0.5s; }
.rise-4 { animation-delay: 0.64s; }

/* ---------- chapters ---------- */

.chapter {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(72px, 10vw, 120px) clamp(20px, 5vw, 72px);
  background: var(--paper);
}
.chapter.tinted { background: var(--blush); }
.chapter .reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
#game { --tone: var(--cobalt); border-top: 1px solid #E3D6CC; }
#story { --tone: var(--violet); }
#location { --tone: var(--emerald); }
#details { --tone: var(--saffron-ink); }
#rsvp { --tone: #F2C766; background: var(--rsvp); color: var(--paper); }

.ribbon { display: flex; gap: 8px; }
.ribbon span { width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); }
.ribbon span:nth-child(2) { background: var(--violet); }
.ribbon span:nth-child(3) { background: var(--raspberry); }
.ribbon span:nth-child(4) { background: var(--clay); }
.ribbon span:nth-child(5) { background: var(--saffron); }

/* ---------- the day ---------- */

.chapter .schedule {
  --time: 88px;
  position: relative;
  display: grid;
  gap: 26px;
  width: 100%;
  max-width: 540px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
  text-align: left;
}
.schedule::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: calc(var(--time) + 18px + 17px);
  width: 2px;
  background: linear-gradient(var(--cobalt), var(--violet), var(--raspberry), var(--clay), var(--saffron), var(--emerald));
  border-radius: 2px;
}
.schedule li {
  --tone: var(--cobalt);
  display: grid;
  grid-template-columns: var(--time) 36px 1fr;
  column-gap: 18px;
  align-items: center;
}
.schedule li:nth-child(1), .schedule li:nth-child(4) { --tone: var(--raspberry); }
.schedule li:nth-child(3) { --tone: var(--violet); }
.schedule li:nth-child(5) { --tone: var(--clay); }
.schedule li:nth-child(6), .schedule li:nth-child(7) { --tone: var(--saffron-ink); }
.schedule li:nth-child(8), .schedule li:nth-child(9) { --tone: var(--emerald); }
.schedule .day span {
  grid-column: 3;
  font-style: italic;
  font-size: 28px;
  color: var(--tone);
}
.stop-time { text-align: right; font-size: 26px; font-weight: 500; color: var(--ink); }
.stop-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blush);
  border: 1.5px solid var(--tone);
  color: var(--tone);
}
.stop-body { display: grid; gap: 2px; }
.stop-label { font-family: var(--sans); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }
.stop-place { font-style: italic; font-size: 17px; color: var(--muted); }

.chapter .wishes {
  margin-top: 104px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 56px 64px;
  width: 100%;
  max-width: 1120px;
  align-items: start;
  text-align: left;
}
.wish {
  --tone: var(--raspberry);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  color: var(--tone);
}
.wish:nth-child(2) { --tone: var(--emerald); }
.wish:nth-child(3) { --tone: var(--cobalt); }
.wish svg { width: 30px; height: 30px; }
.wish h3 { font-size: 30px; font-weight: 400; color: var(--ink); }
.wish h3::before { content: ''; display: block; width: 32px; height: 1px; margin-bottom: 16px; background: var(--tone); }
.wish p { font-size: 18px; line-height: 1.6; color: var(--body); }
.palette {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  margin: 6px 0;
  padding: 0;
}
.palette li { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 56px; }
.palette li::before {
  content: '';
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 3px var(--blush), 0 0 0 4px #DCCBBE;
}
.palette span { font-family: var(--sans); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- story timeline ---------- */

.timeline {
  list-style: none;
  width: min(100%, 980px);
  margin-top: 72px;
  padding: 0;
  display: grid;
  gap: 72px;
}
.timeline .tl-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px 56px;
}
.timeline .tl-together, .timeline .tl-finale { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
.tl-row:nth-child(1) { --tone: var(--cobalt); }
.tl-row:nth-child(2) { --tone: var(--violet); }
.tl-row:nth-child(3) { --tone: var(--raspberry); }
.tl-row:nth-child(4) { --tone: var(--saffron-ink); }
.tl-year { display: flex; justify-content: center; }
.tl-year span { font-style: italic; font-weight: 300; font-size: 44px; line-height: 1; color: var(--tone); }
.tl-photo {
  --frame: var(--cobalt);
  --tint: #E4E8F3;
  width: min(100%, 260px);
  margin: 0;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}
.tl-photo::before {
  content: '';
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;
  background: var(--photo) center / cover no-repeat, var(--tint);
  box-shadow: inset 0 0 0 9px var(--blush), inset 0 0 0 10px var(--frame);
}
.tl-her { --frame: var(--raspberry); --tint: #F3E2E9; }
.tl-us { --frame: var(--clay); --tint: #F6E5DC; }
.tl-us { width: min(100%, 420px); }
.tl-us::before { aspect-ratio: 5 / 4; }
.tl-row:nth-child(4) .tl-us { --frame: var(--gold); --tint: #F5EAD6; }
.tl-photo figcaption { font-style: italic; font-size: 17px; color: var(--muted); }
.tl-finale::before { content: ''; order: -2; width: 1px; height: 56px; background: var(--gold); }
.tl-finale .tl-year span { font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: 0.32em; color: var(--muted); }
.tl-finale-text { font-family: var(--script); font-style: italic; font-weight: 300; font-size: clamp(28px, 3.2vw, 40px); color: var(--raspberry); }

/* ---------- game ---------- */

.game-frame {
  margin-top: 48px;
  width: min(100%, 960px);
  aspect-ratio: 16 / 9;
  padding: 10px;
  border: 1px solid var(--cobalt);
}
.game-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #E6ECE7; }
.game-link { margin-top: 28px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.game-link a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 6px; }

/* ---------- location ---------- */

.chapter .venue { width: min(100%, 1120px); align-items: stretch; gap: 32px; margin-top: 46px; }
.venue-frame { padding: 10px; border: 1px solid var(--emerald); }
.venue-photo { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.venue-info { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px 64px; text-align: left; }
.venue-info .prose { flex: 1 1 420px; max-width: 560px; }
.venue-where { flex: 1 1 300px; max-width: 400px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

/* ---------- footer ---------- */

.footer-body {
  background: var(--plum);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 56px 20px 60px;
  text-align: center;
  font-family: var(--sans);
  border-top: 6px solid;
  border-image: linear-gradient(90deg, var(--sky), var(--lilac), var(--pink), var(--coral), var(--orange), var(--marigold)) 1;
}
.gold-mark { color: var(--marigold); }
.footer-date { font-size: 12px; letter-spacing: 0.24em; color: #CDBFD8; }
.footer-sign { font-family: var(--script); font-style: italic; font-weight: 500; font-size: 26px; color: #FFF1F5; }

/* ---------- motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s ease-out, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-visible { opacity: 1; transform: translateY(0); }

@keyframes bubble-rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  8% { opacity: 0.9; }
  50% { transform: translateY(-55vh) translateX(18px); }
  92% { opacity: 0.7; }
  100% { transform: translateY(-110vh) translateX(-10px); opacity: 0; }
}
@keyframes grow { from { opacity: 0; transform: translateY(26px) scale(0.72); } to { opacity: 1; transform: none; } }
@keyframes sway { 0%, 100% { transform: rotate(-1.2deg) translateY(0); } 50% { transform: rotate(1.2deg) translateY(-5px); } }
.cursor-bubbles { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.cursor-bubble {
  position: absolute;
  display: block;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95) 0 8%, rgba(255, 255, 255, 0.1) 32%, rgba(255, 255, 255, 0) 45%),
    conic-gradient(from 210deg, rgba(143, 184, 232, 0.4), rgba(183, 156, 224, 0.35), rgba(232, 64, 122, 0.25), rgba(246, 185, 66, 0.3), rgba(143, 184, 232, 0.4));
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.6);
  animation: cursor-bubble-float 3s ease-out forwards;
}
@keyframes cursor-bubble-float {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  10% { opacity: 0.95; transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 0.8; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--drift)), calc(-50% + var(--rise))) scale(1.1); }
}
@keyframes rise-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- envelope ---------- */

.sealed { overflow: hidden; }
.sealed .hero * { animation-play-state: paused; }

.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  width: 100%;
  border: 0;
  padding: 0;
  font: inherit;
  background: radial-gradient(120% 90% at 50% 40%, var(--card) 0%, var(--paper) 55%, #FDE9E1 100%);
  perspective: 1400px;
}
.envelope-screen:focus-visible { outline: none; }
.envelope {
  --w: min(86vw, 620px);
  position: relative;
  width: var(--w);
  height: calc(var(--w) * 0.66);
  filter: drop-shadow(0 24px 40px rgba(43, 34, 51, 0.16));
}
.envelope > span { position: absolute; }
.env-back { inset: 0; background: #F4CFC3; border-radius: 6px; }
.env-card {
  left: 5%;
  right: 5%;
  top: 6%;
  height: 88%;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  background: var(--card);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(43, 34, 51, 0.08);
}
.env-names { font-size: clamp(26px, 6vw, 48px); color: var(--ink); }
.env-names .amp { color: var(--pink); font-style: italic; }
.env-date { font-family: var(--sans); font-size: clamp(10px, 1.8vw, 13px); letter-spacing: 0.28em; color: var(--muted); }
.env-pocket {
  inset: 0;
  z-index: 2;
  background: #FBE3DA;
  border-radius: 6px;
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
}
.env-pocket::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #F9DBD0;
  clip-path: polygon(0 100%, 50% 48%, 100% 100%);
}
.env-to {
  left: 0;
  right: 0;
  bottom: 13%;
  z-index: 2;
  font-style: italic;
  font-size: clamp(18px, 3.6vw, 28px);
  color: var(--ink);
}
.env-flap {
  left: 0;
  right: 0;
  top: 0;
  height: 62%;
  z-index: 3;
  background: linear-gradient(to bottom, #FCE6DE, #F8D8CD 60%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
}
.env-seal {
  left: 50%;
  top: 62%;
  z-index: 4;
  width: clamp(54px, 11vw, 78px);
  aspect-ratio: 1;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F2698F, var(--pink) 55%, #B92D5E);
  box-shadow: 0 4px 10px rgba(185, 45, 94, 0.35), inset 0 0 0 4px rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: clamp(14px, 2.8vw, 20px);
  letter-spacing: 0.12em;
  transition: scale 0.25s;
}
.envelope-screen:hover .env-seal, .envelope-screen:focus-visible .env-seal { scale: 1.08; }
.env-hint {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  animation: envelope-hint 2.4s ease-in-out infinite;
}

.envelope-screen.open { animation: envelope-reveal 0.7s 1.95s ease-in-out forwards; }
.open .env-hint { animation: envelope-fade 0.3s forwards; }
.open .env-seal { animation: envelope-seal 0.45s cubic-bezier(0.5, 0, 0.75, 0) forwards; }
.open .env-flap { animation: envelope-flap 0.75s 0.3s cubic-bezier(0.45, 0, 0.25, 1) forwards; }
.open .env-card {
  animation:
    envelope-card-out 0.8s 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    envelope-card-grow 0.9s 1.75s ease-in forwards;
}
.open .env-back, .open .env-pocket, .open .env-to { animation: envelope-drop 0.7s 1.6s ease-in forwards; }

@keyframes envelope-hint { 50% { opacity: 0.45; } }
@keyframes envelope-fade { to { opacity: 0; } }
@keyframes envelope-seal { 30% { scale: 1.15; } to { scale: 0.2; opacity: 0; } }
@keyframes envelope-flap { 49% { z-index: 3; } 51% { z-index: 0; } to { transform: rotateX(180deg); z-index: 0; } }
@keyframes envelope-card-out { to { transform: translateY(-58%); } }
@keyframes envelope-card-grow {
  from { transform: translateY(-58%); z-index: 6; }
  to { transform: translateY(-30%) scale(2.4); opacity: 0; z-index: 6; }
}
@keyframes envelope-drop { to { transform: translateY(50vh); opacity: 0; } }
@keyframes envelope-reveal { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .bubble { display: none; }
  .arch .seg { animation: none; }
  .env-hint { animation: none; }
  .envelope-screen.open, .envelope-screen.open * { animation-delay: 0s !important; }
}

/* ---------- rsvp form ---------- */

#rsvp h2 { color: var(--paper); }
#rsvp .prose { color: #F3E3E8; max-width: 600px; }
.rsvp-code { display: flex; gap: 20px 28px; flex-wrap: wrap; justify-content: center; align-items: flex-end; margin-top: 16px; }
.rsvp-code input {
  font: inherit;
  font-size: 22px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--paper);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  min-width: 280px;
}
.rsvp-code input::placeholder { color: rgba(251, 246, 238, 0.72); }
.rsvp-code input:focus { outline: 2px solid var(--tone); outline-offset: 4px; }
.rsvp-error { color: var(--tone); font-style: italic; font-size: 18px; }

.rsvp-invitation {
  margin-top: 30px;
  width: min(100%, 620px);
  text-align: left;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(24px, 4vw, 44px);
}
.rsvp-invitation h3 {
  font-family: var(--script);
  font-style: italic;
  font-weight: 400;
  font-size: 34px;
  text-align: center;
  margin-bottom: 22px;
  color: var(--raspberry);
}
.rsvp-guest {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.rsvp-guest-name { font-size: 20px; }
.rsvp-guest-name .rsvp-child { font-style: italic; font-size: 15px; color: var(--muted); }
.rsvp-choice { display: flex; flex-wrap: wrap; gap: 12px 22px; font-family: var(--sans); font-size: 13px; letter-spacing: 0.06em; }
.rsvp-choice label { display: flex; align-items: center; gap: 7px; cursor: pointer; color: var(--ink); }
.rsvp-choice input { accent-color: var(--raspberry); width: 16px; height: 16px; }
.rsvp-block { border-top: 1px solid var(--line); padding: 18px 0; display: grid; gap: 12px; }
.rsvp-block-title { font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.rsvp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rsvp-chips label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.rsvp-chips label:has(input:checked) { border-color: var(--raspberry); background: #F6E3EA; }
.rsvp-chips input { accent-color: var(--raspberry); width: 15px; height: 15px; margin: 0; }
.rsvp-submit { margin-top: 22px; text-align: center; }
.rsvp-saved { margin-top: 14px; text-align: center; font-style: italic; color: var(--emerald); }
.rsvp-saved.rsvp-failed { color: var(--clay); }

@media (max-width: 720px) {
  .hero { min-height: 100svh; padding-bottom: 72px; }
  .nav { order: 0; padding: 22px 20px; gap: 10px 16px; }
  .nav-links { gap: 0 14px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.14em; }
  .arch-wrap {
    order: 1;
    position: relative;
    inset: auto;
    height: 150vw;
    margin: -6vw 0 -96vw;
  }
  .hero-content { order: 2; gap: 18px; padding-top: 0; margin: auto 0; }
  .eyebrow { font-size: 24px; }
  .button { padding: 16px 28px; letter-spacing: 0.14em; }
  .chapter .schedule { --time: 56px; }
  .stop-time { font-size: 20px; }
}

@media (max-width: 720px) {
  .timeline { gap: 40px; }
  .timeline .tl-row { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .tl-row .tl-year { order: -1; }
}
