/* ==========================================================================
   Celine & Khalim — 27 December 2026
   Palette: ivory · champagne gold · lake blue · blush · charcoal
   ========================================================================== */

:root {
  --ivory: #FBF7F0;
  --ivory-2: #F4ECDF;
  --paper: #F7F1E6;
  --gold: #C9A45C;
  --gold-light: #EBD7A6;
  --gold-deep: #8A6A2E;      /* gold for small text on ivory (AA contrast) */
  --lake: #1F3A4D;
  --lake-deep: #132632;
  --night: #0A1520;
  --blush: #E8C4C0;
  --ink: #2B2B2B;
  --ink-soft: #5B544B;

  --f-script: 'Great Vibes', 'Pinyon Script', 'Snell Roundhand', cursive;
  --f-serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --f-sans: 'Jost', 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 5vw, 64px);
  --maxw: 1180px;
  --nav-h: 68px;

  --foil: linear-gradient(105deg,
    #9E7A36 0%, #C9A45C 22%, #E4CB8E 36%, #FFF4D2 47%, #E4CB8E 56%, #C9A45C 68%, #93712F 84%, #C9A45C 100%);

  --paper-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .46 0 0 0 0 .38 0 0 0 0 .26 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --imigongo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72' fill='none' stroke='%23C9A45C' stroke-width='1'%3E%3Cpath d='M36 4 68 36 36 68 4 36Z M36 14 58 36 36 58 14 36Z M36 24 48 36 36 48 24 36Z'/%3E%3Cpath d='M0 0 8 8 0 16M72 0 64 8 72 16M0 72 8 64 0 56M72 72 64 64 72 56M28 0 36 8 44 0M28 72 36 64 44 72'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums;
}
body.is-locked { overflow: hidden; height: 100vh; height: 100dvh; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--blush); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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;
}

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--f-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.foil {
  background: var(--foil);
  background-size: 300% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: foil 7s var(--ease-io) infinite;
}
@keyframes foil {
  0% { background-position: 100% 50%; }
  35%, 100% { background-position: 0% 50%; }
}

/* thin gold rule that draws itself */
.rule { display: flex; justify-content: center; align-items: center; gap: 10px; width: min(240px, 60%); margin: 22px auto 0; }
.rule i { display: block; height: 1px; width: 100%; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: scaleX(0); transition: transform 1.6s var(--ease) .2s; }
.rule.is-in i, .rule--hero.is-in i { transform: scaleX(1); }

/* ---------- Grain + sky (fixed layers) ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: var(--paper-tex);
  background-size: 180px;
  opacity: .045;
  animation: grain 1.2s steps(6) infinite;
  will-change: transform;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.sky > div { position: absolute; inset: 0; will-change: opacity; transform: translateZ(0); }
.sky__day {
  background-color: var(--ivory);
  background-image: var(--paper-tex), radial-gradient(120% 80% at 50% 0%, #FFFDF8 0%, var(--ivory) 55%, var(--ivory-2) 100%);
}
.sky__sunset {
  opacity: 0;
  background:
    radial-gradient(80% 50% at 50% 100%, rgba(247, 205, 150, .75) 0%, transparent 70%),
    linear-gradient(180deg, #F6E9D7 0%, #F2D6BE 40%, #EAC0AE 70%, #D9A58F 100%);
}
.sky__night {
  opacity: 0;
  background:
    radial-gradient(70% 45% at 50% 100%, rgba(58, 88, 116, .55) 0%, transparent 70%),
    linear-gradient(180deg, #050C15 0%, #0B1A29 45%, #16304A 80%, #1F3A4D 100%);
}
.stars { position: absolute; inset: 0; background-repeat: repeat; }
.stars--a {
  background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 140px 80px, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 230px 160px, #FFF3D0 50%, transparent 51%),
    radial-gradient(1px 1px at 90px 210px, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 280px 250px, #fff 50%, transparent 51%);
  background-size: 300px 300px;
  animation: twinkle 3.2s ease-in-out infinite alternate;
}
.stars--b {
  background-image:
    radial-gradient(1px 1px at 60px 120px, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 190px 40px, #FFE9B0 50%, transparent 51%),
    radial-gradient(1px 1px at 330px 190px, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 250px 330px, #fff 50%, transparent 51%);
  background-size: 380px 380px;
  animation: twinkle 4.4s ease-in-out -2s infinite alternate;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 85%);
}
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }

/* ==========================================================================
   INTRO FILM
   ========================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  overflow: hidden;
  color: var(--ivory);
  background: #0E0B0A;
  touch-action: none;
  overscroll-behavior: contain;
}
.intro__bg, .intro__bg > * { position: absolute; }
.intro__bg { inset: 0; }
.intro__bg picture, .intro__photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__photo { object-fit: cover; object-position: 50% 22%; transform: scale(1.06); animation: introZoom 18s ease-out forwards; }
@keyframes introZoom { to { transform: scale(1); } }
.intro__shade {
  inset: 0;
  background:
    radial-gradient(70% 60% at 50% 48%, rgba(12, 9, 8, .55) 0%, rgba(12, 9, 8, .78) 60%, rgba(8, 6, 5, .94) 100%),
    linear-gradient(180deg, rgba(10, 8, 7, .55) 0%, rgba(10, 8, 7, .35) 40%, rgba(10, 8, 7, .85) 100%);
}
.intro__particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro__veil { position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 45%, rgba(18, 22, 36, .55), rgba(10, 12, 22, .88)); }

/* Emblem (preloader monogram that travels through the film) */
.emblem {
  position: absolute; left: 50%; top: 50%; z-index: 5;
  width: clamp(120px, 30vw, 176px); aspect-ratio: 1;
  margin: calc(clamp(120px, 30vw, 176px) / -2) 0 0 calc(clamp(120px, 30vw, 176px) / -2);
  color: var(--gold);
  pointer-events: none;
}
.emblem svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 18px rgba(233, 196, 120, .35)); }
.emblem__ring { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s var(--ease-io) .2s forwards; }
.emblem__ring--in { stroke-width: .6; animation-delay: .45s; }
.emblem__letters {
  fill: var(--gold-light); fill-opacity: 0;
  stroke: var(--gold-light); stroke-width: .7;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.2s var(--ease-io) .5s forwards, fillIn 1s ease 2s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill-opacity: 1; stroke-opacity: .3; } }
.loader { position: absolute; left: 50%; top: calc(50% + clamp(80px, 19vw, 118px)); width: 120px; height: 1px; margin-left: -60px; background: rgba(233, 214, 166, .2); overflow: hidden; }
.loader span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); animation: load 2.4s var(--ease-io) forwards; }
@keyframes load { to { transform: scaleX(.9); } }

/* Scenes */
.scene {
  position: relative; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  width: 100%; min-height: 100%; padding: 32px 20px calc(32px + env(safe-area-inset-bottom));
  grid-area: 1 / 1;
  visibility: hidden;
}
.scene.is-active { visibility: visible; }
.scene__slot { width: clamp(72px, 18vw, 96px); aspect-ratio: 1; margin-bottom: 26px; }
.scene__eyebrow { font-size: .7rem; font-weight: 400; letter-spacing: .38em; text-transform: uppercase; color: var(--gold-light); opacity: .9; }
.scene__headline { margin-top: 18px; font-family: var(--f-serif); font-weight: 500; font-size: clamp(2.5rem, 9vw, 4.8rem); line-height: 1.02; letter-spacing: .01em; }
.scene__headline span { display: block; }
.scene__headline-rw { font-family: var(--f-script); font-weight: 400; font-size: .56em; color: var(--gold-light); margin-top: 8px; }
.scene__rule { display: block; width: 120px; height: 1px; margin: 22px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.scene__title { margin: 20px 0 30px; font-family: var(--f-serif); font-weight: 400; font-style: italic; font-size: clamp(1.25rem, 4vw, 1.7rem); line-height: 1.2; color: rgba(251, 247, 240, .9); text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.scene__title span { display: block; }
.scene__title-rw { font-family: var(--f-script); font-style: normal; font-size: 1.15em; color: var(--gold-light); margin-top: 2px; }
.scene__btns { display: flex; flex-wrap: wrap; gap: 14px 18px; justify-content: center; }

.btn-lux {
  position: relative; min-width: 196px; min-height: 56px; padding: 0 30px;
  border: 1px solid rgba(233, 214, 166, .6); border-radius: 999px;
  background: rgba(255, 250, 240, .08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ivory);
  font-family: var(--f-serif); font-size: 1.25rem; font-weight: 500; letter-spacing: .06em;
  overflow: hidden;
  transition: border-color .4s, color .4s, background-color .4s;
}
.btn-lux::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--foil); background-size: 300% 100%;
  opacity: 0; transition: opacity .5s var(--ease);
}
.btn-lux span { position: relative; }
.btn-lux.is-last { border-color: var(--gold-light); box-shadow: 0 0 0 4px rgba(233, 214, 166, .12); }
.btn-lux:hover, .btn-lux:focus-visible { color: #2B2112; border-color: var(--gold-light); }
.btn-lux:hover::before, .btn-lux:focus-visible::before { opacity: 1; animation: foil 3s linear infinite; }

/* Envelope */
.scene--env { perspective: 1600px; }
.env-dear { font-family: var(--f-script); font-size: clamp(2rem, 7vw, 2.8rem); color: var(--gold-light); margin-bottom: 18px; line-height: 1.2; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.env {
  position: relative; display: block;
  width: min(86vw, 540px); aspect-ratio: 3 / 2;
  perspective: 1400px;
  border-radius: 6px;
}
.env > * { position: absolute; }
.env__back {
  inset: 0; border-radius: 6px;
  background-color: #E5D6BC;
  background-image: var(--paper-tex), linear-gradient(180deg, #D8C6A6, #EADCC4);
  box-shadow: inset 0 0 0 1px rgba(201, 164, 92, .35), 0 30px 50px -10px rgba(10, 12, 24, .5);
}
.env__card {
  left: 5%; right: 5%; top: 5%; bottom: 7%; z-index: 2;
  display: grid; place-items: center;
  border-radius: 4px;
  background-color: var(--ivory);
  background-image: var(--paper-tex);
  box-shadow: 0 2px 10px rgba(80, 60, 30, .2), inset 0 0 0 1px rgba(201, 164, 92, .45), inset 0 0 0 6px var(--ivory), inset 0 0 0 7px rgba(201, 164, 92, .35);
  transform-origin: 50% 50%;
  will-change: transform;
}
.env__card-inner { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); padding-bottom: 28%; }
.env__card-mono { width: clamp(38px, 11vw, 58px); height: auto; aspect-ratio: 1; color: var(--gold); margin-bottom: 4px; }
.env__card-names { font-family: var(--f-script); font-size: clamp(1.4rem, 5vw, 2.1rem); color: var(--gold-deep); line-height: 1.2; }
.env__card-date { font-size: .62rem; letter-spacing: .34em; color: var(--ink-soft); }
.env__pocket { inset: 0; z-index: 3; width: 100%; height: 100%; border-radius: 6px; overflow: hidden; }
.env__flap { left: 0; right: 0; top: 0; height: 58%; z-index: 4; transform-origin: 50% 0; transform-style: preserve-3d; }
.env__flap-face { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; filter: drop-shadow(0 3px 3px rgba(90, 70, 40, .18)); }
.env__flap-back { transform: rotateX(180deg); }

.seal { left: 50%; top: 58%; z-index: 5; width: clamp(66px, 17%, 92px); aspect-ratio: 1; transform: translate(-50%, -50%); }
.seal__half { position: absolute; inset: 0; }
.seal__half--l { clip-path: polygon(-30% -30%, 53% -30%, 53% 0, 47% 20%, 56% 38%, 45% 55%, 55% 74%, 48% 100%, 48% 130%, -30% 130%); }
.seal__half--r { clip-path: polygon(53% -30%, 130% -30%, 130% 130%, 48% 130%, 48% 100%, 55% 74%, 45% 55%, 56% 38%, 47% 20%, 53% 0); }
.seal__wax {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border-radius: 48% 52% 50% 50% / 53% 47% 53% 47%;
  background: radial-gradient(circle at 35% 30%, #F1D796 0%, #D2A85A 28%, #A67A33 62%, #7A5621 100%);
  box-shadow: inset 0 -4px 8px rgba(80, 50, 10, .45), inset 0 3px 6px rgba(255, 240, 200, .5), 0 4px 10px rgba(60, 40, 10, .4);
}
.seal__wax::before { content: ""; position: absolute; inset: 11%; border-radius: 50%; box-shadow: inset 0 1px 2px rgba(70, 45, 10, .55), 0 1px 0 rgba(255, 240, 200, .5); }
.seal__wax svg { width: 74%; height: 74%; color: #7C5820; filter: drop-shadow(0 1px 0 rgba(255, 236, 190, .6)); }
.seal::after {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, transparent, #4E3510 20%, #4E3510 80%, transparent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0; transform: scaleY(0); transition: opacity .2s, transform .25s var(--ease);
}
.seal.is-cracked::after { opacity: .7; transform: scaleY(1); }
.env-hint {
  margin-top: 30px; font-size: .74rem; font-weight: 400; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-light);
  animation: breathe 2.4s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.env:hover .seal__wax, .env:focus-visible .seal__wax { filter: brightness(1.08); }

.fx { position: fixed; inset: 0; z-index: 120; width: 100%; height: 100%; pointer-events: none; display: none; }
.fx.is-on { display: block; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 16px;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  color: var(--ink);
  background: rgba(251, 247, 240, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(201, 164, 92, .22);
  transform: translateY(-110%);
  transition: transform .9s var(--ease), background-color .5s, color .5s, border-color .5s;
}
.is-ready .nav { transform: none; }
.nav.is-dark { color: var(--ivory); background: rgba(12, 20, 30, .38); border-color: rgba(233, 214, 166, .16); }
.nav__logo { display: grid; place-items: center; width: 46px; height: 46px; color: var(--gold); margin-right: auto; }
.nav__logo svg { width: 40px; height: 40px; }
.nav__links { display: none; gap: clamp(18px, 2.2vw, 34px); margin-right: 12px; }
.nav__links a, .chapters a { text-decoration: none; }
.nav__links a {
  position: relative; padding: 12px 0;
  font-size: .72rem; font-weight: 400; letter-spacing: .24em; text-transform: uppercase;
}
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.lang-switch { display: flex; align-items: center; gap: 2px; font-size: .74rem; letter-spacing: .18em; }
.lang-switch span { opacity: .4; }
.lang-switch button { min-width: 44px; min-height: 44px; padding: 0 6px; opacity: .55; transition: opacity .3s, color .3s; font-weight: 400; }
.lang-switch button[aria-pressed="true"] { opacity: 1; color: var(--gold-deep); font-weight: 500; }
.nav.is-dark .lang-switch button[aria-pressed="true"] { color: var(--gold-light); }

.burger { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -8px; }
.burger__lines { position: relative; width: 26px; height: 10px; }
.burger__lines i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger__lines i:first-child { top: 0; }
.burger__lines i:last-child { top: 9px; left: 8px; }
.burger[aria-expanded="true"] .burger__lines i:first-child { top: 5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines i:last-child { top: 5px; left: 0; transform: rotate(-45deg); }
.menu-open .nav { color: var(--ivory); background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 20px) var(--gutter) calc(40px + env(safe-area-inset-bottom));
  color: var(--ivory);
  background: radial-gradient(120% 80% at 50% 110%, #2B4A60 0%, var(--lake-deep) 60%, #0B1820 100%);
  clip-path: circle(0% at calc(100% - 40px) 34px);
  transition: clip-path .8s var(--ease-io);
}
.menu.is-open { clip-path: circle(150% at calc(100% - 40px) 34px); }
.menu__nav { display: flex; flex-direction: column; gap: 4px; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 18px; min-height: 56px; text-decoration: none;
  font-family: var(--f-serif); font-size: clamp(2rem, 9vw, 3.6rem); font-weight: 400; line-height: 1.15;
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .8s var(--ease), color .3s;
}
.menu__nav a em { font-size: .8rem; font-style: normal; letter-spacing: .2em; color: var(--gold); min-width: 2.6em; font-family: var(--f-sans); }
.menu__nav a:hover { color: var(--gold-light); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: .25s; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .31s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .37s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .43s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .49s; }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(233, 214, 166, .25); }
.lang-switch--menu button[aria-pressed="true"] { color: var(--gold-light); }
.menu__date { font-size: .72rem; letter-spacing: .34em; color: var(--gold-light); }

/* Chapter index (desktop) */
.chapters { display: none; }
@media (min-width: 1100px) and (hover: hover) {
  .chapters {
    position: fixed; left: 26px; top: 50%; z-index: 40;
    display: flex; flex-direction: column; gap: 22px;
    transform: translateY(-50%);
    opacity: 0; pointer-events: none;
    transition: opacity .6s;
  }
  .chapters.is-visible { opacity: 1; pointer-events: auto; }
  .chapters__track { position: absolute; left: 21px; top: -30px; bottom: -30px; width: 1px; background: rgba(201, 164, 92, .25); }
  .chapters__fill { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(0); }
  .chapters a { position: relative; display: flex; align-items: center; gap: 14px; min-height: 44px; color: var(--ink-soft); }
  .chapters b {
    display: grid; place-items: center; width: 44px; height: 44px;
    font-family: var(--f-serif); font-size: .95rem; font-weight: 500;
    border-radius: 50%; background: var(--ivory); border: 1px solid rgba(201, 164, 92, .35);
    transition: background-color .4s, color .4s, border-color .4s, transform .4s var(--ease);
  }
  .chapters span { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .4s var(--ease); }
  .chapters a:hover span, .chapters a:focus-visible span, .chapters a.is-active span { opacity: 1; transform: none; }
  .chapters a.is-active b { background: var(--gold); color: #fff; border-color: var(--gold); transform: scale(1.06); }
}

/* ==========================================================================
   HERO
   ========================================================================== */
main { position: relative; }
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + 24px) var(--gutter) calc(96px + env(safe-area-inset-bottom));
  color: var(--ivory);
  background: #120E0C;
  overflow: hidden;
}
.hero__media { position: absolute; inset: -6% 0 0 0; z-index: -1; will-change: transform; }
.hero__slides, .hero__slide, .hero__slide img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__slide { opacity: 0; transition: opacity 2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img, .hero__video { object-fit: cover; object-position: 50% 18%; }
.hero__slide img { animation: kenburns 16s ease-out infinite alternate; will-change: transform; }
.hero__slide:nth-child(2) img { animation-delay: -5s; }
.hero__slide:nth-child(3) img { animation-delay: -10s; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero__video { opacity: 0; transition: opacity 1.4s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 14, 12, .55) 0%, rgba(18, 14, 12, 0) 22%, rgba(18, 14, 12, 0) 34%, rgba(18, 14, 12, .82) 62%, #120E0C 100%);
}
.hero__content { position: relative; width: 100%; max-width: 640px; margin: 0 auto; text-align: center; }
.hero__dear { font-family: var(--f-script); font-size: clamp(1.9rem, 6vw, 2.6rem); color: var(--gold-light); line-height: 1.2; margin-bottom: 10px; }
.hero__families { font-family: var(--f-serif); font-size: clamp(1.02rem, 3.6vw, 1.3rem); font-style: italic; line-height: 1.5; color: rgba(251, 247, 240, .88); max-width: 34em; margin: 0 auto; }
.hero__families strong { font-style: normal; font-weight: 600; color: var(--gold-light); }
.hero__names { display: flex; flex-direction: column; align-items: center; margin: clamp(14px, 3vh, 26px) 0 0; font-weight: 400; line-height: 1; }
.hn { display: block; }
.hn--script { font-family: var(--f-script); font-size: clamp(4rem, min(17vw, 13vh), 9rem); line-height: 1.05; padding: 0 .12em; }
.hn--caps { font-family: var(--f-serif); font-size: clamp(.95rem, min(3.6vw, 2.6vh), 1.45rem); font-weight: 500; letter-spacing: .55em; margin-right: -.55em; text-transform: uppercase; }
.hn--amp { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.8rem, min(6vw, 5vh), 3rem); color: var(--gold-light); margin: .1em 0; }
.hn .ch { display: inline-block; }
.hn.foil .ch { background: var(--foil); background-size: 300% 100%; background-position: 60% 50%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rule--hero { width: min(200px, 50%); margin-top: clamp(14px, 3vh, 26px); }
.hero__date { margin-top: 14px; font-family: var(--f-serif); font-size: clamp(1.35rem, 4.6vw, 2rem); font-weight: 500; letter-spacing: .08em; }
.hero__place { margin-top: 4px; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(251, 247, 240, .75); }
.scroll-cue {
  position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 44px; min-height: 44px;
  transform: translateX(-50%);
  font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; text-decoration: none;
  color: rgba(251, 247, 240, .8);
}
.scroll-cue i { position: relative; display: block; width: 1px; height: 44px; background: rgba(233, 214, 166, .25); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 45%; background: var(--gold-light); animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(230%); } }

/* hero enter state (before the film ends) */
.js [data-hero-seq], .js .hero__dear { opacity: 0; transform: translateY(18px); }
.js .hn--amp { opacity: 0; }
.js .hn .ch { opacity: 0; transform: translateY(.35em) rotate(4deg); filter: blur(6px); }
.hero.is-in [data-hero-seq], .hero.is-in .hero__dear { opacity: 1; transform: none; transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.hero.is-in .hn--amp { opacity: 1; transition: opacity 1.4s ease .9s; }
.hero.is-in .hn .ch { opacity: 1; transform: none; filter: none; transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease); transition-delay: calc(.35s + var(--i) * 55ms); }
.hero.is-in .hero__families { transition-delay: .1s; }
.hero.is-in .rule--hero { transition-delay: 1.3s; }
.hero.is-in .hero__date { transition-delay: 1.5s; }
.hero.is-in .hero__place { transition-delay: 1.65s; }
.hero.is-in .scroll-cue { transition-delay: 2s; }
.hero.is-in .rule--hero i { transform: scaleX(1); transition-delay: 1.4s; }
.hero .scroll-cue[data-hero-seq] { transform: translate(-50%, 18px); }
.hero.is-in .scroll-cue[data-hero-seq] { transform: translate(-50%, 0); }

@media (min-width: 960px) {
  .hero { align-items: center; padding-bottom: calc(var(--nav-h) + 20px); }
  .hero__media { left: 44%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%); }
  .hero__shade { background: linear-gradient(180deg, rgba(18, 14, 12, .35) 0%, transparent 25%, transparent 70%, rgba(18, 14, 12, .7) 100%); }
  .hero__content { margin: 0; max-width: 52%; padding-right: 3vw; }
  .hero__slide img { object-position: 50% 22%; }
}

/* ==========================================================================
   CHAPTERS — shared
   ========================================================================== */
.chapter, .interlude { position: relative; padding: clamp(88px, 14vw, 160px) var(--gutter); }
.chead { position: relative; max-width: 760px; margin: 0 auto clamp(44px, 7vw, 76px); text-align: center; isolation: isolate; }
.chead::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1;
  width: min(92vw, 520px); height: 260px;
  transform: translate(-50%, -54%);
  background-image: var(--imigongo); background-size: 54px; background-position: center;
  opacity: .16;
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
}
.chead__num { display: block; font-family: var(--f-serif); font-size: clamp(3.4rem, 10vw, 5.5rem); font-weight: 400; line-height: 1; color: var(--gold); opacity: .9; margin-bottom: 8px; }
.chead__title { margin-top: 14px; font-family: var(--f-serif); font-weight: 500; font-size: clamp(2.5rem, 8vw, 4.6rem); line-height: 1.05; letter-spacing: -.005em; color: var(--ink); }
.chead__accent { margin-top: 6px; font-family: var(--f-script); font-size: clamp(1.6rem, 5vw, 2.3rem); color: var(--gold-deep); line-height: 1.2; }
.chead--left { text-align: left; margin-left: 0; }
.chead--left::before { left: 30%; }
.chead--dark .chead__title { color: var(--ivory); }
.chead--dark .chead__accent, .chead--dark .eyebrow { color: var(--gold-light); }

/* split-text mask reveal */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .04em .14em; margin: -.08em -.04em -.14em; }
[data-split] .w > span { display: inline-block; transform: translateY(112%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 70ms); }
[data-split].is-in .w > span { transform: none; }

/* blur-to-sharp rise */
.js [data-reveal]:not([data-reveal="draw"]) { opacity: 0; transform: translateY(44px); filter: blur(8px); }
.js [data-reveal].is-in:not([data-reveal="draw"]) {
  opacity: 1; transform: none; filter: none;
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease), filter 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}

/* ==========================================================================
   I · INVITATION CARD
   ========================================================================== */
.card3d-stage { max-width: 620px; margin: 0 auto; perspective: 1400px; }
.card3d {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  will-change: transform;
}
.card3d__inner {
  position: relative; overflow: hidden;
  padding: clamp(56px, 11vw, 88px) clamp(26px, 8vw, 72px);
  text-align: center;
  border-radius: 6px;
  background-color: var(--paper);
  background-image: var(--paper-tex), radial-gradient(120% 90% at 50% 0%, #FFFDF7 0%, var(--paper) 70%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 40px 80px -30px rgba(60, 44, 20, .35), 0 12px 30px -12px rgba(60, 44, 20, .25);
}
.card3d__frame { position: absolute; inset: 14px; border-radius: 3px; pointer-events: none; }
.card3d__frame::before, .card3d__frame::after { content: ""; position: absolute; border-radius: inherit; padding: 1.5px; background: var(--foil); background-size: 300% 300%; background-position: var(--mx) var(--my);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.card3d__frame::before { inset: 0; }
.card3d__frame::after { inset: 6px; padding: .8px; opacity: .8; }
.card3d__sheen {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(60% 50% at var(--mx) var(--my), rgba(255, 246, 220, .85), transparent 70%);
  opacity: .7;
}
.card3d__sheen::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 244, 210, .55), transparent);
  transform: skewX(-12deg) translateX(0);
  animation: sheen 6.5s var(--ease-io) 1s infinite;
}
@keyframes sheen { 0% { transform: skewX(-12deg) translateX(0); } 40%, 100% { transform: skewX(-12deg) translateX(460%); } }
.corner { position: absolute; width: clamp(64px, 16vw, 110px); height: auto; aspect-ratio: 1; color: var(--gold); opacity: .75; }
.corner--tl { left: 20px; top: 20px; transform: scaleY(-1); }
.corner--tr { right: 20px; top: 20px; transform: rotate(180deg); }
.corner--bl { left: 20px; bottom: 20px; }
.corner--br { right: 20px; bottom: 20px; transform: scaleX(-1); }
.card3d__mono { width: 64px; height: 64px; margin: 0 auto 26px; color: var(--gold); }
.quote { position: relative; }
.quote__mark {
  display: block; height: .5em; margin-bottom: 14px;
  font-family: var(--f-serif); font-size: clamp(5rem, 16vw, 7rem); line-height: .9;
  transform: scale(.4) rotate(-20deg); opacity: 0; transform-origin: 50% 70%;
  transition: transform 1.4s var(--ease) .3s, opacity 1s ease .3s;
}
.is-in .quote__mark { transform: none; opacity: 1; }
.quote blockquote { font-family: var(--f-serif); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 4.6vw, 1.85rem); line-height: 1.45; color: var(--ink); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 30px auto; color: var(--gold); font-size: .8rem; }
.ornament i { display: block; width: 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament i:last-child { transform: scaleX(-1); }
.card3d__sign { margin-top: 32px; font-family: var(--f-script); font-size: clamp(1.8rem, 6vw, 2.4rem); color: var(--gold-deep); }
.gyro-hint {
  display: block; margin: 22px auto 0; min-height: 44px; padding: 0 20px;
  border: 1px solid rgba(201, 164, 92, .5); border-radius: 999px;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep);
}

/* Chapter I photo (arched, beside the card on desktop) */
.inv-grid { display: grid; gap: clamp(40px, 7vw, 80px); max-width: var(--maxw); margin: 0 auto; align-items: center; }
.inv-photo { position: relative; max-width: 380px; width: 78%; margin: 0 auto; }
.inv-photo::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--gold); border-radius: 220px 220px 4px 4px; opacity: .6; }
.inv-photo picture, .inv-photo img { position: relative; display: block; border-radius: 220px 220px 4px 4px; overflow: hidden; }
.inv-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.inv-grid .card3d-stage { width: 100%; }
@media (min-width: 960px) { .inv-grid { grid-template-columns: .8fr 1.2fr; } .inv-photo { width: 100%; } }

/* ==========================================================================
   II · PROGRAM TIMELINE
   ========================================================================== */
.timeline { position: relative; display: grid; gap: clamp(48px, 8vw, 80px); max-width: 880px; margin: 0 auto; padding: 10px 0; }
.timeline__line { position: absolute; top: 0; bottom: 0; left: 31px; width: 1px; background: rgba(201, 164, 92, .25); }
.timeline__fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--gold-deep)); transform-origin: top; transform: scaleY(0); }
.tl { position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: 22px; row-gap: 6px; align-items: start; }
.tl__icon {
  grid-row: 1 / span 2; grid-column: 1;
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--ivory); border: 1px solid var(--gold); color: var(--gold-deep);
  box-shadow: 0 0 0 6px var(--ivory), 0 10px 30px -10px rgba(120, 90, 40, .45);
}
.tl__icon svg { width: 34px; height: 34px; }
.tl__time { grid-column: 2; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.tl__big { font-family: var(--f-serif); font-size: clamp(2.6rem, 9vw, 3.6rem); font-weight: 500; line-height: 1; color: var(--gold-deep); }
.tl__small { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.tl__body { grid-column: 2; }
.tl__body h3 { font-family: var(--f-sans); font-size: .9rem; font-weight: 500; letter-spacing: .26em; line-height: 1.5; color: var(--ink); }
.tl__body p { font-family: var(--f-serif); font-style: italic; font-size: 1.25rem; color: var(--ink-soft); margin: 2px 0 10px; }
.pin-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px;
  border: 1px solid rgba(201, 164, 92, .45); border-radius: 999px;
  font-size: .82rem; text-decoration: none; color: var(--ink);
  transition: background-color .3s, border-color .3s;
}
.pin-link svg { width: 18px; height: 18px; color: var(--gold-deep); flex: none; }
.pin-link:hover { background: rgba(201, 164, 92, .12); border-color: var(--gold); }
@media (min-width: 820px) {
  .timeline__line { left: 50%; }
  .tl { grid-template-columns: 1fr 88px 1fr; column-gap: 34px; }
  .tl__icon { grid-column: 2; grid-row: 1; width: 88px; height: 88px; margin-left: -.5px; justify-self: center; }
  .tl__icon svg { width: 44px; height: 44px; }
  .tl__time { grid-column: 1; grid-row: 1; flex-direction: column; align-items: flex-end; text-align: right; padding-top: 14px; }
  .tl__body { grid-column: 3; grid-row: 1; padding-top: 18px; }
  .tl:nth-of-type(odd) .tl__time { grid-column: 3; align-items: flex-start; text-align: left; }
  .tl:nth-of-type(odd) .tl__body { grid-column: 1; text-align: right; }
}

/* ==========================================================================
   III · COUNTDOWN
   ========================================================================== */
.chapter--count { color: var(--ivory); isolation: isolate; overflow: hidden; }
.count__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(201, 164, 92, .18), transparent 70%),
    radial-gradient(80% 60% at 50% 110%, rgba(232, 196, 192, .12), transparent 70%),
    linear-gradient(180deg, var(--lake) 0%, var(--lake-deep) 100%);
}
.count__bg::after { content: ""; position: absolute; inset: 0; background-image: var(--imigongo); background-size: 64px; opacity: .05; }
.chapter--count .chead::before { opacity: .12; }
.chapter--count .chead__num { color: var(--gold-light); }
.count__status { text-align: center; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.5rem, 5vw, 2.3rem); font-weight: 500; line-height: 1.3; margin-bottom: 36px; }
.flips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2.6vw, 26px); max-width: 760px; margin: 0 auto; }
.flip { text-align: center; }
.flip__card {
  --h: clamp(76px, 20vw, 150px);
  position: relative; height: var(--h);
  perspective: 600px;
  font-family: var(--f-serif); font-weight: 500; font-size: calc(var(--h) * .56); line-height: var(--h);
  font-variant-numeric: tabular-nums;
}
.flip__top, .flip__bottom, .flip__leaf {
  position: absolute; left: 0; right: 0; height: 50%; overflow: hidden;
  background: linear-gradient(180deg, #264a61, #1B3446);
  border: 1px solid rgba(233, 214, 166, .28);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.flip__top, .flip__leaf--front { top: 0; border-radius: 10px 10px 0 0; border-bottom: 0; }
.flip__bottom, .flip__leaf--back { bottom: 0; border-radius: 0 0 10px 10px; border-top: 0; background: linear-gradient(180deg, #1B3446, #173041); }
.flip b {
  display: block; height: var(--h); font-weight: 500;
  background: var(--foil); background-size: 300% 100%; background-position: 60% 50%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.flip__bottom b, .flip__leaf--back b { transform: translateY(-50%); }
.flip__card::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(8, 18, 26, .7); z-index: 3; }
.flip__leaf--front { transform-origin: 50% 100%; z-index: 2; }
.flip__leaf--back { transform-origin: 50% 0; transform: rotateX(90deg); z-index: 2; }
.flip.is-flipping .flip__leaf--front { animation: leafDown .32s ease-in forwards; }
.flip.is-flipping .flip__leaf--back { animation: leafUp .32s ease-out .32s forwards; }
@keyframes leafDown { to { transform: rotateX(-90deg); } }
@keyframes leafUp { from { transform: rotateX(90deg); } to { transform: rotateX(0); } }
.flip__label { display: block; margin-top: 12px; font-size: clamp(.58rem, 2.4vw, .72rem); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); }
.flips.is-done { display: none; }
.count__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 46px; }

/* Buttons */
.btn-gold, .btn-ghost {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-size: .76rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  overflow: hidden; isolation: isolate;
  transition: color .4s, border-color .4s, box-shadow .4s;
}
.btn-gold svg, .btn-ghost svg { width: 18px; height: 18px; flex: none; }
.btn-gold { color: #2A2010; background: var(--foil); background-size: 300% 100%; background-position: 100% 50%; box-shadow: 0 10px 30px -12px rgba(150, 110, 40, .7); transition: background-position 1.2s var(--ease), box-shadow .4s; }
.btn-gold:hover { background-position: 0% 50%; box-shadow: 0 14px 36px -12px rgba(150, 110, 40, .85); }
.btn-ghost { color: var(--ivory); border: 1px solid rgba(233, 214, 166, .55); }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-gold--wide { width: 100%; }

/* ==========================================================================
   IV · VENUES + DRESS CODE
   ========================================================================== */
.venues { display: grid; gap: 28px; max-width: var(--maxw); margin: 0 auto; }
.venue {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(28px, 5vw, 44px) clamp(18px, 4vw, 36px);
  border-radius: 8px;
  background: rgba(255, 253, 248, .78);
  border: 1px solid rgba(201, 164, 92, .35);
  box-shadow: 0 30px 60px -36px rgba(80, 60, 30, .4);
}
.venue__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-deep); margin-bottom: 14px; }
.venue__icon svg { width: 30px; height: 30px; }
.venue__kind { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.venue__name { font-family: var(--f-serif); font-size: clamp(1.9rem, 6vw, 2.5rem); font-weight: 500; line-height: 1.15; margin-top: 6px; }
.venue__place { font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); }
.venue__map {
  width: 100%; margin: 22px 0 24px; aspect-ratio: 4 / 3;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(251, 247, 240, .9), 0 0 0 6px rgba(201, 164, 92, .4);
  background: linear-gradient(135deg, #EFE6D6, #E5D8C2);
}
.venue__map iframe { width: 100%; height: 100%; border: 0; filter: sepia(.18) saturate(.9); }
@media (min-width: 820px) { .venues { grid-template-columns: 1fr 1fr; } }

.dress {
  max-width: 760px; margin: clamp(56px, 9vw, 96px) auto 0; padding: clamp(30px, 6vw, 48px) 20px;
  text-align: center; border-top: 1px solid rgba(201, 164, 92, .4); border-bottom: 1px solid rgba(201, 164, 92, .4);
}
.dress__title { font-family: var(--f-serif); font-weight: 500; font-style: italic; font-size: clamp(1.6rem, 5vw, 2.2rem); margin: 8px 0 26px; }
.dress__swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px clamp(20px, 5vw, 44px); }
.dress__swatches li { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.sw { width: 58px; height: 58px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px rgba(201, 164, 92, .6), 0 10px 20px -8px rgba(0, 0, 0, .3); }

/* ==========================================================================
   V · CONTACTS + RSVP
   ========================================================================== */
.families { display: grid; gap: 24px; max-width: 980px; margin: 0 auto; }
@media (min-width: 820px) { .families { grid-template-columns: 1fr 1fr; } }
.family {
  padding: clamp(28px, 5vw, 40px) clamp(20px, 4vw, 36px);
  border-radius: 8px;
  background: rgba(255, 253, 248, .82);
  border: 1px solid rgba(201, 164, 92, .35);
  box-shadow: 0 30px 60px -40px rgba(80, 60, 30, .45);
  text-align: center;
}
.family__name { font-family: var(--f-serif); font-weight: 500; font-style: italic; font-size: clamp(1.4rem, 4.6vw, 1.75rem); line-height: 1.25; margin: 6px 0 18px; }
.people li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(201, 164, 92, .25); text-align: left; }
.people__who { flex: 1; min-width: 0; }
.people__name { display: block; font-family: var(--f-serif); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.people__tel { display: inline-flex; align-items: center; min-height: 44px; font-size: .95rem; letter-spacing: .08em; color: var(--ink-soft); text-decoration: none; }
.people__tel:hover { color: var(--gold-deep); }
.people__btn { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; border: 1px solid rgba(201, 164, 92, .55); color: var(--gold-deep); transition: background-color .3s, color .3s; }
.people__btn svg { width: 20px; height: 20px; }
.people__btn:hover { background: var(--gold); color: #fff; }
.people__btn--wa { color: #1F7A4D; border-color: rgba(31, 122, 77, .45); }
.people__btn--wa:hover { background: #1F7A4D; color: #fff; }

.rsvp {
  max-width: 620px; margin: clamp(56px, 9vw, 96px) auto 0;
  padding: clamp(30px, 6vw, 48px) clamp(20px, 5vw, 44px);
  text-align: center; border-radius: 10px;
  background: rgba(255, 253, 248, .86);
  border: 1px solid rgba(201, 164, 92, .45);
  box-shadow: 0 40px 80px -46px rgba(80, 60, 30, .55);
}
.rsvp__title { font-family: var(--f-serif); font-weight: 500; font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.15; margin: 8px 0 6px; }
.rsvp__sub { color: var(--ink-soft); margin-bottom: 24px; }
.rsvp__fields { display: grid; gap: 14px; margin-bottom: 18px; text-align: left; }
@media (min-width: 520px) { .rsvp__fields { grid-template-columns: 1fr 150px; } }
.field span { display: block; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 1px solid rgba(201, 164, 92, .55); border-radius: 8px;
  background: #fff; font-size: 1rem; font-weight: 400; color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .22); }
.rsvp__error { color: #9B2C2C; font-size: .88rem; margin: -6px 0 12px; }

/* ==========================================================================
   CLOSING — starry lake night
   ========================================================================== */
.closing {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 60px) var(--gutter) 0;
  color: var(--ivory); text-align: center;
}
.closing__moon {
  position: absolute; left: 50%; top: 12%; z-index: -1;
  width: clamp(70px, 14vw, 120px); aspect-ratio: 1; border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 40% 38%, #FFF8E4 0%, #F2E3BA 55%, #D9C290 100%);
  box-shadow: 0 0 60px 18px rgba(255, 236, 190, .22), 0 0 160px 60px rgba(255, 236, 190, .08);
  opacity: .9;
}
.closing__content { position: relative; max-width: 760px; margin: 0 auto; padding-bottom: clamp(140px, 22vh, 220px); }
.closing__mono { width: 76px; height: 76px; margin: 0 auto 28px; color: var(--gold-light); }
.closing__quote { font-family: var(--f-serif); font-style: italic; font-weight: 500; font-size: clamp(1.9rem, 6.4vw, 3.4rem); line-height: 1.2; color: var(--ivory); }
.closing__names { margin-top: 26px; font-family: var(--f-script); font-size: clamp(2.3rem, 8vw, 4.2rem); line-height: 1.2; padding: 0 .1em; }
.closing__names span { font-family: var(--f-serif); font-style: italic; font-size: .6em; }
.closing__date { margin-top: 6px; font-size: .78rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-light); }
.rule--light i { background: linear-gradient(90deg, transparent, var(--gold-light), transparent); }
.closing__thanks { margin: 22px auto 30px; max-width: 30em; font-family: var(--f-serif); font-size: clamp(1.15rem, 3.6vw, 1.4rem); color: rgba(251, 247, 240, .86); }
.closing__lake {
  position: absolute; left: 0; right: 0; bottom: 0; height: clamp(120px, 20vh, 200px); z-index: -1;
  background: linear-gradient(180deg, rgba(31, 58, 77, .0) 0%, rgba(20, 42, 58, .85) 30%, #0B1824 100%);
  border-top: 1px solid rgba(233, 214, 166, .12);
}
.closing__reflect {
  position: absolute; left: 50%; top: 0; width: clamp(60px, 12vw, 110px); height: 100%;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, rgba(255, 238, 196, .5) 0 2px, transparent 2px 10px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%);
  animation: glint 4s ease-in-out infinite alternate;
}
.footer { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); font-size: .72rem; letter-spacing: .24em; color: rgba(251, 247, 240, .7); }
.footer p { display: flex; align-items: center; justify-content: center; gap: 8px; }
.footer__heart { width: 14px; height: 14px; color: var(--blush); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(.95); } 45% { transform: scale(1.12); } }

/* ==========================================================================
   MUSIC TOGGLE
   ========================================================================== */
.music {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70;
  display: flex; align-items: center; gap: 10px;
  height: 56px; min-width: 56px; padding: 0 6px;
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(19, 38, 50, .72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(233, 214, 166, .35);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(20px) scale(.9);
  transition: opacity .6s var(--ease), transform .6s var(--ease), padding .5s var(--ease);
}
.music.is-shown { opacity: 1; transform: none; }
.music__disc {
  position: relative; width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: repeating-radial-gradient(circle, #1A1A1A 0 1.5px, #2A2A2A 1.5px 3px);
  box-shadow: inset 0 0 0 1px rgba(233, 214, 166, .4);
  animation: spin 3.6s linear infinite; animation-play-state: paused;
}
.music__disc::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 20%, rgba(255, 255, 255, .14) 25%, transparent 30% 70%, rgba(255, 255, 255, .1) 75%, transparent 80%); }
.music__disc i { position: absolute; inset: 34%; border-radius: 50%; background: var(--foil); background-size: 200% 200%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); }
.music__disc i::after { content: ""; position: absolute; inset: 38%; border-radius: 50%; background: #111; }
@keyframes spin { to { transform: rotate(360deg); } }
.music__eq { display: flex; align-items: flex-end; gap: 3px; height: 16px; width: 0; overflow: hidden; transition: width .4s var(--ease); }
.music__eq i { width: 2px; height: 100%; background: var(--gold-light); transform-origin: bottom; transform: scaleY(.25); }
.music.is-playing .music__disc { animation-play-state: running; }
.music.is-playing .music__eq { width: 17px; margin-right: 8px; }
.music.is-playing .music__eq i { animation: eq .9s ease-in-out infinite alternate; }
.music.is-playing .music__eq i:nth-child(2) { animation-duration: .7s; animation-delay: -.3s; }
.music.is-playing .music__eq i:nth-child(3) { animation-duration: 1.1s; animation-delay: -.5s; }
.music.is-playing .music__eq i:nth-child(4) { animation-duration: .8s; animation-delay: -.2s; }
@keyframes eq { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
.music__title {
  position: absolute; right: 0; bottom: calc(100% + 10px);
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  font-size: .7rem; letter-spacing: .12em;
  color: var(--ivory); background: rgba(19, 38, 50, .88);
  border: 1px solid rgba(233, 214, 166, .3);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease);
}
.music:hover .music__title, .music:focus-visible .music__title, .music.show-title .music__title { opacity: 1; transform: none; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 130;
  padding: 12px 22px; border-radius: 999px;
  font-size: .78rem; letter-spacing: .14em;
  color: var(--ivory); background: rgba(19, 38, 50, .92); border: 1px solid rgba(233, 214, 166, .35);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   DESKTOP EXTRAS — cursor, sparkles
   ========================================================================== */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .env { cursor: none; }
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); }
.cursor__ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(201, 164, 92, .75);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s, opacity .3s;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(201, 164, 92, .12); }
.cursor.is-hidden .cursor__dot, .cursor.is-hidden .cursor__ring { opacity: 0; }
.sparkle {
  position: fixed; left: 0; top: 0; z-index: 199; width: 6px; height: 6px; margin: -3px 0 0 -3px; pointer-events: none;
  background: radial-gradient(circle, #FFF4D2 0%, rgba(201, 164, 92, .8) 40%, transparent 70%);
  border-radius: 50%;
  animation: sparkle .8s ease-out forwards;
}
@keyframes sparkle { from { opacity: .9; transform: translate(var(--x), var(--y)) scale(1); } to { opacity: 0; transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy))) scale(.2); } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 1100px) {
  .nav__links { display: flex; }
  .burger { display: none; }
  .menu { display: none !important; }
}
@media (max-width: 380px) {
  .hn--caps { letter-spacing: .4em; margin-right: -.4em; }
  .btn-lux { min-width: 170px; }
  .flip__label { letter-spacing: .14em; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .scene__slot { display: none; }
  .scene__headline { font-size: 2.2rem; margin-top: 0; }
  .scene__title { margin: 10px 0 18px; }
  .env { width: min(60vw, 440px); }
}

/* ==========================================================================
   LITE MODE (low-power devices) + REDUCED MOTION
   ========================================================================== */
.lite .grain, .lite .card3d__sheen::after, .lite .closing__reflect, .lite .intro__photo { animation: none; }
.lite .grain { display: none; }
.lite .stars { animation: none; opacity: .8; }
.lite .hero__slide img { animation: none; transform: none; }
.lite .foil { animation: none; background-position: 60% 50%; }
.lite [data-reveal]:not([data-reveal="draw"]) { filter: none !important; }
.lite .hn .ch { filter: none; }
.lite .btn-lux, .lite .music, .lite .nav { -webkit-backdrop-filter: none; backdrop-filter: none; }
.lite .nav { background: rgba(251, 247, 240, .95); }
.lite .nav.is-dark { background: rgba(12, 20, 30, .85); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .emblem__ring, .emblem__letters { stroke-dashoffset: 0; fill-opacity: 1; }
  .js [data-reveal]:not([data-reveal="draw"]) { transform: none; filter: none; }
  .js [data-reveal].is-in:not([data-reveal="draw"]) { transition: opacity .8s ease; }
  [data-split] .w > span { transform: none; opacity: 0; transition: opacity .8s ease; }
  [data-split].is-in .w > span { opacity: 1; }
  .js .hn .ch, .js [data-hero-seq], .js .hero__dear { transform: none !important; filter: none !important; }
  .hero.is-in .hn .ch { transition: opacity .8s ease; transition-delay: 0s; }
  .music__disc, .music.is-playing .music__eq i { animation: none; }
  .menu, .menu__nav a { transition: opacity .3s; transform: none; }
}
