:root {
  --paper: #FFF7EE;
  --blush: #FFEDE8;
  --card: #FFFDFA;
  --ink: #2B2233;
  --muted: #6B5F73;
  --line: #EBD9D6;
  --pink: #E8407A;
  --coral: #FF6B4A;
  --orange: #FF8C42;
  --marigold: #F6B942;
  --lilac: #B79CE0;
  --sky: #8FB8E8;
  --leaf: #4F8A5B;
  --plum: #3A2A4A;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Tenor Sans', 'Trebuchet MS', sans-serif;
  --script: 'Cormorant Garamond', Georgia, serif;
  --silhouette-him: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><rect width='200' height='200' fill='%23FFE9EE'/><circle cx='100' cy='86' r='30' fill='%23F1D6C6'/><path d='M66 82 Q100 30 134 82 Q122 62 100 60 Q78 62 66 82Z' fill='%23B8955A'/><path d='M42 200 Q48 128 100 122 Q152 128 158 200Z' fill='%23E9B5C6'/></svg>");
  --silhouette-her: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><rect width='200' height='200' fill='%23FFE9EE'/><circle cx='100' cy='86' r='30' fill='%23F1D6C6'/><path d='M66 82 Q100 30 134 82 Q122 62 100 60 Q78 62 66 82Z' fill='%236B4A32'/><path d='M42 200 Q48 128 100 122 Q152 128 158 200Z' fill='%23E9B5C6'/></svg>");
  --silhouette-us: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><rect width='200' height='200' fill='%23FFE9EE'/><circle cx='68' cy='86' r='30' fill='%23F1D6C6'/><path d='M34 82 Q68 30 102 82 Q90 62 68 60 Q46 62 34 82Z' fill='%23B8955A'/><path d='M10 200 Q16 128 68 122 Q120 128 126 200Z' fill='%23E9B5C6'/><circle cx='132' cy='86' r='30' fill='%23F1D6C6'/><path d='M98 82 Q132 30 166 82 Q154 62 132 60 Q110 62 98 82Z' fill='%236B4A32'/><path d='M74 200 Q80 128 132 122 Q184 128 190 200Z' fill='%23E9B5C6'/></svg>");
}

* { 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;
}
.eyebrow.gold { color: var(--coral); }

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(30px, 4.5vw, 40px); font-weight: 500; }

.prose {
  font-size: 19px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 640px;
}
.venue-photo {
  width: min(100%, 880px);
  height: auto;
  margin: 8px 0;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(43, 34, 51, 0.16);
}
.address { font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }

.button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 18px 46px;
  border-radius: 999px;
  cursor: pointer;
}
.button-gold {
  border: none;
  background: linear-gradient(120deg, var(--pink), var(--coral));
  color: #fff;
  margin-top: 10px;
  box-shadow: 0 10px 24px rgba(232, 64, 122, 0.28);
}
.button-gold:hover { filter: saturate(1.15) brightness(1.03); }

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

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

.glow {
  position: absolute;
  left: 50%;
  bottom: -10%;
  width: 120vw;
  height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 233, 210, 0.9), rgba(255, 247, 238, 0) 65%);
}

.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);
}

.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(64px, 10vw, 96px) clamp(20px, 6vw, 80px) clamp(60px, 9vw, 90px);
  background: var(--paper);
}
.chapter.tinted { background: var(--blush); }
.chapter .reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.chapter .schedule {
  --time: 88px;
  position: relative;
  display: grid;
  gap: 26px;
  width: 100%;
  max-width: 520px;
  margin-top: 56px;
  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(--sky), var(--lilac), var(--pink), var(--coral), var(--orange), var(--marigold));
  border-radius: 2px;
}
.schedule li {
  display: grid;
  grid-template-columns: var(--time) 36px 1fr;
  column-gap: 18px;
  align-items: center;
}
.schedule .day span {
  grid-column: 3;
  font-style: italic;
  font-size: 24px;
  color: var(--coral);
}
.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(--card);
  border: 1.5px solid var(--pink);
  color: var(--pink);
}
.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: 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
  gap: 24px;
  width: 100%;
  max-width: 1100px;
}
.wish {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 34px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--pink);
}
.wish h3 { font-size: 26px; font-weight: 500; color: var(--ink); }
.wish p { font-size: 17px; line-height: 1.65; color: var(--muted); }
.palette {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 6px 0;
  padding: 0;
}
.palette li {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.45), 0 6px 14px rgba(43, 34, 51, 0.12);
}
.palette span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.timeline {
  list-style: none;
  position: relative;
  width: min(100%, 900px);
  margin-top: 56px;
  padding: 8px 0;
  display: grid;
  gap: 56px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--sky), var(--lilac), var(--pink), var(--coral), var(--orange), var(--marigold));
  opacity: 0.6;
}
.timeline .tl-row {
  display: grid;
  grid-template-columns: 1fr 110px 1fr;
  align-items: start;
  gap: 24px;
  position: relative;
}
.timeline .tl-together, .timeline .tl-finale { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
.tl-year { display: flex; justify-content: center; align-self: center; }
.tl-year span {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--paper);
  border: 2px solid var(--pink);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.tl-photo { margin: 0; display: grid; gap: 12px; justify-items: center; text-align: center; }
.tl-photo::before {
  content: '';
  display: block;
  width: min(100%, 260px);
  aspect-ratio: 1;
  border-radius: 30px;
  border: 5px solid transparent;
  background:
    var(--photo) center / cover no-repeat padding-box,
    var(--silhouette) center / cover no-repeat padding-box,
    linear-gradient(135deg, var(--sky), var(--lilac), var(--pink), var(--coral), var(--marigold)) border-box;
  box-shadow: 0 18px 40px rgba(58, 42, 74, 0.14);
}
.tl-him::before { --silhouette: var(--silhouette-him); }
.tl-her::before { --silhouette: var(--silhouette-her); }
.tl-us::before { --silhouette: var(--silhouette-us); width: min(100%, 320px); }
.tl-photo figcaption { font-style: italic; font-size: 17px; color: var(--muted); max-width: 280px; }
.tl-finale-text { font-family: var(--script); font-style: italic; font-size: 30px; color: var(--pink); }

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

.game-frame {
  margin-top: 48px;
  width: min(100%, 1100px);
  aspect-ratio: 16 / 9;
  padding: 6px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--sky), var(--lilac), var(--pink), var(--orange), var(--marigold));
  box-shadow: 0 24px 60px rgba(232, 64, 122, 0.18);
}
.game-frame iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 13px; background: #DCE8DF; }
.game-link { margin-top: 22px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }

/* ---------- 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-code { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.rsvp-code input {
  font: inherit;
  font-size: 17px;
  padding: 14px 20px;
  border: 1.5px solid var(--lilac);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  min-width: 260px;
}
.rsvp-code input:focus { outline: 2px solid var(--pink); outline-offset: 2px; }
.rsvp-error { color: var(--coral); font-style: italic; font-size: 17px; }

.rsvp-invitation {
  margin-top: 26px;
  width: min(100%, 620px);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 22px 50px rgba(58, 42, 74, 0.10);
}
.rsvp-invitation h3 {
  font-family: var(--script);
  font-style: italic;
  font-weight: 500;
  font-size: 34px;
  text-align: center;
  margin-bottom: 22px;
  color: var(--pink);
}
.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(--pink); width: 16px; height: 16px; }
.rsvp-block { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px; 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: 1.5px solid var(--line);
  border-radius: 999px;
  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(--pink); background: #FFE9EE; }
.rsvp-chips input { accent-color: var(--pink); 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(--leaf); }
.rsvp-saved.rsvp-failed { color: var(--coral); }

@media (max-width: 720px) {
  .hero { min-height: 100svh; padding-bottom: 72px; }
  .nav { order: 0; padding: 22px 20px; gap: 10px 16px; }
  .nav-links { gap: 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::before { display: none; }
  .timeline { gap: 40px; }
  .timeline .tl-row { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .tl-row .tl-year { order: -1; }
}
