/* ==========================================================================
   Antoine & Rose — 26.02.2027
   Vision: Antoine & Rose · Creative direction & build: WeddingsKraetd
   Design tokens are taken 1:1 from the couple's Canva ("Wedding website test").
   ========================================================================== */

:root {
  --paper: #eeede7;
  --paper-warm: #fbf8f3;
  --paper-btn: #f8f3ed;
  --ink: #020202;
  --text: #1f1e1c;
  --ink-soft: #555454;
  --mute: #7b7b7b;
  --stone: #8f887a;          /* Canva #9b9486, darkened 1 step for AA contrast on paper */
  --charcoal: #3e3d3d;
  --gold: #736128;
  --gold-deep: #6d5b23;
  --navy: #383c50;
  --latte: #bca289;
  --latte-line: #d6bea8;
  --honey: #fcdb86;
  --honey-2: #fac174;
  --honey-3: #d58b2c;
  --rose: #e48aa0;          /* Rose's boxing colour (game + the ring) */
  --err: #a3221b;
  --ok: #2f7a1d;

  /* Type system — the couple's Canva fonts (their request, revision round 1; mapping in
     clients/antoine-and-rose/docs/CANVA-ANALYSIS.md): a high-contrast didone for headings (set in
     capitals), Raleway for everything you read, a brush script for accent lines, a signature
     script for the full names, a copperplate "&", and a hand-lettered face for MABUHAY! only. */
  --f-display: 'Bodoni Moda', 'Bodoni 72', Didot, Georgia, serif;
  --f-body: 'Raleway', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --f-script: 'Kaushan Script', 'Brush Script MT', cursive;
  --f-sign: 'Allison', 'Snell Roundhand', cursive;
  --f-amp: 'Great Vibes', 'Snell Roundhand', cursive;   /* the Canva's E-shaped copperplate '&' */
  --f-hand: 'Patrick Hand SC', 'Comic Sans MS', cursive;

  --gutter: clamp(16px, 5vw, 64px);
  --sec-y: clamp(80px, 11vw, 150px);
  --max: 1200px;
  --ease: cubic-bezier(.22, .9, .22, 1);
  --ease-soft: cubic-bezier(.45, 0, .2, 1);
  --nav-h: 64px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  background: var(--paper);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.78 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "lnum";
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a, button, summary, label, input[type="radio"], input[type="checkbox"] { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 1.05em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
::selection { background: var(--honey); color: var(--ink); }
:focus-visible { outline: 2px solid var(--honey-3); outline-offset: 3px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- type primitives ---------- */
.title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.05rem, 4.6vw, 3.5rem);
  line-height: 1.04;
  text-align: center;
  color: var(--ink);
  text-wrap: balance;
}
.title--left { text-align: left; }
.title--small { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -.01em; }
/* left-aligned, so no balancing indent: the first letter lines up with the subtitle under it */
.title--wide { font-weight: 500; letter-spacing: .22em; }
@media (max-width: 559px) { .title--wide { letter-spacing: .12em; } }
.subtitle {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: .8em;
}
.subtitle--center { text-align: center; }
.script { font-family: var(--f-display); font-style: italic; font-weight: 500; letter-spacing: 0; }
.script-head {
  font-family: var(--f-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  color: var(--ink-soft);
  text-align: center;
  margin: 0 0 .5em;

}
.lead-script { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.45; max-width: 30em; margin-inline: auto; color: var(--ink); }
.role {
  font-family: var(--f-body); font-weight: 700; color: var(--gold); font-size: clamp(.85rem, 1.3vw, 1rem); margin: 0 0 .5em;
}

/* ---------- section scaffold ---------- */
.sec { padding: var(--sec-y) var(--gutter); position: relative; }
.sec > * { max-width: var(--max); margin-inline: auto; }
.sec__head { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }

/* reveal (JS only — without JS everything is simply visible) */
.js .reveal { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(7% 6% 7% 6%); transition: clip-path 1.5s var(--ease); overflow: hidden; }
.js .reveal-img img { transform: scale(1.1); transition: transform 2.2s var(--ease); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0); }
.js .reveal-img.is-in img { transform: none; }
.js img.reveal-img { transform: scale(1.04); transition: clip-path 1.5s var(--ease), transform 2s var(--ease); }
.js img.reveal-img.is-in { transform: none; }

/* ==========================================================================
   INTRO — "Something beautiful is waiting to bloom"
   ========================================================================== */
.intro { display: none; }
.js.intro-on .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #d9d7d0;
  color: #fff;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
.js.intro-on body { overflow: hidden; }
.intro.is-leaving { transition: opacity 1.2s var(--ease-soft) .15s; opacity: 0; pointer-events: none; }

.intro__scene { position: absolute; inset: 0; overflow: hidden; }
.intro__cam { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }

/* cinema bars — slide in for the film, out for the final wide shot */
.letterbox {
  position: absolute; left: 0; right: 0; height: var(--lb, 0px); background: #050505; z-index: 2;
  transition: height 1.3s var(--ease-soft); pointer-events: none;
}
.letterbox--t { top: 0; }
.letterbox--b { bottom: 0; }
.intro.is-film { --lb: clamp(30px, 8vh, 84px); }
@media (max-width: 699px) { .intro.is-film { --lb: clamp(22px, 4.5vh, 44px); } }
.intro__bg { position: absolute; inset: 0; }
.intro__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; will-change: opacity; }
/* the grade: pre-filtered copies stacked over the colour photo; JS only animates their opacity */
#introImg { filter: saturate(1.08) contrast(1.03); }
.intro__img--sepia { filter: sepia(.8) saturate(.75) brightness(.97); opacity: 0; }
.intro__img--gray { filter: grayscale(1) brightness(.93) contrast(.96); opacity: 1; }
.intro__dofstack { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.intro__img--dof { filter: blur(4px) saturate(1.08); transform: scale(1.03); }
.intro__img--dof-gray { filter: grayscale(1) blur(4px) brightness(.93); transform: scale(1.03); }
.intro.is-hero .intro__img--sepia, .intro.is-hero .intro__img--gray, .intro.is-hero .intro__dofstack { transition: opacity 1.4s var(--ease-soft); opacity: 0 !important; }
.intro__img--hero { opacity: 0; transition: opacity 1.6s var(--ease-soft); }
.intro.is-hero .intro__img--hero { opacity: 1; }
.intro__warm {
  position: absolute; inset: 0; opacity: 0; pointer-events: none; mix-blend-mode: soft-light;
  background:
    radial-gradient(60% 55% at 50% 58% /* taste-skill-ignore: cinematic grade inside the intro film */, rgba(255, 205, 120, .55), rgba(255, 170, 90, .12) 55%, rgba(0,0,0,0) 75%),
    linear-gradient(180deg, rgba(255, 226, 190, .35) /* taste-skill-ignore: cinematic grade inside the intro film */, rgba(0,0,0,0) 45%, rgba(60, 30, 0, .25));
}
.intro__fx, .intro__trails { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.trail {
  fill: none; stroke: var(--honey); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1.5 9;
  opacity: 0;
}
.intro__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50% /* taste-skill-ignore: cinematic grade inside the intro film */, rgba(0,0,0,0) 55%, rgba(0,0,0,.42) 100%);
  transition: opacity 1.6s var(--ease-soft);
}
/* on hand-over the intro wears the hero's exact scrim, so the swap is invisible */
.intro__scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 8, 0) 66%, rgba(10, 10, 8, .42) 100%), /* taste-skill-ignore: neutral scrim over a photograph */
    linear-gradient(180deg, rgba(10, 10, 8, .42) 0%, rgba(10, 10, 8, .08) 34%, rgba(10, 10, 8, 0) 55%, rgba(10, 10, 8, .38) 100%) /* taste-skill-ignore: neutral scrim over a photograph */;
  transition: opacity 1.6s var(--ease-soft);
}
.intro.is-hero .intro__scene::after { opacity: 1; }
.intro.is-hero .intro__vignette { opacity: 0; }
.intro__glow {
  position: absolute; left: 0; top: 0; width: 70vmin; height: 70vmin; margin: -35vmin 0 0 -35vmin;
  border-radius: 50%; opacity: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 228, 160 /* taste-skill-ignore: cinematic grade inside the intro film */, .85) 0%, rgba(255, 196, 110, .35) 28%, rgba(255, 180, 90, 0) 62%);
  will-change: transform, opacity;
}

/* the hand-over: the pair's glow swells into a warm light that fills the frame; behind it the film
   gives way to the real hero, then the light clears off the couple (site.js leave). A small soft
   disc scaled up by JS: the blur of an up-scaled gradient is the look, and it stays GPU-cheap. */
.intro__flare {
  position: absolute; left: 0; top: 0; width: 600px; height: 600px; margin: -300px 0 0 -300px;
  border-radius: 50%; opacity: 0; pointer-events: none; z-index: 4;
  background: radial-gradient(circle closest-side, rgba(255, 250, 240, 1) 0% /* taste-skill-ignore: cinematic grade inside the intro film */, rgba(255, 246, 230, 1) 45%, rgba(255, 226, 172, .7) 72%, rgba(255, 206, 130, 0) 100%);
  will-change: transform, opacity;
}
.intro.is-ready.is-flaring .intro__skip { opacity: 0; pointer-events: none; transition: opacity .4s var(--ease-soft); }
.js.intro-on .intro.is-flared { background: transparent; pointer-events: none; }
.intro.is-flared .intro__scene, .intro.is-flared .intro__panel, .intro.is-flared .intro__tagline, .intro.is-flared .intro__skip { visibility: hidden; }

.ibee, .ibees-together {
  position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none;
  will-change: transform, opacity;

}
.ibee { width: var(--bee, 200px); aspect-ratio: 1 / 1; }
/* asleep until the film wakes them: eyes shut, wings folded still, antennae drooping slowly */
.ibee:not(.is-awake) .brig__blink { -webkit-animation: none; animation: none; opacity: 1; }
.ibee:not(.is-awake) .brig__wing { -webkit-animation: none; animation: none; }
.ibee:not(.is-awake) .brig__ant { -webkit-animation-duration: 5.5s; animation-duration: 5.5s; }
.ibees-together { width: var(--pair, 560px); }
.ibees-together .bpair__bee { width: var(--pair-bee, 40%); }

.intro__tagline {
  position: absolute; left: 0; right: 0; top: max(7vh, calc(env(safe-area-inset-top) + 28px));
  margin: 0; padding: 0 var(--gutter); text-align: center;
  font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.15; color: #fff; z-index: 3; text-wrap: balance;
  opacity: 0; transform: translateY(14px); filter: blur(8px);
  transition: opacity 2s var(--ease-soft) .5s, transform 2.2s var(--ease) .5s, filter 2s var(--ease-soft) .5s;
}
.intro.is-ready .intro__tagline { opacity: 1; transform: none; filter: none; }
.intro.is-bloomed .intro__tagline { opacity: 0; transform: translateY(-10px); transition-delay: 0s; transition-duration: .9s; }
/* a neutral scrim at the top of the photo so the opening line reads on the bright sky */
.intro__vignette::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 38%;
  background: linear-gradient(180deg, rgba(10, 10, 8, .55), rgba(10, 10, 8, 0)); /* taste-skill-ignore: neutral scrim over a photograph */
  transition: opacity 1.2s var(--ease-soft);
}
.intro.is-bloomed .intro__vignette::before { opacity: 0; }

.intro__panel {
  position: absolute; left: 50%; bottom: max(9vh, calc(env(safe-area-inset-bottom) + 40px));
  transform: translateX(-50%);
  width: min(94vw, 1100px);
  justify-items: center;
  overflow: visible;
  text-align: center;
  display: grid;
  align-items: end;
}
/* every step lives in the same cell, so cross-fades never push each other around */
.istep { grid-area: 1 / 1; pointer-events: none; width: min(100%, 600px); }
.istep.is-active { pointer-events: auto; }
.istep { opacity: 0; transform: translateY(14px); filter: blur(4px); transition: opacity .9s var(--ease-soft), transform 1s var(--ease), filter .9s var(--ease-soft); }
.istep.is-active { opacity: 1; transform: none; filter: none; }
.istep__prompt {
  display: block; margin: 0 0 14px;
  font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: #fff;
  min-height: 1.5em;
  transition: opacity .45s;
}
.istep__prompt.is-swapping { opacity: 0; }

.lang-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px; }
.glass-btn, .glass-input {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: rgba(253, 253, 253, .86);
  color: var(--ink);
  min-height: 48px;
}
.glass-btn {
  font-family: var(--f-body); font-weight: 600; font-size: .9rem;
  padding: .85em 1.35em; min-width: 140px;
  transition: background .35s, transform .35s var(--ease);
}
.glass-btn:hover { background: rgba(255, 255, 255, .9); transform: translateY(-2px); }
.glass-btn:active { transform: translateY(0) scale(.98); }
.glass-btn.is-picked { background: #fff; }
.glass-btn--wide { min-width: min(300px, 86vw); }
.name-form { display: grid; gap: 12px; }
.glass-input {
  width: 100%; padding: .7em 1em; text-align: center;
  font: 500 1.05rem/1.2 var(--f-body); letter-spacing: .02em;
}
.glass-input::placeholder { font-family: var(--f-body); font-weight: 600; font-size: .85rem; color: rgba(2, 2, 2, .62); }
.glass-input:focus { outline: 3px solid var(--honey-3); outline-offset: 2px; background: #fff; }
@media (min-width: 560px) { .name-form { grid-template-columns: 1fr auto; } }

.loading-word {
  margin: 0 0 12px; padding-left: .46em;
  font: 700 clamp(.95rem, 1.7vw, 1.15rem)/1 var(--f-body);
  letter-spacing: .46em; text-transform: uppercase; color: var(--honey);

}
.honeybar { display: inline-flex; align-items: center; width: min(76vw, 300px); height: 40px; }
.honeybar__heart { height: 38px; width: auto; flex: none; position: relative; z-index: 2; image-rendering: pixelated; }
.hb-o { fill: var(--navy); }
.hb-f { fill: var(--honey-2); }
.hb-s { fill: var(--honey); }
.honeybar__track {
  position: relative; flex: 1; height: 22px; margin-left: -5px;
  background: var(--latte-line);
  border: 4px solid var(--navy);
  border-left-width: 0;

}
.honeybar__fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--honey-2);

}
.honeybar__fill::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 4px; background: var(--navy); }

.bloom__hello {
  margin: 0 0 .5em; min-height: 1em;
  font: 600 .85rem/1.2 var(--f-body);
  color: #fff;
}
.bloom__names {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: .22em;
  margin: 0 0 .28em; color: #fff;
  font: 500 clamp(3.1rem, 6.6vw, 6.4rem)/.95 var(--f-display);
  white-space: nowrap;
  letter-spacing: .02em; text-transform: uppercase;

}
.bloom__amp {
  font: italic 500 1em/1 var(--f-display); text-transform: none; color: var(--honey);
  margin: 0 .02em; transform: translateY(.06em);
}
.bloom__n, .bloom__amp { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(10px); transition: opacity 1.4s var(--ease-soft), transform 1.5s var(--ease), filter 1.4s var(--ease-soft); }
.istep.is-active .bloom__n, .istep.is-active .bloom__amp { opacity: 1; transform: none; filter: none; }
.istep.is-active .bloom__amp { transition-delay: .35s; transform: translateY(.06em); }
.istep.is-active .bloom__n:last-child { transition-delay: .55s; }
#stepBloom { width: 100%; }
@media (max-width: 699px) {
  .bloom__names { flex-direction: column; align-items: center; row-gap: .02em; font-size: clamp(3.3rem, 17vw, 4.6rem); }
  .bloom__amp { font-size: .78em; margin: -.14em 0 -.04em; }
}
.bloom__line {
  font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1.32;
  color: #fff; margin: 0 0 22px;
}
.bloom__line span, .bloom__hello, #enterSite { display: inline-block; opacity: 0; transform: translateY(12px); filter: blur(6px); transition: opacity 1.2s var(--ease-soft), transform 1.2s var(--ease), filter 1.2s var(--ease-soft); }
.istep.is-active .bloom__line span, .istep.is-active .bloom__hello, .istep.is-active #enterSite { opacity: 1; transform: none; filter: none; }
.istep.is-active .bloom__line span { transition-delay: .9s; }
.istep.is-active .bloom__line span:nth-child(3) { transition-delay: 1.2s; }
.istep.is-active #enterSite { transition-delay: 1.6s; }

.intro__skip {
  position: absolute; right: max(14px, env(safe-area-inset-right)); top: max(14px, env(safe-area-inset-top));
  z-index: 3; min-height: 44px; padding: 0 16px;
  background: rgba(20, 20, 20, .28);
  border: 0; border-radius: 0;
  color: #fff; font: 500 .72rem/1 var(--f-body);
  opacity: 0; transition: opacity .8s 1.4s, background .3s;
}
.intro.is-ready .intro__skip { opacity: .85; }
.intro__skip:hover { background: rgba(20, 20, 20, .5); opacity: 1; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 120; height: var(--nav-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 var(--gutter); padding-top: env(safe-area-inset-top);
  color: #fff;
  transition: background .5s, color .5s, transform .6s var(--ease), opacity .6s;
}
.intro-on .nav { opacity: 0; pointer-events: none; }
.nav.is-solid {
  color: var(--ink);
  background: rgba(238, 237, 231, .84);

}
.nav__mark { text-decoration: none; margin-right: auto; }
.nav__mono { font: 500 1.45rem/1 var(--f-display); letter-spacing: .06em; }
/* the couple's AR monogram (img/monogram.svg) as a mask, so it takes the text colour around it */
.mono-mark { display: inline-block; vertical-align: middle; height: 1.5em; aspect-ratio: 1095 / 831; background-color: currentColor;
  -webkit-mask: url(img/monogram.svg) center / contain no-repeat; mask: url(img/monogram.svg) center / contain no-repeat; }
.amp { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1em; margin: 0 .08em; color: var(--honey-2); }
.nav.is-solid .amp { color: var(--latte); }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav__links a {
  text-decoration: none; font: 500 .72rem/1 var(--f-body);
  padding: 8px 0; position: relative;
}
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__links .nav__rsvp { background: var(--ink); color: var(--paper); padding: 11px 18px; }
.nav:not(.is-solid) .nav__links .nav__rsvp { background: var(--paper); color: var(--ink); }
.nav__links .nav__rsvp::after { display: none; }
.nav__lang { display: flex; gap: 2px; }
.nav__lang button {
  background: none; border: 0; min-width: 36px; min-height: 40px; padding: 0 4px;
  font: 600 .74rem/1 var(--f-body); letter-spacing: .12em; opacity: .7; transition: opacity .3s;
  -webkit-tap-highlight-color: transparent;
}
.nav__lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
/* the couple's song: a small equaliser in the header; bars sit low when paused, dance when playing */
.nav__music {
  display: grid; place-content: center; width: 40px; height: 40px; padding: 0; background: none; border: 0; color: inherit;
  opacity: .7; transition: opacity .3s; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.nav__music:hover, .nav__music[aria-pressed="true"] { opacity: 1; }
.nav__music-bars { display: flex; align-items: flex-end; gap: 3px; height: 14px; }
.nav__music-bars i { display: block; width: 2px; height: 14px; background: currentColor; transform: scaleY(.35); transform-origin: bottom; transition: transform .4s var(--ease); }
.nav__music[aria-pressed="true"] .nav__music-bars i { animation: music-bar 1.1s ease-in-out infinite; }
.nav__music[aria-pressed="true"] .nav__music-bars i:nth-child(2) { animation-delay: -.35s; }
.nav__music[aria-pressed="true"] .nav__music-bars i:nth-child(3) { animation-delay: -.7s; }
@keyframes music-bar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .nav__music[aria-pressed="true"] .nav__music-bars i { animation: none; transform: scaleY(1); } }
.nav__burger { display: none; }

@media (max-width: 959px) {
  .nav__burger {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; background: none; border: 0; padding: 0;
  }
  .nav__burger span:not(.sr-only) { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 22px;
    background: var(--paper); color: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease-soft), visibility .45s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__links a { font: 500 1.6rem/1.1 var(--f-display); letter-spacing: .06em; }
  .nav__links .nav__rsvp { padding: 14px 28px; }
  .nav.menu-open { color: var(--ink); background: transparent; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; display: grid; }
.hero > picture { position: absolute; inset: 0; }   /* behind the title, not a grid row that pushes it down */
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform-origin: 50% 60%; will-change: transform; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 8, .42) 0%, rgba(10, 10, 8, .08) 34%, rgba(10, 10, 8, 0) 55%, rgba(10, 10, 8, .38) 100%) /* taste-skill-ignore: neutral scrim over a photograph */;
}
.hero__scrim::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(180deg, rgba(10, 10, 8, 0), rgba(10, 10, 8, .42)) /* taste-skill-ignore: neutral scrim over a photograph */;
}
.hero__content {   /* the whole title lives in the sky above the couple, never over them */
  position: relative; z-index: 1; display: grid; justify-items: center; align-content: start; gap: 1.2vh;
  padding: calc(var(--nav-h) + 2.5vh) var(--gutter) max(7vh, 44px);
  text-align: center;
}
.hero__kicker {
  font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(1.15rem, 2.2vw, 1.6rem); letter-spacing: .02em;
  margin: 0;
}
.hero__names {
  position: relative; display: grid; justify-items: end; margin-top: 1vh;
  font: 500 clamp(3.2rem, min(16vw, 12.5vh), 10.5rem)/.9 var(--f-display);   /* capped by height too, so it can't reach their heads */
  letter-spacing: -.012em; text-transform: uppercase;

}
.hero__name { display: block; overflow: hidden; padding: 0 .02em; }
.hero__name--b { margin-right: -.04em; }
.hero__amp {
  position: absolute; left: 12%; top: 44%;
  font: italic 500 clamp(4.2rem, 12vw, 8.4rem)/1 var(--f-display);
  color: rgba(252, 219, 134, .92); text-transform: none;

  pointer-events: none;
}
.hero__date {
  text-align: center; display: grid; gap: 2px; margin: .6vh 0 0;
  font: 600 clamp(.86rem, 1.25vw, 1rem)/1.5 var(--f-body);

}

/* hero entrance (played by JS once the intro hands over) */
.js .hero__kicker, .js .hero__date, .js .hero__amp { opacity: 0; }
/* names stay hidden until the script has split them into letters — no flash of the full title */
.js .hero:not(.is-split) .hero__name { visibility: hidden; }
.js .hero__name > .ch { display: inline-block; transform: translateY(105%); }
.hero.is-in .hero__kicker { animation: fadeUp 1.2s var(--ease) .1s forwards; }
.hero.is-in .hero__name > .ch { animation: rise 1.25s var(--ease) forwards; animation-delay: calc(.25s + var(--i) * .055s); }
.hero.is-in .hero__amp { animation: ampIn 1.8s var(--ease) .9s forwards; }
.hero.is-in .hero__date { animation: fadeUp 1.2s var(--ease) 1.25s forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ampIn { from { opacity: 0; transform: scale(.85) rotate(-6deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ==========================================================================
   THIS IS US
   ========================================================================== */
.sec--us { padding-top: clamp(72px, 9vw, 120px); }
.sec--us .title { margin-bottom: clamp(36px, 5vw, 64px); }
.us { display: grid; gap: 28px; }
.us__photo { margin: 0; overflow: hidden; }
.us__photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.us__photo--a img { object-position: 30% 30%; }
.us__bios { display: contents; }
.bio__name { font: 700 1.3rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.bio__tag { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.3rem; color: var(--ink-soft); margin: .2em 0 1em; }
.bio p:not(.bio__tag) { font-size: 1rem; line-height: 1.8; }
.bio__bee { display: none; }
.us__photo--a { order: 1; } .bio--a { order: 2; } .us__photo--b { order: 3; } .bio--b { order: 4; }
@media (min-width: 900px) {
  .us { grid-template-columns: 1fr 1.02fr 1fr; gap: clamp(24px, 3vw, 44px); align-items: stretch; }
  .us__bios { display: flex; flex-direction: column; justify-content: space-between; order: 2; }
  .us__photo--a { order: 1; } .us__photo--b { order: 3; }
  .us__photo img { height: 100%; aspect-ratio: auto; min-height: 640px; }
  .bio--b { text-align: right; }
  .bio--b p:not(.bio__tag):not(.bio__name) { text-align: left; }
}

/* ==========================================================================
   LOVE STORY
   ========================================================================== */
.sec--story { padding-top: 0; }
.story { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
.story__text { text-align: center; }
.story__text .title { text-align: center; }
.story__prose { margin-top: clamp(28px, 4vw, 44px); font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.75; }
.story__prose .script { font-size: 1.12em; }
.story__beat { font-family: var(--f-display); font-style: italic; font-size: 1.15em; line-height: 1.5; }
.story__pull { font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.45; max-width: 26em; margin-inline: auto; }
.story__end { font-family: var(--f-display); font-style: italic; font-size: 1.25em; color: var(--ink); margin-top: 1.4em; }
.story__photos { display: grid; gap: 8px; }
.story__photos figure { margin: 0; overflow: hidden; }
.story__photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 900px) {
  .story { grid-template-columns: 1.04fr 1fr; }
  .story__text .title { text-align: center; }
}

/* ==========================================================================
   FROM THEN TO NOW
   ========================================================================== */
/* the chapter-by-chapter trail lives at the end of this file */

/* ==========================================================================
   THE BEES
   ========================================================================== */
.sec--bees { overflow: hidden; }
.bees-note { display: grid; gap: 28px; align-items: center; position: relative; }
.bees-note__art { position: relative; }
/* the ring: the game's two boxers facing off (site.js initRing); the shared poses are under "Boxers" */
.ring { position: relative; width: min(100%, 620px); aspect-ratio: 1500 / 1150; margin-inline: auto; }   /* headroom for the dodge, which lifts a boxer a third of its height */
.ring .bx-fighter { position: absolute; bottom: 2%; width: 54%; }
.ring .bx-fighter--left { left: -2%; }
.ring .bx-fighter--right { right: -2%; }
.ring .bee-heart { width: 26px; height: 23px; margin: -11px 0 0 -13px; }
@keyframes hover { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-14px) rotate(.6deg); } }
.bees-note__text { text-align: center; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.75; }
.bees-note__lead { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.25em; }
.bees-note__sign { font-family: var(--f-display); font-style: italic; font-size: 1.3em; color: var(--gold-deep); }
.bees-note__text strong { font-weight: 700; color: var(--gold-deep); }
/* add-to-calendar (site.js ADD TO CALENDAR) + the guest's own table */
.addcal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 1.4em; }
.addcal__label { width: 100%; font-size: var(--fs-small, .9375rem); color: var(--ink-soft); }
.addcal__btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink);
  font: 600 .85rem/1 var(--f-body); color: var(--ink); text-decoration: none; transition: background .3s, color .3s;
}
.addcal__btn:hover { background: var(--ink); color: var(--paper); }
.rsvp__done .addcal { justify-content: center; }
.rsvp__done .addcal__label { text-align: center; }
.mytable { margin: 1.2em 0 0; font-family: var(--f-display); font-style: italic; font-size: 1.25rem; }
.mytable strong { font-style: normal; color: var(--gold-deep); }
.bees-note__play { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 1.6em; text-align: left; }   /* lines up with the words above */
.bees-note__playnote { font-size: var(--fs-small, .9375rem); color: var(--ink-soft); }
@media (min-width: 900px) {
  .bees-note { grid-template-columns: 1.1fr 1fr; }
  .bees-note__text { text-align: right; }
}

/* ==========================================================================
   A GLIMPSE / COUNTDOWN
   ========================================================================== */
.sec--glimpse { background: var(--paper-warm); overflow: hidden; }   /* the countdown bees enter from the sides */
.glimpse { display: grid; gap: clamp(32px, 4vw, 56px); align-items: center; text-align: center; }
.glimpse__left p { font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.7; margin-top: 1.5em; }
.glimpse__label { font-weight: 700; font-size: .95rem !important; }
.glimpse__poster { margin: 0 auto; width: min(340px, 78vw); }
.glimpse__poster img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.glimpse__motto { font-size: clamp(1.35rem, 2.2vw, 1.875rem); line-height: 1.3; }
.glimpse__begins { font-size: 1.05rem; margin: 2.2em 0 1.6em; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 auto 32px; max-width: 360px; }
.countdown > div { display: grid; gap: 6px; }
.cd__n { font: 600 clamp(1.9rem, 3.6vw, 2.875rem)/1 var(--f-body); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.cd__l { font-size: .68rem; color: var(--ink-soft); }
.line-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border: 0; background: var(--ink); color: var(--paper); text-decoration: none;
  font: 700 .95rem/1 var(--f-body); 
  transition: background .35s, color .35s, transform .35s var(--ease);
}
.line-btn:hover { background: var(--gold-deep); transform: translateY(-2px); }
@media (min-width: 960px) {
  .glimpse { grid-template-columns: 1fr minmax(280px, 340px) 1fr; }
}

/* ==========================================================================
   THE DAY
   ========================================================================== */
.day { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.day__glance .subtitle { font-weight: 600; letter-spacing: 0; }
.schedule { list-style: none; margin: 0; padding: 0; }
.schedule li {
  display: grid; grid-template-columns: 6.4rem 1fr; align-items: baseline; gap: 12px;
  padding: 16px 0;
  font-size: 1.05rem;
}
.schedule time { font-variant-numeric: tabular-nums; letter-spacing: .02em; position: relative; padding-left: 16px; }
.schedule time::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--honey-2); }
.js .schedule li { opacity: 0; transform: translateX(-10px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms + 200ms); }
.js .reveal.is-in .schedule li { opacity: 1; transform: none; }
.day__photo { margin: 0; overflow: hidden; }
.day__photo img { width: 100%; aspect-ratio: 8 / 9; object-fit: cover; object-position: 66% 50%; }
@media (min-width: 900px) { .day { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   DRESS CODE
   ========================================================================== */
.sec--dress { background: var(--paper-warm); }
.dress__intro { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.02em; margin-bottom: 1.4em; }
.sec--dress .title { margin-bottom: clamp(28px, 4vw, 44px); }
.palette {
  list-style: none; margin: 0 auto clamp(56px, 7vw, 96px); padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 18px; max-width: 980px;
}
.palette li { display: grid; justify-items: center; gap: 10px; width: 92px; text-align: center; }
.palette li::before {
  content: ""; width: clamp(58px, 7vw, 82px); aspect-ratio: 1; border-radius: 50%; background: var(--c);

  transition: transform .5s var(--ease);
}
.palette li:hover::before { transform: translateY(-4px) scale(1.05); }
.palette span { font: 600 .68rem/1.35 var(--f-body); color: var(--ink-soft); }
.palette li:nth-child(1) { --c: #7e8a55; }
.palette li:nth-child(2) { --c: #6890ba; }
.palette li:nth-child(3) { --c: #bd8299; }
.palette li:nth-child(4) { --c: #ecb1b2; }
.palette li:nth-child(5) { --c: #dd6c80; }
.palette li:nth-child(6) { --c: #f3a782; }
.palette li:nth-child(7) { --c: #de8346; }
.palette li:nth-child(8) { --c: #f2e1d0; }
.palette li:nth-child(9) { --c: #ecd9bf; }
.palette li:nth-child(10) { --c: #dcc1a4; }
.palette li:nth-child(11) { --c: #bf9c80; }
.palette li:nth-child(12) { --c: #a68e78; }
.palette li:nth-child(13) { --c: #c8c5bd; }
.attire { text-align: center; margin-bottom: clamp(56px, 7vw, 96px); }
.attire:last-child { margin-bottom: 0; }
.attire__pref { font-weight: 700; font-size: clamp(1rem, 1.7vw, 1.3rem); margin-bottom: .2em; color: var(--ink); }
.attire__list { color: var(--ink-soft); font-size: clamp(.98rem, 1.5vw, 1.15rem); margin-bottom: .2em; }
.attire__note { font-weight: 700; font-size: clamp(.98rem, 1.5vw, 1.15rem); margin-bottom: 1.6em; }
.board {
  background: #fff; margin: 0 auto 14px;

  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.board img { width: 100%; min-width: 760px; }
@media (min-width: 800px) { .board img { min-width: 0; } }

/* ==========================================================================
   THE FILIPINO WEDDING
   ========================================================================== */
.sec--ph .title { margin-bottom: clamp(24px, 4vw, 40px); }
.mabuhay { position: relative; display: grid; justify-items: center; padding: 24px 0; }
.mab-icon { mix-blend-mode: multiply; width: clamp(64px, 12vw, 150px); pointer-events: none; }
.mabuhay__text { text-align: center; max-width: 560px; color: var(--navy); font-size: 1.08rem; z-index: 1; }
.mabuhay__hello { display: grid; gap: .1em; margin: .5em 0 .6em; font: 600 clamp(2rem, 5.4vw, 3.3rem)/1.3 var(--f-display); color: var(--navy); padding-left: .12em; }
.mabuhay__hello span { display: block; }
@media (max-width: 899px) {
  .mabuhay { grid-template-columns: repeat(3, auto); justify-content: center; gap: 4px 18px; }
  .mab-icon { width: clamp(64px, 20vw, 110px); }
  .mab-icon--envelope, .mab-icon--plate, .mab-icon--beer { order: 3; }
  .mabuhay__text { grid-column: 1 / -1; order: 2; }
}
/* desktop: the words hold the left column, the six watercolours sit in a tidy 3 × 2 set on the right,
   each centred in a cell of the same size (the artworks have different shapes) */
@media (min-width: 900px) {
  .mabuhay { grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, .8fr)); grid-template-rows: repeat(2, 180px);
    align-items: center; justify-items: center; column-gap: clamp(16px, 2.4vw, 40px); row-gap: 28px; padding: 0; }
  .mabuhay__text { grid-column: 1; grid-row: 1 / 3; justify-self: start; order: -1; }
  .mab-icon { justify-self: center; width: 100%; max-width: 160px; height: 150px; object-fit: contain; animation: float 9s var(--ease-soft) infinite; }
  .mab-icon--dove { animation-delay: -1s; }
  .mab-icon--rosary { animation-delay: -3s; }
  .mab-icon--envelope { animation-delay: -5s; }
  .mab-icon--plate { animation-delay: -2s; }
  .mab-icon--wine { animation-delay: -6s; }
  .mab-icon--beer { animation-delay: -4s; }
}
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-1.5deg); } 50% { transform: translate3d(0, -12px, 0) rotate(1.5deg); } }

.chapters { list-style: none; padding: 0; margin: clamp(48px, 6vw, 80px) auto 0; display: grid; gap: 0; }
.chapter { padding: clamp(28px, 3.4vw, 44px) 0; text-align: left; }
.chapter__t { font: 600 clamp(1.3rem, 2vw, 1.875rem)/1.1 var(--f-display); color: var(--ink); }
.chapter__s { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.3rem; margin: .2em 0 .8em; color: var(--ink); }
.chapter p:not(.chapter__s) { max-width: 40em; margin-inline: auto; }
@media (min-width: 900px) {
  .chapters { grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 6vw, 96px); }
  .chapter { text-align: left; }
  .chapter p:not(.chapter__s) { margin-inline: 0; }
}
/* the section break: a dashed flight path with the couple's own bees (the rigs) at its end */
.trail-bee {
  position: relative; display: block; width: 300px; height: 189px; margin: clamp(40px, 5vw, 64px) auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 58'%3E%3Cpath d='M4 50c14-2 22-14 30-10s2 14-6 10 0-18 16-22 18-2 22-10' fill='none' stroke='%23736128' stroke-width='.8' stroke-dasharray='1 2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: float 6s var(--ease-soft) infinite;
}
.trail-bee__pair { position: absolute; left: 78%; top: 16%; width: 66%; transform: translate(-50%, -50%); }

/* ==========================================================================
   VENUES (ceremony + reception)
   ========================================================================== */
.venue__name { font: 500 clamp(1.2rem, 2.4vw, 2rem)/1.15 var(--f-display); margin-top: .7em; }
.duo { display: grid; gap: 4px; margin-bottom: clamp(32px, 4vw, 52px); }
.duo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.duo figure { margin: 0; overflow: hidden; }
.duo figcaption { text-align: center; padding: 18px 0 0; display: grid; gap: 4px; }
.duo figcaption span { font-size: .85rem; }
.duo figcaption strong { font: 600 clamp(1.25rem, 2vw, 1.6rem)/1.1 var(--f-display); }
@media (min-width: 760px) { .duo { grid-template-columns: 1fr 1fr; } }
.address { text-align: center; margin-bottom: clamp(56px, 7vw, 96px); }
.address p { letter-spacing: .04em; }
.address__label { font-weight: 700; font-size: .9rem; margin-bottom: .5em !important; }
.pin-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; margin-top: .4em;
  border: 0; background: var(--ink); color: var(--paper); text-decoration: none; font: 600 .78rem/1 var(--f-body);
  transition: background .35s, color .35s, transform .35s var(--ease);
}
.pin-btn svg { width: 18px; height: 18px; fill: currentColor; }
.pin-btn:hover { background: var(--gold-deep); transform: translateY(-2px); }

.invite { text-align: center; max-width: 860px; }
.invite__lead { font: italic 500 clamp(1.25rem, 2.2vw, 1.8rem)/1.3 var(--f-display); color: var(--gold-deep); }
.invite__names { display: grid; margin: .3em 0 .5em; font: italic 500 clamp(1.9rem, 4.6vw, 3.1rem)/1.3 var(--f-display); color: var(--charcoal); }
.invite__amp { font-family: var(--f-display); font-style: italic; font-size: .7em; line-height: 1; color: var(--latte); }
.parents { display: grid; gap: 28px; margin-top: clamp(32px, 4vw, 56px); }
.sig { font: italic 500 clamp(1.25rem, 2.2vw, 1.6rem)/1.45 var(--f-display); color: var(--charcoal); margin: 0; }
.cross { font-family: var(--f-display); font-size: .7em; }
@media (min-width: 760px) { .parents { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   ENTOURAGE
   ========================================================================== */
.sec--entourage { background: var(--paper-warm); text-align: center; }
.sec--entourage .title { margin-bottom: clamp(40px, 5vw, 72px); font-weight: 600; }
.ent { margin-bottom: clamp(44px, 5vw, 68px); }
.ent__why { font-family: var(--f-display); font-style: italic; font-weight: 500; color: var(--stone); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.4; margin-bottom: .8em; }
.ent__name { font: 600 clamp(.95rem, 1.5vw, 1.15rem)/1.5 var(--f-body); color: var(--charcoal); margin: 0 0 .2em; }
.ent__tba { font-style: italic; color: var(--stone); font-size: .98rem; }
.ent__sub { font: 700 .95rem/1 var(--f-body); color: var(--gold); margin-bottom: .4em; }
.ent__pair, .ent__trio { display: grid; gap: 10px 48px; }
.ent__trio { gap: 34px; margin-top: 18px; }
@media (min-width: 760px) {
  .ent__pair { grid-template-columns: 1fr 1fr; }
  .ent__pair > :first-child { text-align: right; }
  .ent__pair > :last-child { text-align: left; }
  .ent__trio { grid-template-columns: repeat(3, 1fr); }
}
.tribute {
  max-width: 820px; margin: 0 auto clamp(44px, 5vw, 68px);
  padding: clamp(28px, 4vw, 44px) 0;
  background: var(--paper); padding-inline: clamp(20px, 4vw, 48px);
  font-family: var(--f-display); font-style: italic; font-weight: 500; color: var(--gold-deep); font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.5;
}
.tribute .ent__name { font-family: var(--f-body); margin-bottom: .9em; }
.tribute .ent__pair { margin-bottom: .9em; }

/* ==========================================================================
   RECEPTION extras
   ========================================================================== */
.why { display: grid; gap: clamp(32px, 4vw, 56px); }
.why__text p { font-size: 1.04rem; }
.why__text .subtitle:not(:first-child) { margin-top: 1.4em; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.mosaic img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 900px) { .why { grid-template-columns: 1.25fr 1fr; align-items: start; } .mosaic { position: sticky; top: calc(var(--nav-h) + 24px); } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; gap: 28px; }
.faq__title { font-weight: 400; letter-spacing: -.01em; line-height: 1.05; }
.qa { padding-block: 4px; }
.qa + .qa { margin-top: 6px; }
.qa[open] { background: var(--paper-warm); }
.qa summary {
  display: grid; grid-template-columns: 2.4rem 1fr 24px; align-items: baseline; gap: 10px;
  padding: 22px 0; cursor: pointer; list-style: none; min-height: 48px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 300 1.6rem/1 var(--f-body); text-align: right; transition: transform .4s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa__q { font: 600 clamp(1.12rem, 1.8vw, 1.45rem)/1.25 var(--f-display); color: var(--ink); }
.qa__a { padding: 0 0 20px 3.05rem; font-size: 1rem; }
.qa__a ul { margin: 0 0 1em; padding-left: 1.2em; font-weight: 600; }
.qa__a a { color: var(--gold); text-underline-offset: 3px; }
.hashtags { display: flex; flex-wrap: wrap; gap: 8px 16px; font-weight: 700; color: var(--gold-deep); }
@media (max-width: 559px) { .qa__a { padding-left: 0; } }
@media (min-width: 960px) {
  .faq { grid-template-columns: minmax(260px, .7fr) 1.6fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
  .faq__title { position: sticky; top: calc(var(--nav-h) + 40px); font-size: clamp(2.4rem, 4vw, 3.4rem); }
}

/* ==========================================================================
   GIFTS
   ========================================================================== */
.sec--gift { background: var(--latte); color: #fff; padding-block: clamp(56px, 7vw, 96px); }
.gift { display: grid; gap: 32px; align-items: center; text-align: center; }
.gift__title { font: 600 clamp(1.3rem, 2.2vw, 1.875rem)/1.3 var(--f-display); color: #fff; margin-bottom: 1em; text-wrap: balance; }
.gift__text p { font-size: 1.02rem; line-height: 1.7; color: rgba(255, 255, 255, .96); }
.gift__qrs { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.qr { margin: 0; display: grid; gap: 8px; justify-items: center; }
.qr__frame { width: clamp(150px, 18vw, 190px); aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 10px; }
.qr__frame img { width: 100%; height: 100%; object-fit: contain; }
.qr__soon { color: var(--latte); font: 500 .72rem/1.4 var(--f-body); text-align: center; }
.qr figcaption { font: 600 .78rem/1 var(--f-body); }
@media (min-width: 900px) { .gift { grid-template-columns: 1.5fr 1fr; } }

/* ==========================================================================
   RSVP
   ========================================================================== */
.sec--rsvp { text-align: center; }
.rsvp__honour { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 2.3vw, 1.875rem); margin-top: 1em; }
.rsvp__when { font: 600 .95rem/1.5 var(--f-body); }
.rsvp__deadline { display: grid; gap: 4px; margin: 1.6em auto 0; }
.rsvp__deadline span { font-weight: 700; font-size: .82rem; }
.rsvp__deadline strong { font: 600 1.25rem/1 var(--f-display); }
.rsvp__preview {
  display: table; margin: 0 auto 28px; padding: 10px 18px; border-radius: 999px;   /* table: shrink-wrapped, centred over the form */
  background: rgba(252, 219, 134, .5);
  font-size: .85rem; letter-spacing: .04em;
}
.rsvp { max-width: 760px; margin: 0 auto; }
.rsvp__ask { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.35rem; }
.field { display: grid; gap: 8px; text-align: left; margin: 1.2em 0 1.4em; }
.field__label { font: 700 .85rem/1.3 var(--f-body); color: var(--ink); }
.field input, .party input[type="text"] {
  -webkit-appearance: none; appearance: none; width: 100%;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent;
  padding: .6em 0; font: 500 1.15rem/1.3 var(--f-body); color: var(--ink);
  transition: border-color .3s;
}
.field input:focus, .party input[type="text"]:focus { outline: 2px solid var(--honey-3); outline-offset: 4px; border-bottom-color: var(--honey-3); }
.solid-btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 34px; border: 0; border-radius: 0;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font: 600 .88rem/1 var(--f-body);
  transition: background .35s, color .35s, transform .35s var(--ease);
}
.solid-btn:hover { transform: translateY(-2px); }
.solid-btn:disabled { opacity: .55; cursor: progress; transform: none; }
.solid-btn--latte { background: var(--latte); color: var(--ink); }
.solid-btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.rsvp__msg { font-style: italic; text-align: left; margin: 1.2em 0 0; padding-left: 1.2em; position: relative; }
.rsvp__msg::before { content: "•"; position: absolute; left: 0; font-style: normal; }
.rsvp__msg--err { color: var(--err); }
.rsvp__msg--ok { color: var(--ok); margin-bottom: 1.4em; }
.rsvp__matches { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: 8px; text-align: left; }
.rsvp__matches button {
  width: 100%; min-height: 52px; text-align: left; padding: 12px 16px; background: #fff; border: 0;
  font: 500 1rem/1.3 var(--f-body); transition: border-color .3s, background .3s;
}
.rsvp__matches button:hover { background: var(--paper-warm); }
.reserved { background: var(--latte); color: var(--ink); padding: 26px 16px 22px; margin: 0 calc(-1 * var(--gutter)) 36px; }
.reserved__k { font: 500 clamp(1.15rem, 2vw, 1.5rem)/1 var(--f-display); }
.reserved__n { font: 600 clamp(4rem, 9vw, 6.6rem)/1 var(--f-display); color: var(--paper); margin: .05em 0 .05em; }
.reserved__l { font-style: italic; font-size: 1.15rem; margin: 0; }
@media (min-width: 800px) { .reserved { margin-inline: 0; } }
.rsvp__note { font-style: italic; font-size: .98rem; }
.party { list-style: none; padding: 0; margin: 28px 0; text-align: left; display: grid; gap: 14px; counter-reset: guest; }
.party li {
  counter-increment: guest;
  display: grid; gap: 12px; padding: 18px 18px 20px; background: #fff;

}
.party__name { font: 600 1.05rem/1.3 var(--f-body); }
.party__name::before { content: counter(guest) ". "; color: var(--latte); }
.yesno { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; width: max-content; }
.yesno label { position: relative; }
.yesno input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.yesno span {
  display: grid; place-items: center; min-width: 84px; min-height: 44px; padding: 0 16px;
  font: 700 .78rem/1 var(--f-body); background: var(--paper);
  transition: background .25s, color .25s;
}
.yesno input:checked + span { background: var(--ink); color: var(--paper); }
.yesno input:focus-visible + span { outline: 2px solid var(--honey-3); outline-offset: 2px; }
.party__extra { display: grid; gap: 10px; }
.party__extra[aria-hidden="true"] { display: none; }
.party label.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: .98rem; }
.party input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--ink); }
.party__dietlabel { font-size: .82rem; color: var(--ink-soft); }
.rsvp__fine { font-size: .95rem; line-height: 1.7; margin-top: 28px; }
.rsvp__done { padding: 24px 0; outline: none; }
.rsvp__pair { display: block; width: min(380px, 80%); margin: 0 auto 12px; animation: hover 6s var(--ease-soft) infinite; }
.rsvp__done .script { font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.35; }
.strict {
  background: var(--latte); color: var(--ink); max-width: none !important;
  margin: clamp(48px, 6vw, 80px) calc(-1 * var(--gutter)) calc(-1 * var(--sec-y));
  padding: clamp(40px, 5vw, 64px) var(--gutter);
}
.strict > * { max-width: 860px; margin-inline: auto; }
.strict__big { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.875rem); line-height: 1.35; margin-bottom: 1em; }

/* ==========================================================================
   CONTACT + FOOTER
   ========================================================================== */
.contact { position: relative; background: var(--latte); color: var(--paper); }
.contact__img { width: 100%; height: clamp(320px, 52vw, 640px); object-fit: cover; object-position: 50% 32%; }
.contact__band { display: grid; gap: 28px; padding: clamp(36px, 5vw, 56px) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; align-items: center; }
.contact__title { font: 500 clamp(2.1rem, 3.8vw, 2.8rem)/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; }
.contact__card p { margin: 0 0 .5em; }
.contact__who { font: 600 1.2rem/1.2 var(--f-display); margin-bottom: .6em !important; }
.contact__card a, .contact__plain { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 40px; }
.contact__card a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__card svg { width: 22px; height: 22px; fill: var(--paper); flex: none; }
.contact__card .sep { opacity: .7; margin: 0 6px; }
@media (min-width: 960px) {
  .contact__band { grid-template-columns: auto 1fr 1fr auto; gap: 40px; align-items: start; }   /* both cards start on one line */
  .contact__band > .solid-btn { align-self: center; }
}

/* The last screen is the couple's photo: monogram, date and tags in its sky, the replay and
   credit small at the foot; scrims keep both readable without hiding the couple between. */
.footer { position: relative; overflow: hidden; text-align: center; color: #fffaf3; background: #2a2018;
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(88px + env(safe-area-inset-top)) var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .footer { min-height: 92vh; } }
.footer > picture { position: absolute; inset: 0; }   /* behind the words, out of the flex column */
.footer__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 70%; }
.footer__scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 14, 10, .62) 0%, rgba(20, 14, 10, .2) 34%, transparent 50%, transparent 66%, rgba(20, 14, 10, .7) 100%); }
.footer__top, .footer__bottom { position: relative; text-shadow: 0 1px 3px rgba(20, 14, 10, .55), 0 2px 18px rgba(20, 14, 10, .4); }
.footer__mono { font: 500 2.4rem/1 var(--f-display); color: #fffaf3; margin-bottom: .2em;
  filter: drop-shadow(0 1px 3px rgba(20, 14, 10, .5)) drop-shadow(0 2px 14px rgba(20, 14, 10, .35)); }
.footer__mono .mono-mark { height: 1.8em; }
/* while it writes itself in (site.js writeMonogram) the animation takes the mask's place */
.mono-mark.is-writing { background: none; -webkit-mask: none; mask: none; }
.mono-mark.is-writing svg { display: block; width: 100%; height: 100%; }
.footer__mono .amp { color: var(--latte); }
.footer__date { letter-spacing: .3em; font-size: .85rem; font-weight: 600; }
.footer__tags { font-weight: 600; font-size: .9rem; color: #f6dc9a; }
.footer__credit { font-size: .78rem; letter-spacing: .08em; margin: .4em 0 0; color: rgba(255, 250, 243, .85); }
.footer__credit a { color: #fffaf3; text-underline-offset: 3px; -webkit-tap-highlight-color: transparent; }
.footer__replay { margin: 0; }
.footer__replay-btn {
  background: none; border: 0; padding: 12px 4px; min-height: 44px; color: #fffaf3;
  font: 600 var(--fs-small)/1 var(--f-body); text-decoration: underline; text-underline-offset: 5px;
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   Reduced motion — keep the story, drop the movement
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .reveal-img, .js .reveal-img img, .js .schedule li { opacity: 1; transform: none; clip-path: none; }
}

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* scroll-linked drift on photography — separate translate/scale properties so it never fights the reveal transform */
[data-parallax] { overflow: hidden; }
.parallax-on [data-parallax] img, .parallax-on [data-parallax-self] { translate: 0 var(--py, 0px); scale: 1.1; will-change: translate; }
.contact { overflow: hidden; }


/* =========================================================================
   Taste pass — editorial composition
   Left-aligned by default. The one centred moment is the formal part of the
   day (the invitation wording and the processional), as on a printed programme.
   ========================================================================= */
body { font-weight: 500; }
.title, .sec__head, .story__text, .story__text .title, .glimpse, .attire, .address, .sec--rsvp, .rsvp__honour, .mabuhay__text, .bees-note__text, .ms { text-align: left; }
.sec__head .lead-script, .ms__text { margin-inline: 0; }
.title { margin-bottom: clamp(28px, 4vw, 48px); }
.sec__head { margin-bottom: clamp(40px, 6vw, 80px); }
.sec__head .title { margin-bottom: .35em; }
.lead-script { font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.45; max-width: 34em; }
.story__prose, .glimpse__left p, .bees-note__text { max-width: 36em; }
.story__pull { margin-inline: 0; }
.attire .script-head, .script-head { text-align: left; }
.board { margin-inline: 0; }
.address p { max-width: 30em; }
.mabuhay { justify-items: start; }
.mabuhay__text { max-width: 40em; }
.mabuhay__hello { display: block; font: italic 500 clamp(1.6rem, 2.6vw, 2.25rem)/1.3 var(--f-display); letter-spacing: 0; text-transform: none; color: var(--navy); padding: 0; margin: 0 0 .6em; max-width: 22em; }
.chapter__t { font-size: clamp(1.5rem, 2.2vw, 1.875rem); }
.role { font: 600 clamp(1.15rem, 1.6vw, 1.35rem)/1.2 var(--f-display); color: var(--gold-deep); text-transform: none; letter-spacing: 0; }
.ent__name { font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.ent__sub { font: 600 1.1rem/1.2 var(--f-display); color: var(--gold-deep); }
.glimpse__begins { font: italic 500 1.25rem/1.4 var(--f-display); margin: 1.4em 0 1.6em; }
.countdown { justify-content: start; margin-inline: 0; max-width: 420px; }
.cd__n { font-family: var(--f-display); font-weight: 600; }
.ms__date { color: var(--gold-deep); font-weight: 600; }
.hero__date { font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 600; letter-spacing: .01em; }
.nav__links a { letter-spacing: 0; }
.faq { grid-template-columns: 1fr !important; }
.faq__title { position: static !important; }
.qa summary { grid-template-columns: 1fr 24px; padding: 22px clamp(12px, 2vw, 24px); }
.qa__a { padding: 0 clamp(12px, 2vw, 24px) 24px; }
.board { overflow: visible; }
.board img { min-width: 0 !important; }
@media (min-width: 900px) { .bees-note__text { text-align: left; } }

/* =========================================================================
   Type scale — six sizes do all the work (display · h2 · h3 · lead · body · small)
   ========================================================================= */
:root {
  --fs-h2: 3.5rem;      /* 56 */
  --fs-h3: 1.875rem;    /* 30 */
  --fs-lead: 1.375rem;  /* 22 */
  --fs-body: 1.0625rem; /* 17 */
  --fs-small: .9375rem; /* 15 */
}
@media (max-width: 699px) { :root { --fs-h2: 2.25rem; --fs-h3: 1.5rem; --fs-lead: 1.25rem; } }

body, .bio p:not(.bio__tag), .story__prose, .bees-note__text, .attire__pref, .attire__list, .attire__note,
.schedule li, .why__text p, .qa__a, .gift__text p, .field input, .party input[type="text"], .party__name,
.mabuhay__text, .ent__name, .chapter p:not(.chapter__s), .glimpse__left p, .address p, .contact__card p,
.rsvp__msg, .rsvp__ask, .strict p:not(.strict__big), .reserved__l { font-size: var(--fs-body); }

.ms__text, .rsvp__fine, .rsvp__note, .cd__l, .palette span, .ms__date, .nav__links a, .nav__lang button,
.pin-btn, .qr__soon, .qr figcaption, .footer, .footer p, .footer__credit, .footer__credit a, .duo figcaption span,
.rsvp__preview, .party__dietlabel, .field__label, .rsvp__deadline span, .glimpse__label,
.solid-btn, .line-btn, .party label.check { font-size: var(--fs-small); }

.lead-script, .story__pull, .story__beat, .story__end, .bees-note__lead, .bees-note__sign, .ent__why, .chapter__s,
.dress__intro, .glimpse__motto, .glimpse__begins, .rsvp__honour, .strict__big, .invite__lead, .sig, .reserved__k,
.qa__q, .hero__kicker, .bio__tag, .contact__who, .venue__name, .gift__title, .role, .ent__sub, .mabuhay__hello,
.script-head, .bio__name, .rsvp__when, .rsvp__deadline strong { font-size: var(--fs-lead); }

.subtitle, .chapter__t, .ms__title, .duo figcaption strong, .bees-note .subtitle, .cd__n { font-size: var(--fs-h3); }

.title, .faq__title, .invite__names, .contact__title, .footer__mono { font-size: var(--fs-h2) !important; }
.title--small { font-size: var(--fs-h3) !important; }
.nav__lang button { min-width: 40px; }
/* narrow phones (320px): mark + EN FIL FR + song + burger must still fit on one row */
@media (max-width: 379px) {
  .nav { gap: 10px; }
  .nav__lang button { min-width: 32px; padding: 0 2px; }
  .nav__music { width: 32px; }
}

/* =========================================================================
   Bee cursor — desktop mice/trackpads only. Native CSS cursor: zero lag.
   The couple's own bees (Handrawn/bees/make_cursors.py): boot.js sets html[data-bee] to the bee
   the guest boxed as in game.html, else Antoine or Rose at random for the visit. Links and
   buttons get the same bee with the in-love face. The nose is the hotspot (8 13).
   Text fields keep the I-beam.
   ========================================================================= */
@media (hover: hover) and (pointer: fine) {
  html, body {
    cursor: url("img/cursor-groom.png") 8 13, auto;
    cursor: -webkit-image-set(url("img/cursor-groom.png") 1x, url("img/cursor-groom@2x.png") 2x) 8 13, auto;
    cursor: image-set(url("img/cursor-groom.png") 1x, url("img/cursor-groom@2x.png") 2x) 8 13, auto;
  }
  a, button, summary, label, select, [role="button"], .qa summary, .yesno span, input[type="checkbox"], input[type="radio"] {
    cursor: url("img/cursor-groom-hover.png") 8 13, pointer;
    cursor: -webkit-image-set(url("img/cursor-groom-hover.png") 1x, url("img/cursor-groom-hover@2x.png") 2x) 8 13, pointer;
    cursor: image-set(url("img/cursor-groom-hover.png") 1x, url("img/cursor-groom-hover@2x.png") 2x) 8 13, pointer;
  }
  html[data-bee="bride"], html[data-bee="bride"] body {
    cursor: url("img/cursor-bride.png") 8 13, auto;
    cursor: -webkit-image-set(url("img/cursor-bride.png") 1x, url("img/cursor-bride@2x.png") 2x) 8 13, auto;
    cursor: image-set(url("img/cursor-bride.png") 1x, url("img/cursor-bride@2x.png") 2x) 8 13, auto;
  }
  html[data-bee="bride"] :is(a, button, summary, label, select, [role="button"], .qa summary, .yesno span, input[type="checkbox"], input[type="radio"]) {
    cursor: url("img/cursor-bride-hover.png") 8 13, pointer;
    cursor: -webkit-image-set(url("img/cursor-bride-hover.png") 1x, url("img/cursor-bride-hover@2x.png") 2x) 8 13, pointer;
    cursor: image-set(url("img/cursor-bride-hover.png") 1x, url("img/cursor-bride-hover@2x.png") 2x) 8 13, pointer;
  }
  input[type="text"], input[type="email"], input:not([type]), textarea { cursor: text; }
}
.ms__title { margin: 6px 0 .2em; }

/* intro: a neutral scrim under the bottom panel keeps white text legible on the bright pond */
.intro__vignette::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48%;
  background: linear-gradient(180deg, rgba(10, 10, 8, 0), rgba(10, 10, 8, .5)); /* taste-skill-ignore: neutral scrim over a photograph */
}

/* phone menu: the overlay keeps its large serif links (the type scale above is for the bar) */
@media (max-width: 959px) {
  .nav__links a { font: 500 1.6rem/1.15 var(--f-display); letter-spacing: 0; padding: 10px 0; }
}

@media (min-width: 900px) { .mabuhay__text { max-width: 34em; } }

/* dress-code boards: full width, and a tap opens the full-resolution board */
.board__zoom { display: block; }
.board__hint { display: none; font-size: var(--fs-small); color: var(--ink-soft); margin: 8px 0 0; }
@media (max-width: 759px) { .board__hint { display: block; } }

/* =========================================================================
   FROM THEN TO NOW — the story told one chapter at a time
   The page dims while this section holds the screen. Each chapter: the picture
   lights → a travelling light explores it and settles on the bee → the bee glows
   and the words appear → the light leaves for the next chapter, leaving a fine
   gold thread. Without JS it is a plain, fully lit swipe row.
   Bee positions (--bx/--by, % of the artwork) are the single source of truth:
   site.js reads the glow's box to route the streak through each bee.
   ========================================================================= */
:root {
  --night: #120e09;
  --night-ink: #f3ead9;
  --night-soft: #cbbda6;
  --card: min(80vw, 400px);
  --card-gap: clamp(36px, 9vw, 96px);
}
@media (min-width: 760px) { :root { --card: clamp(320px, 32vw, 420px); } }

.night {
  position: fixed; inset: 0; z-index: 115; pointer-events: none;
  background: var(--night); opacity: 0; transition: opacity 1.4s var(--ease-soft);
}
html.is-night .night { opacity: .94; }
.sec--then { background: var(--paper-warm); z-index: 116; transition: background-color 1.4s var(--ease-soft); }
.sec--then .title { margin-bottom: clamp(20px, 3vw, 36px); transition: color 1.4s var(--ease-soft); }
html.is-night .sec--then { background-color: var(--night); }
html.is-night .sec--then .title { color: var(--night-ink); }
html.is-night .nav.is-solid:not(.menu-open) { background: rgba(18, 14, 9, .84); color: var(--night-ink); }
@media (min-width: 960px) {
  html.is-night .nav.is-solid .nav__links .nav__rsvp { background: var(--night-ink); color: var(--night); }
}

/* the swipe track — full bleed, one chapter per swipe, first and last can centre */
.thread {
  /* full bleed; --sbw (set by site.js) removes a classic scrollbar so chapters centre truly */
  --vw: calc(100vw - var(--sbw, 0px));
  position: relative; max-width: none; width: var(--vw); margin-inline: calc(50% - var(--vw) / 2);
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  outline-offset: -4px;
}
.thread::-webkit-scrollbar { display: none; }
.thread__track { position: relative; width: max-content; padding: 56px calc(var(--vw) / 2 - var(--card) / 2) 12px; }
.milestones { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--card-gap); }
.ms { flex: none; width: var(--card); scroll-snap-align: center; scroll-snap-stop: always; -webkit-tap-highlight-color: transparent; }

.ms__art { position: relative; margin: 0 0 20px; aspect-ratio: 600 / 652; overflow: hidden; border-radius: 4px; background: #fffdf8; }
.ms__art img { width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.ms__glow {
  position: absolute; left: var(--bx); top: var(--by); width: 36%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; pointer-events: none; mix-blend-mode: multiply; opacity: 0; scale: .4;
  background: radial-gradient(circle, rgba(255, 190, 80, .9) 0, rgba(252, 193, 116, .45) 32%, rgba(252, 219, 134, 0) 68%); /* taste-skill-ignore: the bee glow is light, not a fill */
}
.ms:nth-child(1) { --bx: 23%; --by: 27%; }
.ms:nth-child(2) { --bx: 83%; --by: 32%; }
.ms:nth-child(3) { --bx: 84%; --by: 21%; }
.ms:nth-child(4) { --bx: 79%; --by: 18%; }
.ms:nth-child(5) { --bx: 23%; --by: 16%; }
.ms:nth-child(6) { --bx: 87%; --by: 29%; }
.ms:nth-child(7) { --bx: 87%; --by: 15%; }
.ms:nth-child(8) { --bx: 78%; --by: 21%; }
.ms__body { max-width: 26em; }
.ms__title { font-family: var(--f-display); font-style: italic; font-weight: 500; line-height: 1.15; color: var(--ink); text-wrap: balance; }
.ms__date { margin: 0 0 .6em; }
.ms__text { line-height: 1.6; color: var(--ink-soft); }
.ms__title, .ms__date, .ms__text { transition: color 1.4s var(--ease-soft); }
html.is-night .ms__title { color: var(--night-ink); }
html.is-night .ms__date { color: var(--honey); }
html.is-night .ms__text { color: var(--night-soft); }

/* story states (JS only): dim → is-lit (the picture) → is-told (the bee glows, the words appear) */
.thread.is-live {
  scroll-snap-type: none;   /* site.js glides between chapters; native snapping would fight it */
  touch-action: pan-y pinch-zoom;   /* vertical scroll and zoom stay native; sideways swipes are ours */
  cursor: grab;
}
.thread.is-live.is-dragging { cursor: grabbing; -webkit-user-select: none; user-select: none; }
/* depth of focus, driven by the glide: --ap is 0 for the centred chapter, 1 for a neighbour */
.thread.is-live .ms { opacity: calc(1 - .62 * var(--ap, 0)); }
.thread.is-live .ms__body { translate: calc(var(--p, 0) * -34px) 0; }   /* the words drift slower than the pictures */
.thread.is-live .ms__art {
  opacity: .14; filter: grayscale(1);
  transition: opacity 1.4s var(--ease), filter 1.8s var(--ease), box-shadow 1.8s var(--ease);
}
.thread.is-live .ms__body > * {
  opacity: 0; translate: 0 14px;
  transition: opacity 1s var(--ease), translate 1.1s var(--ease), color 1.4s var(--ease-soft);
}
.thread.is-live .ms.is-called .ms__art { opacity: .42; }
.thread.is-live .ms.is-lit .ms__art {
  opacity: 1; filter: none;
  box-shadow: 0 0 0 1px rgba(252, 219, 134, .2), 0 34px 80px -30px rgba(250, 193, 116, .5); /* taste-skill-ignore: lit chapter casts light in the dark */
}
.thread.is-live .ms.is-told .ms__body > * { opacity: 1; translate: none; }
.thread.is-live .ms.is-told .ms__title { transition-delay: .25s; }
.thread.is-live .ms.is-told .ms__date { transition-delay: .45s; }
.thread.is-live .ms.is-told .ms__text { transition-delay: .65s; }
.thread.is-live .ms.is-told .ms__glow { animation: beeGlow 1.5s var(--ease) forwards; }
.thread.is-live .ms.is-told.is-current .ms__glow { animation: beeGlow 1.5s var(--ease) forwards, beeBreathe 3.4s var(--ease-soft) 1.5s infinite; }
.thread.is-live .ms.is-quick .ms__art, .thread.is-live .ms.is-quick .ms__body > *, .thread.is-live .ms.is-quick .ms__glow { transition-delay: 0s; animation-delay: 0s; }
@keyframes beeGlow { 0% { opacity: 0; scale: .4; } 45% { opacity: 1; scale: 1.18; } 100% { opacity: .72; scale: 1; } }
@keyframes beeBreathe { 0%, 100% { opacity: .72; scale: 1; } 50% { opacity: .95; scale: 1.1; } }

/* the guide: a bee with a soft glow, leaving a fine gold thread behind.
   Stacked strokes, no SVG filters: cheap on phones. */
.thread__svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.thread__glow, .thread__line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.thread__glow { stroke: rgba(250, 193, 116, .14); stroke-width: 5; }
.thread__line { stroke: rgba(226, 168, 70, .95); stroke-width: 1.6; stroke-dasharray: 5 6; }   /* dashed, like the trails painted in the artwork */
.thread__reveal { fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }   /* the mask that draws the dashes in */
/* a detail the bee has come to see glows for a moment */
.thread__spark { fill: url(#threadHeadGlow); opacity: 0; transform-box: fill-box; transform-origin: center; animation: threadSpark 1.3s var(--ease-soft) forwards; }
@keyframes threadSpark { 0% { opacity: 0; transform: scale(.3); } 35% { opacity: .9; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.4); } }
/* after the last chapter: the way on to the next section */
.ms__onward { gap: 10px; margin-top: 1.2em; }
.thread.is-live .ms__body > .ms__onward:not(.is-on) { opacity: 0; translate: 0 10px; }   /* fades in once the last chapter is told */
.ms__onward svg { transition: transform .4s var(--ease); }
.ms__onward:hover svg { transform: translateX(4px); }
html.is-night .ms__onward { background: var(--night-ink); color: var(--night); }
.thread__comet { opacity: 0; transition: opacity .7s var(--ease-soft); }
.thread__comet.is-on { opacity: 1; transition-duration: .25s; }
.thread__svg.is-complete .thread__line { animation: threadPulse 2.6s var(--ease-soft) 1; }
@keyframes threadPulse { 50% { stroke: rgba(255, 214, 120, 1); stroke-width: 2.2; } }

/* controls */
.thread__ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.thread__ctrl[hidden] { display: none; }
.thread__btn {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%;
  background: none; border: 1px solid currentColor; color: var(--ink); opacity: .8;
  -webkit-tap-highlight-color: transparent; transition: opacity .3s, color 1.4s var(--ease-soft), box-shadow .6s var(--ease);
}
.thread__btn--next svg { transform: scaleX(-1); }
.thread__btn[aria-disabled="true"] { opacity: .22; cursor: default; }
.thread__btn.is-ready { animation: callNext 2.2s var(--ease-soft) infinite; }
@keyframes callNext { 0%, 100% { box-shadow: 0 0 0 0 rgba(252, 219, 134, 0); } 50% { box-shadow: 0 0 0 7px rgba(252, 219, 134, .22); } } /* taste-skill-ignore: brief pulse calling the next chapter */
.thread__count { margin: 0; min-width: 4.5em; text-align: center; font: 600 var(--fs-small)/1 var(--f-body); letter-spacing: .08em; color: var(--ink-soft); transition: color 1.4s var(--ease-soft); }
.thread__hint { margin: 12px auto 0; text-align: center; font-size: var(--fs-small); color: var(--ink-soft); transition: opacity .8s var(--ease-soft), color 1.4s var(--ease-soft); }
.thread__hint.is-gone { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .thread__hint { display: none; } }   /* a mouse can't swipe; the arrows speak for themselves */
html.is-night .thread__btn { color: var(--night-ink); }
html.is-night .thread__count, html.is-night .thread__hint { color: var(--night-soft); }

@media (prefers-reduced-motion: reduce) {
  .thread.is-live .ms.is-told .ms__glow { animation: none !important; opacity: .72; scale: 1; }
  .thread__btn.is-ready { animation: none; }
}

/* the colour palette sits centred, its label with it */
.script-head.palette-head { text-align: center; }

/* =========================================================================
   Bee scenes: small moments the two bees play out as sections arrive (site.js initBeeScenes)
   ========================================================================= */
.bee-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.sbee { position: absolute; left: 0; top: 0; display: block; opacity: 0; will-change: transform, opacity; }
.sbee__bob { display: block; width: 100%; height: 100%; animation: sbeeBob 2.8s var(--ease-soft) infinite; }

@keyframes sbeeBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
.bee-heart {
  position: absolute; width: 18px; height: 16px; margin: -8px 0 0 -9px; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cpath d='M9 15.5S1 10.4 1 5.2A4.2 4.2 0 0 1 9 3.3a4.2 4.2 0 0 1 8 1.9C17 10.4 9 15.5 9 15.5Z' fill='%23e9a3ad'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: heartRise 3s var(--ease-soft) forwards;
}
@keyframes heartRise { 0% { opacity: 0; translate: 0 0; scale: .6; } 20% { opacity: 1; } 100% { opacity: 0; translate: var(--hx, 0) -90px; scale: 1; } }
.countdown { position: relative; }
.board { position: relative; }
/* a bee peeks over the top edge of each board; the board makes room for it (percent margins follow the width) */
.board.has-peek { margin-top: clamp(38px, 7.9%, 61px); }
.peek { position: absolute; bottom: 100%; width: clamp(58px, 12%, 92px); aspect-ratio: 1 / .8; overflow: hidden; pointer-events: none; }
.peek--right { right: 9%; }
.peek--left { left: 9%; }
.peek .sbee { opacity: 1; width: 100%; aspect-ratio: 1; height: auto; transform: translateY(100%); }
.peek .sbee__bob { animation: none; }
.peek.is-on .sbee__bob { animation: sbeeBob 2.8s var(--ease-soft) infinite; }
.bee-trail { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bee-trail > path { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 1.6 6; stroke-linecap: round; opacity: .7; }
.footer .bee-trail > path { stroke: #f6dc9a; opacity: .9; }   /* over the couple's photo */
@media (prefers-reduced-motion: reduce) { .bee-layer, .peek { display: none; } }

/* =========================================================================
   Bee rigs (site.js BEE RIGS): layered bees on one canvas, animated in CSS
   ========================================================================= */
.brig { position: relative; display: block; width: 100%; height: 100%; transition: opacity .35s ease; }
.brig.is-loading { opacity: 0; }   /* site.js shows the bee once all its layers have arrived */
.brig__fit { position: absolute; display: block; }
.brig--mirror { transform: scaleX(-1); }
.brig__fit img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  -webkit-user-select: none; user-select: none; pointer-events: none;
}
/* wings: each pivots at its root; --flap is the rotation sign that lifts that wing's tip */
.brig__wing {
  -webkit-animation: brigFlap .24s ease-in-out infinite alternate; animation: brigFlap .24s ease-in-out infinite alternate;
  -webkit-animation-delay: var(--ph, 0s); animation-delay: var(--ph, 0s);
}
@-webkit-keyframes brigFlap { from { transform: rotate(calc(var(--flap, 1) * -13deg)) scaleY(.95); } to { transform: rotate(calc(var(--flap, 1) * 14deg)); } }
@keyframes brigFlap { from { transform: rotate(calc(var(--flap, 1) * -13deg)) scaleY(.95); } to { transform: rotate(calc(var(--flap, 1) * 14deg)); } }
.brig__blur { opacity: 0; }
/* fast flight: the four wings give way to one smeared frame that flickers */
.sbee--pair .brig__wing { opacity: 0; -webkit-animation: none; animation: none; }
.sbee--pair .brig__blur { -webkit-animation: brigBlur .1s steps(2) infinite; animation: brigBlur .1s steps(2) infinite; }
@-webkit-keyframes brigBlur { from { opacity: .9; transform: none; } to { opacity: .6; transform: rotate(2deg); } }
@keyframes brigBlur { from { opacity: .9; transform: none; } to { opacity: .6; transform: rotate(2deg); } }
.brig__ant {
  -webkit-animation: brigAnt 2.6s ease-in-out infinite alternate; animation: brigAnt 2.6s ease-in-out infinite alternate;
  -webkit-animation-delay: var(--ph, 0s); animation-delay: var(--ph, 0s);
}
@-webkit-keyframes brigAnt { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes brigAnt { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
/* a ~130ms blink every few seconds (--blink is set per bee, so they never blink together) */
.brig__blink {
  opacity: 0;
  -webkit-animation: brigBlink var(--blink, 4.2s) linear infinite; animation: brigBlink var(--blink, 4.2s) linear infinite;
  -webkit-animation-delay: var(--ph, 0s); animation-delay: var(--ph, 0s);
}
@-webkit-keyframes brigBlink { 0%, 96.4% { opacity: 0; } 96.6%, 99.4% { opacity: 1; } 99.6%, 100% { opacity: 0; } }
@keyframes brigBlink { 0%, 96.4% { opacity: 0; } 96.6%, 99.4% { opacity: 1; } 99.6%, 100% { opacity: 0; } }
/* expressions cross-fade over the body; they cover the eyes, so the blink waits */
.brig__face { opacity: 0; transition: opacity .45s var(--ease-soft); }
.brig__face.is-on { opacity: 1; }
.brig.has-face .brig__blink { -webkit-animation: none; animation: none; opacity: 0; }
/* the couple side by side (1500 × 834 box), finishing exactly where the intro's single bees land */
.bpair { position: relative; display: block; aspect-ratio: 1500 / 834; }
.bpair__bees { position: absolute; inset: 0; display: block; }
.bpair__bee { position: absolute; display: block; width: 40%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.bpair__bee--groom { left: 30%; top: 54%; }
.bpair__bee--bride { left: 70%; top: 55.4%; }
.is-resting .brig__fit img { -webkit-animation-play-state: paused; animation-play-state: paused; }
/* reduced motion: everything holds still (a sleeping bee keeps its eyes shut) */
@media (prefers-reduced-motion: reduce) {
  .brig__fit img { -webkit-animation: none !important; animation: none !important; }
}

/* =========================================================================
   Revision round 1 — the couple's Canva, followed closely (their comments, Nov 2026)
   · Section headings in the didone, in capitals, centred.
   · Accent lines in the brush script; full names in the signature script.
   · Every block of text centred (their call: "keep all typography aligned to center"),
     except the two bios on desktop, which sit against their photos as in the Canva.
   ========================================================================= */
.title {
  font-family: var(--f-display); font-weight: 500; text-transform: uppercase;
  letter-spacing: .02em; line-height: 1.08; text-align: center;
}
.title--wide { font-weight: 400; letter-spacing: .32em; padding-left: .32em; }   /* the padding re-centres tracked caps */
@media (max-width: 559px) { .title--wide { letter-spacing: .16em; padding-left: .16em; } }
.title--left { text-align: center; }
.subtitle, .subtitle--caps { font-family: var(--f-display); font-weight: 500; text-transform: uppercase; letter-spacing: .02em; text-align: center; }
.sec__head, .story__text, .story__text .title, .glimpse, .attire, .address, .sec--rsvp, .rsvp__honour, .mabuhay__text, .bees-note__text, .ms,
.chapter, .why__text, .faq__title, .sec__head .lead-script, .ms__text { text-align: center; }
.sec__head .lead-script, .story__prose, .story__pull, .glimpse__left p, .bees-note__text, .mabuhay__text, .why__text p { margin-inline: auto; }

/* the brush script: every accent line the Canva sets in it */
.script, .script-head, .lead-script, .bio__tag, .chapter__s, .ent__why, .tribute > p:not(.ent__name), .rsvp__honour, .rsvp__ask,
.strict__big, .hero__kicker, .glimpse__motto, .story__pull, .mytable, .ent__sub {
  font-family: var(--f-script); font-style: normal; font-weight: 400; letter-spacing: .01em;
}
.hero__kicker { text-transform: uppercase; letter-spacing: .08em; }
.glimpse__motto { text-transform: uppercase; line-height: 1.35; }
.script-head { color: var(--ink-soft); }
.lead-script { color: var(--ink); line-height: 1.5; }
.lead-script--one { max-width: none; }
.kicker-caps { font: 500 var(--fs-body)/1.4 var(--f-body); text-transform: uppercase; letter-spacing: .04em; margin: .9em 0 .5em; color: var(--ink); }

/* plain Raleway where the Canva is plain (it was italic serif before) */
.story__beat, .story__end, .bees-note__lead, .bees-note__sign { font-family: var(--f-body); font-style: normal; font-weight: 500; }
.story__beat { font-size: inherit; line-height: 1.75; }
.story__end { font-size: inherit; }
.bees-note__sign { color: var(--ink); }
.glimpse__begins { font: 500 var(--fs-body)/1.4 var(--f-body); text-transform: uppercase; letter-spacing: .04em; }
.glimpse__label { text-transform: uppercase; letter-spacing: .03em; }
.cd__n { font-family: var(--f-body); font-weight: 700; letter-spacing: -.02em; }
.cd__l { text-transform: uppercase; letter-spacing: .04em; }
.countdown { justify-content: center; margin-inline: auto; }

/* hero: the Canva title card, to its numbers (their hero element data): ANTOINE over ROSE,
   right-aligned, bold, tracking -0.036em; the "&" a copperplate 1.4x the caps, black at 50%,
   across the gap at ROSE's left; the date at the foot of the photo in bold tracked caps */
.hero__names { font-family: var(--f-display); font-weight: 700; letter-spacing: -.036em; line-height: 1; justify-items: end; }
.hero__amp {
  /* measured: Great Vibes' '&' is .76em tall, Bodoni's caps .75em. At 1.72em it is ~1.75x the caps, as in
     the Canva; this lift and inset put it from mid-ANTOINE to just under ROSE, starting near the A */
  left: 7%; top: .32em; translate: none;
  font: 400 1.72em/1 var(--f-amp); text-transform: none;
  color: rgba(30, 26, 22, .62);
  /* the Canva's '&' is dark on a pale sky; this photo is darker there, so a soft light halo keeps it reading the same */
  text-shadow: 0 0 22px rgba(255, 248, 236, .8), 0 0 8px rgba(255, 248, 236, .55);
}
.hero__date {
  position: absolute; left: 0; right: 0; bottom: max(3.5vh, calc(env(safe-area-inset-bottom) + 14px)); margin: 0;
  font: 700 clamp(.95rem, 1.32vw, 1.15rem)/1.15 var(--f-display); text-transform: uppercase; letter-spacing: .11em;
  text-shadow: 0 1px 3px rgba(20, 14, 10, .55), 0 2px 16px rgba(20, 14, 10, .4);
}
/* this is us */
.bio__name { font: 700 var(--fs-lead)/1 var(--f-body); letter-spacing: .04em; }
.bio__tag { color: var(--ink-soft); margin: .15em 0 .9em; }
.bio, .bio--b, .bio--b p:not(.bio__tag):not(.bio__name) { text-align: center; }
.us__photo--b img { object-position: 64% 28%; }   /* keeps Rose's whole face in the frame at every crop */
.us__photo--a img { object-position: 34% 26%; }
@media (min-width: 900px) {
  .bio--a, .bio--a p { text-align: left; }
  .bio--b, .bio--b p, .bio--b p:not(.bio__tag):not(.bio__name) { text-align: right; }   /* her words against the right margin */
}

/* love story: the Canva's centred column */
.story__prose { margin-top: clamp(20px, 3vw, 36px); }
.story__prose .script { font-size: 1.12em; }

/* the bees + the ring */
.bees-note__play { align-items: center; text-align: center; margin-inline: auto; }
.bees-note__invite { font: 400 var(--fs-lead)/1.45 var(--f-script); color: var(--ink); max-width: 30em; margin: 0 auto .4em; }
.bees-note__choice { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.glove-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); text-decoration: none;
  font: 700 var(--fs-small)/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em;
  -webkit-tap-highlight-color: transparent; transition: background .35s, color .35s, transform .35s var(--ease);
}
.glove-btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); transform: translateY(-2px); }
.glove-btn--ghost { background: transparent; color: var(--ink); }
.glove-btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.glove-btn__icon { width: 28px; height: 28px; color: #c0392b; transform-origin: 50% 80%; }
.glove-btn:hover .glove-btn__icon { animation: punch .5s var(--ease); }
@keyframes punch { 40% { transform: translateX(5px) rotate(-8deg) scale(1.1); } }
.bees-note__playnote { margin: 0; }

/* the day */
.day__glance { text-align: center; }
.day__glance .subtitle { white-space: nowrap; margin-bottom: .6em; }
@media (max-width: 400px) { .day__glance .subtitle { white-space: normal; } }
.schedule { max-width: 30rem; margin-inline: auto; text-align: left; }
.schedule li { grid-template-columns: 8.5rem 1fr; padding: 14px 0; border-bottom: 1px solid rgba(2, 2, 2, .7); }
.schedule li:last-child { border-bottom: 0; }
.schedule time { padding-left: 0; }
.schedule time::before { display: none; }
.addcal { justify-content: center; }
.addcal__label { text-align: center; }
@media (min-width: 760px) { .lead-script--one { white-space: nowrap; } }

/* dress code */
.dress__intro { text-align: center; font-size: var(--fs-lead); letter-spacing: 0; margin-bottom: .8em; }
.attire .script-head, .script-head { text-align: center; }
.attire__pref { text-transform: uppercase; letter-spacing: .02em; }
.board { margin-inline: auto; }
.palette span { font: 500 .72rem/1.35 var(--f-display); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }

/* the Filipino wedding: the Canva composition, the welcome ringed by the six watercolours */
.mab-icon { mix-blend-mode: normal; }   /* the artwork now has real transparency: no white boxes on phones */
.mabuhay__first, .mabuhay__guide { color: var(--navy); margin: 0 auto; max-width: 30em; }
.mabuhay__hello {
  display: grid; justify-items: center; gap: .1em; margin: .45em 0 .55em; padding: 0 0 0 .22em; max-width: none;
  font: 400 clamp(2rem, 5vw, 3.4rem)/1.2 var(--f-hand); letter-spacing: .22em; text-transform: uppercase; color: var(--navy);
}
@media (max-width: 899px) {
  .mabuhay { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; gap: 0 12px; }
  .mab-icon { width: clamp(72px, 22vw, 120px); height: clamp(72px, 22vw, 120px); object-fit: contain; }
  .mab-icon--dove, .mab-icon--rosary, .mab-icon--envelope { order: 1; }
  .mabuhay__text { grid-column: 1 / -1; order: 2; padding: 18px 0; }
  .mab-icon--plate, .mab-icon--wine, .mab-icon--beer { order: 3; }
}
@media (min-width: 900px) {
  .mabuhay {
    grid-template-columns: 1fr minmax(0, 560px) 1fr; grid-template-rows: repeat(3, auto);
    column-gap: clamp(16px, 3vw, 48px); row-gap: 8px; justify-items: center; align-items: center; padding: 8px 0 0;
  }
  .mabuhay__text { grid-column: 2; grid-row: 1 / 4; justify-self: center; order: 0; max-width: 560px; }
  .mab-icon { width: 100%; max-width: 170px; height: 150px; object-fit: contain; }
  .mab-icon--dove { grid-column: 1; grid-row: 1; justify-self: end; }
  .mab-icon--envelope { grid-column: 1; grid-row: 2; justify-self: start; }
  .mab-icon--wine { grid-column: 1; grid-row: 3; justify-self: end; }
  .mab-icon--rosary { grid-column: 3; grid-row: 1; justify-self: start; }
  .mab-icon--plate { grid-column: 3; grid-row: 2; justify-self: end; }
  .mab-icon--beer { grid-column: 3; grid-row: 3; justify-self: start; }
}
/* the eight parts: one centred column with short rules between them, as in the Canva */
.chapters { grid-template-columns: 1fr !important; max-width: 920px; }
.chapter { position: relative; text-align: center !important; padding: clamp(26px, 3vw, 40px) 0; }
.chapter + .chapter::before { content: ""; display: block; width: 64px; height: 2px; margin: 0 auto clamp(26px, 3vw, 40px); background: var(--ink); }
.chapter__t { font: 600 var(--fs-h3)/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.chapter p:not(.chapter__s) { margin-inline: auto !important; }

/* ceremony + reception */
.venue__name { font: 500 var(--fs-lead)/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .06em; }
.duo figcaption span { font: 500 var(--fs-small)/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .06em; }
.duo figcaption strong { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.address { display: grid; justify-items: center; gap: 18px 56px; align-items: center; }
.address__text { text-align: center; }
.address__label { font: 700 var(--fs-small)/1 var(--f-body) !important; text-transform: uppercase; letter-spacing: .3em; margin-bottom: .7em !important; }
@media (min-width: 760px) { .address { grid-template-columns: auto auto; justify-content: center; } }
.map-pin { position: relative; display: block; width: 200px; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform .4s var(--ease); }
.map-pin__map { display: block; width: 100%; height: auto; }
.map-pin__here {
  position: absolute; left: 50%; top: 18.6%; translate: -50% -50%;
  font: 700 .72rem/1 var(--f-body); text-transform: uppercase; letter-spacing: .04em; color: var(--ink);
  text-decoration: underline; text-underline-offset: 2px;
}
.map-pin:hover { transform: translateY(-3px) rotate(-1.5deg); }
.map-pin:focus-visible { outline-offset: 6px; }

/* the vows sit on their own warmer band: a clear break from the church's practical details */
.sec--vows { background: var(--paper-warm); border-top: 1px solid var(--latte-line); border-bottom: 1px solid var(--latte-line); }
.invite { margin-inline: auto; }
.invite__lead { font: 400 var(--fs-lead)/1.35 var(--f-display); font-style: normal; color: var(--gold-deep); }
.invite__names { font: 400 clamp(3rem, 7vw, 5.2rem)/1.05 var(--f-sign) !important; color: var(--charcoal); margin: .25em 0 .3em; }
.invite__amp { font: 400 .62em/1 var(--f-amp); color: var(--charcoal); }
.sig { font: 400 clamp(2rem, 3.8vw, 2.7rem)/1.1 var(--f-sign); color: var(--charcoal); }
.parents .role { margin-bottom: .2em; }

/* entourage: role in gold caps, the why small in the script, the names big and bold */
.sec--entourage { background: var(--paper); }
.role { font: 600 var(--fs-lead)/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .14em; color: var(--gold-deep); }
.ent__why { font-size: clamp(1rem, 1.35vw, 1.15rem); color: var(--stone); margin-bottom: .7em; }
.ent__name { font: 700 clamp(1.15rem, 1.75vw, 1.5rem)/1.45 var(--f-body); text-transform: uppercase; letter-spacing: .03em; color: var(--charcoal); }
.ent__sub { font-size: var(--fs-lead); color: var(--gold-deep); }
.tribute { background: none; padding: 0; color: var(--gold-deep); font-size: var(--fs-lead); }   /* no box: the words stand on the page */
.tribute > p:not(.ent__name) { margin: .4em 0 .3em; }
.ent--last { padding-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--latte-line); }

/* FAQ: the title centred over a numbered list */
.faq { max-width: 960px; margin-inline: auto; }
.faq__title { margin-bottom: clamp(16px, 2vw, 28px); }
.qa summary { grid-template-columns: 2.6rem 1fr 24px; border-bottom: 1px solid rgba(2, 2, 2, .6); }
.qa__n { font: 400 var(--fs-lead)/1 var(--f-body); color: var(--ink); }
.qa__q { font: 600 var(--fs-lead)/1.25 var(--f-display); }
.qa__a { padding-left: calc(2.6rem + 10px + clamp(12px, 2vw, 24px)); }
@media (max-width: 559px) { .qa__a { padding-left: clamp(12px, 2vw, 24px); } }

/* RSVP: the Canva card */
.rsvp__when { font: 500 var(--fs-body)/1.35 var(--f-display); }
.rsvp__deadline span { text-transform: uppercase; letter-spacing: .04em; }
.rsvp__deadline strong { font-family: var(--f-display); font-weight: 500; }
.field__label { font: 600 var(--fs-body)/1.3 var(--f-display); }
.rsvp .subtitle { margin-top: 1em; }
.reserved__k { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .14em; }
.reserved__n { font-family: var(--f-display); font-weight: 400; }
.solid-btn--latte { font: 600 var(--fs-small)/1 var(--f-display); text-transform: uppercase; letter-spacing: .22em; box-shadow: 0 6px 14px -6px rgba(2, 2, 2, .45); }
.strict { text-align: center; }

/* headings rise word by word as they arrive (site.js splitWords) */
.js .title .w, .js .subtitle .w { display: inline-block; opacity: 0; translate: 0 .5em; transition: opacity .9s var(--ease), translate 1s var(--ease); transition-delay: calc(var(--wi, 0) * 90ms + 80ms); }
.js .is-in .title .w, .js .title.is-in .w, .js .is-in .subtitle .w, .js .subtitle.is-in .w { opacity: 1; translate: none; }
/* blocks of text arrive line by line (site.js marks them .stagger) */
.js .stagger > * { opacity: 0; translate: 0 14px; transition: opacity .9s var(--ease), translate 1s var(--ease); transition-delay: calc(var(--si, 0) * 140ms + 150ms); }
.js .stagger.is-in > *, .js .is-in .stagger > * { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) {
  .js .title .w, .js .subtitle .w, .js .stagger > * { opacity: 1 !important; translate: none !important; }
}

/* the Filipino wedding guide arrives one part at a time, each heralded by a bee (site.js sceneParts) */
.js .chapters.is-guided .chapter { opacity: 0; translate: 0 22px; transition: opacity 1s var(--ease), translate 1.1s var(--ease); }
.js .chapters.is-guided .chapter.is-shown { opacity: 1; translate: none; }

/* honey-dipper cursor — desktop mice only; on links and buttons it drips */
@media (hover: hover) and (pointer: fine) {
  html, body, html[data-bee="bride"], html[data-bee="bride"] body {
    cursor: url("img/cursor-honey.png") 4 4, auto;
    cursor: -webkit-image-set(url("img/cursor-honey.png") 1x, url("img/cursor-honey@2x.png") 2x) 4 4, auto;
    cursor: image-set(url("img/cursor-honey.png") 1x, url("img/cursor-honey@2x.png") 2x) 4 4, auto;
  }
  a, button, summary, label, select, [role="button"], .qa summary, .yesno span, input[type="checkbox"], input[type="radio"],
  html[data-bee="bride"] :is(a, button, summary, label, select, [role="button"], .qa summary, .yesno span, input[type="checkbox"], input[type="radio"]) {
    cursor: url("img/cursor-honey-hover.png") 4 4, pointer;
    cursor: -webkit-image-set(url("img/cursor-honey-hover.png") 1x, url("img/cursor-honey-hover@2x.png") 2x) 4 4, pointer;
    cursor: image-set(url("img/cursor-honey-hover.png") 1x, url("img/cursor-honey-hover@2x.png") 2x) 4 4, pointer;
  }
  input[type="text"], input[type="email"], input:not([type]), textarea { cursor: text; }
  .thread.is-live { cursor: grab; }
  .thread.is-live.is-dragging { cursor: grabbing; }
}

/* =========================================================================
   One screen per section on desktop — only where the couple asked (This is us, Our love
   story, the dress-code palette). site.js fitFrames() shrinks the type a step at a time
   until the content fits the window; phones keep the normal scroll.
   ========================================================================= */
@media (min-width: 1024px) and (min-height: 600px) {
  .sec--us, .sec--story, .frame--dress {
    min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
    padding-top: calc(var(--nav-h) + 16px); padding-bottom: 24px;
  }
  .sec--us, .sec--story { height: 100vh; height: 100svh; }
  .sec--us > *, .sec--story > * { width: 100%; }
  .frame--dress { margin-top: calc(-1 * var(--sec-y)); padding-top: var(--nav-h); }
  .sec--us .title { margin-bottom: clamp(12px, 2vh, 24px); flex: none; }
  .sec--us .us { grid-template-columns: .8fr 1.42fr .8fr; grid-template-rows: minmax(0, 1fr); flex: 1 1 auto; min-height: 0; height: auto; }
  .sec--us .us__photo img { min-height: 0; height: 100%; aspect-ratio: auto; }
  .sec--us .bio p:not(.bio__tag) { font-size: calc(var(--fs-body) * var(--fit, 1)); line-height: 1.45; margin-bottom: .6em; }
  .sec--us .bio__tag { margin-bottom: .45em; }
  .sec--story .story { flex: 1 1 auto; min-height: 0; height: auto; }
  .sec--story .story__prose { font-size: calc(var(--fs-body) * var(--fit, 1)); line-height: 1.55; margin-top: 12px; }
  .sec--story .story__prose p { margin-bottom: .7em; }
  .sec--story .story__photos { height: 100%; grid-template-rows: 1fr 1fr; }
  .sec--story .story__photos figure { min-height: 0; }
  .sec--story .story__photos img { height: 100%; aspect-ratio: auto; }
  .frame--dress .palette { margin-bottom: 0; }
  .frame--dress .title { margin-bottom: clamp(12px, 2.5vh, 32px); }
}
.sec--ph { overflow-x: hidden; overflow-x: clip; }   /* the heralding bees fly in from beyond the column */

/* RSVP · dietary restrictions as a drop-down of checkboxes, kids meal as YES / NO (the Canva) */
.party__kid { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.yesno--small span { min-width: 64px; min-height: 44px; }
.diet { position: relative; }
.diet__summary {
  display: grid; grid-template-columns: auto 1fr 18px; align-items: center; gap: 12px; min-height: 48px;
  list-style: none; cursor: pointer; border-bottom: 1px solid var(--ink); padding: 6px 0;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
}
.diet__summary::-webkit-details-marker { display: none; }
.diet__summary::after {
  content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease); justify-self: end;
}
.diet[open] .diet__summary::after { transform: translateY(2px) rotate(-135deg); }
.diet__shown { font: 500 var(--fs-small)/1.35 var(--f-body); color: var(--ink); text-align: left; overflow-wrap: anywhere; }
.diet__list {
  margin: 0; padding: 8px 4px; border: 0; display: grid; grid-template-columns: 1fr; gap: 0;
  max-height: 320px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: var(--paper-warm); border-bottom: 1px solid var(--latte-line);
}
@media (min-width: 560px) { .diet__list { grid-template-columns: 1fr 1fr; column-gap: 12px; } }
.diet__opt {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px;
  font: 500 var(--fs-small)/1.3 var(--f-body); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.diet__opt input { width: 20px; height: 20px; flex: none; accent-color: var(--ink); margin: 0; }
.diet__opt:hover { background: rgba(188, 162, 137, .18); }
.diet__other {
  grid-column: 1 / -1; margin: 6px 8px 4px; -webkit-appearance: none; appearance: none;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent;
  padding: .5em 0; font: 500 var(--fs-body)/1.3 var(--f-body); color: var(--ink);
}
.diet__other:focus { outline: 2px solid var(--honey-3); outline-offset: 4px; }
.party li { background: transparent; border-bottom: 1px solid var(--latte-line); padding-inline: 0; }
.party__name { font: 500 var(--fs-lead)/1.3 var(--f-body); text-transform: uppercase; letter-spacing: .02em; }

/* =========================================================================
   Travel guide + gallery pages (travel.html, gallery.html) — the Canva's empty
   tabs, filled with a default the couple can edit
   ========================================================================= */
.page { padding-top: var(--nav-h); }
.page__head { padding-bottom: clamp(8px, 2vw, 24px); text-align: center; }
.page__head .title { font-size: var(--fs-h2) !important; margin-bottom: .3em; }
.sec.tg, .sec.gal { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.sec.tg + .sec.tg, .sec.gal + .sec.gal { border-top: 1px solid var(--latte-line); }
.tg .title--small, .gal .title--small { font-size: var(--fs-h3) !important; margin-bottom: .9em; }
.tg__intro, .tg__more, .gal__soon { text-align: center; max-width: 40em; margin: 0 auto 1.6em; }
.tg__cards { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 18px; max-width: 1040px; }
@media (min-width: 760px) { .tg__cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tg__cards { grid-template-columns: repeat(var(--cols, 2), 1fr); } #stay .tg__cards { --cols: 3; } }
.tg__card { background: var(--paper-warm); padding: clamp(20px, 2.4vw, 32px); text-align: center; }
.tg__card p { margin: 0; font-size: var(--fs-body); }
.tg__h { font: 600 var(--fs-lead)/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .55em; color: var(--ink); }
.tg__tip { text-align: center; margin: 1.6em auto 0; max-width: 40em; }
.tg__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 2em; }
.tg__more { margin-top: 1.8em; margin-bottom: 0; font-style: italic; color: var(--ink-soft); }

.gal__grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1200px; columns: 2 160px; column-gap: 8px; }
@media (min-width: 900px) { .gal__grid { columns: 3; } }
.gal__grid li { break-inside: avoid; margin: 0 0 8px; overflow: hidden; }
.gal__item { display: block; -webkit-tap-highlight-color: transparent; }
.gal__item img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.gal__item:hover img { transform: scale(1.03); }
.gal__item:focus-visible { outline-offset: -4px; }
.gal--soon .gal__soon { margin-bottom: .8em; }
.hashtags--center { justify-content: center; }

.lightbox {
  width: 100vw; height: 100vh; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(14, 11, 8, .94); color: #fffaf3; overscroll-behavior: contain; touch-action: pan-y pinch-zoom;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(14, 11, 8, .94); }
.lightbox__img { max-width: min(94vw, 1600px); max-height: 86svh; width: auto; height: auto; object-fit: contain; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  background: rgba(255, 250, 243, .08); border: 1px solid rgba(255, 250, 243, .35); border-radius: 50%; color: #fffaf3;
  font: 300 1.9rem/1 var(--f-body); -webkit-tap-highlight-color: transparent; transition: background .3s;
}
.lightbox__btn:hover { background: rgba(255, 250, 243, .2); }
.lightbox__btn--close { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.lightbox__btn--prev { left: 14px; top: 50%; translate: 0 -50%; }
.lightbox__btn--next { right: 14px; top: 50%; translate: 0 -50%; }
@media (max-width: 559px) { .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: max(18px, env(safe-area-inset-bottom)); translate: none; } }

.page-foot { text-align: center; padding: clamp(40px, 6vw, 72px) var(--gutter) calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--latte-line); }
.page-foot .footer__credit { color: var(--ink-soft); }
.page-foot .footer__credit a { color: var(--ink); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
@media (min-width: 960px) and (max-width: 1180px) { .nav__links { gap: 14px; } }
@media (max-width: 559px) { .reserved__k { letter-spacing: .06em; } }

/* =========================================================================
   Boxers — the Mahbeebee Boxing fighters, shared by the game (game.html) and the
   bees section of the site. A fighter is a square box: the couple's bee rig between
   two gloves (img/glove.svg); data-state sets the pose.
   ========================================================================= */
.bx-fighter { aspect-ratio: 1; --x: 0%; --y: 0%; --r: 0deg; --s: 1; }
.bx-fighter--right { transform: scaleX(-1); }   /* both bee drawings face right: the right-hand one turns to face the middle */
.bx-fighter--groom { color: var(--navy); }
.bx-fighter--bride { color: var(--rose); }
/* the ring's glove bump: front gloves reach just far enough to meet in the middle */
.bx-fighter[data-state="bump"] .bx-glove--front { transform: translate(32%, -8%) rotate(0deg); }
.bx-fighter__shadow {
  position: absolute; left: 30%; right: 22%; bottom: -2%; height: 7%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(56, 60, 80, .28), transparent); transition: transform .3s var(--ease), opacity .3s;
}
.bx-fighter__body {
  position: absolute; inset: 0;
  transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s));
  transition: transform .18s var(--ease);
}
.bx-fighter__bee { position: absolute; inset: 0; animation: bxBob 1.6s var(--ease-soft) infinite alternate; }
@keyframes bxBob { from { transform: translateY(-2%); } to { transform: translateY(2%); } }
.bx-glove { position: absolute; width: 23%; height: auto; aspect-ratio: 100 / 80; transition: transform .14s var(--ease), filter .2s; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .18)); }
.bx-glove--back { left: 58%; top: 58%; transform: rotate(-8deg); }
.bx-glove--front { left: 66%; top: 49%; transform: rotate(4deg); }

/* states (game.js sets data-state) */
.bx-fighter[data-state="guard"] .bx-glove--front { transform: translate(-6%, -30%) rotate(-12deg); }
.bx-fighter[data-state="windup"] .bx-fighter__body { --x: -7%; --r: -7deg; transition-duration: .35s; }
.bx-fighter[data-state="windup"] .bx-glove--front {
  transform: translate(-40%, -18%) rotate(-24deg) scale(1.08);
  filter: drop-shadow(0 0 6px #ffd76a) drop-shadow(0 0 14px #ffb347);
  animation: bxGlow .22s ease-in-out infinite alternate;
}
@keyframes bxGlow { to { filter: drop-shadow(0 0 10px #fff1b8) drop-shadow(0 0 22px #ff9f43); } }
.bx-fighter[data-state="punch"] .bx-fighter__body { --x: 18%; --r: 5deg; transition-duration: .09s; }
.bx-fighter[data-state="punch"] .bx-glove--front { transform: translate(52%, -6%) rotate(0deg) scale(1.15); }
.bx-fighter[data-state="dodge"] .bx-fighter__body { --y: -34%; --x: -6%; --r: -10deg; --s: .92; transition-duration: .16s; }
.bx-fighter[data-state="dodge"] .bx-fighter__shadow { transform: scale(.55); opacity: .5; }
.bx-fighter[data-state="hit"] .bx-fighter__body { --x: -12%; --r: -14deg; transition-duration: .08s; }
.bx-fighter[data-state="hit"] .bx-fighter__bee { animation: bxFlash .3s steps(2) 1; }
@keyframes bxFlash { 50% { filter: brightness(1.35) saturate(1.2); } }
.bx-fighter[data-state="block"] .bx-glove--front { transform: translate(-14%, -46%) rotate(-70deg); }
.bx-fighter[data-state="block"] .bx-glove--back { transform: translate(6%, -50%) rotate(-60deg); }
.bx-fighter[data-state="block"] .bx-fighter__body { --x: -4%; }
.bx-fighter[data-state="open"] .bx-fighter__body { --x: 4%; --r: 12deg; }
.bx-fighter[data-state="open"] .bx-glove { transform: translate(-10%, 30%) rotate(30deg); }
.bx-fighter[data-state="ko"] .bx-fighter__body { --x: -18%; --y: 22%; --r: -78deg; --s: .9; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.bx-fighter[data-state="ko"] .bx-fighter__bee { animation: none; }
.bx-fighter[data-state="win"] .bx-fighter__body { --y: -10%; }
.bx-fighter[data-state="win"] .bx-glove--front { transform: translate(-20%, -120%) rotate(-80deg) scale(1.1); }
.bx-fighter[data-state="win"] .bx-fighter__bee { animation: bxHop .45s var(--ease-soft) infinite alternate; }
@keyframes bxHop { from { transform: translateY(0); } to { transform: translateY(-8%); } }

