/* =====================================================================
   ROYAL IVORY & GOLD  -  style.css
   Colours are set from js/data.js (theme) - defaults below.
   Fonts: change the Google Fonts link in index.html and the three
   --f-* variables below.
   ===================================================================== */

:root {
  --ivory: #FBF7F0;
  --cream: #F3EADB;
  --paper: #FFFDF8;
  --gold: #B8893B;
  --gold-light: #E8CD8A;
  --gold-deep: #86611F;
  --accent: #6E1423;
  --accent-deep: #420B15;
  --ink: #2E2A26;
  --muted: #675D53;

  --f-script: "Great Vibes", "Snell Roundhand", cursive;
  --f-head: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --f-body: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gut: clamp(18px, 5vw, 48px);
  --header-h: 68px;
  --line: rgba(184, 137, 59, .34);
  --line-soft: rgba(184, 137, 59, .2);
  --shadow: 0 18px 50px -24px rgba(74, 13, 24, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --foil: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold) 20%, var(--gold-light) 36%, #FFF3D0 46%, var(--gold-light) 56%, var(--gold) 72%, var(--gold-deep) 100%);
  --foil-deep: linear-gradient(100deg, #6E4E17 0%, var(--gold-deep) 18%, var(--gold) 34%, #D8B464 46%, var(--gold) 58%, var(--gold-deep) 76%, #6E4E17 100%);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } }
body {
  margin: 0;
  font: 300 1rem/1.75 var(--f-body);
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
body.intro-open, body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h2, h3, .person-parents, .hero-invite, .ev-desc, .venue-note, .quote p, .story-end { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--gold-light); color: var(--accent-deep); }

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

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 400;
  background: var(--accent); color: var(--ivory); padding: 10px 16px; border-radius: 6px; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(1160px, calc(100% - var(--gut) * 2)); margin-inline: auto; position: relative; z-index: 1; }
.container.narrow { width: min(820px, calc(100% - var(--gut) * 2)); text-align: center; }
.center { text-align: center; margin-top: clamp(32px, 5vw, 48px); }

.ico { width: 1.25em; height: 1.25em; flex: none; }

/* gold foil text */
.foil {
  background: var(--foil-deep);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: foil 7s ease-in-out infinite alternate;
}
.band .foil, .footer .foil { background-image: var(--foil); }
@keyframes foil { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---------- ornaments ---------- */
.divider { display: block; width: min(240px, 70%); height: auto; margin: 16px auto 0; color: var(--gold); overflow: visible; }
.divider.small { width: 150px; margin: 18px auto; }
.divider.light { color: var(--gold-light); opacity: .8; margin: 30px auto; }
.mandala { display: block; overflow: visible; }
.corner { position: absolute; width: clamp(62px, 10vw, 128px); height: auto; color: var(--gold); opacity: .55; pointer-events: none; z-index: 0; }
.corner.tl { top: 16px; left: 16px; }
.corner.tr { top: 16px; right: 16px; transform: scaleX(-1); }
.corner.bl { bottom: 16px; left: 16px; transform: scaleY(-1); }
.corner.br { bottom: 16px; right: 16px; transform: scale(-1, -1); }

/* ---------- headings ---------- */
.sec-head { text-align: center; margin-bottom: clamp(40px, 6vw, 68px); }
.kicker {
  font: 500 .74rem/1.4 var(--f-body);
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.kicker.light { color: var(--gold-light); }
.sec-title {
  font: 500 clamp(2.3rem, 6vw, 3.8rem)/1.08 var(--f-head);
  color: var(--accent);
  letter-spacing: .01em;
}

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  font: 500 .78rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, color .3s;
}
.btn .ico { width: 18px; height: 18px; }
.btn-gold {
  color: var(--accent-deep);
  background: linear-gradient(135deg, #F6E3AE 0%, var(--gold-light) 30%, var(--gold) 100%);
  border-color: rgba(134, 97, 31, .35);
  box-shadow: 0 10px 24px -12px rgba(134, 97, 31, .8), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-gold::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(134, 97, 31, .9), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-gold:hover::after { left: 120%; }
.btn-ghost { color: var(--accent); border-color: var(--gold); background: rgba(255, 253, 248, .6); }
.btn-ghost:hover { background: rgba(184, 137, 59, .12); transform: translateY(-2px); }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  background: none; border: 0; cursor: pointer;
  font: 400 .92rem var(--f-body); color: var(--accent);
  text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px;
}
.text-link:hover { color: var(--gold-deep); }

/* =====================================================================
   INTRO ENVELOPE
   ===================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  overflow: hidden; cursor: pointer;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .09) 0, transparent 55%),
    radial-gradient(ellipse at center, var(--accent) 0%, var(--accent-deep) 100%);
  transition: opacity .9s ease, transform 1.1s var(--ease), visibility 0s .9s;
  -webkit-tap-highlight-color: transparent;
}
.intro.leaving { opacity: 0; transform: scale(1.08); visibility: hidden; pointer-events: none; }
.intro-bg { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.intro-mandala { width: min(150vmin, 1100px); color: var(--gold-light); opacity: .13; animation: spin 140s linear infinite; }
.intro .corner { color: var(--gold-light); opacity: .6; width: clamp(64px, 15vmin, 150px); }
.intro-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 24px 16px;
}
.intro-kicker, .intro-names, .intro-tap { transition: opacity .5s ease, transform .6s var(--ease); }
.intro-kicker {
  font: 500 .72rem/1.5 var(--f-body); letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: clamp(26px, 6vh, 50px);
}
.intro-names { margin-top: clamp(28px, 6vh, 50px); font: italic 400 clamp(1.15rem, 4vw, 1.55rem)/1.3 var(--f-head); color: #F8EEDC; }
.intro-names em { color: var(--gold-light); font-family: var(--f-script); font-style: normal; font-size: 1.3em; padding: 0 .1em; }
.intro-tap {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  font: 400 .72rem/1 var(--f-body); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light);
  animation: breathe 2.4s ease-in-out infinite;
}
.tap-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 4px rgba(232, 205, 138, .2); }
.opening .intro-kicker, .opening .intro-names, .opening .intro-tap { opacity: 0; transform: translateY(12px); animation: none; }

.envelope {
  --ew: min(86vw, 440px, calc((100svh - 280px) * 1.5));
  position: relative;
  width: max(var(--ew), 240px);
  aspect-ratio: 3 / 2;
  perspective: 1400px;
  animation: floaty 5s ease-in-out infinite;
}
.opening .envelope { animation: none; }
.leaving .envelope { transform: scale(1.1); transition: transform 1s var(--ease); }
.env-back, .env-front, .env-letter, .env-flap { position: absolute; }
.env-back {
  inset: 0; z-index: 1; border-radius: 8px;
  background: linear-gradient(180deg, #E4D2AE, #D8C193);
  box-shadow: 0 40px 70px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(232, 205, 138, .3);
}
.env-letter {
  left: 6%; right: 6%; top: 5%; height: 90%; z-index: 2;
  background: linear-gradient(180deg, #FFFDF8, #F7EFE1);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  transition: transform 1.1s var(--ease) 1s;
}
.env-letter::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(184, 137, 59, .45); border-radius: 2px; }
.letter-in { position: relative; padding: 9% 8% 0; text-align: center; }
.letter-top { font: 500 .56rem/1.4 var(--f-body); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); }
.letter-names { font: 400 clamp(1.6rem, 7.4vw, 2.5rem)/1.25 var(--f-script); padding: 0 .2em; }
.letter-names span { font-family: var(--f-head); font-style: italic; font-size: .6em; }
.letter-div { width: 58%; margin: 2px auto 4px; }
.letter-date { font: 500 .9rem/1.2 var(--f-head); letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.env-front-wrap { position: absolute; inset: 0; z-index: 3; filter: drop-shadow(0 -2px 3px rgba(74, 13, 24, .22)); }
.env-front {
  inset: 0; border-radius: 8px; overflow: hidden;
  background: linear-gradient(165deg, #F1E4C8 0%, #E2CFA7 100%);
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
}
.env-front::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, #EADCBD, #F4E9D2);
  clip-path: polygon(0 100%, 50% 47%, 100% 100%);
  filter: drop-shadow(0 -2px 3px rgba(0, 0, 0, .12));
}
.env-line { position: absolute; inset: 9px; border: 1px solid rgba(184, 137, 59, .5); border-radius: 4px; }
.env-flap {
  left: 0; right: 0; top: 0; height: 60%; z-index: 4;
  transform-origin: 50% 0;
  transition: transform .9s var(--ease) .35s, z-index 0s .8s;
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .2));
}
.env-flap-in {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #F3E7CF 0%, #E2CEA5 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-radius: 8px 8px 0 0;
}
.opening .env-flap { transform: rotateX(180deg); z-index: 1; }
.opening .env-letter { transform: translateY(-56%); }

.seal {
  position: absolute; left: 50%; top: 60%; z-index: 5;
  width: clamp(72px, 23%, 104px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .4));
  display: grid; place-items: center;
}
.seal::before {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 1px solid rgba(232, 205, 138, .8);
  animation: pulse 2.4s ease-out infinite;
}
.seal-half {
  position: absolute; inset: 0; border-radius: 47% 53% 50% 50% / 52% 48% 54% 46%;
  background:
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(0, 0, 0, .18) 56%, transparent 60%),
    radial-gradient(circle at 34% 28%, #B53A4E 0%, #8A1F32 30%, #5E0F1E 70%, #3B0812 100%);
  transition: transform .8s var(--ease), opacity .7s ease;
}
.seal-l { clip-path: inset(0 50% 0 0); }
.seal-r { clip-path: inset(0 0 0 50%); }
.seal-mono {
  position: relative; z-index: 1;
  font: 400 clamp(1.5rem, 5.5vw, 2.1rem)/1 var(--f-script);
  color: var(--gold-light);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .45), 0 -1px 0 rgba(255, 255, 255, .15);
  white-space: nowrap;
  transition: opacity .4s ease;
}
.seal:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 12px; }
.opening .seal::before { display: none; }
.opening .seal-mono { opacity: 0; }
.opening .seal-l { transform: translate(-40%, 30%) rotate(-28deg); opacity: 0; }
.opening .seal-r { transform: translate(40%, 30%) rotate(28deg); opacity: 0; }
.opening .seal { pointer-events: none; }

/* =====================================================================
   HEADER / NAV
   ===================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.site-header.scrolled {
  background: rgba(251, 247, 240, .9);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line-soft), 0 10px 30px -20px rgba(74, 13, 24, .35);
}
.nav-inner {
  width: min(1240px, calc(100% - var(--gut) * 2)); height: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--gold); text-decoration: none; background: rgba(255, 253, 248, .7);
  position: relative;
}
.brand::after { content: ""; position: absolute; inset: 3px; border: 1px solid var(--line-soft); border-radius: 50%; }
.brand-mono { font: 400 1.18rem/1 var(--f-script); color: var(--accent); white-space: nowrap; letter-spacing: -.02em; }
.brand-mono i { font-style: normal; font-size: .7em; color: var(--gold-deep); padding: 0 1px; }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav-links a {
  position: relative; text-decoration: none;
  font: 500 .74rem/44px var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
  transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 8px; height: 1px; background: var(--gold);
  transition: left .35s var(--ease), right .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { left: 0; right: 0; }
.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 253, 248, .75); cursor: pointer;
  position: relative; z-index: 2;
}
.nav-toggle span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--accent); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s, top .35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; right: 18px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle.open span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 95;
  background: var(--ivory);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility 0s .45s;
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.mm-inner { position: relative; display: flex; flex-direction: column; align-items: center; padding: 90px 24px 40px; text-align: center; }
.mm-mandala { position: absolute; top: 50%; left: 50%; width: 520px; max-width: none; transform: translate(-50%, -50%); color: var(--gold); opacity: .1; pointer-events: none; }
.mm-names { font: 400 2.2rem/1.2 var(--f-script); color: var(--gold-deep); margin-bottom: 18px; }
.mobile-menu a {
  position: relative; display: block; min-width: 200px; padding: 8px 20px;
  font: 500 clamp(1.7rem, 7vw, 2.2rem)/1.3 var(--f-head); color: var(--accent); text-decoration: none;
  opacity: 0; transform: translateY(14px);
}
.mobile-menu.open a { opacity: 1; transform: none; transition: opacity .5s ease calc(var(--i) * 60ms + .1s), transform .6s var(--ease) calc(var(--i) * 60ms + .1s); }
.mm-div { width: 180px; margin-top: 22px; }
.mm-date { margin-top: 12px; font: 500 .75rem/1 var(--f-body); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 28px) 0 72px;
  background:
    radial-gradient(ellipse 60% 55% at 72% 45%, rgba(255, 255, 255, .95) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 10% 100%, rgba(232, 205, 138, .22) 0%, transparent 60%),
    var(--ivory);
}
.shot .hero { min-height: 860px; }
.petals { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-mandala {
  position: absolute; top: 50%; left: 72%;
  width: min(1100px, 130vw); height: auto;
  transform: translate(-50%, -50%);
  color: var(--gold); opacity: .12;
}
.hero-mandala { animation: spinC 200s linear infinite; }
.hero .corner.tl { top: calc(var(--header-h) + 6px); }
.hero .corner.tr { top: calc(var(--header-h) + 6px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text { text-align: center; }
.hero-blessing { font: italic 500 1.02rem/1.4 var(--f-head); color: var(--accent); letter-spacing: .06em; margin-bottom: 18px; }
.hero-pre { font: 500 .76rem/1.5 var(--f-body); letter-spacing: .34em; text-transform: uppercase; color: var(--gold-deep); }
.hero-names { display: flex; flex-direction: column; align-items: center; margin: 10px 0 6px; font-weight: 400; }
.hero-names .foil { font: 400 clamp(4rem, 13vw, 7.4rem)/1.12 var(--f-script); padding: 0 .28em; }
.hero-names .amp { font: italic 400 clamp(1.8rem, 5vw, 2.8rem)/1 var(--f-head); color: var(--gold-deep); margin: -.18em 0 -.12em; }
.hero-invite { font: italic 400 clamp(1.12rem, 2.4vw, 1.35rem)/1.5 var(--f-head); color: var(--muted); max-width: 30ch; margin: 8px auto 26px; }
.hero-date { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 22px); color: var(--ink); }
.hd-side {
  min-width: 96px; padding: 10px 4px;
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  font: 500 .72rem/1 var(--f-body); letter-spacing: .26em; text-transform: uppercase;
}
.hd-mid { display: flex; flex-direction: column; align-items: center; font: 500 .72rem/1 var(--f-body); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); }
.hd-mid b { font: 500 3.3rem/1 var(--f-head); letter-spacing: 0; color: var(--accent); margin-bottom: 2px; }
.hero-venue { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font: 400 .95rem/1.4 var(--f-body); color: var(--muted); }
.hero-venue .ico { color: var(--gold); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.hero-photo { display: flex; justify-content: center; padding-top: 44px; }

/* arch frames */
.arch { position: relative; width: var(--aw, 300px); aspect-ratio: 3 / 4; filter: drop-shadow(0 26px 30px rgba(74, 13, 24, .2)); }
.arch-lg { --aw: clamp(250px, 32vw, 410px); }
.arch-md { --aw: var(--aw-md); }
:root { --aw-md: clamp(220px, 24vw, 300px); }
.arch-clip {
  position: absolute; inset: 0;
  clip-path: url(#archClip);
  -webkit-clip-path: url(#archClip);
  overflow: hidden;
  background: linear-gradient(160deg, var(--cream), #E4CFA6);
}
.arch-clip img { width: 100%; height: 100%; object-fit: cover; }
.arch-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.arch-frame path { stroke: var(--gold-light); stroke-width: 2; }
.arch-outer { position: absolute; inset: -13px; pointer-events: none; }
.arch-outer .arch-frame path { stroke: var(--gold); stroke-width: 1.2; }
.finial { position: absolute; left: 50%; top: -52px; width: 40px; height: 40px; transform: translateX(-50%); color: var(--gold); }
.kenburns { animation: kenburns 26s ease-in-out infinite alternate; transform-origin: 50% 35%; }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, 1%); } }

/* hero entrance */
.hero-anim { opacity: 0; transform: translateY(22px); }
.hero-in .hero-anim { animation: fadeUp 1.1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * .12s + .1s); }
.hero-in .hero-photo.hero-anim { animation-name: fadeScale; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes fadeScale { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

.scroll-cue { position: absolute; left: 50%; bottom: 20px; z-index: 3; transform: translateX(-50%); width: 44px; height: 56px; display: grid; place-items: center; }
.scroll-cue span { width: 24px; height: 38px; border: 1.5px solid var(--gold); border-radius: 14px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: wheel 2s ease-in-out infinite; }

/* =====================================================================
   BANDS (countdown + blessings)
   ===================================================================== */
.band {
  position: relative; overflow: hidden; text-align: center; color: #F8EEDC;
  padding: clamp(68px, 10vw, 120px) 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .08), transparent 60%),
    linear-gradient(160deg, var(--accent) 0%, var(--accent-deep) 100%);
}
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--gold-light) 0 1px, transparent 1px 10px); opacity: .35; }
.band::before { top: 14px; }
.band::after { bottom: 14px; }
.band-pattern { position: absolute; inset: 0; pointer-events: none; }
.band-mandala { position: absolute; top: 50%; width: 560px; height: 560px; color: var(--gold-light); opacity: .13; }
.band-mandala.l { left: 0; transform: translate(-55%, -50%); animation: spinL 160s linear infinite; }
.band-mandala.r { right: 0; transform: translate(55%, -50%); animation: spinR 160s linear infinite; }
.band-mandala.c { left: 50%; width: 820px; height: 820px; transform: translate(-50%, -50%); opacity: .08; animation: spinC 220s linear infinite; }
.band-title { font: italic 400 clamp(1.9rem, 5vw, 3rem)/1.2 var(--f-head); color: #FBF3E4; margin-bottom: clamp(30px, 5vw, 48px); }

.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 2.6vw, 28px); max-width: 780px; margin: 0 auto; }
.cd-card {
  position: relative;
  padding: clamp(28px, 6vw, 54px) 4px clamp(16px, 3vw, 26px);
  border: 1px solid rgba(232, 205, 138, .6);
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015));
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .12);
}
.cd-card::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(232, 205, 138, .22); border-radius: 999px 999px 7px 7px; pointer-events: none; }
.cd-card::after { content: ""; position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; background: var(--gold-light); transform: translateX(-50%) rotate(45deg); }
.cd-num {
  display: block;
  font: 500 clamp(2rem, 7.4vw, 4rem)/1 var(--f-head);
  font-variant-numeric: lining-nums tabular-nums;
  background: var(--foil); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.cd-num.tick { animation: tick .6s var(--ease); }
.cd-lbl { display: block; margin-top: 10px; font: 400 clamp(.58rem, 1.9vw, .74rem)/1 var(--f-body); letter-spacing: clamp(.08em, .6vw, .26em); text-transform: uppercase; color: rgba(251, 243, 228, .82); }
.cd-passed p { max-width: 36ch; margin: 0 auto; font: italic 400 1.2rem/1.6 var(--f-head); }
.cd-passed .band-title { margin: 10px 0 12px; font-size: clamp(2rem, 6vw, 3.2rem); }
.cd-heart { width: 44px; height: 44px; color: var(--gold-light); }

.quote-mark { display: block; height: .55em; font: 400 7rem/1 var(--f-head); color: var(--gold-light); opacity: .8; }
.quote { margin: 0; }
.quote p { font: italic 400 clamp(1.35rem, 3.3vw, 2.05rem)/1.55 var(--f-head); color: #FBF3E4; }
.quote footer { margin-top: 20px; font: 400 .74rem/1.6 var(--f-body); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); }
.bless-list { list-style: none; }
.bless-list li { font: 500 clamp(1.1rem, 2.6vw, 1.3rem)/1.5 var(--f-head); color: #F8EEDC; margin-top: 6px; }

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section { position: relative; overflow: hidden; padding: clamp(80px, 11vw, 140px) 0; }
.section.tint {
  background-color: var(--cream);
  background-image: radial-gradient(rgba(184, 137, 59, .12) 1px, transparent 1.4px);
  background-size: 24px 24px;
}

/* ---------- couple ---------- */
.couple-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: start; }
.person { text-align: center; display: flex; flex-direction: column; align-items: center; }
.person .arch { margin: 56px auto 34px; }
.person-name { font: 400 clamp(2.7rem, 6vw, 3.7rem)/1.2 var(--f-script); padding: 0 .25em; margin: -4px 0 6px; }
.person-parents { font: italic 500 1.16rem/1.45 var(--f-head); color: var(--accent); margin-bottom: 14px; }
.person-bio { max-width: 38ch; color: var(--muted); }
.icon-link { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-top: 12px; border-radius: 50%; border: 1px solid var(--line); color: var(--gold-deep); }
.couple-amp { margin-top: calc(var(--aw-md) * .6667); }
.couple-amp span {
  display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%;
  border: 1px solid var(--gold); outline: 1px solid var(--line-soft); outline-offset: 6px;
  font: 400 3.6rem/1 var(--f-script); color: var(--gold-deep); background: var(--paper);
  padding-top: 8px;
}

/* ---------- story timeline ---------- */
.timeline { list-style: none; position: relative; max-width: 1020px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -.5px;
  background: linear-gradient(180deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent);
}
.tl-item { position: relative; width: 50%; padding: 0 52px 54px 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 54px 52px; }
.tl-item + .tl-item { margin-top: -96px; }
.tl-dot {
  position: absolute; top: 44px; right: -9px; width: 18px; height: 18px;
  background: var(--ivory); border: 1px solid var(--gold); transform: rotate(45deg); z-index: 2;
}
.tl-dot::after { content: ""; position: absolute; inset: 4px; background: var(--gold); }
.tl-item:nth-child(even) .tl-dot { right: auto; left: -9px; }
.tl-card {
  position: relative; display: flex; flex-direction: row-reverse; align-items: center; gap: 22px; text-align: right;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 20px 22px; box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tl-card:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -28px rgba(74, 13, 24, .45); }
.tl-item:nth-child(even) .tl-card { flex-direction: row; text-align: left; }
.tl-card::after { content: ""; position: absolute; top: 46px; right: -8px; width: 14px; height: 14px; background: var(--paper); border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: rotate(45deg); }
.tl-item:nth-child(even) .tl-card::after { right: auto; left: -8px; transform: rotate(-135deg); }
.tl-photo {
  flex: none; width: 104px; height: 104px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--gold-light); box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--line);
  background: linear-gradient(160deg, var(--cream), #E4CFA6);
}
.tl-photo img { width: 100%; height: 100%; object-fit: cover; }
.tl-body { min-width: 0; }
.tl-date { font: 400 1.7rem/1.1 var(--f-script); color: var(--gold-deep); }
.tl-title { font: 600 1.45rem/1.25 var(--f-head); color: var(--accent); margin: 4px 0 6px; }
.tl-body p:last-child { color: var(--muted); font-size: .95rem; line-height: 1.65; }
.story-end { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 8px; text-align: center; font: italic 400 1.4rem/1.4 var(--f-head); color: var(--accent); }
.story-end .ico { width: 30px; height: 30px; color: var(--gold); }

/* ---------- events ---------- */
.events-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 3vw, 34px); }
.event-card {
  --r: 110px;
  position: relative; flex: 1 1 calc(50% - 34px); max-width: 540px; min-width: 0;
  text-align: center; background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50% 50% 12px 12px / var(--r) var(--r) 12px 12px;
  padding: clamp(40px, 5vw, 56px) clamp(20px, 3.5vw, 44px) clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.event-card::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 1px solid var(--line-soft);
  border-radius: 50% 50% 8px 8px / calc(var(--r) - 8px) calc(var(--r) - 8px) 8px 8px;
}
.event-card:hover { transform: translateY(-6px); box-shadow: 0 30px 70px -30px rgba(74, 13, 24, .5); }
.ev-icon {
  position: relative; display: inline-grid; place-items: center; width: 78px; height: 78px; border-radius: 50%;
  color: var(--gold-deep); background: radial-gradient(circle, #FFF8E8, #F4E6C6);
  border: 1px solid var(--gold);
}
.ev-icon::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px dashed var(--gold); opacity: .55; transition: transform 1.2s var(--ease); }
.event-card:hover .ev-icon::after { transform: rotate(120deg); }
.ev-icon .ico { width: 36px; height: 36px; }
.ev-sub { margin-top: 14px; font: 400 1.65rem/1.1 var(--f-script); color: var(--gold-deep); }
.ev-name { font: 600 clamp(1.9rem, 4vw, 2.3rem)/1.1 var(--f-head); color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.ev-meta { list-style: none; display: grid; gap: 10px; text-align: left; max-width: 360px; margin: 24px auto 0; }
.ev-meta li { display: flex; align-items: flex-start; gap: 12px; font-size: .96rem; line-height: 1.5; }
.ev-meta .ico { width: 20px; height: 20px; margin-top: 2px; color: var(--gold); }
.ev-meta b { font-weight: 500; }
.ev-desc { font: italic 400 1.1rem/1.55 var(--f-head); color: var(--muted); margin: 18px auto 0; max-width: 40ch; }
.ev-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  font: 500 .7rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  color: var(--accent); background: transparent; border: 1px solid rgba(184, 137, 59, .55); border-radius: 999px; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.chip .ico { width: 16px; height: 16px; color: var(--gold-deep); }
.chip:hover { background: var(--accent); color: #FBF3E4; border-color: var(--accent); }
.chip:hover .ico { color: var(--gold-light); }

/* ---------- venue ---------- */
.venue-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 44px); align-items: stretch; }
.map-frame { position: relative; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-height: 420px; }
.map-frame::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--line-soft); border-radius: 9px; pointer-events: none; }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 398px; border: 0; border-radius: 6px; filter: sepia(.18) saturate(.9); background: var(--cream); }
.venue-card {
  position: relative; overflow: hidden; text-align: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: clamp(36px, 5vw, 54px) clamp(22px, 4vw, 44px); box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: center;
}
.venue-card .corner { width: 64px; opacity: .45; }
.venue-card .corner.tl { top: 10px; left: 10px; }
.venue-card .corner.br { bottom: 10px; right: 10px; }
.venue-name { font: 500 clamp(2rem, 4.4vw, 2.7rem)/1.1 var(--f-head); color: var(--accent); }
.venue-addr { margin: 12px auto 0; max-width: 34ch; color: var(--muted); }
.venue-meta { display: inline-grid; margin: 0 auto; justify-content: center; }
.venue-note { margin: 18px auto 0; max-width: 38ch; font: italic 400 1.08rem/1.5 var(--f-head); color: var(--muted); }
.venue-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; }
.venue-actions .btn { min-width: min(280px, 100%); }

/* ---------- gallery ---------- */
.masonry { column-count: 3; column-gap: 16px; }
.g-item {
  position: relative; display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; overflow: hidden;
  break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid;
  border-radius: 6px; cursor: zoom-in;
  background: linear-gradient(160deg, var(--cream), #E4CFA6);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .4s; }
.g-item::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 253, 248, .75); border-radius: 3px; opacity: 0; transform: scale(1.04); transition: opacity .5s, transform .5s var(--ease); pointer-events: none; }
.g-hover { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 30%, rgba(66, 11, 21, .55)); opacity: 0; transition: opacity .5s; color: var(--gold-light); }
.g-hover .ico { width: 30px; height: 30px; }
.g-item:hover img { transform: scale(1.06); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; transform: none; }
.g-item:hover .g-hover, .g-item:focus-visible .g-hover { opacity: 1; }
.g-item:focus-visible { outline-offset: 2px; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 250;
  display: flex; align-items: center; justify-content: center;
  background: rgba(24, 5, 9, .97);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s ease;
  touch-action: pan-y;
}
.lightbox.open { opacity: 1; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: min(92vw, 1200px); }
.lb-img { max-width: 100%; max-height: 80vh; max-height: 80svh; object-fit: contain; border-radius: 4px; opacity: 0; transform: scale(.97); transition: opacity .4s, transform .5s var(--ease); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-img.in { opacity: 1; transform: none; }
.lb-img.img-failed { min-width: 60vw; min-height: 40vh; background: linear-gradient(160deg, var(--cream), #E4CFA6); }
.lb-caption { margin-top: 14px; padding: 0 60px; text-align: center; font: italic 400 1.05rem/1.4 var(--f-head); color: #F3E6CC; }
.lb-btn {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(232, 205, 138, .55); background: rgba(0, 0, 0, .3); color: #F8EEDC; cursor: pointer;
  transition: background-color .3s;
}
.lb-btn:hover { background: rgba(184, 137, 59, .35); }
.lb-btn .ico { width: 22px; height: 22px; }
.lb-close { top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); }
.lb-prev { left: max(16px, env(safe-area-inset-left)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(16px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); }

/* ---------- get in touch ---------- */
.contact-note { max-width: 46ch; margin: calc(clamp(40px, 6vw, 68px) * -.55) auto 34px; text-align: center; font: italic 400 1.15rem/1.5 var(--f-head); color: var(--muted); text-wrap: balance; }
.contact-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 3vw, 30px); }
.contact-card {
  --r: 80px;
  position: relative; flex: 1 1 300px; max-width: 400px; min-width: 0; text-align: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 50% 50% 12px 12px / var(--r) var(--r) 12px 12px;
  padding: 40px clamp(16px, 3vw, 30px) 28px; box-shadow: var(--shadow);
}
.contact-card::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 1px solid var(--line-soft);
  border-radius: 50% 50% 8px 8px / calc(var(--r) - 8px) calc(var(--r) - 8px) 8px 8px;
}
.cc-icon { width: 60px; height: 60px; }
.cc-icon .ico { width: 26px; height: 26px; }
.cc-name { margin-top: 18px; font: 600 clamp(1.55rem, 4vw, 1.85rem)/1.15 var(--f-head); color: var(--accent); }
.cc-role { margin-top: 6px; font: 500 .68rem/1.4 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.cc-phone { margin-top: 6px; font-size: .96rem; letter-spacing: .04em; color: var(--muted); }
.contact-card .ev-actions { margin-top: 18px; }

/* ---------- footer ---------- */
.footer {
  position: relative; overflow: hidden; text-align: center; color: rgba(248, 238, 220, .88);
  padding: clamp(72px, 10vw, 110px) 0 120px;
  background: radial-gradient(ellipse at 50% 0%, var(--accent) 0%, var(--accent-deep) 75%);
}
.footer-pattern { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.footer-mandala { width: 900px; max-width: none; color: var(--gold-light); opacity: .07; }
.footer-closing { font: italic 400 clamp(1.15rem, 3vw, 1.4rem)/1.4 var(--f-head); }
.footer-names { font: 400 clamp(2.5rem, 12vw, 5.4rem)/1.3 var(--f-script); padding: 0 .25em; white-space: nowrap; }
.footer-names span { font-family: var(--f-head); font-style: italic; font-size: .5em; }
.footer-date { font: 500 .74rem/1.4 var(--f-body); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light); }
.hashtag {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 24px; padding: 0 24px;
  font: 500 clamp(.95rem, 3.6vw, 1.1rem)/1 var(--f-body); letter-spacing: .08em; color: var(--gold-light);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(232, 205, 138, .5); border-radius: 999px; cursor: pointer;
  transition: background-color .3s; max-width: 100%;
}
.hashtag:hover { background: rgba(232, 205, 138, .14); }
.hashtag .ico { width: 16px; height: 16px; }
.made { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-size: .9rem; }
.made .ico { width: 16px; height: 16px; color: var(--gold-light); }
.credit { margin: 8px auto 0; max-width: 46ch; font-size: .72rem; opacity: .6; text-wrap: balance; }
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; font: 500 .7rem/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); text-decoration: none; }
.to-top .ico { width: 16px; height: 16px; }

/* ---------- floating buttons / toast ---------- */
.fab-stack {
  position: fixed; z-index: 80; display: flex; flex-direction: column; gap: 12px;
  right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  transition: opacity .5s;
}
.intro-open .fab-stack { opacity: 0; pointer-events: none; }
.fab {
  position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
  color: var(--accent); background: rgba(255, 253, 248, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--gold); box-shadow: 0 10px 26px -12px rgba(74, 13, 24, .55);
  transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.fab:hover { transform: translateY(-3px); }
.fab .ico { width: 22px; height: 22px; }
.fab-music.playing { background: var(--accent); color: var(--gold-light); border-color: var(--gold-light); }
.fab-music.playing .ico { display: none; }
.eq { display: none; align-items: flex-end; gap: 3px; height: 18px; }
.eq i { display: block; width: 3px; height: 100%; background: currentColor; border-radius: 2px; transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.35s; }
.eq i:nth-child(3) { animation-delay: -.7s; }
.fab-music.playing .eq { display: flex; }
.fab-music.playing::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--gold); animation: pulse 2.4s ease-out infinite; }

.toast {
  position: fixed; left: 50%; bottom: calc(max(18px, env(safe-area-inset-bottom)) + 20px); z-index: 260;
  max-width: calc(100% - 150px); padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: var(--ivory); font-size: .9rem; text-align: center;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { padding: 40px 20px; text-align: center; }

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s ease, transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.reveal[data-reveal="left"] { transform: translateX(-56px); }
.reveal[data-reveal="right"] { transform: translateX(56px); }
.reveal[data-reveal="zoom"] { transform: scale(.92); }
.reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   KEYFRAMES
   ===================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinC { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spinL { from { transform: translate(-55%, -50%) rotate(0); } to { transform: translate(-55%, -50%) rotate(360deg); } }
@keyframes spinR { from { transform: translate(55%, -50%) rotate(0); } to { transform: translate(55%, -50%) rotate(-360deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes pulse { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes tick { 0% { transform: translateY(-10px); opacity: .2; } 100% { transform: none; opacity: 1; } }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .couple-amp span { width: 84px; height: 84px; font-size: 3rem; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .tl-item { padding-right: 36px; }
  .tl-item:nth-child(even) { padding-left: 36px; }
  .tl-card { flex-direction: column; align-items: flex-end; gap: 14px; }
  .tl-item:nth-child(even) .tl-card { flex-direction: column; align-items: flex-start; }
  .tl-photo { width: 88px; height: 88px; }
  .tl-item + .tl-item { margin-top: -120px; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero { padding-bottom: 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-mandala { left: 50%; top: 62%; }
  .hero-photo { padding-top: 48px; }
  .arch-lg { --aw: clamp(240px, 58vw, 360px); }
  .scroll-cue { display: none; }
  .couple-grid { grid-template-columns: 1fr; gap: 0; }
  .couple-amp { margin: 30px 0 10px; justify-self: center; }
  .person .arch { margin-top: 52px; }
  .venue-grid { grid-template-columns: 1fr; }
  .map-frame { min-height: 0; order: 2; }
  .map-frame iframe { min-height: 340px; }
}

@media (max-width: 760px) {
  .timeline::before { left: 20px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 36px 50px; }
  .tl-item + .tl-item { margin-top: 0; }
  .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 11px; right: auto; top: 30px; }
  .tl-card, .tl-item:nth-child(even) .tl-card { flex-direction: row; text-align: left; padding: 18px; gap: 16px; }
  .tl-card::after, .tl-item:nth-child(even) .tl-card::after { left: -8px; right: auto; top: 32px; transform: rotate(-135deg); }
  .tl-photo { width: 76px; height: 76px; }
  .reveal[data-reveal="left"], .reveal[data-reveal="right"] { transform: translateY(36px); }
  .reveal.in[data-reveal] { transform: none; }
  .event-card { flex-basis: 100%; }
  .masonry { column-count: 2; column-gap: 12px; }
  .g-item { margin-bottom: 12px; }
  .lb-prev, .lb-next { top: auto; bottom: max(20px, env(safe-area-inset-bottom)); transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .lb-img { max-height: 70vh; max-height: 70svh; }
  .lb-caption { padding: 0 12px; margin-bottom: 70px; }
  .band::before, .band::after { display: none; }
}

@media (max-width: 600px) {
  .hd-side { min-width: 0; padding: 9px 2px; font-size: .64rem; letter-spacing: .2em; }
  .hd-mid b { font-size: 2.8rem; }
  .corner { width: 58px; }
  .event-card { --r: 80px; }
  .band-mandala { width: 380px; height: 380px; }
  .band-mandala.c { width: 600px; height: 600px; }
}

@media (max-width: 480px) {
  .chip { padding: 0 13px; letter-spacing: .1em; gap: 6px; }
  .ev-actions { gap: 8px; }
  .tl-card, .tl-item:nth-child(even) .tl-card { flex-direction: column; align-items: flex-start; }
  .tl-item, .tl-item:nth-child(even) { padding-left: 44px; }
  .timeline::before { left: 16px; }
  .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 7px; }
  .hero-cta .btn { flex: 1 1 100%; max-width: 300px; }
  .venue-actions .btn { width: 100%; }
}

@media (max-width: 360px) {
  .hero-pre, .kicker { letter-spacing: .2em; }
  .hero-names .foil { font-size: 3.5rem; }
  .cd-card { border-radius: 999px 999px 8px 8px; }
  .btn { padding: 0 20px; letter-spacing: .14em; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .envelope { --ew: min(60vw, 360px, calc((100svh - 150px) * 1.5)); }
  .intro-kicker { margin-bottom: 14px; }
  .intro-names { margin-top: 14px; }
  .intro .corner { width: 60px; }
}

/* reduced motion: keep it calm */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; transition-delay: 0s !important; }
  .reveal, .hero-anim { opacity: 1; transform: none !important; }
  .kenburns { animation: none !important; }
  .petals { display: none; }
}

/* ---------- weblivites: monogram shown in an arch when there is no photo ---------- */
.arch-mono {
  position: absolute; inset: 0; display: grid; place-items: center; padding-top: 16%;
  font: 400 clamp(3.4rem, 9vw, 5.6rem)/1 var(--f-script); color: var(--gold-deep);
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 253, 248, .9), transparent 70%);
}
.arch-md .arch-mono { font-size: clamp(3.6rem, 8vw, 5rem); }
