:root {
  --primary: #7657ff;
  --accent: #9df5ff;
  --highlight: #ff917d;
  --ink: #17131f;
  --paper: #fffaf2;
  --line: color-mix(in srgb, currentColor 16%, transparent);
  --radius-lg: 2.4rem;
  --radius-md: 1.4rem;
  --display: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: .7rem;
  left: .7rem;
  z-index: 10000;
  transform: translateY(-200%);
  padding: .7rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #111;
}
.skip-link:focus { transform: translateY(0); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 1.8rem; height: 2px; background: currentColor; }

.button {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 .7rem 1.8rem rgba(0,0,0,.15); }
.button:active { transform: translateY(0) scale(.98); }
.button--light { background: #fff; color: #17131f; }
.button--ghost { border-color: currentColor; background: transparent; color: inherit; }
.button--accent { background: var(--accent); color: #12131a; }
.icon-button {
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.invite-intro {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #15101f;
  cursor: pointer;
  transition: visibility 0s linear 1s;
}
.intro-panel {
  position: absolute;
  inset-block: 0;
  width: 51%;
  background: var(--intro-panel, #161025);
  transition: transform .9s cubic-bezier(.72,0,.2,1);
}
.intro-panel--left { left: 0; border-right: 1px solid rgba(255,255,255,.12); }
.intro-panel--right { right: 0; border-left: 1px solid rgba(255,255,255,.12); }
.intro-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(90vw, 34rem);
  padding: 2.2rem;
  text-align: center;
  transition: opacity .35s ease, transform .35s ease;
}
.intro-orbit {
  display: grid;
  width: 8.4rem;
  height: 8.4rem;
  margin-bottom: 1.8rem;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  animation: intro-spin 12s linear infinite;
}
.intro-orbit::before, .intro-orbit::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(255,255,255,.28);
  border-radius: 50%;
}
.intro-orbit::before { width: 6.4rem; height: 6.4rem; }
.intro-orbit::after { width: 10.4rem; height: 10.4rem; }
.intro-orbit span { font-size: 2.4rem; animation: intro-spin 12s linear infinite reverse; }
.intro-content h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 10vw, 5.7rem);
  letter-spacing: -.07em;
  line-height: .9;
}
.intro-content p { max-width: 24rem; margin: 1.2rem 0 1.8rem; color: rgba(255,255,255,.72); line-height: 1.6; }
.intro-tap {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.intro-tap i { display: block; width: .65rem; height: .65rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 .45rem color-mix(in srgb, var(--accent) 20%, transparent); animation: pulse 1.8s ease infinite; }
.invite-intro.is-opening .intro-content { opacity: 0; transform: scale(.92); }
.invite-intro.is-opening .intro-panel--left { transform: translateX(-101%); }
.invite-intro.is-opening .intro-panel--right { transform: translateX(101%); }
.invite-intro.is-open { visibility: hidden; pointer-events: none; transition: none; }
body:not(.invite-opened) { overflow: hidden; }

.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem clamp(1rem, 4vw, 4rem);
  color: #fff;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--display); font-size: .82rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border: 1px solid rgba(255,255,255,.52); border-radius: 50%; background: rgba(0,0,0,.12); backdrop-filter: blur(10px); }
.nav-actions { display: flex; gap: .5rem; }
.nav-actions .button { min-height: 2.75rem; padding: .65rem 1rem; font-size: .78rem; }

.hero {
  position: relative;
  min-height: min(960px, 100svh);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #181020;
}
.hero-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-inner {
  display: grid;
  width: min(1180px, calc(100% - 2rem));
  min-height: inherit;
  margin: auto;
  align-content: center;
  justify-items: center;
  padding: 7.5rem 0 3rem;
  text-align: center;
}
.hero-kicker {
  margin: 0 0 1.1rem;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.hero-title {
  max-width: 10ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 14vw, 10.8rem);
  letter-spacing: -.085em;
  line-height: .76;
  text-wrap: balance;
}
.hero-title small {
  display: block;
  margin-bottom: .5rem;
  font-family: var(--body);
  font-size: .11em;
  font-weight: 900;
  letter-spacing: .25em;
  line-height: 1;
  text-transform: uppercase;
}
.hero-age {
  display: inline-flex;
  margin-top: 1.1rem;
  align-items: center;
  gap: .65rem;
  padding: .6rem .85rem;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(0,0,0,.14);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}
.hero-age::before { content: "✦"; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-top: 2rem; }
.scroll-note { position: absolute; bottom: 1.25rem; left: 50%; display: grid; gap: .4rem; justify-items: center; transform: translateX(-50%); font-size: .63rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.scroll-note::after { content: ""; width: 1px; height: 1.6rem; background: currentColor; animation: scroll-line 1.8s ease-in-out infinite; transform-origin: top; }

.marquee { overflow: hidden; padding: .82rem 0; background: var(--accent); color: #15111b; font-family: var(--display); font-size: clamp(.75rem, 1.4vw, 1rem); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-1deg) scale(1.02); }
.marquee-track { display: flex; width: max-content; animation: marquee 24s linear infinite; }
.marquee-track span { padding-inline: 1.5rem; }

.section { position: relative; padding: clamp(5rem, 10vw, 9rem) clamp(1rem, 5vw, 5rem); }
.section-inner { width: min(1120px, 100%); margin: auto; }
.section-heading { max-width: 48rem; margin-bottom: clamp(2.4rem, 6vw, 4rem); }
.section-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(3rem, 8vw, 6.8rem); letter-spacing: -.065em; line-height: .9; text-wrap: balance; }
.section-heading p { max-width: 38rem; margin: 1.25rem 0 0; font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.75; }

.countdown-section { overflow: hidden; text-align: center; }
.countdown-section .section-heading { margin-inline: auto; }
flip-countdown { display: grid; width: min(100%, 58rem); margin-inline: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 3vw, 2.4rem); }
.count-unit { position: relative; display: grid; min-width: 0; gap: .75rem; justify-items: center; }
.count-unit + .count-unit::before { content: ""; position: absolute; top: 8%; bottom: 20%; left: calc(clamp(.75rem, 3vw, 2.4rem) / -2); width: 1px; background: var(--line); opacity: .7; }
.flip-countdown-container { display: flex; gap: .2rem; }
.flip-unit { perspective: 600px; }
.flip-card {
  display: grid;
  min-width: clamp(2rem, 7vw, 4.6rem);
  aspect-ratio: .72;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: clamp(.55rem, 1.4vw, 1rem);
  background: var(--flip-card-bg, rgba(255,255,255,.1));
  box-shadow: inset 0 -1.2rem 1.8rem rgba(0,0,0,.08), 0 .7rem 2rem rgba(0,0,0,.08);
  color: var(--flip-card-text, inherit);
  font-family: var(--display);
  font-size: clamp(1.6rem, 6vw, 4.25rem);
  font-weight: 900;
  line-height: 1;
}
.count-label { font-size: clamp(.55rem, 1.4vw, .73rem); font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }

.details-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.detail-card { position: relative; min-height: 14rem; overflow: hidden; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius-md); }
.detail-card:nth-child(1) { grid-column: span 5; }
.detail-card:nth-child(2) { grid-column: span 3; }
.detail-card:nth-child(3) { grid-column: span 4; }
.detail-card .detail-no { display: flex; justify-content: space-between; font-size: .67rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.detail-card h3 { max-width: 12ch; margin: 3rem 0 .5rem; font-family: var(--display); font-size: clamp(1.7rem, 4vw, 3rem); letter-spacing: -.045em; line-height: 1; }
.detail-card p { max-width: 26rem; margin: .4rem 0; line-height: 1.55; }
.detail-icon { position: absolute; right: 1rem; bottom: .5rem; color: var(--accent); font-family: var(--display); font-size: 5.5rem; line-height: 1; opacity: .45; }

.moments-grid { display: block; max-width: 900px; margin-inline: auto; }
.moment-card { position: sticky; top: calc(2rem + var(--stack-index, 0) * 1.35rem); width: min(100%, 760px); margin: 0 0 8rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.45); transform-origin: 50% 12%; transition: filter .45s ease, box-shadow .45s ease; will-change: transform, opacity; }
.moment-card.is-stacked { filter: saturate(calc(1 - var(--stack-progress, 0) * .2)) brightness(calc(1 - var(--stack-progress, 0) * .08)); }
.moment-card:nth-child(2) { margin-left: auto; }
.moment-card img, .moment-art { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.moment-art { position: relative; display: grid; overflow: hidden; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 65%, #fff), color-mix(in srgb, var(--accent) 50%, #fff)); }
.moment-art::before, .moment-art::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.55); border-radius: 42% 58% 65% 35%; animation: float 8s ease-in-out infinite; }
.moment-art::after { width: 42%; border-radius: 50%; background: rgba(255,255,255,.12); animation-delay: -3s; }
.moment-art span { position: relative; z-index: 1; font-size: 5rem; filter: drop-shadow(0 .6rem .8rem rgba(0,0,0,.15)); }
.moment-copy { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.2rem; align-items: baseline; }
.moment-copy span { font-size: .66rem; font-weight: 900; letter-spacing: .12em; }
.moment-copy p { margin: 0; font-family: var(--display); font-size: 1.2rem; font-weight: 800; line-height: 1.15; }

.message-section { text-align: center; }
.message-mark { display: grid; width: 5rem; height: 5rem; margin: 0 auto 2rem; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 1.8rem; }
.message-section blockquote { max-width: 15ch; margin: 0 auto; font-family: var(--display); font-size: clamp(2.6rem, 7.8vw, 6.4rem); font-weight: 800; letter-spacing: -.06em; line-height: .95; text-wrap: balance; }
.message-section cite { display: block; margin-top: 1.7rem; font-style: normal; font-weight: 800; }

.save-date-section { overflow: hidden; text-align: center; }
.save-date-section .section-heading { margin-inline: auto; }
.scratch-date-grid { display: grid; max-width: 780px; margin: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.6rem, 2vw, 1rem); }
.scratch-card {
  position: relative;
  display: grid;
  aspect-ratio: .86;
  place-items: center;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--paper) 80%, #fff);
  box-shadow: 0 1rem 3rem rgba(0,0,0,.08);
  isolation: isolate;
}
.scratch-card::before { content: ""; position: absolute; inset: .7rem; border: 1px solid currentColor; border-radius: calc(var(--radius-md) * .7); opacity: .16; }
.scratch-reveal { display: grid; justify-items: center; gap: .55rem; padding: .7rem; }
.scratch-reveal strong { max-width: 100%; font-family: var(--display); font-size: clamp(2.2rem, 7vw, 5.4rem); letter-spacing: -.06em; line-height: .8; white-space: nowrap; }
.scratch-reveal span { font-size: .62rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.scratch-card canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border-radius: inherit; cursor: crosshair; touch-action: none; transition: opacity .45s ease; }
.scratch-card.is-scratched { border-color: var(--primary); box-shadow: 0 1.2rem 3.5rem color-mix(in srgb, var(--primary) 18%, transparent); }
.scratch-hint { margin: 1.4rem 0 0; font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.confetti-burst { position: absolute; top: 50%; left: 50%; z-index: 6; pointer-events: none; }
.confetti-burst i { position: absolute; width: 9px; height: 14px; border-radius: 2px; background: var(--c); animation: confetti-pop 1.55s cubic-bezier(.16,.72,.2,1) var(--d) both; }

.map-section { overflow: hidden; }
.map-layout { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--paper) 80%, #fff); box-shadow: 0 1.6rem 5rem rgba(0,0,0,.09); }
.map-copy { display: flex; min-height: 31rem; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(1.5rem, 5vw, 4rem); }
.map-copy h2 { max-width: 9ch; margin: 0; font-family: var(--display); font-size: clamp(2.7rem, 6vw, 5.4rem); letter-spacing: -.065em; line-height: .88; }
.map-copy h3 { margin: 1.7rem 0 .5rem; font-family: var(--display); font-size: 1.35rem; }
.map-copy > p:not(.eyebrow) { max-width: 27rem; margin: 0 0 1.4rem; line-height: 1.65; opacity: .72; }
.map-frame-wrap { position: relative; min-height: 31rem; overflow: hidden; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: color-mix(in srgb, var(--accent) 25%, #ddd); }
.map-frame-wrap iframe { width: 100%; height: 100%; min-height: 31rem; border: 0; filter: saturate(.78) contrast(.92); }
.map-pin { position: absolute; right: 1rem; bottom: 1rem; display: flex; align-items: center; gap: .55rem; padding: .65rem .8rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .67rem; font-weight: 900; box-shadow: 0 .6rem 2rem rgba(0,0,0,.22); pointer-events: none; }

.rsvp-section { padding-top: 0; }
.rsvp-card { position: relative; overflow: hidden; padding: clamp(2rem, 7vw, 5rem); border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.rsvp-card::after { content: "✦"; position: absolute; top: -4rem; right: 2rem; color: var(--accent); font-size: 15rem; line-height: 1; opacity: .13; }
.rsvp-card h2 { max-width: 10ch; margin: 0; font-family: var(--display); font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -.07em; line-height: .84; }
.rsvp-card p { max-width: 35rem; margin: 1.4rem 0 2rem; color: rgba(255,255,255,.72); line-height: 1.7; }
.rsvp-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.site-footer { display: grid; padding: 1.5rem clamp(1rem, 4vw, 4rem) 2rem; place-items: center; border-top: 1px solid var(--line); }
.lovesolutions-credit { display: block; width: min(15rem, 54vw); border-radius: 1rem; transition: transform .25s ease, filter .25s ease; }
.lovesolutions-credit:hover { filter: drop-shadow(0 .65rem 1rem rgba(0,0,0,.15)); transform: translateY(-3px) scale(1.02); }
.lovesolutions-credit img { display: block; width: 100%; height: auto; }

.music-player { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 80; display: grid; width: 4.25rem; height: 4.25rem; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: color-mix(in srgb, var(--primary) 82%, #111); color: #fff; box-shadow: 0 .8rem 2.2rem rgba(0,0,0,.25); cursor: pointer; isolation: isolate; }
.music-player::before, .music-player::after { content: ""; position: absolute; inset: -.35rem; z-index: -1; border: 1px solid color-mix(in srgb, var(--accent) 75%, white); border-radius: inherit; opacity: .55; animation: music-ring 2.2s ease-out infinite; }
.music-player::after { animation-delay: 1.1s; }
.music-player__bars { display: flex; height: 1.35rem; align-items: center; gap: .16rem; }
.music-player__bars i { display: block; width: .18rem; height: 35%; border-radius: 999px; background: currentColor; }
.music-player.is-playing .music-player__bars i { animation: music-bar .72s ease-in-out infinite alternate; }
.music-player.is-playing .music-player__bars i:nth-child(2) { animation-delay: -.25s; }
.music-player.is-playing .music-player__bars i:nth-child(3) { animation-delay: -.48s; }
.music-player.is-playing .music-player__bars i:nth-child(4) { animation-delay: -.12s; }
.music-player__state { position: absolute; right: -.2rem; bottom: -.15rem; display: grid; width: 1.35rem; height: 1.35rem; place-items: center; border-radius: 50%; background: #fff; color: #16131a; font-size: .54rem; }
@keyframes music-bar { to { height: 100%; } }
@keyframes music-ring { 0% { opacity: .55; transform: scale(.82); } 75%,100% { opacity: 0; transform: scale(1.35); } }

dialog {
  width: min(92vw, 35rem);
  max-height: 92vh;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 1.8rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2rem 8rem rgba(0,0,0,.38);
}
dialog::backdrop { background: rgba(13,10,17,.7); backdrop-filter: blur(8px); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.6rem 1.6rem .3rem; }
.dialog-head h2 { margin: 0; font-family: var(--display); font-size: 2.4rem; letter-spacing: -.05em; line-height: .95; }
.dialog-body { display: grid; gap: 1rem; padding: 1.2rem 1.6rem 1.6rem; }
.field { display: grid; gap: .45rem; }
.field span { font-size: .69rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; padding: .9rem 1rem; border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); border-radius: .8rem; outline: 0; background: rgba(255,255,255,.65); color: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.form-success { margin: 0; padding: .8rem; border-radius: .7rem; background: color-mix(in srgb, var(--accent) 45%, white); font-weight: 800; text-align: center; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease var(--delay, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.theme-text-word { display: inline-block; opacity: 0; will-change: transform, opacity, filter; }
.theme-text-animation.is-text-visible .theme-text-word { animation-delay: calc(var(--word-index) * 75ms); animation-fill-mode: both; }
.theme-hero-animation > * { opacity: 0; animation-delay: calc(.18s + var(--word-index) * .14s); animation-fill-mode: both; }

body[data-template="cosmic"] .theme-text-animation.is-text-visible .theme-text-word { animation-name: cosmic-text-launch; animation-duration: .9s; animation-timing-function: cubic-bezier(.16,1,.3,1); }
body.invite-opened[data-template="cosmic"] .theme-hero-animation > * { animation-name: cosmic-hero-orbit; animation-duration: 1.05s; animation-timing-function: cubic-bezier(.16,1,.3,1); }
body[data-template="petal"] .theme-text-animation.is-text-visible .theme-text-word { animation-name: petal-text-bloom; animation-duration: 1.05s; animation-timing-function: cubic-bezier(.2,.75,.2,1); transform-origin: 50% 100%; }
body.invite-opened[data-template="petal"] .theme-hero-animation > * { animation-name: petal-hero-bloom; animation-duration: 1.15s; animation-timing-function: cubic-bezier(.2,.8,.2,1); transform-origin: 50% 100%; }
body[data-template="safari"] .theme-text-animation.is-text-visible .theme-text-word { animation-name: safari-text-stamp; animation-duration: .68s; animation-timing-function: cubic-bezier(.18,.9,.3,1.25); }
body.invite-opened[data-template="safari"] .theme-hero-animation > * { animation-name: safari-hero-stamp; animation-duration: .82s; animation-timing-function: cubic-bezier(.18,.9,.3,1.18); }

@keyframes cosmic-text-launch { 0% { opacity: 0; filter: blur(12px); letter-spacing: .18em; transform: translateY(1.1em) scale(.9) rotate(2deg); } 65% { opacity: 1; filter: blur(0); } 100% { opacity: 1; filter: blur(0); letter-spacing: normal; transform: none; } }
@keyframes cosmic-hero-orbit { 0% { opacity: 0; filter: blur(16px); transform: translate3d(-.3em, .45em, 0) scale(.82) rotate(-4deg); } 100% { opacity: 1; filter: blur(0); transform: none; } }
@keyframes petal-text-bloom { 0% { opacity: 0; filter: blur(9px); transform: translateY(.8em) rotate(-3deg) scale(.72); } 60% { opacity: 1; filter: blur(0); transform: translateY(-.05em) rotate(1deg) scale(1.035); } 100% { opacity: 1; filter: blur(0); transform: none; } }
@keyframes petal-hero-bloom { 0% { opacity: 0; filter: blur(14px); transform: translateY(.35em) scale(.72); } 70% { opacity: 1; filter: blur(0); transform: translateY(-.03em) scale(1.025); } 100% { opacity: 1; filter: blur(0); transform: none; } }
@keyframes safari-text-stamp { 0% { opacity: 0; filter: blur(4px); transform: translate(.14em, .65em) scale(1.18) rotate(-3deg); } 72% { opacity: 1; filter: blur(0); transform: translate(-.02em, -.03em) scale(.97) rotate(.7deg); } 100% { opacity: 1; filter: none; transform: none; } }
@keyframes safari-hero-stamp { 0% { opacity: 0; filter: blur(6px); transform: translateY(.5em) scale(1.28) rotate(-5deg); } 72% { opacity: 1; filter: blur(0); transform: scale(.97) rotate(1deg); } 100% { opacity: 1; filter: none; transform: none; } }
.smooth-cursor { position: fixed; top: -12px; left: -12px; z-index: 9999; display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--accent); color: #101014; pointer-events: none; opacity: 0; transition: opacity .15s ease, scale .15s ease; will-change: transform; }
.smooth-cursor.is-visible { opacity: 1; }
.smooth-cursor.is-down { scale: .72; }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes intro-spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 .75rem color-mix(in srgb, var(--accent) 5%, transparent); } }
@keyframes scroll-line { 0%,100% { transform: scaleY(.25); opacity: .35; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes float { 50% { transform: translate(8%, -5%) rotate(18deg); } }
@keyframes confetti-pop { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.5) rotate(0); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--r)); } }

@media (max-width: 760px) {
  .site-nav { padding: .9rem 1rem; }
  .nav-actions .button span { display: none; }
  .nav-actions .button { width: 2.75rem; padding: 0; }
  .hero-inner { width: calc(100% - 1.4rem); padding-top: 6.5rem; }
  .hero-title { font-size: clamp(4.3rem, 20vw, 7rem); }
  .section { padding-inline: 1rem; }
  .details-grid { grid-template-columns: 1fr; }
  .detail-card:nth-child(n), .moment-card { grid-column: 1; }
  .moment-card:nth-child(2) { margin-top: 0; }
  .detail-card { min-height: 12rem; }
  .moment-card { top: calc(1rem + var(--stack-index, 0) * 1.15rem); width: 100%; margin: 0 0 3rem; }
  .moment-card:nth-child(1) { --stack-index: 0; }
  .moment-card:nth-child(2) { --stack-index: 1; }
  .moment-card:nth-child(3) { --stack-index: 2; }
  .scratch-date-grid { gap: .45rem; }
  .scratch-card { min-height: 9.3rem; }
  .scratch-reveal strong { font-size: clamp(1.7rem, 8.8vw, 2.8rem); }
  .map-layout { grid-template-columns: 1fr; }
  .map-copy { min-height: auto; padding: 2rem 1.35rem; }
  .map-frame-wrap, .map-frame-wrap iframe { min-height: 25rem; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  flip-countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem 1rem; }
  .count-unit + .count-unit::before { display: none; }
  .count-unit { padding: .65rem .25rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255,255,255,.28); }
  .music-player { width: 3.75rem; height: 3.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .theme-text-word, .theme-hero-animation > * { opacity: 1 !important; filter: none !important; transform: none !important; }
}
html.is-embedded-preview .site-nav,html.is-embedded-preview .site-footer{display:none!important}
.invite-inactive{min-height:100svh;display:grid;place-content:center;justify-items:center;gap:12px;padding:28px;text-align:center;background:radial-gradient(circle at top,#fff,#f5edf7);color:#271c2b}.invite-inactive img{width:min(240px,70vw);height:auto}.invite-inactive p{margin:10px 0 0;font-size:11px;font-weight:900;letter-spacing:.22em;text-transform:uppercase;color:#a33f68}.invite-inactive h1{max-width:680px;margin:0;font-size:clamp(38px,8vw,76px);line-height:1}.invite-inactive span{color:#6c5b70}
