﻿/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg: #05040a;
  --bg-2: #0a0716;
  --ink: #f4f1ea;
  --ink-soft: rgba(244, 241, 234, 0.72);
  --ink-mute: rgba(244, 241, 234, 0.5);
  --gold: #e7c16b;
  --gold-bright: #f6d98a;
  --pink: #ff8fb1;
  --line: rgba(244, 241, 234, 0.1);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 800px at 15% -10%, rgba(26, 15, 46, 0.9), transparent 60%),
    radial-gradient(1000px 800px at 85% 110%, rgba(12, 18, 48, 0.8), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 40%, var(--bg) 100%);
  pointer-events: none;
}

body.is-locked { overflow: hidden; }
body.no-scroll { overflow: hidden; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0 0 0.6em; line-height: 1.1; }

.grad-gold {
  background: linear-gradient(135deg, #f6d98a 0%, #e7c16b 45%, #b28dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
  font-weight: 500;
}

.section-title {
  font-size: clamp(28px, 5vw, 52px);
  text-align: center;
  margin: 0 auto 32px;
  max-width: 18ch;
}

.section-hint {
  text-align: center;
  color: var(--ink-mute);
  font-size: 14px;
  margin: -18px 0 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease, opacity 0.3s ease;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-gold {
  background: linear-gradient(135deg, #f6d98a 0%, #e7c16b 100%);
  color: #1a1105;
  box-shadow: 0 10px 30px -8px rgba(231, 193, 107, 0.55), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -8px rgba(231, 193, 107, 0.7), inset 0 1px 0 rgba(255,255,255,0.5); }
.btn-ghost {
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(231, 193, 107, 0.5); }

.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 6s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

/* OPENING */
.opening {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(1200px 800px at 50% 40%, #0a0716 0%, #05040a 70%);
  transition: opacity 0.8s ease, transform 0.8s ease;
  overflow: hidden;
}
.opening.is-leaving { opacity: 0; transform: scale(1.03); pointer-events: none; }
.opening-inner { text-align: center; max-width: 720px; width: 100%; }

.open-line, .open-name, .open-sub, .open-cta {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.open-line.is-visible, .open-name.is-visible, .open-sub.is-visible, .open-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.open-line {
  font-family: var(--sans);
  font-size: clamp(11px, 1.6vw, 14px);
  letter-spacing: 0.4em;
  color: var(--ink-soft);
  margin: 12px 0;
  font-weight: 400;
}
.open-line[data-line="2"], .open-line[data-line="3"] { color: var(--gold); }
.open-name {
  font-family: var(--serif);
  font-size: clamp(64px, 16vw, 160px);
  font-weight: 600;
  line-height: 0.95;
  margin: 24px 0 12px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  text-shadow: 0 0 60px rgba(231, 193, 107, 0.35), 0 0 140px rgba(178, 141, 255, 0.25);
}
.open-heart {
  font-size: 0.5em;
  animation: heartbeat 1.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.18); }
  60% { transform: scale(0.96); }
}
.open-sub {
  font-family: var(--sans);
  font-size: clamp(12px, 1.8vw, 15px);
  letter-spacing: 0.32em;
  color: var(--gold);
  margin: 24px 0 40px;
  font-weight: 500;
}
.open-cta { margin-top: 16px; }
.skip-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: color 0.3s ease, border-color 0.3s ease;
  z-index: 2;
}
.skip-btn:hover { color: var(--ink); border-color: var(--gold); }

/* EXPERIENCE */
#experience { position: relative; z-index: 1; transition: opacity 0.6s ease; }
#experience.is-hidden { display: none; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* HERO */
.hero {
  min-height: 100vh;
  padding: clamp(60px, 10vh, 120px) 0 clamp(60px, 10vh, 100px);
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
}
.hero-wrap { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.hero-title {
  font-size: clamp(38px, 8vw, 84px);
  line-height: 1;
  max-width: 14ch;
  margin: 0;
}
.hero-title .heart {
  display: inline-block;
  font-size: 0.7em;
  margin-left: 6px;
  animation: heartbeat 1.6s ease-in-out infinite;
}
.hero-photo {
  position: relative;
  width: clamp(180px, 55vw, 260px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 6px;
  background: conic-gradient(from 180deg, #f6d98a, #b28dff, #ff8fb1, #f6d98a);
  box-shadow: 0 30px 60px -20px rgba(231, 193, 107, 0.5), 0 0 80px -20px rgba(178, 141, 255, 0.4);
  margin: 4px 0 8px;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bg);
}
.hero-photo-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 193, 107, 0.35), transparent 65%);
  filter: blur(20px);
  z-index: -1;
  animation: glow 4s ease-in-out infinite alternate;
}
@keyframes glow {
  from { opacity: 0.5; transform: scale(0.95); }
  to   { opacity: 1;   transform: scale(1.05); }
}
.hero-photo-fallback {
  display: none;
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a0f2e, #0c1230);
  align-items: center;
  justify-content: center;
  font-size: 60px;
}
.hero-photo.is-fallback .hero-photo-fallback { display: flex; }
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0;
  line-height: 1.7;
}
.hero-note {
  font-family: var(--hand);
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--pink);
  max-width: 30ch;
  margin: 0;
  line-height: 1.4;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.section { padding: clamp(70px, 12vh, 130px) 0; position: relative; }

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
.photo-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  text-align: left;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}
.photo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 193, 107, 0.4);
  box-shadow: 0 30px 50px -20px rgba(231, 193, 107, 0.25);
}
.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0f2e, #0c1230);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.photo-card:hover .photo-frame img { transform: scale(1.05); }
.photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink-mute);
  font-size: 32px;
  padding: 12px;
  text-align: center;
}
.photo-fallback small { font-size: 10px; letter-spacing: 0.08em; }
.photo-caption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
  padding: 0 14px 16px;
  letter-spacing: 0.02em;
}

/* BOND */
.bond-text {
  max-width: 62ch;
  margin: 0 auto;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
  color: var(--ink-soft);
}
.bond-text p {
  margin: 0 0 1.2em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.bond-text p.is-revealed { opacity: 1; transform: translateY(0); }
.bond-text p:first-child {
  color: var(--ink);
  font-style: italic;
  font-size: 1.1em;
}

/* WISHES */
.wishes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .wishes { grid-template-columns: 1fr 1fr; }
  .wish:first-child { grid-column: 1 / -1; }
}
.wish {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px 22px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  text-align: left;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.wish:hover { transform: translateY(-2px); border-color: rgba(231, 193, 107, 0.35); }
.wish-n {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold);
  opacity: 0.9;
  letter-spacing: 0.02em;
}
.wish-title {
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--ink);
  letter-spacing: 0.06em;
}
.wish-plus {
  font-family: var(--sans);
  font-size: 20px;
  color: var(--gold);
  transition: transform 0.4s ease;
}
.wish.is-open .wish-plus { transform: rotate(45deg); }
.wish-text {
  grid-column: 2 / -1;
  font-size: 14px;
  color: var(--ink-soft);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
  line-height: 1.6;
}
.wish.is-open .wish-text {
  max-height: 200px;
  opacity: 1;
  margin-top: 4px;
}

/* SECRET */
.secret-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.envelope {
  position: relative;
  width: 140px;
  height: 100px;
  margin: 10px 0 30px;
  transition: transform 0.5s ease;
}
.env-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #2a1a45, #150b26);
  border-radius: 6px;
  box-shadow: 0 20px 40px -10px rgba(231, 193, 107, 0.4);
  border: 1px solid rgba(231, 193, 107, 0.3);
}
.env-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 49.5%, rgba(231, 193, 107, 0.25) 50%, transparent 50.5%),
    linear-gradient(45deg, transparent 49.5%, rgba(231, 193, 107, 0.25) 50%, transparent 50.5%);
}
.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(180deg, #341f52, #1a0f2e);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
  transition: transform 0.6s ease;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border: 1px solid rgba(231, 193, 107, 0.25);
  border-bottom: none;
}
.envelope.is-open .env-flap { transform: rotateX(180deg); }
.env-seal {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f6d98a, #b8860b);
  color: #2a1a45;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.envelope.is-open .env-seal { opacity: 0; transition: opacity 0.3s; }
.letter {
  width: 100%;
  max-width: 640px;
  margin-top: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.letter.is-visible { opacity: 1; transform: translateY(0); }
.letter-paper {
  position: relative;
  padding: clamp(24px, 4vw, 42px);
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(231, 193, 107, 0.25);
  border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.letter-text {
  font-family: var(--hand);
  font-size: clamp(19px, 2.6vw, 24px);
  color: #f9edd7;
  line-height: 1.55;
  margin: 0 0 20px;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 40px;
}
.letter-skip { margin-top: 8px; font-size: 12px; padding: 10px 18px; }

/* CAKE */
.cake-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cake-stage {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 380px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 20px 0 30px;
}
.cake-glow {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 200px;
  background: radial-gradient(circle, rgba(246, 217, 138, 0.3), transparent 60%);
  filter: blur(30px);
  border-radius: 50%;
  animation: glowPulse 3s ease-in-out infinite alternate;
}
@keyframes glowPulse { from { opacity: 0.6; } to { opacity: 1; } }
.cake { position: relative; width: 260px; height: 220px; transition: filter 0.6s ease; }
.candles {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 5;
}
.candle {
  position: relative;
  width: 8px;
  height: 42px;
  background: linear-gradient(180deg, #f6d98a, #e7c16b);
  border-radius: 4px;
  box-shadow: inset -2px 0 0 rgba(0,0,0,0.15);
}
.flame {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 22px;
  background: radial-gradient(ellipse at 50% 80%, #fff7c2, #ffb347 40%, #ff5722 75%, transparent);
  border-radius: 50% 50% 45% 45%;
  filter: blur(0.5px);
  box-shadow: 0 0 18px 4px rgba(255, 179, 71, 0.7);
  animation: flicker 0.3s ease-in-out infinite alternate;
}
@keyframes flicker {
  0%   { transform: translateX(-50%) scale(1)   rotate(-2deg); opacity: 0.9; }
  100% { transform: translateX(-50%) scale(1.1) rotate(2deg);  opacity: 1; }
}
.cake.is-blown .flame {
  opacity: 0;
  transform: translateX(-50%) scale(0.2);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cake-frosting {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 40px;
  background: linear-gradient(180deg, #fde9ee 0%, #f6b9c7 100%);
  border-radius: 60% 60% 20% 20% / 80% 80% 20% 20%;
  box-shadow: inset 0 4px 0 rgba(255,255,255,0.6), 0 6px 12px -4px rgba(0,0,0,0.4);
  z-index: 3;
}
.cake-frosting::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 10%;
  right: 10%;
  height: 16px;
  background: radial-gradient(circle at 20% 50%, #f6b9c7 40%, transparent 41%),
              radial-gradient(circle at 40% 50%, #f6b9c7 40%, transparent 41%),
              radial-gradient(circle at 60% 50%, #f6b9c7 40%, transparent 41%),
              radial-gradient(circle at 80% 50%, #f6b9c7 40%, transparent 41%);
  background-size: 25% 100%;
  background-repeat: repeat-x;
}
.cake-body {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 110px;
  background: linear-gradient(180deg, #5a3a24 0%, #3d2414 100%);
  border-radius: 10px;
  z-index: 2;
  box-shadow: inset 0 -10px 20px rgba(0,0,0,0.3), inset 0 10px 20px rgba(255,255,255,0.06);
}
.cake-plate {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 20px;
  background: linear-gradient(180deg, #d0d0d8, #6c6c80);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 1;
}
.cake.is-blown { filter: brightness(0.7); }
.cake-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.cake-message {
  font-family: var(--serif);
  font-size: clamp(17px, 2.5vw, 22px);
  color: var(--gold-bright);
  letter-spacing: 0.05em;
  max-width: 30ch;
  margin: 30px auto 0;
  text-align: center;
  line-height: 1.5;
  animation: fadeIn 0.8s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* FINAL */
.final {
  padding: clamp(80px, 14vh, 160px) 0 clamp(60px, 10vh, 100px);
  text-align: center;
  background: radial-gradient(1000px 600px at 50% 50%, rgba(26,15,46,0.8), transparent 60%);
}
.final-title {
  font-size: clamp(30px, 6vw, 64px);
  line-height: 1.15;
  max-width: 16ch;
  margin: 0 auto 30px;
}
.final-sub {
  font-family: var(--sans);
  font-size: clamp(12px, 1.8vw, 15px);
  letter-spacing: 0.32em;
  color: var(--gold);
  margin: 0 0 36px;
  font-weight: 500;
}
.final-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* FOOTER */
.footer {
  padding: 40px 22px 60px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.footer p { margin: 0 0 6px; }
.footer-small { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.footer-small strong { color: var(--gold); font-weight: 500; }

/* MUSIC */
.music-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(10, 7, 22, 0.7);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.1em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.3s ease;
}
.music-btn:hover { border-color: var(--gold); }
.music-btn:active { transform: scale(0.97); }
.music-icon { font-size: 12px; color: var(--gold); }

/* CONFETTI + TOAST */
.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}
.toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(10, 7, 22, 0.95);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 2, 8, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}
.lightbox[hidden] { display: none; }
.lb-figure {
  margin: 0;
  max-width: min(92vw, 900px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.lb-frame {
  max-width: 100%;
  max-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0716;
}
.lb-frame img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  display: block;
}
.lb-caption {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(15px, 2vw, 18px);
  text-align: center;
  font-style: italic;
}
.lb-counter { color: var(--gold); font-size: 12px; letter-spacing: 0.2em; }
.lb-close, .lb-nav {
  position: absolute;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.3s, border-color 0.3s;
}
.lb-close:hover, .lb-nav:hover { border-color: var(--gold); background: rgba(231, 193, 107, 0.15); }
.lb-close { top: 20px; right: 20px; font-size: 16px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); font-size: 26px; }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); font-size: 26px; }
@media (max-width: 480px) {
  .lb-prev, .lb-next { width: 38px; height: 38px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-revealed { opacity: 1; transform: translateY(0); }

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .bond-text p { opacity: 1 !important; transform: none !important; }
}
