/* ==========================================================================
   Palm & Nut (Parichart & Chanaphat) — wedding e-card
   Art direction: midnight navy & champagne gold, editorial luxury
   ========================================================================== */

/* ---------- Fonts (SIL OFL, self-hosted) ---------- */
@font-face {
  font-family: "Cormorant";
  src: url("../assets/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant";
  src: url("../assets/fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Thai display serif (Thai subset only — Latin always comes from Cormorant) */
@font-face {
  font-family: "Trirong";
  src: url("../assets/fonts/trirong-thai-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Trirong";
  src: url("../assets/fonts/trirong-thai-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* Text / labels */
@font-face {
  font-family: "Plex Thai";
  src: url("../assets/fonts/ibm-plex-sans-thai-thai-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Plex Thai";
  src: url("../assets/fonts/ibm-plex-sans-thai-thai-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Plex Thai";
  src: url("../assets/fonts/ibm-plex-sans-thai-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex Thai";
  src: url("../assets/fonts/ibm-plex-sans-thai-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Signature script (Latin only, not preloaded) */
@font-face {
  font-family: "Mrs Saint Delafield";
  src: url("../assets/fonts/mrs-saint-delafield-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}

/* ---------- Tokens ---------- */
:root {
  --navy-900: #0B1E36;
  --navy-800: #102A4A;
  --navy-700: #163C67;
  --gold: #C9A45C;
  --gold-light: #E8D3A0;
  --gold-ink: #7A5B22;          /* gold for text on ivory (5.6:1) */
  --ivory: #F7F3EC;
  --ivory-soft: #FBF8F2;
  --ink: #1D2733;
  --ink-soft: #4A5361;          /* 7:1 on ivory */
  --on-navy: #F7F3EC;
  --on-navy-soft: #C3CAD3;      /* 9:1 on navy-900 */
  --hairline: rgba(201, 164, 92, 0.5);
  --hairline-soft: rgba(201, 164, 92, 0.26);

  /* Foil: 300%-wide band. The outer thirds are identical gold, the middle third holds
     the light sweep, so looping the position never jumps. */
  --foil: linear-gradient(100deg,
    #A8823E 0%, #E2C988 8%, #C9A45C 17%, #EBD7A4 26%, #B48C47 33.3%,
    #C9A45C 42%, #FFF5DA 50%, #C9A45C 58%,
    #A8823E 66.7%, #E2C988 75%, #C9A45C 84%, #EBD7A4 93%, #B48C47 100%);

  /* Very faint paper grain for ivory surfaces */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .29 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --font-display: "Cormorant", "Trirong", Georgia, "Times New Roman", serif;
  --font-thai-serif: "Trirong", "Cormorant", Georgia, serif;
  --font-script: "Mrs Saint Delafield", "Cormorant", cursive;
  --font-sans: "Plex Thai", "Segoe UI", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --container: 72rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4.5rem, 12vw, 8.5rem);
  --nav-h: 0px;
  --arch: 9999px 9999px 0 0;
}

@media (max-width: 849.98px) {
  :root { --nav-h: 4rem; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--navy-900);
}

body {
  margin: 0;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--navy-900);
  overflow-x: hidden;
  overflow-wrap: break-word;
  line-break: auto;
  -webkit-font-smoothing: antialiased;
}

/* Scroll lock while the lightbox is up */
body.is-locked { overflow: hidden; }

img, video, iframe, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nowrap { white-space: nowrap; }

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--ivory);
  color: var(--navy-900);
  font-weight: 500;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 46rem; }
.container--wide { max-width: 78rem; }

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--ivory {
  background-color: var(--ivory);
  background-image: var(--grain);
}
.section--navy {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(22, 60, 103, 0.55) 0%, transparent 70%),
    var(--navy-900);
  color: var(--on-navy);
  overflow: hidden;
  isolation: isolate;
}

/* ---------- Gold foil text with an occasional light sweep ---------- */
.foil { color: var(--gold); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .foil {
    background-image: var(--foil);
    background-size: 300% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: foil-sweep 11s ease-in-out infinite;
  }
  /* children with their own transforms re-apply the clip */
  .foil > span,
  .foil time,
  .foil time > span {
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
  }
}
@keyframes foil-sweep {
  0%, 70% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ---------- Monogram component ----------
   Typographic P & C by default; once JS confirms the designed logo loads (and masks are
   supported) the same box paints the foil through the logo, so nothing shifts. */
.mono { position: relative; display: inline-flex; }
.mono__text {
  padding: 0.05em 0.12em 0.12em; /* room so the foil clip never cuts the italic swash */
  display: flex;
  align-items: baseline;
  justify-content: center;
  animation-duration: var(--sweep, 11s);
}
.mono__amp {
  font-style: italic;
  font-weight: 400;
  font-size: 0.6em;
  margin-inline: 0.02em 0.04em;
}
.mono__logo { display: none; }
/* Logo is ~1.08 : 1 (P upper-left, C lower-right, swash ampersand): give it a near-square
   box sized from the same font-size, so every instance keeps its scale. */
.has-logo .mono {
  width: 1.5em;
  height: 1.39em;
}
.has-logo .mono__logo {
  display: block;
  position: absolute;
  inset: 0;
  background-image: var(--foil);
  background-size: 300% 100%;
  -webkit-mask: var(--mono-sm) center / contain no-repeat;
  mask: var(--mono-sm) center / contain no-repeat;
  animation: foil-sweep var(--sweep, 11s) ease-in-out infinite;
}
.has-logo .mono__text { display: none; }
/* Large renders (cover, desktop hero) take the 1600 px master on hi-DPI screens */
@media (min-width: 850px) {
  .has-logo .mono--lg .mono__logo {
    -webkit-mask-image: -webkit-image-set(var(--mono-sm) 1x, var(--mono-lg) 2x);
    mask-image: image-set(var(--mono-sm) 1x, var(--mono-lg) 2x);
  }
}

/* ---------- Section heading ---------- */
.section-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 7vw, 4.5rem);
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 4.25rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--navy-700);
}
.section-head--on-navy .section-head__title { color: var(--on-navy); }
/* Hairline with a diamond terminal under every section title */
.section-head::after {
  content: "";
  display: block;
  width: 6.5rem;
  height: 9px;
  margin: 1.1rem auto 0;
  background:
    linear-gradient(45deg, transparent 42%, var(--gold) 42% 58%, transparent 58%) center / 9px 9px no-repeat,
    linear-gradient(-45deg, transparent 42%, var(--gold) 42% 58%, transparent 58%) center / 9px 9px no-repeat,
    linear-gradient(90deg, transparent, var(--gold) 35%, transparent 44% 56%, var(--gold) 65%, transparent) center / 100% 1px no-repeat;
}

/* ---------- Keyline card: double hairline with diamond terminals ---------- */
.keyline-card {
  position: relative;
  border: 1px solid var(--hairline);
  background: rgba(251, 248, 242, 0.82);
}
.keyline-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--hairline-soft);
  pointer-events: none;
}
.keyline-card::after,
.keyline-card__gem {
  content: "";
  position: absolute;
  left: 50%;
  width: 9px; height: 9px;
  margin-left: -4.5px;
  background: var(--ivory);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.keyline-card::after { bottom: -5px; }
.keyline-card__gem { top: -5px; }

/* ---------- Divider (PNG with CSS hairline fallback) ---------- */
.divider {
  position: relative;
  width: min(80%, 35rem);
  aspect-ratio: 1200 / 105;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.divider::before,
.divider::after { content: ""; position: absolute; }
.divider::before {
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  opacity: 0.7;
}
.divider::after {
  top: 50%; left: 50%;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  background: var(--navy-900);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.divider img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.divider--on-navy img { filter: brightness(1.22); } /* lift the antique gold on navy */
html:not(.js) .divider img { display: none; }
.js .divider img { opacity: 0; transition: opacity 0.6s var(--ease); }
.js .divider.has-art img { opacity: 1; }
.divider.has-art::before,
.divider.has-art::after { display: none; }

/* Ornaments that appear only once their image has loaded */
.js img[data-ornament]:not(.is-loaded) { visibility: hidden; }
img.is-missing { display: none !important; }

/* ---------- Buttons: square-cut, letter-spaced, fill sweep ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.1rem;
  padding: 0.7rem 2rem;
  border: 1px solid currentColor;
  outline: 1px solid var(--btn-keyline, var(--hairline-soft));
  outline-offset: 3px;
  background: transparent;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8rem;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--ease);
}
.btn:hover::before,
.btn:focus-visible::before { transform: scaleX(1); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn__icon {
  width: 1.15rem; height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn--gold { color: var(--gold-light); --btn-fill: var(--gold); }
.btn--gold:hover,
.btn--gold:focus-visible { color: var(--navy-900); }
.btn--navy { color: var(--navy-700); --btn-fill: var(--navy-700); --btn-keyline: rgba(22, 60, 103, 0.22); }
.btn--navy:hover,
.btn--navy:focus-visible { color: var(--ivory); }

.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--on-navy-soft);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 0.4em;
}
.link-quiet:hover { color: var(--gold-light); }

/* ==========================================================================
   Opening cover — quiet: artwork, one monogram, the date, one button
   ========================================================================== */
.cover {
  position: fixed;
  inset: 0;
  z-index: 300;
  color: var(--on-navy);
  text-align: center;
}
.cover__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(90% 60% at 50% 45%, #18406B 0%, rgba(22, 60, 103, 0.3) 50%, transparent 80%),
    var(--navy-900);
  transition: opacity 1.1s var(--ease) 0.2s, transform 1.3s var(--ease) 0.1s;
}
.cover__bg img,
.cover__dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover__dust {
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  pointer-events: none;
}
.cover__dust.is-playing { opacity: 0.35; }
.cover__dust.is-missing { display: none; }

/* Content sits inside the artwork's calm centre (portrait art: y 20–78 %) */
.cover__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 21vh var(--gutter) 22vh; /* fallback before svh */
  padding: 21svh var(--gutter) 22svh;
}
.cover__monogram {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(5.5rem, min(30vw, 19vh), 11rem); /* fallback before svh */
  font-size: clamp(5.5rem, min(30vw, 19svh), 11rem);
  line-height: 1;
  letter-spacing: -0.015em;
  transform-origin: 0 0;
  --sweep: 6s;
}
.cover__rule {
  position: relative;
  display: block;
  width: 5rem;
  height: 1px;
  margin: clamp(1rem, 3vh, 1.5rem) 0 clamp(0.75rem, 2vh, 1rem); /* fallback before svh */
  margin: clamp(1rem, 3svh, 1.5rem) 0 clamp(0.75rem, 2svh, 1rem);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cover__rule::after {
  content: "";
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  margin-left: -3px;
  background: var(--gold);
  transform: rotate(45deg);
}
.cover__date {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 4vw, 1.3rem);
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  font-variant-numeric: lining-nums;
  color: var(--gold-light);
}
.cover__open {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(2rem, 6vh, 3rem); /* fallback before svh */
  margin-top: clamp(2rem, 6svh, 3rem);
  min-width: 11.5rem;
  min-height: 2.9rem;
  padding: 0.55rem 2.2rem;
  border: 1px solid rgba(201, 164, 92, 0.75);
  background: transparent;
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.98rem;
  letter-spacing: 0.24em;
  padding-left: calc(2.2rem + 0.24em);
  cursor: pointer;
  transition: color 0.45s var(--ease);
}
.cover__open::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--ease);
}
.cover__open:hover,
.cover__open:focus-visible { color: var(--navy-900); }
.cover__open:hover::before,
.cover__open:focus-visible::before { transform: scaleX(1); }

/* "open with music" option, quiet text toggle under the button */
.cover__sound {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  margin-top: 0.6rem;
  padding: 0 0.75rem;
  border: 0;
  background: none;
  color: var(--on-navy-soft);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.cover__sound[hidden] { display: none; }
.cover__sound:hover { color: var(--gold-light); }
.cover__sound-icon {
  width: 1rem; height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cover__sound-slash,
.cover__sound-off { display: none; }
.cover__sound[aria-pressed="false"] .cover__sound-slash { display: inline; }
.cover__sound[aria-pressed="false"] .cover__sound-off { display: inline; }
.cover__sound[aria-pressed="false"] .cover__sound-on { display: none; }

/* Opening: details fade, artwork dissolves with a slight scale, the monogram flies to the hero */
.cover.is-opening { pointer-events: none; }
/* deep link (hero monogram off screen): the whole cover simply dissolves */
.cover.is-plain { opacity: 0; transition: opacity 1.1s var(--ease) 0.1s; }
.cover.is-opening .cover__bg { opacity: 0; transform: scale(1.04); }
.cover.is-opening .cover__rule,
.cover.is-opening .cover__date,
.cover.is-opening .cover__open,
.cover.is-opening .cover__sound {
  opacity: 0;
  filter: blur(4px);
  transition: opacity 0.5s var(--ease), filter 0.5s var(--ease);
}
.cover__monogram.is-flying { transition: transform 1.25s cubic-bezier(0.65, 0, 0.25, 1); }

/* Page behind the cover: no nav or music control, hero entrance waits */
.is-covered body { overflow: hidden; }
.is-covered .nav,
.is-covered .music-toggle { visibility: hidden; }
.is-covered .stage,

/* ==========================================================================
   Navigation — bottom bar < 850px, slim top bar on desktop after the hero
   ========================================================================== */
.nav {
  position: fixed;
  z-index: 50;
  left: 0; right: 0;
  background: rgba(11, 30, 54, 0.94);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.nav__list {
  display: flex;
  justify-content: center;
  max-width: 34rem;
  margin-inline: auto;
}
.nav__list li { flex: 1 1 0; }
.nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  height: 100%;
  min-height: 2.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--on-navy-soft);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.nav__icon {
  width: 1.35rem; height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav__link:hover,
.nav__link.is-active { color: var(--gold-light); }
.nav__link::after {
  content: "";
  position: absolute;
  width: 5px; height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.nav__link.is-active::after { opacity: 1; }

@media (max-width: 849.98px) {
  .nav {
    bottom: 0;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--hairline-soft);
  }
  .nav__list { height: var(--nav-h); }
  .nav__link::after { top: 0.3rem; }
}

@media (min-width: 850px) {
  .nav {
    top: 0;
    border-bottom: 1px solid var(--hairline-soft);
    transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
  }
  .js .nav:not(.is-shown) { transform: translateY(-100%); opacity: 0; pointer-events: none; }
  /* keyboard users tabbing into the hidden bar get it back */
  .js .nav:not(.is-shown):focus-within { transform: none; opacity: 1; pointer-events: auto; }
  .nav__list { max-width: 40rem; }
  .nav__icon { display: none; }
  .nav__link {
    height: 3.5rem;
    font-size: 0.76rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
  }
  .nav__link::after { bottom: 0.6rem; }
}

/* ---------- Music toggle ---------- */
.music-toggle {
  position: fixed;
  z-index: 60;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 1rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 3rem;
  height: 3rem;
  padding: 0 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(11, 30, 54, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--gold-light);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(11, 30, 54, 0.25), 0 8px 24px rgba(7, 21, 42, 0.35);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.music-toggle[hidden],
html:not(.js) .music-toggle { display: none; }
/* asked to play, file still loading: bars shown but still */
.music-toggle.is-pending .music-toggle__bars i { animation-play-state: paused; }
/* Short text hint for the first seconds, then the control collapses to its icon */
.music-toggle__hint {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.82rem;
  line-height: 1;
  color: var(--on-navy);
  transition: max-width 0.5s var(--ease), margin 0.5s var(--ease);
  margin-left: -0.55rem;
}
.music-toggle.has-hint .music-toggle__hint { max-width: 6rem; margin-left: 0; }
.music-toggle:hover { background: var(--navy-700); }
@media (min-width: 850px) {
  .music-toggle { right: 1.75rem; bottom: 1.75rem; }
}
.music-toggle__note {
  flex: none;
  width: 1.3rem; height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.music-toggle__bars {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 1.1rem;
}
.music-toggle__bars i {
  display: block;
  width: 2px;
  height: 100%;
  background: currentColor;
  transform-origin: bottom;
  animation: eq 1.1s ease-in-out infinite alternate;
}
.music-toggle__bars i:nth-child(2) { animation-delay: -0.45s; }
.music-toggle__bars i:nth-child(3) { animation-delay: -0.8s; }
.music-toggle__bars i:nth-child(4) { animation-delay: -0.2s; }
@keyframes eq {
  from { transform: scaleY(0.25); }
  to { transform: scaleY(1); }
}
.music-toggle[aria-pressed="true"] .music-toggle__note { display: none; }
.music-toggle[aria-pressed="true"] .music-toggle__bars { display: flex; }
.music-toggle[aria-pressed="false"] { color: var(--on-navy-soft); }
.music-toggle__slash { opacity: 0; }
.music-toggle.is-muted .music-toggle__slash { opacity: 1; }

/* ==========================================================================
   Hero — living photograph
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 6rem var(--gutter) calc(var(--nav-h) + clamp(4.75rem, 10vh, 6.5rem)); /* fallback before svh */
  padding: 6rem var(--gutter) calc(var(--nav-h) + clamp(4.75rem, 10svh, 6.5rem));
  overflow: hidden;
  color: var(--on-navy);
  text-align: center;
  background: var(--navy-900);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__frame { position: absolute; inset: 0; overflow: hidden; }
.hero__still,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 16:9 loop: faces at roughly x 45–75 %, y 10–40 % */
  object-position: 62% 30%;
  transform-origin: 60% 25%; /* the push-in moves towards the faces, never past them */
}
/* 9:16 loop on portrait screens: faces at roughly x 40–80 %, y 10–35 % */
@media (max-aspect-ratio: 1/1) {
  .hero__still,
  .hero__video { object-position: 50% 25%; }
}
/* narrower than 9:16 (most phones): lean right so the bride's face never leaves the edge */
@media (max-aspect-ratio: 9/16) {
  .hero__still,
  .hero__video { object-position: 60% 25%; }
}
/* Fallback still (square original) if the generated poster is missing */
.hero.is-fallback .hero__still { object-position: 86% 22%; transform-origin: 72% 24%; }
@media (max-aspect-ratio: 1/1) {
  .hero.is-fallback .hero__still { height: 74%; object-position: 95% 30%; }
}
.hero__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero.is-video-on .hero__still { visibility: hidden; } /* poster dropped once the video has faded in */
/* Slow push-in on the still */
/* Only the STILL gets the push-in (poster before/without video, reduced-motion excluded):
   scaling a playing 24 fps video at 60 fps resamples it every frame and reads as shaking.
   The video itself is never transformed. */
.hero.is-live:not(.has-video) .hero__still { animation: push-in 14s cubic-bezier(0.25, 0.1, 0.25, 1) both; }
@keyframes push-in {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 21, 42, 0.4) 0%, rgba(7, 21, 42, 0) 16%),
    /* long eased ramp so the white dress melts into navy instead of banding */
    linear-gradient(0deg,
      #07152A 0%, #07152A 27%, rgba(7, 21, 42, 0.92) 34%,
      rgba(7, 21, 42, 0.78) 40%, rgba(7, 21, 42, 0.56) 46%, rgba(7, 21, 42, 0.32) 53%,
      rgba(7, 21, 42, 0.14) 60%, rgba(7, 21, 42, 0.04) 66%, rgba(7, 21, 42, 0) 71%);
}
/* Warm light leak drifting in the upper-left corner */
.hero__leak {
  position: absolute;
  top: -20%; left: -25%;
  width: 80%; height: 60%;
  background: radial-gradient(closest-side, rgba(255, 214, 150, 0.9), rgba(255, 190, 120, 0) 70%);
  mix-blend-mode: screen;
  opacity: 0.16;
  animation: leak 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes leak {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8%, 6%, 0) scale(1.12); }
}
/* Gold dust lives in the lower text zone, never on the faces */
.hero__dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.6s var(--ease);
  -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 30%, transparent 55%);
  mask-image: linear-gradient(0deg, #000 0%, #000 30%, transparent 55%);
}
.hero__dust.is-playing { opacity: 0.45; }
.hero__dust.is-missing { display: none; }

/* Four-point glints twinkling around the monogram/name block and the frame edges */
.hero__glints { position: absolute; inset: 0; pointer-events: none; }
.hero__glints i,
.finale__glints i {
  position: absolute;
  width: var(--s, 12px);
  height: var(--s, 12px);
  background:
    linear-gradient(90deg, transparent 0 46%, #FFF6DE 46% 54%, transparent 54%) center / 100% 100%,
    linear-gradient(0deg, transparent 0 46%, #FFF6DE 46% 54%, transparent 54%) center / 100% 100%;
  -webkit-mask: radial-gradient(circle, #000 0 18%, rgba(0, 0, 0, 0.5) 34%, transparent 70%);
  mask: radial-gradient(circle, #000 0 18%, rgba(0, 0, 0, 0.5) 34%, transparent 70%);
  filter: drop-shadow(0 0 3px rgba(233, 205, 140, 0.95));
  opacity: 0;
  transform: scale(0.3);
  will-change: transform, opacity;
  animation: twinkle var(--t, 4s) ease-in-out var(--d, 0s) infinite;
}
@keyframes twinkle {
  0%, 60%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  78% { opacity: 1; transform: scale(1) rotate(20deg); }
}
/* Phones: a loose ring around the lower-third title block + a few at the edges */
.hero__glints i:nth-child(1)  { left: 12%; bottom: 36%; --s: 14px; --t: 4.2s; --d: -0.4s; }
.hero__glints i:nth-child(2)  { left: 84%; bottom: 38%; --s: 11px; --t: 3.6s; --d: -2.1s; }
.hero__glints i:nth-child(3)  { left: 22%; bottom: 22%; --s: 8px;  --t: 2.9s; --d: -1.3s; }
.hero__glints i:nth-child(4)  { left: 74%; bottom: 25%; --s: 16px; --t: 4.8s; --d: -3.2s; }
.hero__glints i:nth-child(5)  { left: 47%; bottom: 43%; --s: 9px;  --t: 3.3s; --d: -0.9s; }
.hero__glints i:nth-child(6)  { left: 7%;  bottom: 14%; --s: 10px; --t: 4.5s; --d: -2.7s; }
.hero__glints i:nth-child(7)  { left: 90%; bottom: 15%; --s: 12px; --t: 3.9s; --d: -1.8s; }
.hero__glints i:nth-child(8)  { left: 5%;  top: 12%;    --s: 9px;  --t: 5s;   --d: -3.8s; }
.hero__glints i:nth-child(9)  { left: 33%; bottom: 40%; --s: 7px;  --t: 2.6s; --d: -0.2s; }
.hero__glints i:nth-child(10) { left: 62%; bottom: 17%; --s: 8px;  --t: 3.1s; --d: -2.4s; }
.hero__glints i:nth-child(11) { left: 3%;  top: 44%;    --s: 11px; --t: 4.4s; --d: -1.1s; }
/* Every hero effect pauses when the hero is off-screen or the tab is hidden */
.hero.is-paused .hero__glints i,
.hero.is-paused .hero__leak,
.hero.is-paused .mono__text,
.hero.is-paused .mono__logo { animation-play-state: paused; }

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 40rem;
}
.hero__title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: inherit;
  font-weight: 400;
}
.hero__title:focus { outline: none; }
/* faint warm glow so the monogram lifts off the scrim */
.hero__title::before {
  content: "";
  position: absolute;
  inset: -30% -25%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(201, 164, 92, 0.2), rgba(201, 164, 92, 0) 100%);
  pointer-events: none;
}
.hero__monogram {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(4.75rem, 23vw, 8.5rem);
  line-height: 1;
  letter-spacing: -0.015em;
  --sweep: 7s; /* foil sweep roughly every 7 s */
}
.hero__names {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.85rem, 3.4vw, 1.1rem);
  line-height: 1.5;
  letter-spacing: 0.26em;
  padding-left: 0.26em;
  text-transform: uppercase;
  color: var(--on-navy);
}
.hero__names-amp { font-style: italic; font-weight: 500; text-transform: none; color: var(--gold-light); letter-spacing: 0; margin-inline: 0.2em; }
.hero__rule {
  position: relative;
  display: block;
  width: 4.5rem;
  height: 1px;
  margin: 1.1rem 0 0.9rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero__rule::after {
  content: "";
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  margin-left: -3px;
  background: var(--gold);
  transform: rotate(45deg);
}
.hero__date {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 4vw, 1.3rem);
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  color: var(--gold-light);
  font-variant-numeric: lining-nums;
}
/* Cover → hero hand-off: the hero monogram waits for the flying cover monogram */
.hero.is-handoff .hero__monogram { visibility: hidden; }
/* the logo's swash fills its box to the edge: give the names a little more air */
.has-logo .hero__names { margin-top: 0.8rem; }
.hero.has-cover .hero__mono-stage { animation: none; } /* the cover monogram arrives instead */

/* Wide screens: editorial left column, faces stay clear on the right */
@media (min-width: 850px) and (min-aspect-ratio: 1/1) {
  .hero {
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 6rem clamp(3rem, 8vw, 9rem) 6rem;
  }
  /* Wide screens: the 1000 px source would be upscaled ~1.6–1.9x full-bleed, so the loop
     sits in a gold-keylined 16:9 frame (shown at <= 1:1) on the navy artwork instead */
  .hero {
    background:
      radial-gradient(60% 70% at 70% 50%, rgba(22, 60, 103, 0.55), transparent 70%),
      url("../assets/gen/hero-bg-landscape.webp") center / cover no-repeat,
      var(--navy-900);
  }
  .hero__frame {
    inset: auto;
    top: 50%;
    right: clamp(3rem, 6vw, 8rem);
    width: min(46vw, 62rem);
    aspect-ratio: 16 / 9;
    transform: translateY(-50%); /* fallback only (no CSS round()) */
    outline: 1px solid rgba(201, 164, 92, 0.75);
    outline-offset: 11px;
    box-shadow:
      0 0 0 1px rgba(201, 164, 92, 0.45),
      0 40px 80px -30px rgba(0, 0, 0, 0.75);
  }
  .hero__still,
  .hero__video { object-position: 50% 50%; }
  .hero.is-fallback .hero__still { height: 100%; object-position: 50% 45%; }
  .hero__scrim {
    background: linear-gradient(90deg, rgba(7, 21, 42, 0.55) 0%, rgba(7, 21, 42, 0) 45%);
  }
  .hero__dust {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 28%, transparent 50%);
    mask-image: linear-gradient(90deg, #000 0%, #000 28%, transparent 50%);
  }
  .hero__content { align-items: flex-start; }
  .hero__monogram { padding-left: 0; margin-left: -0.04em; font-size: clamp(7rem, 11vw, 10.5rem); }
  .hero__names { padding-left: 0; }
  .hero__date { padding-left: 0; }
  .hero__rule { background: linear-gradient(90deg, var(--gold), transparent); }
  .hero__rule::after { left: 0; margin-left: 0; }
  .hero__glints i:nth-child(1)  { left: 4%;  bottom: 66%; }
  .hero__glints i:nth-child(2)  { left: 36%; bottom: 64%; }
  .hero__glints i:nth-child(3)  { left: 10%; bottom: 28%; }
  .hero__glints i:nth-child(4)  { left: 41%; bottom: 33%; }
  .hero__glints i:nth-child(5)  { left: 24%; bottom: 70%; }
  .hero__glints i:nth-child(6)  { left: 3%;  bottom: 12%; }
  .hero__glints i:nth-child(7)  { left: 30%; bottom: 10%; }
  .hero__glints i:nth-child(9)  { left: 18%; bottom: 24%; }
  .hero__glints i:nth-child(10) { left: 45%; bottom: 52%; }
}

@media (min-width: 1200px) and (min-aspect-ratio: 1/1) {
  .hero__frame { width: min(54vw, 62rem); }
}
/* Integer box with no transform, so the playing video is never resampled at a sub-pixel
   offset: width snaps to 16 px (16:9 height is then a whole pixel), top is rounded. */
@supports (width: round(down, 10px, 1px)) {
  @media (min-width: 850px) and (min-aspect-ratio: 1/1) {
    .hero__frame {
      --frame-w: round(down, min(46vw, 62rem), 16px);
      width: var(--frame-w);
      height: calc(var(--frame-w) * 9 / 16);
      aspect-ratio: auto;
      top: round(down, calc(50% - var(--frame-w) * 9 / 32), 1px);
      transform: none;
      right: round(clamp(3rem, 6vw, 8rem), 1px);
    }
  }
  @media (min-width: 1200px) and (min-aspect-ratio: 1/1) {
    .hero__frame { --frame-w: round(down, min(54vw, 62rem), 16px); }
  }
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: calc(var(--nav-h) + clamp(0.75rem, 2.5vh, 1.75rem)); /* fallback before svh */
  bottom: calc(var(--nav-h) + clamp(0.75rem, 2.5svh, 1.75rem));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 2.75rem;
  min-height: 2.75rem;
  margin-left: -1.375rem;
  color: var(--gold-light);
}
.hero__cue-line {
  display: block;
  width: 1px;
  height: 2.25rem;
  background: linear-gradient(180deg, transparent, var(--gold));
  transform-origin: top;
  animation: cue 2.6s var(--ease) infinite;
}
.hero__cue svg {
  width: 1.1rem; height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Staged entrance on load */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
.stage { animation: rise 1.1s var(--ease) both; }
.stage--1 { animation-delay: 0.15s; }
.stage--2 { animation-delay: 0.4s; }
.stage--3 { animation-delay: 0.65s; }
.stage--5 { animation-delay: 1.3s; }

/* ==========================================================================
   Invitation + couple
   ========================================================================== */
.couple { overflow: hidden; isolation: isolate; }
.couple .container { position: relative; z-index: 1; }
.couple__card { padding: clamp(3rem, 8vw, 5rem) clamp(0.75rem, 4vw, 3rem) clamp(3rem, 7vw, 4.5rem); }

/* Gold botanical spray (drawn for the top-left corner; mirrored for bottom-right) */
.corner {
  --parallax: 0px;
  position: absolute;
  z-index: 0;
  width: clamp(16.25rem, 30vw, 26rem);
  height: auto;
  opacity: 0.75;
  pointer-events: none;
}
.corner--tl { top: 0; left: 0; transform: translate3d(0, var(--parallax), 0); }
.corner--br { right: 0; bottom: 0; transform: translate3d(0, calc(var(--parallax) * -1), 0) scale(-1); }
@media (max-width: 599.98px) {
  .corner { opacity: 0.55; }
  .corner--tl { transform: translate3d(-24%, calc(-22% + var(--parallax)), 0); }
  .corner--br { transform: translate3d(24%, calc(22% - var(--parallax)), 0) scale(-1); }
}

.invite {
  position: relative;
  max-width: 46rem;
  margin: 0 auto clamp(3rem, 9vw, 4.5rem);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 3.4vw, 1.3rem);
  line-height: 1.85;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-700);
}
.br-wide { display: none; }
@media (min-width: 600px) { .br-wide { display: inline; } }

.couple__grid {
  display: grid;
  gap: clamp(3rem, 12vw, 4rem);
  justify-items: center;
}
.couple__amp {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3.5rem, 14vw, 6rem);
  line-height: 1;
  color: var(--gold);
  margin-block: -1.5rem;
}
@media (min-width: 850px) {
  .couple__grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: clamp(1rem, 3vw, 3rem);
  }
  .couple__amp { margin-block: 0; align-self: center; transform: translateY(-4rem); }
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Arch portrait: photo, offset gold keyline, soft lift */
.arch {
  position: relative;
  width: min(72vw, 19rem);
  padding: 0.7rem;
}
.arch::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  border-radius: var(--arch);
  opacity: 0.8;
}
.arch__window {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--arch);
  background: #E7DFD1;
  box-shadow: 0 28px 40px -26px rgba(11, 30, 54, 0.55), 0 2px 6px rgba(11, 30, 54, 0.08);
}
.arch__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.arch__img--bride { object-position: 60% 30%; }
.arch__img--groom { object-position: 36% 30%; }

/* "Bride" / "Groom" signed across the foot of the arch, like a signed print */
.signature {
  position: relative;
  z-index: 2;
  margin-top: -2.5rem;
  padding: 0.15em 0.4em 0.1em;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3.6rem, 14vw, 4.5rem);
  line-height: 1.25;
  color: var(--navy-700);
  transform: rotate(-5deg);
  transform-origin: 30% 60%;
  text-shadow: 0 0 1px rgba(251, 248, 242, 0.6);
}
/* Write-on: a left-to-right wipe that follows the rotated baseline */
.js .signature {
  clip-path: inset(-30% 100% -30% -10%);
  transition: clip-path 1.5s cubic-bezier(0.6, 0.05, 0.3, 0.95);
}
.js .signature.is-signed { clip-path: inset(-30% -10% -30% -10%); }
.person + .couple__amp + .person .signature { transition-delay: 0.45s; }
@media (min-width: 850px) {
  .person + .couple__amp + .person .signature { transition-delay: 0.6s; }
}
.person__nick {
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 10vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--gold-ink);
}
.person__name {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 3.6vw, 1.2rem);
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-700);
}
.person__name-th {
  margin-top: 0.3rem;
  font-family: var(--font-thai-serif);
  font-weight: 400;
  font-size: clamp(1.02rem, 3.6vw, 1.12rem);
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ==========================================================================
   The date + countdown
   ========================================================================== */
.date { text-align: center; }
.date__inner { position: relative; z-index: 1; }
/* Navy & gold botanical artwork + faint gold dust behind the countdown */
.date__art { position: absolute; inset: 0; z-index: 0; }
.date__art img,
.date__dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.date__art::after { /* keep the centre calm under the numerals */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 55% at 50% 50%, rgba(11, 30, 54, 0.55), rgba(11, 30, 54, 0) 75%);
}
.date__dust {
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 1.5s var(--ease);
  pointer-events: none;
}
.date__dust.is-playing { opacity: 0.35; }
.date__dust.is-missing { display: none; }
.js .date__art img[data-ornament] { transition: opacity 1s var(--ease); }

.date__lead {
  margin-top: clamp(1.25rem, 4vw, 2rem);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1rem, 3.4vw, 1.2rem);
  line-height: 1.85;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-navy-soft);
}
.date__big {
  margin-top: clamp(1rem, 3vw, 1.5rem);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.9rem, 18vw, 9rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
  padding: 0.04em 0.1em 0.08em;
}
.date__month { font-style: italic; font-weight: 400; }
.date__thai {
  margin-top: 0.5rem;
  font-family: var(--font-thai-serif);
  font-size: clamp(1.05rem, 3.8vw, 1.2rem);
  line-height: 1.8;
  font-variant-numeric: lining-nums;
  color: var(--on-navy);
}

.countdown {
  margin: clamp(2.5rem, 7vw, 3.5rem) auto 0;
  max-width: 32rem;
}
html:not(.js) .countdown { display: none; }
.countdown__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.4rem, 2vw, 0.9rem);
}
/* Thin gold-keyline tiles */
.countdown__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 0.25rem 0.75rem;
  border: 1px solid var(--hairline);
  background: rgba(16, 42, 74, 0.45);
}
.countdown__cell::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(201, 164, 92, 0.14);
  pointer-events: none;
}
.countdown__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 9vw, 3.3rem);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  padding-inline: 0.05em;
}
.countdown__label {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--on-navy-soft);
}
.countdown__done {
  font-family: var(--font-thai-serif);
  font-size: clamp(1.05rem, 3.8vw, 1.25rem);
  line-height: 1.8;
  color: var(--gold-light);
}
.countdown.is-done .countdown__list { display: none; }

.date__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: clamp(2.5rem, 6vw, 3.25rem);
}

/* ==========================================================================
   Schedule — typographic card
   ========================================================================== */
.details {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
  padding: clamp(2.75rem, 8vw, 4rem) clamp(1.25rem, 5vw, 3.5rem) clamp(2.5rem, 7vw, 3.5rem);
}
.details__illustration {
  width: clamp(4.5rem, 16vw, 5.5rem);
  height: auto;
  margin: 0 auto 1.4rem;
}
.details__venue {
  font-family: var(--font-thai-serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 4.6vw, 1.7rem);
  line-height: 1.75;
  color: var(--navy-700);
}
.details__time {
  position: relative;
  margin: 1.9rem auto 0;
  padding-top: 1.9rem;
  max-width: 20rem;
}
.details__time::before {
  content: "";
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}
.details__clock {
  font-family: var(--font-thai-serif);
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--gold-ink);
}
.details__hour {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.6rem, 13vw, 5rem);
  line-height: 1;
  font-variant-numeric: lining-nums;
  letter-spacing: 0.01em;
  margin-right: 0.08em;
}
.details__event {
  margin-top: 0.6rem;
  font-family: var(--font-thai-serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 4.4vw, 1.5rem);
  line-height: 1.7;
  color: var(--ink);
}
.details__note {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.details__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
}
.details__meta-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.details__meta-item + .details__meta-item {
  padding-left: 1.5rem;
  border-left: 1px solid var(--hairline);
}
@media (max-width: 459.98px) {
  .details__meta { flex-direction: column; gap: 0.9rem; }
  .details__meta-item + .details__meta-item { padding-left: 0; border-left: 0; }
}
.details__hashtag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.16em;
  color: var(--navy-700);
}
.details__theme-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.swatches { display: flex; gap: 0.5rem; }
.swatch {
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(29, 39, 51, 0.12), 0 0 0 2px var(--ivory-soft), 0 0 0 3px var(--hairline-soft);
}
.swatch--163c67 { --swatch: #163C67; }
.swatch--a2aeb6 { --swatch: #A2AEB6; }
.swatch--9aaea6 { --swatch: #9AAEA6; }
.swatch--757f6a { --swatch: #757F6A; }
.swatch--b69d89 { --swatch: #B69D89; }
.swatch--f2dbdc { --swatch: #F2DBDC; }

.details__apology {
  margin-top: 2.25rem;
  font-family: var(--font-thai-serif);
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ==========================================================================
   Gallery — editorial grid on navy: 1 feature, 10 portraits, 1 wide closer
   ========================================================================== */
.gallery .container { container-type: inline-size; }
.gallery__grid {
  --cols: 2;
  --gap: clamp(0.5rem, 1.4vw, 1rem);
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-auto-flow: dense;
  gap: var(--gap);
  grid-auto-rows: 28vw; /* fallback without container units */
  /* one row = half of a 4:5 portrait cell */
  grid-auto-rows: calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols) * 0.625);
}
@media (min-width: 900px) {
  .gallery__grid { --cols: 4; grid-auto-rows: min(13vw, 11rem); grid-auto-rows: calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols) * 0.625); }
}
.gallery__cell { grid-row: span 2; min-width: 0; }
.gallery__cell--feature { grid-column: span 2; grid-row: span 4; }
.gallery__cell--wide { grid-column: span 2; grid-row: span 2; }

.gallery__item {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  background: var(--navy-800);
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(201, 164, 92, 0.18);
  transition: box-shadow 0.45s var(--ease);
  pointer-events: none;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}
.gallery__item:hover img,
.gallery__item:focus-visible img,
.gallery__item:active img { transform: scale(1.04); }
.gallery__item:hover::after,
.gallery__item:focus-visible::after,
.gallery__item:active::after { box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 5px rgba(11, 30, 54, 0.35), inset 0 0 0 6px rgba(201, 164, 92, 0.6); }
.gallery__item:focus-visible { outline-offset: 3px; }

/* Crops: keep faces inside the 4:5 cells */
.gallery__cell:nth-child(1) img { object-position: 50% 30%; }
.gallery__cell:nth-child(2) img { object-position: 50% 35%; }
.gallery__cell:nth-child(3) img { object-position: 50% 40%; }
.gallery__cell:nth-child(4) img { object-position: 50% 25%; }
.gallery__cell:nth-child(5) img { object-position: 50% 45%; }
.gallery__cell:nth-child(6) img { object-position: 50% 40%; }
.gallery__cell:nth-child(7) img { object-position: 50% 35%; }
.gallery__cell:nth-child(8) img { object-position: 50% 20%; }
.gallery__cell:nth-child(9) img { object-position: 50% 25%; }
.gallery__cell:nth-child(10) img { object-position: 50% 45%; }
.gallery__cell:nth-child(11) img { object-position: 50% 25%; }
.gallery__cell:nth-child(12) img { object-position: 50% 50%; }

/* ---------- Lightbox ----------
   Three rows: close bar / image area / counter + arrows. The image area is a positioned
   box; the photo is centred in it with max-width/max-height so it always fits whole. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100vh;
  height: 100dvh;
  touch-action: pan-y pinch-zoom; /* horizontal swipes are ours (prev/next) */
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background:
    radial-gradient(80% 70% at 50% 45%, rgba(16, 42, 74, 0.55), transparent 70%),
    rgba(7, 21, 42, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--on-navy);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 1rem;
}
.lightbox__bar--top { justify-content: flex-end; }
.lightbox__bar--bottom { justify-content: center; padding-bottom: 1rem; }
.lightbox__stage { position: relative; min-height: 0; }
.lightbox__img {
  position: absolute;
  inset: 0.5rem 1rem;
  margin: auto;
  max-width: calc(100% - 2rem);
  max-height: calc(100% - 1rem);
  width: auto;
  height: auto;
  /* thin gold keyline that hugs the rendered photo */
  outline: 1px solid var(--hairline-soft);
  outline-offset: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transition: opacity 0.4s var(--ease);
}
.lightbox__img.is-loading { opacity: 0; }
.lightbox__error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--on-navy-soft);
  font-size: 0.95rem;
}
.lightbox__error[hidden] { display: none; }
.lightbox__counter {
  min-width: 6.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--on-navy-soft);
  white-space: nowrap;
}
.lightbox__btn {
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: rgba(11, 30, 54, 0.6);
  color: var(--gold-light);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.lightbox__btn:hover { background: var(--gold); color: var(--navy-900); }
.lightbox__btn svg {
  width: 1.25rem; height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-height: 480px) {
  .lightbox__bar { padding-block: 0.35rem; }
  .lightbox__bar--bottom { padding-bottom: 0.4rem; }
}

/* ==========================================================================
   Venue
   ========================================================================== */
.venue__name {
  margin-top: 0.4rem;
  font-family: var(--font-thai-serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 4.2vw, 1.5rem);
  line-height: 1.75;
  color: var(--navy-700);
}
.venue__card {
  display: grid;
  max-width: 62rem;
  margin-inline: auto;
  padding: 6px;
}
@media (min-width: 850px) {
  .venue__card { grid-template-columns: 1.55fr 1fr; }
}
.venue__map {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #E7DFD1;
}
@media (min-width: 850px) {
  .venue__map { aspect-ratio: auto; min-height: 24rem; }
}
.venue__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.7);
}
.venue__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  padding: clamp(1.75rem, 5vw, 2.75rem);
}
.venue__address {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--ink);
}
.venue__pin {
  flex: none;
  width: 1.35rem; height: 1.35rem;
  margin-top: 0.3rem;
  fill: none;
  stroke: var(--gold-ink);
  stroke-width: 1.4;
}
.venue__info .btn { width: 100%; }

/* ==========================================================================
   Finale — one composed closing scene on one continuous navy-and-gold ground,
   opened by a shallow arch that rises out of the venue section (arch = the page's motif)
   ========================================================================== */
.finale {
  position: relative;
  color: var(--on-navy);
  text-align: center;
  /* the corners outside the dome continue the venue section's ivory paper */
  background-color: var(--ivory);
  background-image: var(--grain);
}
.finale__scene {
  --dome: clamp(2.75rem, 9vw, 7rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--dome) + clamp(4rem, 12vw, 5rem)) var(--gutter) calc(clamp(3rem, 9vh, 5rem) + 4.5rem); /* fallback before svh */
  padding: calc(var(--dome) + clamp(4rem, 12vw, 5rem)) var(--gutter) calc(clamp(3rem, 9svh, 5rem) + 4.5rem);
  background: var(--navy-900); /* one layer from the top of the finale to the end of the page */
  border-radius: 50% 50% 0 0 / var(--dome) var(--dome) 0 0;
}
/* gold hairline following the dome, fading down the sides */
.finale__scene::before {
  content: "";
  position: absolute;
  inset: 0.65rem 0.65rem 0;
  z-index: 1;
  border: 1px solid rgba(201, 164, 92, 0.55);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / calc(var(--dome) - 0.4rem) calc(var(--dome) - 0.4rem) 0 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(var(--dome) * 1.2), transparent calc(var(--dome) * 3));
  mask-image: linear-gradient(180deg, #000 0, #000 calc(var(--dome) * 1.2), transparent calc(var(--dome) * 3));
  pointer-events: none;
}
.finale__art { position: absolute; inset: 0; z-index: -1; }
.finale__art img,
.finale__dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.finale__art img.is-missing { display: none; }
.finale__dust {
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
  pointer-events: none;
}
.finale__dust.is-playing { opacity: 0.42; }
.finale__dust.is-missing { display: none; }

/* phones: the portrait art's own botanicals crown the dome, so the flourish would crowd it */
.finale__divider { display: none; }
@media (min-width: 850px) {
  .finale__divider { display: grid; width: min(72%, 24rem); margin-bottom: clamp(2rem, 4vw, 3rem); }
}

.finale__layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.75rem, 8vw, 3.5rem);
}
/* Same arch component as the bride/groom portraits, on navy */
.finale__arch { width: min(76vw, 21rem); }
.finale__arch .arch__window {
  aspect-ratio: 2 / 3; /* the whole photograph: both faces and the dog, nothing cropped */
  background: var(--navy-800);
  box-shadow: 0 34px 60px -28px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.25);
}
.finale__img { object-position: 50% 0%; }
.finale__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 36rem;
}
.finale__lead {
  font-family: var(--font-thai-serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 4.6vw, 1.45rem);
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--on-navy);
}
.finale__with {
  margin-top: clamp(1.5rem, 4vh, 2.25rem); /* fallback before svh */
  margin-top: clamp(1.5rem, 4svh, 2.25rem);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 3.8vw, 1.25rem);
  letter-spacing: 0.12em;
  color: var(--gold-light);
}
.finale__sign-wrap { position: relative; }
.finale__sign {
  margin-top: -0.1em;
  padding: 0.12em 0.45em 0.1em;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(4.1rem, 17vw, 6.75rem);
  line-height: 1.3;
  white-space: nowrap;
  transform: rotate(-4deg);
}
.finale__sign .foil { padding: 0 0.2em; animation-duration: 9s; }
.js .finale__sign {
  clip-path: inset(-30% 100% -30% -10%);
  transition: clip-path 2.1s cubic-bezier(0.6, 0.05, 0.3, 0.95) 0.2s;
}
.js .finale.is-signed .finale__sign { clip-path: inset(-30% -10% -30% -10%); }

/* Glints: a small rise around the signature as the pen lifts, then the slow twinkle */
.finale__glints { position: absolute; inset: -18% -6%; pointer-events: none; }
.finale__glints i:nth-child(1)  { left: 4%;  top: 30%; --s: 14px; --t: 4.2s; --d: 0.1s;  --b: 0s; }
.finale__glints i:nth-child(2)  { left: 17%; top: 4%;  --s: 9px;  --t: 3.4s; --d: 1.3s;  --b: 0.12s; }
.finale__glints i:nth-child(3)  { left: 30%; top: 82%; --s: 11px; --t: 4.8s; --d: 0.6s;  --b: 0.05s; }
.finale__glints i:nth-child(4)  { left: 46%; top: -2%; --s: 16px; --t: 5.2s; --d: 2.1s;  --b: 0.2s; }
.finale__glints i:nth-child(5)  { left: 58%; top: 86%; --s: 8px;  --t: 3.1s; --d: 0.9s;  --b: 0.3s; }
.finale__glints i:nth-child(6)  { left: 70%; top: 8%;  --s: 12px; --t: 4.4s; --d: 1.7s;  --b: 0.16s; }
.finale__glints i:nth-child(7)  { left: 84%; top: 70%; --s: 10px; --t: 3.8s; --d: 0.3s;  --b: 0.36s; }
.finale__glints i:nth-child(8)  { left: 93%; top: 22%; --s: 13px; --t: 4.6s; --d: 2.6s;  --b: 0.08s; }
.finale__glints i:nth-child(9)  { left: 10%; top: 72%; --s: 7px;  --t: 2.9s; --d: 1.1s;  --b: 0.42s; }
.finale__glints i:nth-child(10) { left: 77%; top: 44%; --s: 8px;  --t: 3.3s; --d: 0.5s;  --b: 0.26s; }
.finale__glints i { animation: none; }
.finale.is-signed .finale__glints i {
  animation:
    glint-rise 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) calc(1.7s + var(--b)) both,
    twinkle var(--t) ease-in-out calc(3.4s + var(--d)) infinite;
}
.finale.is-paused .finale__glints i,
.finale.is-paused .foil { animation-play-state: paused; }
@keyframes glint-rise {
  0% { opacity: 0; transform: translateY(18px) scale(0.2) rotate(0deg); }
  35% { opacity: 1; transform: translateY(-4px) scale(1.25) rotate(30deg); }
  100% { opacity: 0; transform: translateY(-16px) scale(0.4) rotate(60deg); }
}

.finale__rule {
  position: relative;
  display: block;
  width: 5rem;
  height: 1px;
  margin: clamp(1.25rem, 3vh, 1.75rem) 0; /* fallback before svh */
  margin: clamp(1.25rem, 3svh, 1.75rem) 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.finale__rule::after {
  content: "";
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  margin-left: -3px;
  background: var(--gold);
  transform: rotate(45deg);
}
.finale__mark { position: relative; display: grid; place-items: center; }
.finale__monogram {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.75rem, 15vw, 4.5rem);
  line-height: 1;
  --sweep: 8s;
}
.has-logo .finale__monogram { font-size: clamp(4.4rem, 17vw, 5.25rem); } /* logo ≥ 100 px wide */

.finale__date {
  margin-top: clamp(1rem, 2.5vh, 1.4rem); /* fallback before svh */
  margin-top: clamp(1rem, 2.5svh, 1.4rem);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 4.2vw, 1.3rem);
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  font-variant-numeric: lining-nums;
  color: var(--gold-light);
}
.finale__hashtag {
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  padding-left: 0.18em;
  color: var(--on-navy-soft);
}
.finale__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: min(100%, 20rem);
  margin-top: clamp(2rem, 5vh, 2.75rem); /* fallback before svh */
  margin-top: clamp(2rem, 5svh, 2.75rem);
}
.finale__actions .btn { justify-content: center; letter-spacing: 0.04em; } /* Thai: no wide tracking */
.finale__top {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 1.25rem;
  padding: 0 0.75rem;
  font-size: 0.9rem;
  color: var(--on-navy-soft);
  text-decoration: underline;
  text-decoration-color: rgba(201, 164, 92, 0.6);
  text-underline-offset: 0.3em;
}
.finale__top:hover { color: var(--gold-light); }
.finale__top:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (min-width: 600px) {
  .finale__actions { flex-direction: row; justify-content: center; width: auto; }
}
@media (min-width: 850px) {
  /* Desktop / landscape tablet: photo and sign-off side by side, centred against each other */
  .finale__scene { padding-top: calc(var(--dome) + 1.5rem); padding-bottom: clamp(5rem, 9vw, 7rem); }
  .finale__layout {
    flex-direction: row;
    justify-content: center;
    gap: clamp(3rem, 7vw, 7rem);
    max-width: 74rem;
    margin-inline: auto;
  }
  .finale__arch { flex: none; width: min(38vw, 28.75rem); }
  .finale__content { flex: 0 1 30rem; }
}

/* ==========================================================================
   Reveal on scroll (only once JS is present)
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .signature { clip-path: none; }
  .date__dust, .hero__dust, .cover__dust, .hero__video { display: none; }
  .hero.is-live:not(.has-video) .hero__still, .hero__leak { animation: none; }
  .hero__glints i,
  .finale.is-signed .finale__glints i { animation: none; opacity: 0.6; transform: scale(0.7); } /* static glints */
  .js .finale__sign { clip-path: none; }
  .finale__dust { display: none; }
  .cover.is-opening { opacity: 0; transition: opacity 0.5s linear !important; }
  .cover.is-opening .cover__bg { transform: none; }
  .hero__cue-line { transform: none; opacity: 1; }
  .gallery__item:hover img { transform: none; }
  .music-toggle__bars i { transform: scaleY(0.6); }
}
