/* ==========================================================================
   MIDNIGHT GALA — Wedding Reception Invitation
   Colours are set from js/data.js (theme). Defaults below are fallbacks.
   ========================================================================== */

:root {
  --bg: #0B0F1E;          --bg-rgb: 11, 15, 30;
  --bg2: #111827;         --bg2-rgb: 17, 24, 39;
  --gold: #D4B483;        --gold-rgb: 212, 180, 131;
  --gold-light: #F3E2BD;  --gold-light-rgb: 243, 226, 189;
  --gold-dark: #9C7A45;   --gold-dark-rgb: 156, 122, 69;
  --ivory: #F4EEE2;       --ivory-rgb: 244, 238, 226;
  --muted: #B9B3A6;
  --emerald: #1F5C4D;     --emerald-rgb: 31, 92, 77;
  --ink: #15110A;

  --gold-grad: linear-gradient(100deg, var(--gold-dark) 0%, var(--gold-light) 22%, var(--gold) 42%, #FFF6DE 52%, var(--gold) 64%, var(--gold-dark) 100%);
  --line: rgba(var(--gold-rgb), .32);

  --f-display: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --f-body: 'Jost', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-script: 'Cormorant Garamond', 'Cormorant', Georgia, serif;

  --gutter: clamp(16px, 4.5vw, 40px);
  --sec-pad: clamp(72px, 9vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --deco-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28' viewBox='0 0 56 28'%3E%3Cg fill='none' stroke='%23D4B483' stroke-width='.7'%3E%3Cpath d='M0 28a28 28 0 0 1 56 0M8 28a20 20 0 0 1 40 0M16 28a12 12 0 0 1 24 0M-28 14a28 28 0 0 1 56 0M28 14a28 28 0 0 1 56 0M-20 14a20 20 0 0 1 40 0M36 14a20 20 0 0 1 40 0'/%3E%3C/g%3E%3C/svg%3E");
}

/* ------------------------------------------------------------- BASE */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--ivory);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}
html.intro-open, html.lock { overflow: hidden; }
html.intro-open body, html.lock body { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ivory);
  background: transparent;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Fixed starry sky behind everything */
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
body::before {
  background:
    radial-gradient(1px 1px at 22px 34px, rgba(255, 255, 255, .8), transparent 60%),
    radial-gradient(1px 1px at 128px 82px, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(1.4px 1.4px at 210px 152px, rgba(var(--gold-light-rgb), .8), transparent 60%),
    radial-gradient(1px 1px at 300px 40px, rgba(255, 255, 255, .6), transparent 60%),
    radial-gradient(1px 1px at 64px 210px, rgba(255, 255, 255, .45), transparent 60%),
    radial-gradient(1.2px 1.2px at 262px 236px, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(1px 1px at 170px 12px, rgba(var(--gold-light-rgb), .6), transparent 60%);
  background-size: 340px 260px;
  opacity: .55;
  animation: twinkle 7s ease-in-out infinite alternate;
}
body::after {
  z-index: -3;
  background:
    radial-gradient(60vw 50vh at 8% 12%, rgba(var(--emerald-rgb), .16), transparent 70%),
    radial-gradient(55vw 45vh at 95% 88%, rgba(var(--gold-rgb), .08), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #0d1224 50%, var(--bg) 100%);
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .7; } }

img { max-width: 100%; display: block; }
a { color: var(--gold-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
::selection { background: rgba(var(--gold-rgb), .35); color: #fff; }

.container { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 10px 16px; background: var(--gold); color: var(--ink);
  font-weight: 500; text-decoration: none; transform: translateY(-160%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }
.noscript { padding: 40px; text-align: center; }

.gold-text {
  background: var(--gold-grad);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: goldShine 7s linear infinite;
}
@keyframes goldShine { from { background-position: 0% 50%; } to { background-position: 220% 50%; } }

.script { font-family: var(--f-script); font-style: italic; font-weight: 500; }
.eyebrow {
  font-family: var(--f-script); font-style: italic; font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--gold-light);
  letter-spacing: .02em; margin-bottom: 8px;
}
.ic { width: 1.25em; height: 1.25em; flex: none; }

/* ------------------------------------------------------------- BUTTONS */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 48px; padding: .85em 1.9em;
  font-family: var(--f-display); font-weight: 600; font-size: .78rem; line-height: 1.2;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none; text-align: center;
  border: 1px solid transparent; border-radius: 1px;
  transition: transform .35s var(--ease), background-position .6s var(--ease), box-shadow .35s, background-color .35s, border-color .35s, color .35s;
  -webkit-tap-highlight-color: transparent;
}
.btn .ic { width: 1.35em; height: 1.35em; }
.btn-gold {
  color: var(--ink);
  background: linear-gradient(110deg, var(--gold-dark) 0%, var(--gold-light) 30%, var(--gold) 55%, var(--gold-light) 75%, var(--gold-dark) 100%);
  background-size: 220% 100%;
  box-shadow: 0 12px 34px -14px rgba(var(--gold-rgb), .75), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-gold::after {
  content: ""; position: absolute; inset: 4px; border: 1px solid rgba(21, 17, 10, .32); pointer-events: none;
}
.btn-gold:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(var(--gold-rgb), .9), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-ghost { color: var(--gold-light); border-color: rgba(var(--gold-rgb), .55); background: rgba(var(--gold-rgb), .05); }
.btn-ghost:hover { background: rgba(var(--gold-rgb), .14); border-color: var(--gold); transform: translateY(-2px); }
.btn-sm { min-height: 44px; padding: .7em 1.35em; font-size: .7rem; }

/* ------------------------------------------------------------- GLASS + CORNERS */
.glass {
  position: relative;
  background: linear-gradient(150deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .018) 55%, rgba(var(--gold-rgb), .03));
  border: 1px solid var(--line);
  border-radius: 2px;
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 30px 60px -32px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.corners::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none; opacity: .85;
  --c: var(--gold); --l: 16px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) top left / 1px var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) top right / 1px var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) bottom left / 1px var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) bottom right / 1px var(--l);
  background-repeat: no-repeat;
}

/* ------------------------------------------------------------- SECTIONS */
.section { position: relative; padding-block: var(--sec-pad); scroll-margin-top: 60px; }
.hero { scroll-margin-top: 0; }
.sec-head { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2rem, 5.4vw, 3.5rem); line-height: 1.12;
  letter-spacing: .12em; text-transform: uppercase;
  padding-left: .12em; /* balances tracking */
}
.sec-intro { color: var(--muted); max-width: 560px; margin: 18px auto 0; }
.divider { display: block; width: 210px; max-width: 70%; height: 22px; margin: 20px auto 0; overflow: visible; }
.divider.left { margin: 22px 0; }

.pattern-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: var(--deco-pattern); background-size: 56px 28px; opacity: .055;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
}
.band {
  background: linear-gradient(180deg, transparent, rgba(var(--bg2-rgb), .7) 14%, rgba(var(--bg2-rgb), .7) 86%, transparent);
}

/* ------------------------------------------------------------- REVEAL */
.reveal {
  opacity: 0; transform: translate3d(0, 34px, 0);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================= INTRO */
.intro {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  overflow: hidden;
  color: var(--ivory);
}
.curtain {
  position: absolute; top: 0; bottom: 0; width: 50.2%; z-index: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 20%, transparent 75%, rgba(0, 0, 0, .55)),
    repeating-linear-gradient(90deg, #0a0e1c 0px, #151d38 22px, #1a2344 30px, #10162b 44px, #0a0e1c 60px);
  transition: transform 1.7s cubic-bezier(.7, 0, .25, 1);
  will-change: transform;
}
.curtain-l { left: 0; transform-origin: left; }
.curtain-r { right: 0; transform-origin: right; }
.curtain::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 14px;
  background:
    linear-gradient(90deg, transparent 0 5px, rgba(var(--gold-rgb), .7) 5px 6px, transparent 6px 8px, rgba(var(--gold-rgb), .35) 8px 9px, transparent 9px);
}
.curtain-l::after { right: 0; }
.curtain-r::after { left: 0; transform: scaleX(-1); }
.intro-spot {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 42% 60% at 50% 45%, rgba(var(--gold-light-rgb), .16), transparent 70%),
    conic-gradient(from 168deg at 50% -8%, transparent 0deg, rgba(var(--gold-light-rgb), .14) 10deg, rgba(var(--gold-light-rgb), .05) 16deg, transparent 24deg),
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, .7) 100%);
  opacity: 0;
  transition: opacity 1s;
}
.intro.play .intro-spot { opacity: 1; transition-duration: 2.4s; }
.intro-stage {
  position: relative; z-index: 2;
  width: 100%; min-height: 100%;
  display: grid; place-items: center;
  padding: 24px var(--gutter);
  transition: opacity .7s ease, transform .9s var(--ease);
}
.intro-burst {
  position: absolute; left: 50%; top: 50%;
  width: min(135vmin, 980px); height: min(135vmin, 980px);
  transform: translate(-50%, -50%);
  opacity: .6; overflow: visible;
}
.intro-burst g { animation: spin 160s linear infinite; transform-origin: center; transform-box: fill-box; }
.intro-burst .ray, .intro-burst .ring {
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.intro.play .intro-burst .ray { animation: draw 1.4s var(--ease) forwards; animation-delay: calc(.25s + var(--i) * 16ms); }
.intro.play .intro-burst .ring { animation: draw 2s var(--ease) .9s forwards; }
.intro-burst circle.ring[stroke-dasharray] { stroke-dashoffset: 0; opacity: 0; transition: opacity 1s 1.6s; }
.intro.play .intro-burst circle.ring[stroke-dasharray] { opacity: 1; animation: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.intro-content {
  position: relative; text-align: center; width: 100%; max-width: 760px;
  padding: clamp(28px, 5vw, 48px) clamp(18px, 4vw, 40px);
}
.intro-content::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  inset: -10% -12%;
  background: radial-gradient(closest-side, rgba(var(--bg-rgb), .94) 45%, rgba(var(--bg-rgb), .6) 70%, rgba(var(--bg-rgb), 0) 100%);
}
.intro-content > * { opacity: 0; transform: translateY(18px); }
.intro.play .intro-content > * { animation: fadeUp 1.1s var(--ease) forwards; }
.intro.play .intro-eyebrow { animation-delay: .35s; }
.intro.play .intro-line { animation-delay: .6s; }
.intro.play .intro-names { animation: namesIn 1.4s var(--ease) .85s forwards; }
.intro.play .intro-date { animation-delay: 1.4s; }
.intro.play .intro-btn { animation-delay: 1.65s; }
.intro-eyebrow {
  font-family: var(--f-display); font-size: clamp(.68rem, 2vw, .85rem); letter-spacing: clamp(.2em, 1vw, .38em); text-transform: uppercase;
  color: var(--gold-light); padding-left: .38em;
}
.intro-line { font-family: var(--f-script); font-style: italic; font-size: clamp(1.2rem, 3.6vw, 1.6rem); color: var(--muted); margin-top: 10px; }
.intro-names {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.3rem, 10.5vw, 5.6rem); line-height: 1.02; letter-spacing: .06em; text-transform: uppercase;
  margin: 18px 0 14px;
  display: flex; flex-direction: column; align-items: center;
  overflow-wrap: anywhere;
}
.intro-names .amp, .hero-names .amp {
  font-family: var(--f-script); font-style: italic; font-weight: 500; text-transform: none; letter-spacing: 0;
  color: var(--gold-light); font-size: .72em;
}
.intro-date { font-family: var(--f-display); letter-spacing: .4em; font-size: clamp(.8rem, 2.4vw, 1rem); color: var(--ivory); padding-left: .4em; }
.intro-btn { margin-top: clamp(26px, 5vw, 40px); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes namesIn {
  0% { opacity: 0; transform: translateY(18px) scale(.96); letter-spacing: .3em; filter: blur(8px); }
  100% { opacity: 1; transform: none; letter-spacing: .06em; filter: blur(0); }
}
.intro.leaving { pointer-events: none; }
.intro.leaving .curtain-l { transform: translateX(-101%); }
.intro.leaving .curtain-r { transform: translateX(101%); }
.intro.leaving .intro-stage { opacity: 0; transform: scale(1.06); }
.intro.leaving .intro-spot { opacity: 0; }
.intro-names .amp { line-height: 1.1; }
.intro:focus { outline: none; }

/* ============================================================= TOP BAR */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background-color .4s, border-color .4s, backdrop-filter .4s, transform .4s;
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
}
.topbar.scrolled, .topbar.menu-open {
  background: rgba(var(--bg-rgb), .78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(var(--gold-rgb), .2);
}
.topbar.menu-open { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.intro-open .topbar { opacity: 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand {
  font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .22em;
  color: var(--gold-light); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 44px;
}
.brand span { font-family: var(--f-script); font-style: italic; letter-spacing: 0; margin: 0 .35em 0 .15em; color: var(--gold); font-size: 1.3em; }
.nav ul { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 26px); }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: .72rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(var(--ivory-rgb), .82); text-decoration: none; transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform .4s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--gold-light); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.nav-cta { border: 1px solid rgba(var(--gold-rgb), .6); padding: 0 16px; color: var(--gold-light); }
.nav a.nav-cta::after { display: none; }
.nav a.nav-cta:hover { background: rgba(var(--gold-rgb), .14); }
.burger {
  display: none; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(var(--gold-rgb), .45);
  background: rgba(var(--bg-rgb), .35); position: relative; border-radius: 1px;
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 1px; background: var(--gold-light);
  transition: transform .4s var(--ease), opacity .3s, top .4s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23.5px; right: 19px; }
.burger span:nth-child(3) { top: 30px; }
.menu-open .burger span:nth-child(1) { top: 23.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { top: 23.5px; transform: rotate(-45deg); }
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 90px 24px 40px;
  background: rgba(var(--bg-rgb), .97);
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mm-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.mm-burst { position: absolute; left: 50%; bottom: -60vmin; width: 140vmin; height: 140vmin; transform: translateX(-50%); opacity: .25; }
.mobile-menu nav { position: relative; }
.mobile-menu ul { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mobile-menu li { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--d) * 50ms + 80ms); }
.mobile-menu.open li { opacity: 1; transform: none; }
.mobile-menu a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px;
  font-family: var(--f-display); font-size: clamp(1.25rem, 5.5vw, 1.7rem); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ivory); text-decoration: none;
}
.mobile-menu a:hover, .mobile-menu a:focus-visible { color: var(--gold-light); }
.mm-foot { position: relative; margin-top: 28px; font-family: var(--f-script); font-style: italic; color: var(--gold); font-size: 1.15rem; }

/* ============================================================= HERO */
.hero {
  position: relative;
  min-height: clamp(620px, 100vh, 1000px);
  min-height: clamp(620px, 100svh, 1000px);
  display: grid; place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  padding: 100px 0 130px;
}
.hero-bg {
  position: absolute; inset: -10% 0 -10%; z-index: -4;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(var(--gold-rgb), .22), transparent 60%),
    linear-gradient(160deg, #1a2140, var(--bg) 70%);
  transform: scale(1.08);
  will-change: transform;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(.75) contrast(1.05); }
.hero-veil {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, rgba(var(--bg-rgb), .25), rgba(var(--bg-rgb), .8) 75%),
    linear-gradient(180deg, rgba(var(--bg-rgb), .55) 0%, transparent 30%, transparent 62%, var(--bg) 100%);
}
.hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.hero-burst {
  position: absolute; left: 50%; top: 50%; z-index: -2;
  width: max(1300px, 130vw); height: max(1300px, 130vw);
  transform: translate(-50%, calc(-50% + var(--py, 0px)));
  opacity: .12; overflow: visible; pointer-events: none;
}
.hero-burst g { animation: spin 240s linear infinite; transform-origin: center; transform-box: fill-box; }
.hero-frame { position: absolute; inset: 80px clamp(12px, 2.6vw, 30px) clamp(12px, 2.6vw, 30px); border: 1px solid rgba(var(--gold-rgb), .2); pointer-events: none; z-index: -1; }
.hero-frame i { position: absolute; width: 38px; height: 38px; border: 1px solid rgba(var(--gold-rgb), .7); }
.hero-frame i::before {
  content: ""; position: absolute; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg);
}
.hero-frame i:nth-child(1) { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.hero-frame i:nth-child(2) { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.hero-frame i:nth-child(3) { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.hero-frame i:nth-child(4) { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.hero-frame i:nth-child(1)::before { top: -4px; left: -4px; }
.hero-frame i:nth-child(2)::before { top: -4px; right: -4px; }
.hero-frame i:nth-child(3)::before { bottom: -4px; left: -4px; }
.hero-frame i:nth-child(4)::before { bottom: -4px; right: -4px; }

.hero-content { position: relative; }
.h-anim { opacity: 0; transform: translateY(26px); }
.hero-in .h-anim { animation: fadeUp 1.2s var(--ease) forwards; animation-delay: calc(var(--s) * 110ms); }
.hero-in .hero-names .n { animation-name: namesIn; animation-duration: 1.6s; }
.hero-label {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--f-display); font-size: clamp(.68rem, 1.8vw, .85rem); font-weight: 500;
  letter-spacing: .42em; text-transform: uppercase; color: var(--gold-light);
  padding-left: .42em;
}
.hero-label span { width: clamp(24px, 6vw, 56px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-label span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.hero-names {
  display: flex; flex-direction: column; align-items: center;
  margin: clamp(18px, 3vw, 28px) 0 clamp(14px, 2vw, 20px);
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.8rem, min(13.5vw, 11.5vh), 7rem); line-height: .98; letter-spacing: .06em; text-transform: uppercase;
}
.hero-names .n { display: block; padding: .04em .06em 0 .12em; overflow-wrap: anywhere; filter: drop-shadow(0 6px 26px rgba(var(--gold-rgb), .25)); }
.hero-names .amp { display: block; font-size: .56em; line-height: 1.05; margin: .02em 0; }
.shimmer-line {
  position: relative; width: min(340px, 70%); height: 1px; margin: 4px auto clamp(18px, 3vw, 26px); overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), .8), transparent);
}
.shimmer-line i {
  position: absolute; top: -1px; bottom: -1px; width: 30%;
  background: linear-gradient(90deg, transparent, #fff8e6, transparent);
  animation: sweep 3.2s ease-in-out infinite;
}
@keyframes sweep { 0% { left: -30%; } 60%, 100% { left: 100%; } }
.hero-date {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1rem, 2.6vw, 1.45rem); letter-spacing: .2em; text-transform: uppercase; color: var(--ivory);
}
.hero-time { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: .9em; row-gap: 2px; margin-top: 8px; font-size: clamp(.78rem, 2vw, .92rem); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero-time b { color: var(--gold); font-weight: 400; font-size: .7em; }
@media (max-width: 560px) { .hero-time { flex-direction: column; } .hero-time b { display: none; } }
.hero-tagline { margin: 18px auto 0; max-width: 520px; font-family: var(--f-script); font-style: italic; font-size: clamp(1.15rem, 2.8vw, 1.45rem); color: var(--gold-light); opacity: .9; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: clamp(26px, 4vw, 38px); }
.scroll-cue {
  position: absolute; bottom: clamp(22px, 4vw, 44px); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 44px; min-height: 44px;
  font-size: .62rem; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); text-decoration: none;
  padding-left: .4em;
}
.scroll-cue i { position: relative; width: 1px; height: 42px; background: rgba(var(--gold-rgb), .3); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold-light); animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { to { top: 100%; } }
@media (max-height: 800px) { .scroll-cue { display: none; } }

/* ============================================================= COUNTDOWN */
.countdown-sec { isolation: isolate; }
.cd-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2.2vw, 26px);
  max-width: 900px; margin: 0 auto;
}
.cd-card {
  text-align: center; padding: clamp(20px, 3.6vw, 40px) 6px clamp(16px, 3vw, 30px);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .4s;
}
.cd-card:hover { transform: translateY(-4px); border-color: rgba(var(--gold-rgb), .7); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 40px -10px rgba(var(--gold-rgb), .35); }
.cd-num {
  position: relative; display: block; height: 1.15em; overflow: hidden;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 7.4vw, 4.2rem); line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.cd-v {
  display: block;
  background: var(--gold-grad); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.cd-v.in { position: absolute; inset: 0; animation: rollIn .6s var(--ease) both; }
.cd-v.out { animation: rollOut .6s var(--ease) both; }
@keyframes rollIn { from { transform: translateY(-100%); opacity: 0; filter: blur(3px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes rollOut { to { transform: translateY(80%); opacity: 0; filter: blur(3px); } }
.cd-lbl { display: block; margin-top: 10px; font-size: clamp(.6rem, 1.6vw, .74rem); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); padding-left: .26em; }
.cd-card::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 40%; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.cd-passed { max-width: 680px; margin: 0 auto; text-align: center; padding: clamp(30px, 5vw, 56px); }
.cd-passed h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: .08em; margin-bottom: 12px; }
.cd-passed p { color: var(--muted); }
.cd-when {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 44px); text-align: center;
  font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.cd-when b { color: var(--gold); font-weight: 400; font-size: .7em; }
@media (max-width: 560px) { .cd-when { flex-direction: column; gap: 2px; } .cd-when b { display: none; } }
.cd-actions { display: flex; justify-content: center; margin-top: 18px; }
@media (max-width: 359px) {
  .cd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .cd-card { padding-inline: 2px; }
  .cd-lbl { letter-spacing: .14em; padding-left: .14em; font-size: .58rem; }
}

/* ============================================================= COUPLE */
.couple-sec { overflow: hidden; }
.couple-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(56px, 8vw, 120px); align-items: center;
}
.couple-photo { position: relative; width: 100%; max-width: 470px; margin-inline: auto; padding: clamp(18px, 3vw, 26px); }
.couple-burst {
  position: absolute; left: 50%; top: 50%; width: 175%; height: 175%;
  transform: translate(-50%, -50%); opacity: .28; pointer-events: none; overflow: visible;
}
.couple-burst g { animation: spin 180s linear infinite reverse; transform-origin: center; transform-box: fill-box; }
.deco-frame { position: relative; aspect-ratio: 4 / 5; }
.deco-frame { --o: clamp(12px, 3vw, 18px); }
.frame-line {
  position: absolute; left: calc(-1 * var(--o)); top: calc(-1 * var(--o));
  width: calc(100% + 2 * var(--o)); height: calc(100% + 2 * var(--o));
  overflow: visible; fill: none; stroke: var(--gold); stroke-width: 1; opacity: .75;
}
.fd { position: absolute; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); z-index: 2; }
.fd-t { top: calc(-1 * var(--o) - 4.5px); left: calc(50% - 4.5px); }
.fd-b { bottom: calc(-1 * var(--o) - 4.5px); left: calc(50% - 4.5px); }
.fd-l { left: calc(-1 * var(--o) - 4.5px); top: calc(50% - 4.5px); }
.fd-r { right: calc(-1 * var(--o) - 4.5px); top: calc(50% - 4.5px); }
.deco-inner, .deco-img {
  --s: 14px;
  clip-path: polygon(0 calc(var(--s) * 2), var(--s) calc(var(--s) * 2), var(--s) var(--s), calc(var(--s) * 2) var(--s), calc(var(--s) * 2) 0,
    calc(100% - var(--s) * 2) 0, calc(100% - var(--s) * 2) var(--s), calc(100% - var(--s)) var(--s), calc(100% - var(--s)) calc(var(--s) * 2), 100% calc(var(--s) * 2),
    100% calc(100% - var(--s) * 2), calc(100% - var(--s)) calc(100% - var(--s) * 2), calc(100% - var(--s)) calc(100% - var(--s)), calc(100% - var(--s) * 2) calc(100% - var(--s)), calc(100% - var(--s) * 2) 100%,
    calc(var(--s) * 2) 100%, calc(var(--s) * 2) calc(100% - var(--s)), var(--s) calc(100% - var(--s)), var(--s) calc(100% - var(--s) * 2), 0 calc(100% - var(--s) * 2));
}
.deco-inner { position: absolute; inset: 0; padding: 2px; background: linear-gradient(145deg, var(--gold-light), var(--gold-dark) 50%, var(--gold-light)); box-shadow: 0 40px 80px -30px #000; }
.deco-img { position: relative; width: 100%; height: 100%; background: radial-gradient(ellipse at 50% 30%, rgba(var(--gold-rgb), .35), transparent 60%), linear-gradient(160deg, #26304f, #0b0f1e); overflow: hidden; }
.couple-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 85%; transition: transform 1.6s var(--ease); }
.couple-photo:hover .couple-img { transform: scale(1.04); }
.frame-tag {
  position: absolute; left: 50%; bottom: calc(clamp(18px, 3vw, 26px) + 26px); transform: translateX(-50%);
  padding: 8px 16px 8px calc(16px + .34em); white-space: nowrap;
  font-family: var(--f-display); font-size: .74rem; letter-spacing: .34em; color: var(--gold-light);
  background: rgba(var(--bg-rgb), .82); border: 1px solid rgba(var(--gold-rgb), .5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.couple-title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.12; letter-spacing: .08em; text-transform: uppercase;
}
.couple-title em { display: block; margin-top: .12em; font-family: var(--f-script); font-style: italic; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 1.28em; line-height: 1.1; padding-bottom: .08em; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.08rem); line-height: 1.9; max-width: 540px; }
.couple-names { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; }
.cn-name { font-family: var(--f-display); font-size: clamp(.85rem, 1.7vw, 1rem); letter-spacing: .16em; text-transform: uppercase; color: var(--ivory); }
.cn-amp { font-family: var(--f-script); font-style: italic; font-size: 1.9rem; line-height: 1; color: var(--gold); }
.signature { margin-top: 22px; font-family: var(--f-script); font-style: italic; font-size: 1.6rem; color: var(--gold-light); }
@media (max-width: 900px) {
  .couple-grid { grid-template-columns: 1fr; text-align: center; gap: 72px; }
  .couple-photo { max-width: 400px; }
  .couple-text .divider.left { margin-inline: auto; }
  .lead { margin-inline: auto; }
  .couple-names { justify-content: center; }
}
@media (max-width: 560px) {
  .couple-names { flex-direction: column; gap: 6px; }
}

/* ============================================================= EVENING TIMELINE */
.timeline { position: relative; max-width: 1000px; margin: 0 auto; }
.tl-track { position: absolute; top: 10px; bottom: 10px; left: 50%; width: 1px; transform: translateX(-50%); background: rgba(var(--gold-rgb), .18); }
.tl-fill {
  position: absolute; inset: 0; transform-origin: top; transform: scaleY(0);
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 50%, var(--gold-dark));
  box-shadow: 0 0 12px rgba(var(--gold-rgb), .8);
  width: 1px;
}
.tl-fill::after { content: ""; position: absolute; left: -3px; bottom: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 14px 3px rgba(var(--gold-light-rgb), .8); }
.tl-list { position: relative; display: grid; gap: clamp(26px, 4.5vw, 52px); }
.tl-item { display: grid; grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); align-items: center; }
.tl-node {
  grid-column: 2; grid-row: 1; justify-self: center;
  width: 52px; height: 52px; display: grid; place-items: center;
  transform: rotate(45deg);
  border: 1px solid rgba(var(--gold-rgb), .5);
  background: var(--bg);
  color: var(--gold);
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px rgba(var(--gold-rgb), .18);
  transition: background .6s, color .6s, box-shadow .6s, border-color .6s;
}
.tl-node .ic { transform: rotate(-45deg); width: 22px; height: 22px; }
.tl-item.lit .tl-node {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 50%, var(--gold-dark));
  color: var(--ink); border-color: var(--gold-light);
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px rgba(var(--gold-rgb), .6), 0 0 34px rgba(var(--gold-rgb), .55);
}
.tl-card { grid-row: 1; padding: clamp(20px, 2.6vw, 28px) clamp(20px, 2.8vw, 32px); transition: border-color .5s, transform .5s var(--ease); }
.tl-item.lit .tl-card { border-color: rgba(var(--gold-rgb), .55); }
.tl-card:hover { transform: translateY(-3px); }
.tl-item.odd .tl-card { grid-column: 1; text-align: right; }
.tl-item.even .tl-card { grid-column: 3; }
.tl-time { display: block; font-family: var(--f-display); font-weight: 600; font-size: clamp(1rem, 2vw, 1.2rem); letter-spacing: .16em; color: var(--gold); }
.tl-card h3 { margin-top: 4px; font-family: var(--f-body); font-weight: 500; font-size: clamp(1.02rem, 1.9vw, 1.2rem); letter-spacing: .1em; text-transform: uppercase; color: var(--ivory); }
.tl-card p { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.tl-item.odd.reveal { transform: translate3d(-40px, 0, 0); }
.tl-item.even.reveal { transform: translate3d(40px, 0, 0); }
.tl-item.reveal.in { transform: none; }
@media (max-width: 760px) {
  .tl-track { left: 26px; }
  .tl-item { grid-template-columns: 52px minmax(0, 1fr); column-gap: 20px; }
  .tl-node { grid-column: 1; }
  .tl-item.odd .tl-card, .tl-item.even .tl-card { grid-column: 2; text-align: left; }
  .tl-item.odd.reveal, .tl-item.even.reveal { transform: translate3d(24px, 0, 0); }
  .tl-item.reveal.in { transform: none; }
}
@media (max-width: 360px) {
  .tl-track { left: 21px; }
  .tl-item { grid-template-columns: 42px minmax(0, 1fr); column-gap: 16px; }
  .tl-node { width: 42px; height: 42px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px rgba(var(--gold-rgb), .18); }
  .tl-node .ic { width: 18px; height: 18px; }
}

/* ============================================================= MENU */
.menu-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 2vw, 22px); }
.menu-card {
  position: relative; overflow: hidden; isolation: isolate;
  flex: 1 1 200px; max-width: 290px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 38px 22px 30px; min-height: 300px;
  border: 1px solid rgba(var(--gold-rgb), .26);
  background: linear-gradient(180deg, rgba(var(--bg2-rgb), .85), rgba(var(--bg-rgb), .92));
  transition: transform .6s var(--ease), border-color .5s, box-shadow .6s, opacity 1s var(--ease);
}
.menu-card.reveal.in:hover, .menu-card:focus-within {
  transform: translateY(-8px);
  border-color: rgba(var(--gold-rgb), .75);
  box-shadow: 0 34px 60px -30px #000, 0 0 50px -18px rgba(var(--gold-rgb), .45);
}
.menu-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  transform: scaleX(0); transition: transform .7s var(--ease);
}
.menu-card:hover::after { transform: scaleX(1); }
.menu-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, #1b2342, var(--bg)); }
.menu-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .12; transform: scale(1.12); filter: saturate(.6); transition: opacity .8s, transform 1.4s var(--ease); }
.menu-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--bg-rgb), .45), rgba(var(--bg-rgb), .92) 75%); }
.menu-card:hover .menu-bg img { opacity: .45; transform: scale(1); }
.menu-icon {
  width: 66px; height: 80px; display: grid; place-items: center; padding-top: 6px;
  border: 1px solid rgba(var(--gold-rgb), .6); border-radius: 33px 33px 2px 2px;
  color: var(--gold-light); background: rgba(var(--bg-rgb), .5);
  box-shadow: 0 0 0 5px rgba(var(--bg-rgb), .5), 0 0 0 6px rgba(var(--gold-rgb), .2);
  transition: background .5s, color .5s;
}
.menu-icon .ic { width: 30px; height: 30px; }
.menu-card:hover .menu-icon { background: linear-gradient(160deg, var(--gold-light), var(--gold) 55%, var(--gold-dark)); color: var(--ink); }
.menu-body { min-width: 0; }
.menu-card h3 { margin: 24px 0 10px; font-family: var(--f-display); font-weight: 600; font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.menu-card p { font-size: .92rem; line-height: 1.7; color: var(--muted); }
.menu-num { position: absolute; top: 12px; right: 14px; font-family: var(--f-display); font-size: .7rem; letter-spacing: .15em; color: rgba(var(--gold-rgb), .55); }
@media (hover: none) { .menu-bg img { opacity: .24; } }
@media (max-width: 560px) {
  .menu-grid { flex-direction: column; align-items: stretch; }
  .menu-card {
    max-width: none; flex: none; min-height: 0; flex-direction: row; align-items: center; text-align: left;
    gap: 18px; padding: 22px 20px;
  }
  .menu-icon { width: 54px; height: 64px; flex: none; border-radius: 27px 27px 2px 2px; }
  .menu-icon .ic { width: 24px; height: 24px; }
  .menu-card h3 { margin: 0 0 4px; font-size: .92rem; }
  .menu-card p { font-size: .88rem; line-height: 1.6; }
}

/* ============================================================= DRESS CODE */
.dress-panel {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(36px, 6vw, 80px); align-items: center;
  padding: clamp(30px, 6vw, 72px);
  overflow: hidden; isolation: isolate;
}
.dress-panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--deco-pattern); background-size: 56px 28px; opacity: .06;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000);
  mask-image: linear-gradient(90deg, transparent 35%, #000);
}
.dress-panel::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(var(--gold-rgb), .16); pointer-events: none;
}
.dress-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.3rem, 6.4vw, 4.2rem); line-height: 1.05; letter-spacing: .1em; text-transform: uppercase; }
.dress-sub { margin-top: 6px; font-size: clamp(1.5rem, 3.6vw, 2.3rem); line-height: 1.2; color: var(--gold-light); }
.dress-copy > p:not(.eyebrow):not(.dress-sub) { color: var(--muted); max-width: 520px; }
.dress-tips { margin-top: 22px; display: grid; gap: 10px; }
.dress-tips li { position: relative; padding-left: 26px; color: var(--ivory); font-size: .96rem; }
.dress-tips li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.dress-visual { text-align: center; }
.dress-fan { width: min(220px, 70%); height: auto; margin: 0 auto 8px; display: block; }
.swatch-title { font-family: var(--f-display); font-size: .74rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-light); margin: 14px 0 22px; padding-left: .34em; }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 16px; }
.swatches li { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 68px; }
.sw {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(var(--gold-light-rgb), .7);
  box-shadow: 0 0 0 4px rgba(var(--bg-rgb), .9), 0 0 0 5px rgba(var(--gold-rgb), .45), 0 12px 24px -8px #000;
  transition: transform .5s var(--ease);
  transform: scale(.4); opacity: 0;
}
.reveal.in .sw { transform: scale(1); opacity: 1; transition: transform .8s var(--ease), opacity .6s; transition-delay: calc(.35s + var(--d) * 110ms); }
.swatches li:hover .sw { transform: scale(1.12); transition-delay: 0s; }
.sw-name { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) {
  .dress-panel { grid-template-columns: 1fr; text-align: center; }
  .dress-copy .divider.left { margin-inline: auto; }
  .dress-copy > p:not(.eyebrow):not(.dress-sub) { margin-inline: auto; }
  .dress-tips { justify-content: center; text-align: left; max-width: 420px; margin-inline: auto; }
}

/* ============================================================= GALLERY */
.gallery-sec { overflow: hidden; }
.marquee-wrap { position: relative; }
.marquee {
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none;
  scroll-behavior: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  padding: 10px 0 22px; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.dragging { cursor: grabbing; }
.marquee.dragging .g-item { pointer-events: none; }
.marquee-track { display: flex; gap: 16px; width: max-content; padding-inline: 8px; }
.g-item {
  position: relative; flex: none; padding: 0; overflow: hidden; cursor: zoom-in;
  height: clamp(250px, 44vw, 420px);
  border: 1px solid rgba(var(--gold-rgb), .3);
  background: radial-gradient(ellipse at 50% 30%, rgba(var(--gold-rgb), .25), transparent 60%), linear-gradient(160deg, #26304f, #0b0f1e);
  border-radius: 1px;
  -webkit-user-select: none; user-select: none;
}
.g-item.tall { aspect-ratio: 3 / 4; }
.g-item.wide { aspect-ratio: 4 / 3; }
.g-item.square { aspect-ratio: 1 / 1; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s; filter: saturate(.85); -webkit-user-drag: none; }
.g-item::after {
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(var(--gold-light-rgb), .8);
  opacity: 0; transform: scale(1.04); transition: opacity .5s, transform .6s var(--ease); pointer-events: none;
}
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.07); filter: saturate(1.05); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; transform: none; }
.g-item:focus-visible { outline-offset: -3px; }
.m-arrow {
  position: absolute; top: calc(50% - 6px); transform: translateY(-50%); z-index: 2;
  width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(var(--gold-rgb), .55); color: var(--gold-light);
  background: rgba(var(--bg-rgb), .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .3s, transform .3s;
}
.m-arrow:hover { background: rgba(var(--gold-rgb), .2); }
.m-prev { left: clamp(10px, 3vw, 36px); }
.m-next { right: clamp(10px, 3vw, 36px); }
.gallery-hint { display: block; margin-top: 18px; padding-inline: var(--gutter); text-align: center; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.gallery-hint .ic { color: var(--gold); vertical-align: -3px; margin-right: 6px; }
.gh-sep { margin: 0 .5em; color: var(--gold); }
.gallery-tag { text-align: center; margin-top: 10px; padding-inline: var(--gutter); font-family: var(--f-script); font-style: italic; font-size: 1.3rem; color: var(--muted); }
.gallery-tag b { font-family: var(--f-display); font-style: normal; font-weight: 600; font-size: .95rem; letter-spacing: .12em; }
@media (max-width: 600px) { .m-arrow { display: none; } }

/* ---- Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 110;
  display: grid; place-items: center;
  padding: 70px 76px;
  background: rgba(5, 7, 15, .95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .35s ease;
}
.lightbox.open { opacity: 1; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.lb-img {
  max-width: min(1200px, 100%); max-height: calc(100vh - 170px); max-height: calc(100svh - 170px); width: auto; height: auto;
  object-fit: contain; border: 1px solid rgba(var(--gold-rgb), .45); box-shadow: 0 40px 90px -30px #000;
  opacity: 0; transform: scale(.97); transition: opacity .45s, transform .6s var(--ease);
  min-width: 120px; min-height: 120px; background: linear-gradient(160deg, #26304f, #0b0f1e);
}
.lightbox.loaded .lb-img { opacity: 1; transform: none; }
.lb-cap { font-family: var(--f-script); font-style: italic; font-size: 1.15rem; color: var(--gold-light); text-align: center; }
.lb-btn {
  position: absolute; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(var(--gold-rgb), .55); background: rgba(var(--bg-rgb), .65); color: var(--gold-light);
  transition: background .3s;
}
.lb-btn:hover { background: rgba(var(--gold-rgb), .2); }
.lb-close { top: max(16px, env(safe-area-inset-top)); right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 28px; left: 24px; font-family: var(--f-display); font-size: .75rem; letter-spacing: .25em; color: var(--muted); }
@media (max-width: 700px) {
  .lightbox { padding: 70px 14px 96px; }
  .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: calc(100vh - 220px); max-height: calc(100svh - 220px); }
}

/* ============================================================= VENUE */
.venue-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.venue-card { padding: clamp(28px, 4.4vw, 50px); display: flex; flex-direction: column; }
.venue-pin {
  width: 50px; height: 50px; display: grid; place-items: center; transform: rotate(45deg); margin: 6px 0 24px 6px;
  border: 1px solid rgba(var(--gold-rgb), .6); color: var(--gold-light);
}
.venue-pin .ic { transform: rotate(-45deg); width: 22px; height: 22px; }
.venue-name { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.55rem, 3.4vw, 2.2rem); letter-spacing: .08em; line-height: 1.15; text-transform: uppercase; }
.venue-hall { font-family: var(--f-script); font-style: italic; font-size: 1.45rem; color: var(--gold-light); margin-top: 4px; }
.venue-addr { color: var(--muted); margin-top: 8px; }
.venue-info { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid rgba(var(--gold-rgb), .2); display: grid; gap: 16px; }
.venue-info > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.venue-info dt { display: flex; align-items: center; gap: 10px; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.venue-info dt .ic { width: 18px; height: 18px; transform: translateY(-1px); }
.venue-info dd { margin: 0; color: var(--ivory); font-size: .96rem; }
.venue-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 30px; }
.venue-btns .btn { flex: 1 1 auto; }
.venue-map { min-height: 420px; }
.map-frame {
  position: relative; height: 100%; min-height: 420px; padding: 10px;
  border: 1px solid rgba(var(--gold-rgb), .35);
  background: rgba(var(--bg2-rgb), .6);
}
.map-frame::before {
  content: ""; position: absolute; inset: -7px; border: 1px solid rgba(var(--gold-rgb), .18); pointer-events: none;
}
.map-frame iframe {
  display: block; width: 100%; height: 100%; min-height: 398px; border: 0;
  /* Night-mode map. Remove this filter line for the standard light map. */
  filter: invert(.9) hue-rotate(180deg) saturate(.55) brightness(.95) contrast(.95);
  background: #1a2140;
}
@media (max-width: 900px) {
  .venue-grid { grid-template-columns: 1fr; }
  .venue-map, .map-frame { min-height: 340px; }
  .map-frame iframe { min-height: 318px; }
}
@media (max-width: 520px) {
  .venue-info > div { grid-template-columns: 1fr; gap: 4px; }
  .venue-btns .btn { flex: 1 1 100%; }
}

/* ============================================================= FOOTER */
.footer {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(80px, 11vw, 130px) 0 calc(40px + env(safe-area-inset-bottom));
  text-align: center;
  border-top: 1px solid rgba(var(--gold-rgb), .18);
  background: linear-gradient(180deg, rgba(var(--bg2-rgb), .6), rgba(5, 7, 15, .9));
}
.footer-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(var(--gold-rgb), .13), transparent 70%);
}
.footer-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--deco-pattern); background-size: 56px 28px; opacity: .07;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 65%);
  mask-image: linear-gradient(180deg, #000, transparent 65%);
}
.footer-fan { width: 130px; height: auto; margin: 0 auto 26px; display: block; }
.hashtag { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.45rem, 5.6vw, 3.2rem); letter-spacing: .08em; line-height: 1.15; overflow-wrap: anywhere; }
.compliments { margin-top: clamp(34px, 5vw, 52px); font-family: var(--f-script); font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.45rem); color: var(--muted); }
.hosts { margin-top: 12px; display: grid; gap: 6px; }
.hosts li { font-family: var(--f-display); font-size: clamp(.95rem, 2.4vw, 1.22rem); letter-spacing: .14em; color: var(--ivory); }
.hosts-note { margin-top: 8px; color: var(--muted); font-size: .92rem; }
.footer .divider { margin-block: 34px; }
.contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; scroll-margin-top: 96px; }
.contacts li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 20px 18px; min-width: min(270px, 100%); border: 1px solid rgba(var(--gold-rgb), .22); background: rgba(255, 255, 255, .02); }
.c-name { font-size: .78rem; letter-spacing: .1em; color: var(--muted); }
.c-phone { display: block; padding: 6px 0 2px; font-family: var(--f-display); letter-spacing: .1em; color: var(--gold-light); }
.c-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.c-btns .btn { padding-inline: 1.1em; }
.c-btns .ic { width: 16px; height: 16px; }
.closing { margin-top: 38px; font-size: clamp(1.35rem, 3.2vw, 1.8rem); color: var(--gold-light); }
.to-top {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 26px; padding: 0 14px;
  font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.to-top:hover { color: var(--gold-light); }
.fine { margin-top: 14px; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(var(--ivory-rgb), .45); }
@media (max-width: 700px) { .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ============================================================= FABs / TOAST */
.fab-stack {
  position: fixed; z-index: 50;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px;
  transition: opacity .5s;
}
html.intro-open .fab-stack { opacity: 0; pointer-events: none; }
.fab {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(var(--gold-rgb), .6); color: var(--gold-light);
  background: rgba(var(--bg-rgb), .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px #000;
  transition: transform .3s var(--ease), background .3s;
}
.fab:hover { transform: translateY(-2px); background: rgba(var(--gold-rgb), .18); }
.fab .ic { width: 21px; height: 21px; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.eq i { width: 3px; height: 30%; background: var(--gold-light); border-radius: 1px; transition: height .3s; }
.fab-music:not(.playing) .eq i:nth-child(2) { height: 55%; }
.fab-music:not(.playing) .eq i:nth-child(3) { height: 40%; }
.fab-music.playing .eq i { animation: eq 1s ease-in-out infinite; }
.fab-music.playing .eq i:nth-child(2) { animation-delay: -.3s; }
.fab-music.playing .eq i:nth-child(3) { animation-delay: -.6s; }
.fab-music.playing .eq i:nth-child(4) { animation-delay: -.15s; }
.fab-music.playing { box-shadow: 0 0 0 4px rgba(var(--gold-rgb), .12), 0 10px 30px -10px #000; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

.toast {
  position: fixed; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); z-index: 130;
  max-width: calc(100vw - 32px); padding: 12px 22px;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: rgba(var(--bg2-rgb), .95); border: 1px solid rgba(var(--gold-rgb), .55); color: var(--ivory);
  font-size: .88rem; letter-spacing: .04em; text-align: center; overflow-wrap: anywhere;
  box-shadow: 0 20px 40px -16px #000;
  transition: opacity .35s, transform .45s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Image fallback */
.img-failed { opacity: 0 !important; }

/* ============================================================= REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  .reveal, .h-anim { opacity: 1 !important; transform: none !important; }
  .sw { opacity: 1; transform: none; }
  .gold-text, .cd-v { animation: none !important; }
  .intro-burst .ray, .intro-burst .ring { stroke-dashoffset: 0; }
  .shimmer-line i, .scroll-cue i::after { display: none; }
}

/* ============================================================= SMALL PHONES */
@media (max-width: 380px) {
  .btn { letter-spacing: .12em; padding-inline: 1.2em; font-size: .72rem; }
  .hero-label { letter-spacing: .28em; padding-left: .28em; gap: 10px; }
}

/* ============================================================= weblivites additions */
.hero-greeting {
  margin-bottom: 14px; font-family: var(--f-script); font-style: italic; font-weight: 500;
  font-size: clamp(1.35rem, 4vw, 1.9rem); line-height: 1.2; color: var(--gold-light);
}
.couple-grid.no-photo { grid-template-columns: minmax(0, 1fr); max-width: 760px; text-align: center; }
.couple-grid.no-photo .divider.left { margin-inline: auto; }
.couple-grid.no-photo .lead { margin-inline: auto; }
.couple-grid.no-photo .couple-names { justify-content: center; }
.dress-title.long { font-size: clamp(1.7rem, 4.6vw, 2.8rem); line-height: 1.15; }
