/* Reception invitation: purple floral paper, white type.
   Structure: tokens -> living background -> base -> controls -> cover -> hero -> sections -> footer -> music -> motion -> breakpoints.
   Colours and lettering follow the printed card: purple glitter-floral paper, white Times-style serif, flowing script names. */

:root {
  color-scheme: dark;
  --purple: #8e4299;        /* paper */
  --purple-mid: #7a3187;
  --purple-deep: #5d1d6b;   /* leaves, button text */
  --purple-ink: #3f0d4d;    /* darkest shadow */
  --white: #ffffff;         /* all main type, like the card */
  --lilac: #f0dff4;         /* secondary type (still very light, passes contrast on the paper) */
  --line: rgba(255, 255, 255, 0.6);
  --line-soft: rgba(255, 255, 255, 0.28);
  --glass: rgba(255, 255, 255, 0.09);
  --serif: "Tinos", "Times New Roman", "Liberation Serif", Times, serif;
  --script: "Great Vibes", "Snell Roundhand", "Apple Chancery", "Brush Script MT", cursive;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --glow: 0 0 22px rgba(255, 255, 255, 0.32), 0 2px 16px rgba(63, 13, 77, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-variant-numeric: lining-nums;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--purple);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--white);
  background: var(--purple);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.55;
  overflow-wrap: break-word;
  text-shadow: 0 1px 14px rgba(63, 13, 77, 0.35);
  -webkit-tap-highlight-color: transparent;
}

body:not(.is-ready) .site { visibility: hidden; }
html.is-locked, html.is-locked body { overflow: hidden; }
h1, h2, h3, p, figure { margin: 0; }
img { max-width: 100%; }

/* ---------- Living background: floral paper, glitter, drifting light ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--purple); }
.bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(63, 13, 77, 0.42) 100%); }
.bg-floral {
  position: absolute;
  inset: -6%;
  background: url("../assets/bg-floral.jpg") center / cover no-repeat;
  transform: scale(1.12);
  will-change: transform;
  animation: drift 46s ease-in-out infinite alternate;
}
.bg-glow { --mx: 50%; --my: 18%; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.2), transparent 42%); transition: background 0.4s ease-out; }
.bg-grain { position: absolute; inset: 0; background: url("../assets/grain.png") 0 0 / 320px repeat; opacity: 0.9; }
.sparkles { position: absolute; inset: 0; }
.spark {
  position: absolute;
  width: var(--s);
  height: var(--s);
  background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0;
  animation: twinkle 4s ease-in-out infinite;
}

.progress { position: fixed; z-index: 45; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), #fff); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 10px rgba(255, 255, 255, 0.7); }

/* ---------- Shared type ---------- */
.eyebrow {
  margin: 1.8rem 0 0.4rem;
  font-size: 0.92rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  padding-left: 0.34em; /* optical centring of tracked caps */
}
.script-title, .cover-script { font-family: var(--script); font-weight: 400; line-height: 1.1; text-shadow: var(--glow); }
.script-title { font-size: clamp(3.1rem, 11vw, 4.8rem); }
.caps-title { font-size: clamp(1.15rem, 3.6vw, 1.5rem); font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; padding-left: 0.24em; }

.flourish { width: min(300px, 72%); height: 26px; margin: 0.9rem auto 1.4rem; background: url("../assets/flourish.svg") center / contain no-repeat; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35)); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  min-height: 2.9rem;
  padding: 0.8rem 1.7rem;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: var(--purple-deep);
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 14px 30px -14px rgba(40, 6, 55, 0.7);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease);
}

/* ---------- Cover: the card, with two doors that part ---------- */
.cover { position: fixed; inset: 0; z-index: 30; display: flex; overflow: hidden auto; overscroll-behavior: contain; padding: calc(1.5rem + env(safe-area-inset-top, 0px)) 1.6rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
.cover[hidden] { display: none; }
.door {
  position: fixed;
  inset: 0;
  background:
    url("../assets/grain.png") 0 0 / 320px repeat,
    radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(63, 13, 77, 0.42) 100%),
    url("../assets/bg-floral.jpg") center / cover no-repeat,
    var(--purple);
  transition: transform 1.5s cubic-bezier(0.7, 0, 0.2, 1) 0.35s;
  will-change: transform;
}
.door-l { clip-path: inset(0 50% 0 0); }
.door-r { clip-path: inset(0 0 0 50%); }
/* the card's double frame, split across the two doors */
.door::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--line); box-shadow: inset 0 0 0 6px transparent, 0 0 0 5px transparent; }
.door-l::before { border-right: 0; border-radius: 26px 0 0 26px; }
.door-r::before { border-left: 0; border-radius: 0 26px 26px 0; }
.door::after { content: ""; position: absolute; inset: 22px; border: 1px solid var(--line-soft); }
.door-l::after { border-right: 0; border-radius: 20px 0 0 20px; }
.door-r::after { border-left: 0; border-radius: 0 20px 20px 0; }
.cover-seam { position: fixed; top: 14px; bottom: 14px; left: 50%; width: 1px; background: linear-gradient(transparent, rgba(255, 255, 255, 0.75), transparent); transition: opacity 0.4s ease; }

.cover-inner { position: relative; z-index: 2; width: 100%; max-width: 27rem; margin: auto; padding: 2.4rem 0 1.4rem; text-align: center; transition: opacity 0.55s ease, transform 0.8s var(--ease); }
.cover .deity-hero { width: min(118px, 34vw); }
.cover .eyebrow { margin-top: 1.1rem; }
.cover-script { margin-top: 0.1rem; font-size: clamp(2.6rem, 11.5vw, 3.5rem); }
.cover .flourish { margin: 0.35rem auto 0.7rem; }
.cover-names { font-family: var(--script); font-size: clamp(3.1rem, 15vw, 4.3rem); line-height: 1.02; text-shadow: var(--glow); }
.cover-names .person { display: block; }
.cover-names .union { display: block; font-size: 0.55em; line-height: 1; opacity: 0.9; }
.cover-date { margin-top: 0.8rem; font-size: 1.1rem; letter-spacing: 0.3em; padding-left: 0.3em; }
.cover-open { margin-top: 1.4rem; animation: pulse 2.6s ease-out infinite; }
.cover-hint { margin-top: 0.9rem; color: var(--lilac); font-size: 0.98rem; font-style: italic; }

.cover.is-leaving { pointer-events: none; }
.cover.is-leaving .cover-inner { opacity: 0; transform: scale(1.06) translateY(-12px); }
.cover.is-leaving .cover-seam { opacity: 0; }
.cover.is-leaving .door-l { transform: translateX(-102%); }
.cover.is-leaving .door-r { transform: translateX(102%); }

/* ---------- Deity (line art lifted from the card, white on purple) ---------- */
.deity { position: relative; margin: 0 auto; width: min(230px, 62vw); aspect-ratio: 650 / 466; }
.deity img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35)); }
.deity figcaption { display: none; }
.deity.is-empty { display: none; }
.deity::before { content: ""; position: absolute; inset: -22% -12%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.22), transparent); animation: halo 5s ease-in-out infinite; z-index: -1; }

/* ---------- Petals (generated by main.js) ---------- */
.petals { position: fixed; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.petal-fall { position: absolute; top: -40px; will-change: transform; animation: fall linear infinite backwards; }
.petal { display: block; width: var(--size); height: var(--size); opacity: 0.85; animation: flutter ease-in-out infinite alternate; }
.petal-jasmine { background: url("../assets/jasmine.svg") center / contain no-repeat; filter: drop-shadow(0 1px 2px rgba(63, 13, 77, 0.45)); }
.petal-lilac, .petal-blush { border-radius: 0 100% 0 100%; height: calc(var(--size) * 0.75); box-shadow: 0 1px 3px rgba(63, 13, 77, 0.3); }
.petal-lilac { background: linear-gradient(135deg, #f3e4f8, #c58bd8); }
.petal-blush { background: linear-gradient(135deg, #ffeaf4, #eaa4cb); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 130ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal { transform: translateY(22px) scale(0.95); transition-duration: 1.1s; transition-delay: calc(var(--i, 0) * 200ms); }
.hero .reveal.is-visible { transform: none; }
.flourish.reveal { transform: scaleX(0.25); }
.flourish.reveal.is-visible { transform: none; }
.stagger:not(.is-visible) > * { opacity: 0; }
.stagger.is-visible > * { animation: rise 0.9s var(--ease) both; }
.stagger.is-visible > :nth-child(2) { animation-delay: 0.15s; }
.stagger.is-visible > :nth-child(3) { animation-delay: 0.3s; }
.stagger.is-visible > :nth-child(4) { animation-delay: 0.45s; }

/* ---------- Hero ---------- */
.site { position: relative; z-index: 1; outline: none; }
.hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; min-height: 100svh; padding: 4.5rem 1.4rem 3.2rem; text-align: center; }
.hero .deity { width: min(200px, 54vw, 26vh); }
.hero-names { font-family: var(--script); font-weight: 400; font-size: clamp(3.4rem, min(17vw, 13.5vh), 7.6rem); line-height: 1.02; text-shadow: var(--glow); }
.hero-names .person { display: block; }
.hero-names .union { display: block; font-size: 0.5em; line-height: 1.1; margin: 0.05em 0; }
.ch { display: inline-block; opacity: 0; transform: translateY(0.35em) scale(0.9); filter: blur(10px); }
body.is-open .ch { animation: letter 1.1s var(--ease) forwards; animation-delay: calc(1.3s + var(--n) * 85ms); }
body.is-open .hero-names { animation: nameglow 6s ease-in-out 4s infinite; }

.datebox { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: min(26rem, 100%); margin: 0.2rem auto 0; }
.db-month, .db-year { font-size: clamp(1.25rem, 4.6vw, 1.55rem); letter-spacing: 0.04em; }
.db-month { text-align: right; padding-right: 1.2rem; }
.db-year { text-align: left; padding-left: 1.2rem; }
.db-day { display: flex; flex-direction: column; align-items: center; padding: 0.15rem 1.5rem 0.25rem; border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line); line-height: 1; }
.db-day b { font-size: clamp(3.6rem, 14vw, 5.2rem); font-weight: 700; line-height: 1; }
.db-day i { margin-top: 0.15rem; font-style: normal; font-size: clamp(1.1rem, 3.6vw, 1.3rem); letter-spacing: 0.1em; }
.hero-time { margin-top: 1.1rem; font-size: 1.4rem; letter-spacing: 0.05em; }
.hero-actions { margin: 1.7rem 0 0; }

.scroll-cue { position: absolute; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); left: 50%; width: 22px; height: 36px; margin-left: -11px; border: 1.5px solid var(--line); border-radius: 12px; }
.scroll-cue span { position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 2s ease-in-out infinite; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 4.2rem 1.1rem; text-align: center; }
.wrap { max-width: 840px; margin: 0 auto; }
.panel {
  position: relative;
  padding: 3.2rem 1.4rem 3rem;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.12), rgba(63, 13, 77, 0.2));
  box-shadow: 0 40px 70px -40px rgba(30, 4, 42, 0.8), inset 0 0 60px rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.panel::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line-soft); border-radius: 24px; pointer-events: none; }

.hosts { max-width: 36rem; margin: 0 auto 1.1rem; }
.hosts-line { margin: 0.3rem 0 0; font-size: 1.5rem; line-height: 1.45; }
.hosts-line strong, .couple-parents strong { font-weight: 700; }
.title { font-weight: 400; }
.host-name { white-space: nowrap; }
.amp { font-weight: 400; }
.hosts-place { margin-top: 0.2rem; color: var(--lilac); font-size: 1.12rem; }
.lede { max-width: 31rem; margin: 0 auto; font-size: 1.3rem; line-height: 1.65; }

.couple { display: grid; gap: 0.2rem; margin: 1.6rem auto 0; }
.person-card { text-align: center; }
.couple-name { font-family: var(--script); font-weight: 400; font-size: clamp(3.4rem, 12.5vw, 5rem); line-height: 1.12; text-shadow: var(--glow); }
.couple-join { font-family: var(--script); font-size: clamp(2.2rem, 8vw, 3rem); line-height: 1.1; }
.couple-lead { margin-top: 0.4rem; font-size: 1.25rem; }
.couple-parents { margin-top: 0.3rem; font-size: 1.4rem; line-height: 1.5; }
.couple-place { margin-top: 0.15rem; color: var(--lilac); font-size: 1.1rem; }

/* Countdown */
.band { position: relative; padding: 3.4rem 1rem 3.6rem; text-align: center; }
.ticks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; max-width: 640px; margin: 1.8rem auto 0; }
.tick { padding: 1.05rem 0.3rem 0.9rem; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 18px 30px -22px rgba(30, 4, 42, 0.8); }
.tick-num { display: block; font-size: clamp(2.1rem, 5.4vw, 3.1rem); font-weight: 700; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.tick-num.bump { animation: bump 0.45s var(--ease); }
.tick-label { display: block; margin-top: 0.5rem; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; padding-left: 0.2em; }
.arrived { margin: 1.2rem 0 0; font-style: italic; }

/* Venue */
.venue-at { margin-top: 0.7rem; font-size: 1.5rem; line-height: 1; }
.venue-name { margin-top: 0.3rem; font-size: clamp(1.9rem, 7.4vw, 2.7rem); letter-spacing: 0.2em; padding-left: 0.2em; text-transform: uppercase; text-shadow: var(--glow); }
.venue-sub { margin-top: 0.3rem; font-size: clamp(1.4rem, 5vw, 1.7rem); }
.venue-address { max-width: 25rem; margin: 0.6rem auto 0; font-size: 1.25rem; line-height: 1.55; }
.map-frame { max-width: 720px; margin: 2rem auto 0; padding: 7px; border: 1px solid var(--line); border-radius: 22px; background: var(--glass); box-shadow: 0 30px 50px -30px rgba(30, 4, 42, 0.85); }
.map-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: var(--purple-mid); }

.events { display: grid; justify-content: center; margin: 1.6rem auto 0; }
.event { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.event-name { font-size: 0.82rem; letter-spacing: 0.26em; text-transform: uppercase; padding-left: 0.26em; }
.event-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 0; }
.textlink {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: #fff;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.3s ease, transform 0.3s var(--ease);
}

/* Closing blessing */
.closing { padding-bottom: 2.5rem; }
.closing .wrap { max-width: 34rem; }
.closing-line { margin-bottom: 1.4rem; font-size: 1.3rem; line-height: 1.7; }
.closing-regards { margin-top: 2.4rem; font-size: 1.25rem; letter-spacing: 0.04em; }
.closing-names { margin-top: 0.5rem; font-size: clamp(1.6rem, 6vw, 2.1rem); font-weight: 700; letter-spacing: 0.06em; text-shadow: var(--glow); }
.closing-family { margin-top: 0.2rem; font-size: 1.4rem; }
.closing .flourish { margin-top: 2rem; }

/* ---------- Footer ---------- */
.footer { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; padding: 1.6rem 1rem calc(2.8rem + env(safe-area-inset-bottom, 0px)); text-align: center; }
.footer-line { font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; }
.credit { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.3rem 0.9rem; }
.credit-text { color: var(--lilac); font-size: 0.86rem; letter-spacing: 0.06em; }
.enquire {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.15rem 0 1rem;
  border-radius: 999px;
  background: #147a3d;
  color: #fff;
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-shadow: none;
  touch-action: manipulation;
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.6);
  transition: background 0.25s ease, transform 0.3s var(--ease);
}
.enquire svg { width: 1.15rem; height: 1.15rem; flex: none; }
body.has-music .footer { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }

.noscript { position: relative; z-index: 50; max-width: 36rem; margin: 2rem auto; text-align: center; }
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* ---------- Music button ---------- */
.music-btn {
  position: fixed;
  z-index: 36;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(93, 29, 107, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(30, 4, 42, 0.8);
  cursor: pointer;
  touch-action: manipulation;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s var(--ease), visibility 0s linear 0.6s;
}
.music-btn[hidden] { display: none; }
.music-btn.is-shown { opacity: 1; visibility: visible; transform: none; transition-delay: 1.6s, 1.6s, 0s; }
.music-btn svg { width: 22px; height: 22px; }
.music-btn .bar { fill: currentColor; transform-box: fill-box; transform-origin: center bottom; transform: scaleY(0.55); }
.music-btn .slash { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.music-btn[aria-pressed="true"] .slash { display: none; }
.music-btn[aria-pressed="true"] .b1 { animation: eq 0.9s ease-in-out infinite alternate; }
.music-btn[aria-pressed="true"] .b2 { animation: eq 0.7s ease-in-out -0.3s infinite alternate; }
.music-btn[aria-pressed="true"] .b3 { animation: eq 1.1s ease-in-out -0.6s infinite alternate; }

@media (hover: hover) {
  .btn:hover { background: var(--lilac); transform: translateY(-2px); }
  .enquire:hover { background: #0f6431; transform: translateY(-2px); }
  .textlink:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
}

/* ---------- Keyframes ---------- */
@keyframes drift { from { translate: -1.5% 0; } to { translate: 1.5% -1.5%; } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); } 50% { opacity: 0.95; transform: scale(1) rotate(45deg); } }
@keyframes halo { 0%, 100% { opacity: 0.55; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes fall { from { transform: translate3d(0, -6vh, 0); } to { transform: translate3d(var(--drift), 108vh, 0); } }
@keyframes flutter { from { transform: translateX(-14px) rotate(-25deg) rotateY(0deg); } to { transform: translateX(14px) rotate(35deg) rotateY(160deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes bump { from { opacity: 0.35; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); } 70%, 100% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); } }
@keyframes eq { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }
@keyframes letter { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes nameglow { 0%, 100% { text-shadow: 0 0 18px rgba(255, 255, 255, 0.25), 0 2px 16px rgba(63, 13, 77, 0.45); } 50% { text-shadow: 0 0 34px rgba(255, 255, 255, 0.6), 0 2px 16px rgba(63, 13, 77, 0.45); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Breakpoints ---------- */
@media (min-width: 740px) {
  .panel { padding: 4rem 3rem 3.4rem; }
  .section { padding: 5rem 1.25rem; }
  .cover .deity-hero { width: 150px; }
  .hero .deity { width: 220px; }
}

@media (max-width: 520px) {
  .ticks { grid-template-columns: 1fr 1fr; gap: 0.6rem; max-width: 19rem; }
  .map-frame iframe { aspect-ratio: 4 / 3; }
  .db-month { padding-right: 0.8rem; }
  .db-year { padding-left: 0.8rem; }
  .db-day { padding-inline: 1rem; }
}

@media (max-width: 380px) {
  body { font-size: 1.1rem; }
  .section { padding: 3.4rem 0.8rem; }
  .panel { padding-inline: 1rem; }
  .hosts-line { font-size: 1.3rem; }
  .couple-parents .host-name { white-space: normal; }
  .couple-parents { font-size: 1.25rem; }
}

@media (max-height: 700px) {
  .cover .deity-hero { width: 88px; }
  .cover .eyebrow { margin-top: 0.6rem; }
  .cover-open { margin-top: 1rem; }
}

@media (max-height: 480px) and (orientation: landscape) {
  .cover-inner { padding-top: 1rem; }
  .cover .deity-hero { display: none; }
  .hero { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-floral, .deity::before, .tick-num.bump, .cover-open, .scroll-cue span { animation: none; }
  .petals, .sparkles { display: none; }
  .ch, body.is-open .ch { opacity: 1; transform: none; filter: none; animation: none; }
  body.is-open .hero-names { animation: none; }
  .reveal, .hero .reveal, .flourish.reveal { opacity: 1; transform: none; transition: none; }
  .stagger > *, .stagger.is-visible > * { animation: none; opacity: 1; }
  .door, .cover-inner, .cover-seam, .music-btn { transition: none; }
  .music-btn[aria-pressed="true"] .bar { animation: none; transform: scaleY(0.8); }
}
