/* ═══════════════════════════════════════════════════════
   Priyanka Kolhe weds Pranav Patil — wedding invitation
   Deep violet lettering, champagne gold details, and warm ivory paper.
   ═══════════════════════════════════════════════════════ */
:root {
  --cream: #fbf7f0;
  --cream-deep: #f0e8f2;
  --paper: #fffdf9;
  --violet: #49305f;
  --violet-rgb: 73, 48, 95;
  --violet-deep: #352046;
  --gold: #d8be8a;
  --gold-rgb: 216, 190, 138;
  --gold-light: #f1dbad;
  --gold-deep: #765a32;
  --gold-soft: #f2e5cc;
  --ink: #302639;
  --muted: #665b6d;
  --line: rgba(var(--gold-rgb), .42);
  --shadow: 0 18px 40px -22px rgba(73, 48, 95, .38);

  --script: 'Great Vibes', 'Brush Script MT', cursive;
  --caps: 'Cinzel', 'Times New Roman', serif;
  --body: 'Cormorant Garamond', Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --col: 560px;
}

:root[data-invite-theme="violet"] { --invite-shade: 40, 19, 58; }
:root[data-invite-theme="indigo"] {
  --cream: #f2f3fa;
  --cream-deep: #e2e6f6;
  --paper: #fcfcff;
  --violet: #283862;
  --violet-rgb: 40, 56, 98;
  --violet-deep: #1b294a;
  --ink: #242c46;
  --muted: #545d79;
  --shadow: 0 18px 40px -22px #26345966;
  --invite-shade: 13, 29, 66;
}
:root[data-invite-theme="burgundy"] {
  --cream: #fdf5ee;
  --cream-deep: #f4e2df;
  --paper: #fffaf6;
  --violet: #732c43;
  --violet-rgb: 115, 44, 67;
  --violet-deep: #541e31;
  --ink: #40252d;
  --muted: #6f515a;
  --shadow: 0 18px 40px -22px #541e3166;
  --invite-shade: 70, 15, 34;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.locked, html.locked body { overflow: hidden; height: 100%; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

/* ─────────── shared bits ─────────── */
.section { position: relative; padding: clamp(64px, 16vw, 104px) 20px; text-align: center; }
.section > * { max-width: var(--col); margin-left: auto; margin-right: auto; }

.script, .script-title { font-family: var(--script); font-weight: 400; color: var(--violet); line-height: 1.15; }
.script-title { font-size: clamp(44px, 12.500vw, 64px); margin-bottom: 28px; }
/* a small gold flourish crowns every section title */
.section > .script-title::before {
  content: ''; display: block; width: 132px; height: 26px; margin: 0 auto 16px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 26'%3E%3Cg fill='none' stroke='%23d8be8a' stroke-width='1.200' stroke-linecap='round'%3E%3Cpath d='M4 13h36M92 13h36'/%3E%3Cpath d='M40 13c7-10 16-10 18 0c-2 10-11 10-18 0zM92 13c-7-10-16-10-18 0c2 10 11 10 18 0z'/%3E%3Ccircle cx='8' cy='13' r='1.800' fill='%23d8be8a'/%3E%3Ccircle cx='124' cy='13' r='1.800' fill='%23d8be8a'/%3E%3C/g%3E%3Cpath d='M66 5l5.500 8-5.500 8-5.500-8z' fill='%23d8be8a'/%3E%3C/svg%3E");
}
.caps-title { font-family: var(--caps); font-weight: 400; font-size: clamp(20px, 5.6vw, 26px); letter-spacing: .08em; text-transform: uppercase; color: var(--violet); line-height: 1.4; }
.eyebrow { font-family: var(--caps); font-size: 13px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 12px; }
.prose { color: var(--ink); max-width: 34ch !important; }
.prose + .prose { margin-top: 20px; }
.prose.small { font-size: 16px; font-style: italic; color: var(--muted); }

.card {
  position: relative; background: linear-gradient(180deg, var(--paper), #f9f3f8);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.card::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(var(--gold-rgb), .28); border-radius: 13px; pointer-events: none; }

/* gold rule with a diamond */
.rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px auto 16px; }
.rule::before, .rule::after { content: ''; width: 54px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.rule::after { transform: scaleX(-1); }
.rule i { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: 1px solid var(--violet);
  background: var(--violet); color: #fbf7f0; text-decoration: none;
  font-family: var(--caps); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -12px rgba(53, 32, 70, .8); }
.btn.ghost { background: var(--paper); color: var(--gold-deep); border-color: var(--line); }
.btn.ghost:hover { background: var(--gold-soft); box-shadow: none; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* botanical corner ornaments + wax seal (drawn by js/florals.js) */
.floral { position: absolute; pointer-events: none; }
.floral svg, .seal svg { display: block; width: 100%; height: 100%; overflow: visible; }
.floral.corner { width: 138px; aspect-ratio: 1; top: -26px; left: -26px; opacity: .95; filter: drop-shadow(0 6px 8px rgba(120, 86, 60, .12)); }
.floral.corner.br { top: auto; left: auto; bottom: -26px; right: -26px; transform: scale(-1, -1); }
.seal { display: block; filter: drop-shadow(0 6px 10px rgba(30, 0, 8, .45)); }

/* ═══════════ OPENING / HERO ═══════════ */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #1f1629; isolation: isolate; }
.hero-blur { position: absolute; inset: -40px; z-index: -1; background: url(../assets/img/venue-blur.webp) center / cover; filter: blur(34px) brightness(.55) saturate(1.1); }
.hero-stage { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; margin: 0 auto; overflow: hidden; background: #1f1629; }
@media (max-aspect-ratio: 9/16) { .hero-stage { aspect-ratio: auto; width: 100%; } .hero-blur { display: none; } }
@media (min-aspect-ratio: 9/16) { .hero-stage { box-shadow: 0 0 80px 10px rgba(0, 0, 0, .55); } }
.hero-still, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.entered .hero-video { visibility: hidden; }
.hero-shade {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease;
  background: linear-gradient(180deg, rgba(var(--invite-shade, 9, 22, 34), .52) 0%, rgba(var(--invite-shade, 9, 22, 34), .5) 40%, rgba(var(--invite-shade, 9, 22, 34), .15) 69%, rgba(var(--invite-shade, 9, 22, 34), .57) 100%);
}
.hero-title { position: absolute; left: 0; right: 0; top: 7.5%; padding: 0 16px; text-align: center; color: #fff; pointer-events: none; }
.hero-title > *, .hero-title h1 span { opacity: 0; transform: translateY(22px); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); }
.hero-title h1 { opacity: 1; transform: none; font-weight: 400; display: flex; flex-direction: column; align-items: center; margin: 10px 0 14px; }
.hero-bless {
  display: grid;
  place-items: center;
  width: clamp(78px, 18vw, 118px);
  margin: 0 auto;
}
.hero-bless img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}
.hero-title .n { font-family: var(--script); font-size: clamp(54px, 17vw, 92px); line-height: 1.02; text-shadow: 0 3px 22px rgba(0, 0, 0, .6), 0 1px 2px rgba(0, 0, 0, .4); padding: 0 .1em; }
.hero-title .w { font-family: var(--caps); font-size: clamp(15px, 4.4vw, 19px); letter-spacing: .5em; text-transform: uppercase; padding-left: .5em; margin: .65em 0 6px; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.hero-date {
  font-family: var(--caps);
  font-size: clamp(17px, 4.9vw, 24px);
  font-weight: 600;
  letter-spacing: .22em;
  line-height: 1.3;
  text-transform: uppercase;
}
.opening-date {
  display: inline-block;
  color: #ffde87;
  font-weight: 600;
  filter: drop-shadow(0 2px 2px #1d1108) drop-shadow(0 0 6px rgb(255 198 75 / 46%));
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  @media (prefers-reduced-motion: no-preference) {
    .opening-date {
      background-image: linear-gradient(105deg, #ffde87 39%, #fff8d8 49%, #fff7ce 51%, #ffde87 61%);
      background-size: 300% 100%;
      background-position: 100% 50%;
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      animation: opening-date-glimmer 5s ease-in-out infinite;
    }
  }
}
@keyframes opening-date-glimmer {
  0%, 20% { background-position: 100% 50%; }
  72%, 100% { background-position: 0% 50%; }
}
.scroll-cue {
  position: absolute; left: 50%; bottom: max(26px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none;
  font-family: var(--caps); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light); white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .8); opacity: 0; transition: opacity 1.2s ease 1.6s;
}
.scroll-cue i { font-style: normal; font-size: 24px; line-height: 1; color: #fff; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(8px); } }

/* the dimmed "tap to begin" cover */
.gate {
  position: absolute; inset: 0; z-index: 3; border: 0; padding: 0 20px; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(ellipse at 50% 45%, rgba(var(--invite-shade, 26, 16, 37), .52), rgba(var(--invite-shade, 26, 16, 37), .78));
  color: #fff; -webkit-tap-highlight-color: transparent;
  transition: opacity .9s ease, visibility 0s .9s;
}
.gate-text { font-family: var(--caps); font-size: clamp(20px, 6vw, 26px); letter-spacing: .26em; text-transform: uppercase; padding-left: .26em; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .62; } }
.gate-logo { width: clamp(190px, 58vw, 260px); height: auto; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .65)); transition: transform .9s var(--ease), opacity .7s ease; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.05); } }
.gate-sub { text-align: center; font-family: var(--caps); font-size: clamp(10px, 3vw, 12px); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); }
.skip {
  position: absolute; z-index: 4; top: max(18px, env(safe-area-inset-top)); right: 16px;
  padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(241, 219, 173, .7); background: rgba(20, 10, 6, .55);
  font-family: var(--caps); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

body.begun .gate { opacity: 0; visibility: hidden; pointer-events: none; }
body.begun .gate .gate-logo { transform: scale(1.4); opacity: 0; animation: none; }
body.entered .hero-shade { opacity: 1; }
body.entered .hero-title > *, body.entered .hero-title h1 span { opacity: 1; transform: none; }
body.entered .hero-title h1 span:nth-child(1) { transition-delay: .5s; }
body.entered .hero-title h1 span:nth-child(2) { transition-delay: .95s; }
body.entered .hero-title h1 span:nth-child(3) { transition-delay: 1.3s; }
body.entered .hero-bless { transition-delay: .2s; }
body.entered .hero-date { transition-delay: 1.8s; }
body.entered .hero-date .opening-date { animation-delay: 1.8s; }
body.entered .scroll-cue { opacity: 1; }

/* ═══════════ MUSIC BUTTON (a little record) ═══════════ */
.sound {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; background: none;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .6); transition: transform .25s var(--ease), opacity .3s;
}
.sound:hover { transform: scale(1.08); }
.vinyl {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  background:
    radial-gradient(circle, #f7e7c4 0 5%, var(--gold) 6% 17%, #211729 18% 19%, transparent 20%),
    repeating-radial-gradient(circle, #17111d 0 2px, #2d2335 2px 3px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  position: relative; overflow: hidden;
}
.vinyl::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, transparent 0 12%, rgba(255, 255, 255, .22) 18%, transparent 24% 62%, rgba(255, 255, 255, .16) 68%, transparent 74%); }
.sound[aria-pressed="true"] .vinyl { animation: spin 3.6s linear infinite; }
.sound[aria-pressed="false"] { opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }
html.locked :is(.sound, .petal-btn),
html.no-scroll :is(.sound, .petal-btn) { visibility: hidden; }

#petals { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }

/* ═══════════ THE INVITATION ═══════════ */
.invite { background: linear-gradient(180deg, var(--cream-deep), var(--cream) 30%); }
.invite-card { padding: 46px 24px 96px; overflow: hidden; }
.invite-bless {
  display: block;
  width: clamp(90px, 24vw, 124px);
  height: auto;
  margin: 0 auto;
}
.invite-card .script-title { font-size: clamp(26px, 7.400vw, 44px); margin: 20px 0 10px; white-space: nowrap; }
.invite-text { font-size: 19px; line-height: 1.6; }
.invite-name { font-family: var(--script); font-size: clamp(56px, 16.500vw, 76px); line-height: 1.05; color: var(--violet); margin-top: 14px; }
.invite-rel { font-style: italic; font-size: 16px; color: var(--muted); line-height: 1.3; }
.invite-parents { font-weight: 600; font-size: 18.500px; letter-spacing: .03em; color: var(--gold-deep); line-height: 1.35; }
.invite-with { margin-top: 14px; font-family: var(--caps); font-size: 15px; letter-spacing: .4em; text-transform: uppercase; padding-left: .4em; color: var(--ink); }

/* ═══════════ SCRATCH THE HEART ═══════════ */
.scratch { background: radial-gradient(ellipse 80% 60% at 30% 40%, #fffdf9, var(--cream) 75%); overflow: hidden; }
.scratch::before, .scratch::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image: radial-gradient(circle, var(--gold) 0 2px, transparent 3px), radial-gradient(circle, #d8be8a 0 1.500px, transparent 2.500px), radial-gradient(circle, var(--gold) 0 1px, transparent 2px);
  background-size: 190px 230px, 140px 170px, 97px 120px; background-position: 24px 60px, 90px 20px, 50px 130px;
  animation: drift 14s linear infinite;
}
.scratch::after { opacity: .45; animation-duration: 22s; animation-direction: reverse; background-position: 110px 140px, 30px 90px, 70px 10px; }
@keyframes drift { to { transform: translateY(-40px); } }
.scratch-wrap { position: relative; width: min(78vw, 300px); aspect-ratio: 1 / .94; margin-top: 38px; filter: drop-shadow(0 16px 20px rgba(118, 90, 50, .3)); }
.scratch-heart { position: absolute; inset: 0; clip-path: url(#heart-clip); background: linear-gradient(160deg, #fffdf9, #f3e9db); }
.scratch-date { position: absolute; inset: 0 0 14%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--violet); }
.scratch-date b { font-family: var(--body); font-weight: 500; font-size: clamp(64px, 20vw, 84px); line-height: .9; }
.scratch-date span { font-family: var(--caps); font-size: clamp(15px, 4.6vw, 19px); letter-spacing: .3em; text-transform: uppercase; padding-left: .3em; margin-top: 6px; color: var(--gold-deep); }
.scratch-date i { font-style: normal; font-family: var(--body); font-size: clamp(24px, 7vw, 30px); letter-spacing: .12em; line-height: 1.2; }
#scratch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .9s ease; }
.scratch-wrap.done #scratch-canvas { opacity: 0; pointer-events: none; }
.scratch-wrap.done { animation: pop 0.8s var(--ease); }
@keyframes pop { 40% { transform: scale(1.07); } }
.scratch-hint {
  position: relative; z-index: 1; display: inline-flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 34px;
  background: none; border: 0; padding: 6px 12px;
  font-family: var(--caps); font-size: 14px; letter-spacing: .26em; text-transform: uppercase; color: var(--violet);
}
.scratch-hint svg { width: 26px; height: 26px; animation: nudge 1.6s ease-in-out infinite; }
.scratch-hint.done svg { display: none; }

/* — the heart is alive before, during and after the reveal — */
.scratch-fx { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none !important; pointer-events: none; z-index: 2; }
.scratch-wrap { z-index: 1; }
.scratch-heart { animation: beat 2.600s ease-in-out infinite; }
@keyframes beat { 0%, 38%, 100% { transform: scale(1); } 12% { transform: scale(1.05); } 22% { transform: scale(1.012); } 30% { transform: scale(1.036); } }
.scratch-wrap.scratching .scratch-heart { animation-play-state: paused; }
/* a band of light sweeping across the foil */
.shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .62) 50%, transparent 62%) 120% 0 / 300% 100% no-repeat;
  animation: shine 3.400s ease-in-out infinite;
}
@keyframes shine { 0% { background-position: 120% 0; } 55%, 100% { background-position: -20% 0; } }
.scratch-wrap.done .shine { display: none; }
/* little stars winking around it */
.twinkle { position: absolute; font-style: normal; font-size: 18px; line-height: 1; color: var(--gold); text-shadow: 0 0 8px rgba(216, 190, 138, .9); pointer-events: none; animation: twinkle 2.400s ease-in-out infinite; }
.twinkle.t1 { left: -6%; top: 12%; }
.twinkle.t2 { right: -7%; top: 26%; font-size: 13px; animation-delay: -.8s; }
.twinkle.t3 { left: 5%; bottom: 9%; font-size: 12px; animation-delay: -1.500s; }
.twinkle.t4 { right: 3%; bottom: 15%; font-size: 21px; animation-delay: -.4s; }
.twinkle.t5 { left: 46%; top: -9%; font-size: 14px; animation-delay: -1.900s; }
@keyframes twinkle { 0%, 100% { transform: scale(.3) rotate(0deg); opacity: 0; } 50% { transform: scale(1) rotate(40deg); opacity: 1; } }
/* the reveal: rings of light, the date popping in, then a soft glow that keeps breathing */
.ring { position: absolute; left: 50%; top: 46%; width: 70%; aspect-ratio: 1; margin: -35% 0 0 -35%; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; pointer-events: none; }
.scratch-wrap.done .ring { animation: ring 1.500s cubic-bezier(.2, .7, .2, 1) forwards; }
.scratch-wrap.done .ring.r2 { animation-delay: .28s; border-color: #80559a; }
@keyframes ring { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(2.400); opacity: 0; } }
.scratch-wrap.done { animation: pop .9s var(--ease), glow 3s ease-in-out .9s infinite; }
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 16px 20px rgba(118, 90, 50, .3)) drop-shadow(0 0 0 rgba(216, 190, 138, 0)); }
  50% { filter: drop-shadow(0 16px 20px rgba(118, 90, 50, .3)) drop-shadow(0 0 26px rgba(216, 190, 138, .9)); }
}
.scratch-wrap.done .scratch-date b { animation: date-pop .8s var(--ease) both; }
.scratch-wrap.done .scratch-date span { animation: date-wide 1s var(--ease) .25s both; }
.scratch-wrap.done .scratch-date i { animation: date-rise .8s var(--ease) .5s both; }
@keyframes date-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: none; } }
@keyframes date-wide { from { letter-spacing: -.05em; opacity: 0; } }
@keyframes date-rise { from { transform: translateY(14px); opacity: 0; } }
/* the finger scribbles instead of just nodding */
.scratch-hint svg { animation: scribble 1.800s ease-in-out infinite; }
@keyframes scribble { 0%, 100% { transform: translate(-10px, 0) rotate(-8deg); } 25% { transform: translate(8px, -5px) rotate(4deg); } 50% { transform: translate(-6px, 4px) rotate(-4deg); } 75% { transform: translate(10px, 0) rotate(6deg); } }

/* — countdown: tiles drop in one by one, digits flip, the seconds tile pulses — */
.count-grid b { position: relative; overflow: hidden; perspective: 320px; }
.count-grid b::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(var(--gold-rgb), .2); }
.count-grid b em { display: block; font-style: normal; transform-origin: 50% 0; }
.count-grid b em.flip { animation: flip .55s cubic-bezier(.3, .9, .3, 1.15); }
@keyframes flip { 0% { transform: translateY(-60%) rotateX(85deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.count-grid.in > div { animation: tile-in .8s var(--ease) both; }
.count-grid.in > div:nth-child(2) { animation-delay: .1s; }
.count-grid.in > div:nth-child(3) { animation-delay: .2s; }
.count-grid.in > div:nth-child(4) { animation-delay: .3s; }
@keyframes tile-in { from { transform: translateY(26px) scale(.82); opacity: 0; } }
.count-grid > div:last-child b { animation: tick 1s ease-out infinite; }
@keyframes tick {
  0% { box-shadow: 0 10px 22px -14px rgba(73, 48, 95, .45), 0 0 0 0 rgba(var(--gold-rgb), .5); }
  100% { box-shadow: 0 10px 22px -14px rgba(73, 48, 95, .45), 0 0 0 9px rgba(var(--gold-rgb), 0); }
}

/* ═══════════ COUNTDOWN ═══════════ */
.count { padding-bottom: 30px; }
.count-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(6px, 2.5vw, 12px); max-width: 400px !important; }
.count-grid > div { display: flex; flex-direction: column; gap: 10px; }
.count-grid b {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; background: var(--paper);
  border: 1px solid rgba(var(--gold-rgb), .25); box-shadow: 0 10px 22px -14px rgba(73, 48, 95, .45);
  font-weight: 500; font-size: clamp(28px, 8.4vw, 38px); color: var(--gold-deep); font-variant-numeric: tabular-nums lining-nums;
}
.count-grid span { font-family: var(--caps); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.count-done { font-style: italic; font-size: 24px; color: var(--violet); margin-top: 20px; }

/* ═══════════ MOMENTS — a stack of framed pictures ═══════════ */
.moments { --cw: clamp(220px, 70vw, 340px); padding-left: 0; padding-right: 0; overflow: hidden; padding-top: 30px; }
.moments > * { padding-left: 20px; padding-right: 20px; }
.moments .reel-wrap { max-width: none; padding: 0; position: relative; }
.reel {
  display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 30px calc(50% - var(--cw) / 2) 40px; -webkit-overflow-scrolling: touch;
}
.reel::-webkit-scrollbar { display: none; }
.reel-card {
  position: relative; flex: 0 0 var(--cw); aspect-ratio: 4 / 5; padding: 9px; border: 1px solid var(--line); background: var(--paper);
  border-radius: 12px; overflow: hidden; scroll-snap-align: center; will-change: transform;
  box-shadow: 0 22px 36px -22px rgba(73, 48, 95, .6);
}
.reel-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.reel-card .cap { position: absolute; left: 9px; right: 9px; bottom: 9px; padding: 34px 14px 12px; border-radius: 0 0 5px 5px; text-align: left; color: #fff; font-size: 21px; line-height: 1.15; background: linear-gradient(to top, rgba(40, 20, 12, .8), transparent); }
.reel-card .cap small { display: block; font-family: var(--caps); font-size: 9.500px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 2px; }
.reel-card .play {
  position: absolute; left: 50%; top: 44%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%;
  background: rgba(255, 253, 248, .94); display: grid; place-items: center; animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 253, 248, .55); } 50% { box-shadow: 0 0 0 16px rgba(255, 253, 248, 0); } }
.reel-card .play::before { content: ''; margin-left: 5px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--violet); }
.reel-nav {
  display: none; position: absolute; top: 50%; z-index: 20; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--violet); font-size: 26px; line-height: 1; box-shadow: var(--shadow);
}
.reel-nav:hover { background: var(--violet); color: #fbf7f0; }
.reel-nav.prev { left: max(16px, calc(50% - 330px)); }
.reel-nav.next { right: max(16px, calc(50% - 330px)); }
@media (hover: hover) and (min-width: 760px) { .reel-nav { display: block; } }
.reel-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 56px; }
.reel-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--violet-rgb), .22); transition: background .3s, transform .3s; }
.reel-dots i.on { background: var(--violet); transform: scale(1.5); }
.prose.quote { font-style: italic; font-size: 1.12em; line-height: 1.6; color: var(--violet); max-width: 28ch !important; }
.film-link { margin-top: 34px; cursor: pointer; }

/* ═══════════ a cinematic pause: the couple, full width ═══════════ */
.banner {
  position: relative; min-height: 86vh; min-height: 86svh; display: grid; align-items: start; justify-items: center; overflow: hidden;
  padding: clamp(36px, 8svh, 84px) 18px 28px; text-align: center; color: #fff; isolation: isolate; background: #20261a;
}
.banner-image, .banner-image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner-image { z-index: -2; }
.banner-image img { object-fit: cover; object-position: 46% 60%; }
.banner::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13, 11, 16, .64), rgba(13, 11, 16, .40) 24%, transparent 52%);
}
.banner-copy { width: 100%; }
.banner-quote { font-family: var(--script); font-size: clamp(38px, 9.6vw, 76px); line-height: 1.12; text-shadow: 0 3px 16px rgba(0, 0, 0, .78); }
.banner-names { font-family: var(--caps); font-size: 13px; letter-spacing: .4em; text-transform: uppercase; padding-left: .4em; color: var(--gold-light); }
.rule.light::before, .rule.light::after { background: linear-gradient(90deg, transparent, var(--gold-light)); }
.rule.light i { background: var(--gold-light); }

/* ═══════════ WEDDING EVENTS ═══════════ */
.events { background: linear-gradient(180deg, var(--cream), var(--cream-deep) 12%, var(--cream) 30%); padding-top: 80px; }
.events .script-title { margin-bottom: 10px; }

.journey { display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; }
.journey-from { font-family: var(--caps); font-size: 13px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-deep); padding-left: .34em; }
.journey-track { position: relative; width: 2px; height: 300px; margin: 18px 0 6px; background: repeating-linear-gradient(to bottom, rgba(var(--violet-rgb), .45) 0 7px, transparent 7px 15px); }
.journey-car { position: absolute; left: 50%; top: calc(var(--p, 0) * 100%); width: 30px; margin: -26px 0 0 -15px; color: var(--violet); filter: drop-shadow(0 8px 6px rgba(53, 32, 70, .28)); transform: rotate(180deg); }
.journey-car svg { display: block; width: 100%; }
.journey-stop img {
  width: min(84vw, 360px); height: auto; aspect-ratio: 1.5; object-fit: cover; object-position: 50% 62%; margin: 0 auto;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, transparent 100%);
}
.journey-place { font-family: var(--caps); font-weight: 500; font-size: 30px; letter-spacing: .14em; text-transform: uppercase; padding-left: .14em; color: var(--violet); margin-top: 6px; }
.journey-sub { font-style: italic; color: var(--muted); }

.events-list { display: grid; gap: 0; }
.event { padding: 44px 20px 34px; }
.event + .event { margin-top: 64px; }
.event + .event::after { content: ''; position: absolute; left: 50%; top: -52px; width: 2px; height: 40px; margin-left: -1px; background: repeating-linear-gradient(to bottom, rgba(var(--violet-rgb), .4) 0 6px, transparent 6px 12px); }
.event-name { font-family: var(--script); font-weight: 400; font-size: clamp(46px, 13vw, 58px); line-height: 1.1; color: var(--gold-deep); }
.event-date { font-family: var(--caps); font-size: clamp(18px, 5.200vw, 22px); letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.event-date sup { font-size: .55em; letter-spacing: 0; text-transform: lowercase; }
.event-side { font-family: var(--caps); font-size: 12.500px; letter-spacing: .26em; text-transform: uppercase; padding-left: .26em; color: var(--violet); margin-top: 2px; }
/* an event without a picture: the description follows the time directly */
.event-time + .event-desc { margin-top: 4px; }
.event-time {
  display: inline-block; margin: 12px 0 24px; padding: 7px 18px; border-radius: 999px;
  background: var(--gold-soft); border: 1px solid var(--line);
  font-family: var(--caps); font-size: 12.500px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep);
}
.event-art { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px rgba(var(--gold-rgb), .35), var(--shadow); background: var(--cream-deep); }
.event-art img { width: 100%; height: auto; transform: scale(1.08); transition: transform 2.6s var(--ease); }
.event.in .event-art img { transform: none; }
.event-desc { margin: 26px auto 0; max-width: 30ch; font-style: italic; font-size: 18px; line-height: 1.55; color: var(--muted); }
.event-venue { margin-top: 24px; }
.venue-label { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--caps); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); }
.venue-label::before, .venue-label::after { content: ''; width: 30px; height: 1px; background: var(--gold); opacity: .7; }
.venue-label span { padding-left: .3em; }
.venue-name { font-family: var(--caps); font-weight: 500; font-size: clamp(21px, 6vw, 25px); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); line-height: 1.3; margin-top: 4px; }
.venue-street { font-size: 19px; line-height: 1.3; }
.venue-country { font-family: var(--caps); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); margin-top: 2px; }
.map-link {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; padding: 11px 24px; border-radius: 999px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 8px 18px -12px rgba(73, 48, 95, .5);
  font-family: var(--caps); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep);
  transition: background .25s, transform .25s var(--ease);
}
.map-link:hover { background: var(--gold-soft); transform: translateY(-2px); }
.map-link svg { width: 17px; height: 17px; }

/* ═══════════ WARDROBE PLANNER ═══════════ */
.wardrobe .eyebrow { margin-bottom: 4px; }
.wardrobe .script-title { margin-bottom: 14px; }
.wardrobe-tag { font-family: var(--caps); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--violet); padding-left: .26em; text-wrap: balance; }
.wardrobe-tag i { font-style: normal; color: var(--gold); margin: 0 .5em; }
.wardrobe .wardrobe-preview {
  display: block;
  width: 100%;
  max-width: 880px;
  margin: 26px auto 0;
  box-shadow: var(--shadow);
}
.wardrobe-preview img { display: block; width: 100%; height: auto; }
.invite-details {
  margin: 0 auto 22px; padding: 11px 14px 12px; width: fit-content;
  max-width: 100%; border-block: 1px solid var(--line); color: var(--violet);
}
.invite-edition { font-family: var(--caps); font-size: 14px; letter-spacing: .13em; }
.invite-event-list { font-size: 18px; line-height: 1.25; margin-top: 3px; text-wrap: balance; }
.invite .guest-greeting {
  margin: 0 auto 26px;
  max-width: min(100%, 36rem);
  color: var(--violet);
  font-family: 'Elsie', Georgia, serif;
  font-size: clamp(32px, 6.7vw, 50px);
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.guest-greeting span {
  display: inline-block;
  max-width: 100%;
  padding: .08em .17em;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  @media (prefers-reduced-motion: no-preference) {
    .guest-greeting span {
      background-image: linear-gradient(112deg, var(--violet) 33%, #9d671b 42%, #c28d30 46%, #edce80 50%, #c28d30 54%, #9d671b 58%, var(--violet) 67%);
      background-size: 300% 100%;
      background-position: 100% 50%;
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      animation: guest-gold-sweep 5s linear infinite;
    }
  }
}
@keyframes guest-gold-sweep {
  0% { background-position: 100% 50%; }
  48%, 100% { background-position: 0% 50%; }
  0%, 48%, 100% { filter: drop-shadow(0 0 0 transparent); }
  24% { filter: drop-shadow(0 0 4px rgb(199 143 44 / 56%)); }
}
.wardrobe-bye { margin-top: 30px; font-family: var(--script); font-size: clamp(34px, 9.600vw, 44px); line-height: 1.2; color: var(--violet); }
.wardrobe .map-link { margin-top: 18px; }

/* drawn artwork for events that have no picture from the film */
.event-art.drawn svg { display: block; width: 100%; height: auto; }
.event-art.drawn { margin-top: 0; }

/* ═══════════ BLESSINGS ═══════════ */
.bless-list { display: grid; gap: 30px; }
.bless-list dt { font-family: var(--caps); font-size: 12.500px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); padding-left: .3em; margin-bottom: 4px; }
.bless-list dd { font-size: 21px; line-height: 1.35; color: var(--ink); }

/* ═══════════ RSVP — the wedding pass ═══════════ */
.rsvp { background: linear-gradient(180deg, var(--cream), var(--cream-deep)); }
.rsvp .script-title { margin-bottom: 12px; }
.pass { margin-top: 34px; max-width: 440px !important; background: var(--paper); border-radius: 18px; overflow: hidden; text-align: left; box-shadow: 0 26px 46px -26px rgba(53, 32, 70, .5), 0 0 0 1px var(--line); }
.pass-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--violet); color: var(--gold-light); font-family: var(--caps); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.pass-head span:last-child { color: #fbf7f0; }
.pass-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 20px 20px 16px; border-bottom: 1px solid rgba(var(--gold-rgb), .3); color: var(--gold); }
.pass-route svg { width: 64px; height: 24px; }
.pass-route b { display: block; font-family: var(--body); font-weight: 600; font-size: 38px; line-height: 1; letter-spacing: .04em; color: var(--violet); }
.pass-route span { display: block; font-size: 15px; line-height: 1.3; color: var(--ink); }
.pass-route i { display: block; font-style: normal; font-family: var(--caps); font-size: 10.500px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin-top: 3px; }
.pass-route .right { text-align: right; }
.pass-body { padding: 22px 20px 6px; display: grid; gap: 22px; }
.field { display: block; }
.field > span, .field > legend { display: block; padding: 0; font-family: var(--caps); font-size: 11.500px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(var(--violet-rgb), .35); background: none; padding: 6px 0 9px;
  font-size: 20px; color: var(--ink); border-radius: 0; resize: vertical; outline: none;
}
.field input[type="text"]:focus, .field input[type="tel"]:focus, .field textarea:focus { border-bottom-color: var(--violet); box-shadow: 0 1px 0 var(--violet); }
.field ::placeholder { color: #756a7b; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; padding: 11px 8px; text-align: center; border-radius: 9px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: 17.500px; color: var(--violet); transition: background .2s, color .2s; cursor: pointer; }
.choice input:checked + span { background: var(--violet); border-color: var(--violet); color: #fbf7f0; }
.choice input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.choice.route { grid-template-columns: 1fr; gap: 8px; }
.choice.route span { padding: 11px 12px; font-size: 17px; }
.pass-foot { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px; margin-top: 16px; border-top: 2px dashed rgba(var(--gold-rgb), .6); }
.pass-foot::before, .pass-foot::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--cream-deep); box-shadow: inset 0 0 0 1px var(--line); }
.pass-foot::before { left: -11px; } .pass-foot::after { right: -11px; }
.barcode { flex: 0 0 54px; height: 44px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px); opacity: .8; }
.pass-foot .btn { flex: 1; }
.pass-note { padding: 0 20px 18px; font-size: 15px; font-style: italic; color: var(--muted); text-align: center; line-height: 1.4; }
.pass-note a { color: var(--violet); font-weight: 600; font-style: normal; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }
.actions .btn { padding: 12px 20px; font-size: 11.500px; }

/* ═══════════ THANK YOU — a postcard ═══════════ */
.foot { background: var(--violet); padding: clamp(60px, 14vw, 90px) 18px 40px; text-align: center; }
.postcard {
  max-width: 460px; margin: 0 auto; padding: 9px; border-radius: 6px; text-align: left;
  background: repeating-linear-gradient(-45deg, #80559a 0 14px, var(--paper) 14px 28px, var(--gold) 28px 42px, var(--paper) 42px 56px);
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .6);
}
.postcard-inner { background: var(--paper); padding: 34px 26px 30px; border-radius: 2px; }
.thanks { font-size: clamp(50px, 14vw, 62px); }
.thanks-text { margin-top: 10px; font-size: 21px; line-height: 1.6; max-width: 22ch; }
.thanks-with { margin-top: 20px; font-size: 19px; }
.thanks-family { font-size: clamp(27px, 7.800vw, 40px); white-space: nowrap; }
.post-row { display: flex; align-items: center; gap: 4px; margin: 26px 0 22px; padding-top: 24px; border-top: 1px solid rgba(var(--violet-rgb), .16); }
.postmark {
  flex: 0 0 104px; height: 104px; border-radius: 50%; border: 1.500px solid rgba(var(--violet-rgb), .55); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(var(--violet-rgb), .35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transform: rotate(-12deg); color: rgba(var(--violet-rgb), .8);
}
.postmark i { font-style: normal; font-family: var(--caps); font-size: 9px; letter-spacing: .26em; text-transform: uppercase; }
.postmark b { font-family: var(--body); font-weight: 600; font-size: 16px; letter-spacing: .06em; }
.stamp { margin-left: -14px; padding: 10px; background: var(--paper); box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .35); border: 3px dotted var(--cream-deep); transform: rotate(3deg); }
.stamp img { display: block; width: 82px; height: auto; }
.post-to { font-family: var(--caps); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); }
.post-line { font-family: var(--script); font-size: clamp(28px, 8vw, 34px); line-height: 1.5; color: var(--violet); padding: 4px 12px 0; border-bottom: 1px solid rgba(var(--gold-rgb), .4); }
.petal-btn {
  position: fixed; z-index: 60;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--violet); box-shadow: 0 8px 22px -8px rgba(53, 32, 70, .48);
  font-family: var(--caps); font-size: 12px; letter-spacing: .1em;
}
.petal-btn:hover, .petal-btn:active { background: var(--gold-soft); }
.foot-names { margin-top: 26px; font-size: 16px; font-style: italic; color: #eee0c4; letter-spacing: .04em; }
.foot-names i { color: var(--gold-light); }

/* ═══════════ LIGHTBOX ═══════════ */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: auto 1fr auto; align-items: center; background: rgba(27, 18, 36, .94); backdrop-filter: blur(10px); animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; } }
.lb-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 12px 0; }
.lb-media { animation: zoom .45s var(--ease); }
@keyframes zoom { from { opacity: 0; transform: scale(.94); } }
.lb-media img, .lb-media video { max-width: min(92vw, 520px); max-height: 80vh; max-height: 80svh; border-radius: 10px; display: block; box-shadow: 0 0 0 7px var(--paper), 0 40px 70px -30px #000; background: #000; }
#lb-cap { color: var(--gold-light); font-family: var(--script); font-size: 30px; margin-top: 18px; text-align: center; }
.lb-close, .lb-nav { background: rgba(255, 253, 248, .1); border: 1px solid rgba(241, 219, 173, .6); color: #fbf7f0; border-radius: 50%; width: 48px; height: 48px; font-size: 26px; line-height: 1; }
.lb-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 2; }
.lb-nav { margin: 0 12px; }
.lb-close:hover, .lb-nav:hover { background: var(--violet); }
@media (max-width: 600px) {
  .lightbox { grid-template-columns: 1fr; }
  .lb-nav { position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 2; margin: 0; }
  .lb-nav.prev { left: calc(50% - 60px); } .lb-nav.next { right: calc(50% - 60px); }
  .lb-media img, .lb-media video { max-height: 68vh; max-height: 68svh; }
  .lb-stage { padding-bottom: 76px; }
}

/* Keep captions, controls, and form fields usable on narrow phones. */
@media (max-width: 600px) {
  .section { padding-inline: 16px; }
  .moments { padding-inline: 0; }
  .banner { min-height: clamp(430px, 72svh, 625px); padding-top: clamp(28px, 6svh, 50px); }
  .banner .rule { margin-block: 8px 12px; }
  .banner-names { font-size: 11px; letter-spacing: .25em; }
  .wardrobe .wardrobe-preview { width: min(100%, 460px); }
  .pass-route { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding-inline: 14px; }
  .pass-route svg { width: clamp(32px, 11vw, 56px); }
  .pass-body, .pass-foot { padding-inline: 16px; }
  .foot { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .count-grid span { letter-spacing: .08em; }
  .invite-card { padding-inline: 16px; }
  .pass-foot .btn { padding-inline: 12px; }
  .postcard-inner { padding-inline: 18px; }
}
@media (orientation: landscape) and (max-height: 550px) {
  .hero { min-height: 0; }
  .hero-stage { width: min(100%, 540px); aspect-ratio: auto; }
  .gate { gap: 10px; }
  .gate-logo { width: min(34svh, 184px); }
  .hero-bless { width: 15svh; }
  .hero-title .n { font-size: 12svh; }
  .hero-title h1 { margin-block: 4px; }
  .hero-title .w { margin-block: 0; }
}

/* ═══════════ larger screens: keep the phone-width column, give it air ═══════════ */
@media (min-width: 760px) {
  body { font-size: 20px; }
  .invite-card { padding: 60px 56px 110px; }
  .floral.corner { width: 150px; }
  .event { padding: 54px 44px 44px; }
  .journey-track { height: 360px; }
}

/* ═══════════ reduced motion ═══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Full names in the opening scene and venue details. */
.invite-name { font-size: clamp(42px, 11.8vw, 68px); }
.moments [hidden] { display: none; }
