/* =========================================================
   Happy Anniversary — Anoj Sir & Sandhya Ma'am
   Premium dark theme · gold + soft pink accents
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --bg-0: #07060d;
  --bg-1: #0c0a18;
  --bg-2: #14101f;
  --bg-3: #1b1530;

  --text: #f4ecdf;
  --text-soft: #cbbfb0;
  --text-mute: #8a8195;

  --gold: #e9c87a;
  --gold-2: #f4d98c;
  --gold-deep: #b8923b;

  --pink: #ffb3c7;
  --pink-2: #ff7aa2;
  --pink-deep: #d24572;

  --rose-glow: rgba(255, 122, 162, 0.35);
  --gold-glow: rgba(233, 200, 122, 0.35);

  --border-glass: rgba(255, 255, 255, 0.10);
  --border-glass-strong: rgba(255, 255, 255, 0.18);

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-deep: 0 25px 60px rgba(0, 0, 0, 0.55);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;

  --maxw: 1200px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

/* ---------- Body / Background ---------- */
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(255, 122, 162, 0.10), transparent 60%),
    radial-gradient(1000px 600px at -10% 30%, rgba(233, 200, 122, 0.08), transparent 60%),
    radial-gradient(900px 500px at 50% 110%, rgba(178, 116, 255, 0.08), transparent 60%),
    var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, var(--bg-1), var(--bg-0));
  z-index: 9999;
  display: grid; place-items: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader__inner { text-align: center; }
.heart-pulse {
  width: 80px; height: 80px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 14px var(--rose-glow));
  animation: heartBeat 1.2s ease-in-out infinite;
}
.heart-pulse svg { width: 100%; height: 100%; fill: var(--pink-2); }
.preloader__text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--text-soft);
  letter-spacing: 0.5px;
  margin: 0;
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.18); }
  50% { transform: scale(0.95); }
  75% { transform: scale(1.1); }
}

/* ============================================
   FLOATING HEARTS + SPARKLES
   ============================================ */
.floating-hearts {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.floating-hearts .heart {
  position: absolute;
  bottom: -40px;
  font-size: 18px;
  opacity: 0;
  animation: floatUp linear forwards;
  filter: drop-shadow(0 0 6px var(--rose-glow));
  user-select: none;
}
@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0) rotate(0deg) scale(0.6); opacity: 0; }
  10%  { opacity: 0.85; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 60px)) rotate(25deg) scale(1.1); opacity: 0; }
}

.sparkle-canvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   BACKGROUND AUDIO + FLOATING TOGGLE
   ============================================ */
#bgMusic {
  position: absolute;
  width: 0; height: 0;
  opacity: 0;
  pointer-events: none;
}

.music-btn {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 50;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid var(--border-glass-strong);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 0 1px rgba(255, 215, 140, 0.06) inset;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  font-size: 13px; font-weight: 500; letter-spacing: 1px;
}
.music-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 14px 40px rgba(0,0,0,0.55), 0 0 24px var(--gold-glow);
}
.music-btn:active { transform: translateY(0); }

.music-btn__icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--pink));
  color: #2a1a0a;
  flex-shrink: 0;
}

.music-btn__waves { display: none; gap: 3px; align-items: end; height: 12px; }
.music-btn__waves span {
  display: block; width: 3px; height: 100%;
  background: linear-gradient(var(--gold), var(--pink-2));
  border-radius: 3px;
  animation: musicWave 0.9s ease-in-out infinite;
}
.music-btn__waves span:nth-child(2) { animation-delay: 0.15s; }
.music-btn__waves span:nth-child(3) { animation-delay: 0.3s; }
.music-btn.is-playing .music-btn__waves { display: inline-flex; }
@keyframes musicWave {
  0%, 100% { transform: scaleY(0.35); }
  50%      { transform: scaleY(1); }
}

@media (max-width: 600px) {
  .music-btn__label { display: none; }
  .music-btn { padding: 10px 12px; right: 14px; bottom: 14px; gap: 8px; }
  .music-btn__waves { height: 10px; }
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 36px;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 6, 13, 0.65);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(255,255,255,0.06);
  padding: 12px 36px;
}
.nav__brand {
  display: inline-flex; flex-direction: column; line-height: 1;
}
.nav__brand-mark {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--gold-2), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav__brand-sub {
  font-size: 10px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 4px;
}
.nav__links {
  display: flex; gap: 28px;
}
.nav__links a {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--pink));
  transition: width 0.4s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

@media (max-width: 760px) {
  .nav { padding: 14px 18px; }
  .nav.is-scrolled { padding: 10px 18px; }
  .nav__links { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 100px 24px 80px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: -3;
  overflow: hidden;
  background: var(--bg-0);
}
/* Blurred copy of the photo fills the frame edges so on portrait mobile
   screens (where we switch to `contain`) the sides never look empty. */
.hero__bg-blur {
  position: absolute; inset: -30px;
  background-image: url('anooj%20sandhya.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(40px) brightness(0.55) saturate(120%);
  transform: scale(1.1);
  z-index: 0;
}
.hero__bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
  z-index: 1;
  animation: kenBurns 22s ease-in-out infinite alternate;
  filter: saturate(108%);
  will-change: transform;
}
@keyframes kenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.06) translate(-1%, -1%); }
}

@media (min-width: 900px) {
  .hero__bg-img { object-position: center 20%; }
}
@media (min-width: 1400px) {
  .hero__bg-img { object-position: center 15%; }
}

/* MOBILE: show the FULL couple photo so neither face gets cropped. The
   blurred backdrop fills the empty space beautifully. */
@media (max-width: 768px) {
  .hero__bg-img {
    object-fit: contain;
    object-position: center 35%;
    animation: none;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,0.5));
  }
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(7,6,13,0.55) 0%, rgba(7,6,13,0.35) 35%, rgba(7,6,13,0.85) 100%),
    radial-gradient(60% 50% at 50% 50%, transparent 0%, rgba(7,6,13,0.55) 100%);
}
.hero__vignette {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.7) 100%);
}

.hero__content {
  max-width: 900px;
  position: relative;
}
.hero__eyebrow {
  font-size: 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 14px;
}
.hero__eyebrow::before, .hero__eyebrow::after {
  content: ''; width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero__title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 5.5rem);
  margin: 0 0 14px;
  line-height: 1.08;
  letter-spacing: 0.5px;
  text-shadow: 0 0 60px rgba(255, 200, 150, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__title-text {
  background: linear-gradient(180deg, #fff 0%, #ffe9d6 60%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__title .heart-emoji {
  font-size: 0.85em;
  -webkit-text-fill-color: var(--pink-2);
}
.heart-emoji {
  display: inline-block;
  color: var(--pink-2);
  -webkit-text-fill-color: var(--pink-2);
  filter: drop-shadow(0 0 10px var(--rose-glow));
  animation: heartBeat 1.6s ease-in-out infinite;
}
.heart-emoji.pink { color: #ff6f91; }

.hero__names {
  font-family: 'Great Vibes', 'Playfair Display', cursive;
  font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 4rem);
  margin: 0 0 18px;
  background: linear-gradient(135deg, var(--gold-2), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 1px;
}
.hero__names .amp {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  margin: 0 8px;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  opacity: 0.85;
}
.hero__sub {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--text-soft);
  margin: 0 0 36px;
  letter-spacing: 1.5px;
}

.hero__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border-glass-strong);
  backdrop-filter: blur(10px);
  color: var(--text);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hero__cta svg { transition: transform 0.4s var(--ease); }
.hero__cta:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 14px 30px rgba(0,0,0,0.4), 0 0 24px var(--gold-glow);
}
.hero__cta:hover svg { transform: translateY(4px); }

.scroll-indicator {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  display: grid; place-items: start center;
  padding-top: 6px;
}
.scroll-indicator__dot {
  width: 4px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(12px); opacity: 0; }
  100% { opacity: 0; }
}

/* ============================================
   SHARED SECTION
   ============================================ */
.section {
  position: relative;
  padding: 120px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.section__head { text-align: center; max-width: 760px; margin: 0 auto 70px; }
.section__eyebrow {
  font-size: 12px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px;
}
.section__title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin: 0 0 18px;
  line-height: 1.15;
  background: linear-gradient(180deg, #fff, #ffe2cc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section__title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-2), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section__lead {
  color: var(--text-soft);
  margin: 0;
  font-size: 1.02rem;
}

/* Glass card base */
.glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-soft);
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 0;
}
.timeline__line {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold) 10%, var(--pink-2) 50%, var(--gold) 90%, transparent);
  transform: translateX(-50%);
  filter: drop-shadow(0 0 8px var(--gold-glow));
}
.timeline__item {
  position: relative;
  width: 50%;
  padding: 24px 40px;
  box-sizing: border-box;
}
.timeline__item.left  { left: 0; padding-right: 60px; }
.timeline__item.right { left: 50%; padding-left: 60px; }

.timeline__item::before {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-2), var(--gold-deep));
  box-shadow: 0 0 0 4px rgba(7,6,13,1), 0 0 18px var(--gold-glow);
}
.timeline__item.left::before  { right: -8px; }
.timeline__item.right::before { left: -8px; }

.timeline__card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.timeline__card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-deep), 0 0 30px var(--gold-glow);
}
.timeline__img {
  aspect-ratio: 5/4;
  overflow: hidden;
  background: linear-gradient(135deg, #110b1a, #1a1230);
  position: relative;
  isolation: isolate;
}
/* Blurred copy of the same photo fills the frame so we never crop people
   out, regardless of the photo's aspect ratio. The real photo sits on top
   in `contain` mode so it's always shown in full. */
.timeline__img::before {
  content: '';
  position: absolute;
  inset: -24px;
  background-image: var(--src);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(32px) brightness(0.55) saturate(125%);
  z-index: -1;
  transform: scale(1.05);
}
.timeline__img img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 1;
  transition: transform 0.8s var(--ease);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.55));
}
.timeline__card:hover .timeline__img img { transform: scale(1.06); }
.timeline__body { padding: 22px 24px 26px; }
.timeline__year {
  display: inline-block;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.timeline__body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; margin: 0 0 8px; color: var(--text);
}
.timeline__body p { color: var(--text-soft); margin: 0; font-size: 0.95rem; }

@media (max-width: 760px) {
  .timeline__line { left: 22px; }
  .timeline__item, .timeline__item.left, .timeline__item.right {
    width: 100%;
    left: 0;
    padding: 14px 0 14px 50px;
  }
  .timeline__item.left::before, .timeline__item.right::before {
    left: 14px; right: auto;
  }
}

/* ============================================
   FAMILY GRID
   ============================================ */
.family-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .family-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .family-grid { grid-template-columns: 1fr; } }

.member {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.member:hover {
  transform: translateY(-8px);
  border-color: var(--pink-2);
  box-shadow: var(--shadow-deep), 0 0 30px var(--rose-glow);
}
.member__img-wrap {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, #110b1a, #1a1230);
}
.member__img-wrap::before {
  content: '';
  position: absolute; inset: -20px;
  background-image: var(--src);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(28px) brightness(0.55) saturate(120%);
  z-index: 0;
  transform: scale(1.05);
}
.member__img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7,6,13,0.92) 100%);
  pointer-events: none;
  z-index: 2;
}
.member__img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 1;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.55));
}
.member:hover .member__img-wrap img { transform: scale(1.08); filter: brightness(1.05); }

.member__body { padding: 20px 22px 24px; text-align: center; }
.member__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin: 0 0 4px;
  background: linear-gradient(135deg, var(--gold-2), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.member__role {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-mute); margin: 0 0 10px;
}
.member__quote {
  margin: 0; font-size: 0.92rem; color: var(--text-soft);
  font-style: italic; font-family: 'Playfair Display', serif;
}

/* ============================================
   GALLERY (MASONRY)
   ============================================ */
.masonry {
  column-count: 4;
  column-gap: 16px;
}
@media (max-width: 1024px) { .masonry { column-count: 3; } }
@media (max-width: 700px)  { .masonry { column-count: 2; } }
@media (max-width: 420px)  { .masonry { column-count: 1; } }

.masonry__item {
  break-inside: avoid;
  margin: 0 0 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  border: 1px solid var(--border-glass);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  background: linear-gradient(135deg, #110b1a, #1a1230);
  isolation: isolate;
  aspect-ratio: 4/5;
}
.masonry__item--wide { aspect-ratio: 4/3; }
.masonry__item--square { aspect-ratio: 1/1; }

.masonry__item::before {
  content: '';
  position: absolute; inset: -20px;
  background-image: var(--src);
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.5) saturate(125%);
  z-index: 0;
  transform: scale(1.05);
}
.masonry__item img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.55));
  transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
}
.masonry__item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(255,122,162,0.15) 100%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.masonry__item:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5), 0 0 24px var(--gold-glow);
}
.masonry__item:hover img { transform: scale(1.06); filter: brightness(1.06) saturate(110%); }
.masonry__item:hover::after { opacity: 1; }

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(3, 2, 8, 0.92);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 40px 60px;
}
.lightbox.is-open { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__img {
  max-width: 100%; max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px var(--rose-glow);
  animation: zoomIn 0.4s var(--ease);
}
@keyframes zoomIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.lightbox__close, .lightbox__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-glass-strong);
  color: var(--text);
  font-size: 22px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.05);
}
.lightbox__close {
  top: 24px; right: 24px; transform: none;
  font-size: 28px;
}
.lightbox__close:hover { transform: scale(1.05); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }

@media (max-width: 600px) {
  .lightbox { padding: 20px; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* ============================================
   MESSAGE
   ============================================ */
.message {
  position: relative;
  padding: 140px 24px;
  isolation: isolate;
}
.message__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(255,122,162,0.18), transparent 70%),
    radial-gradient(50% 40% at 50% 80%, rgba(233,200,122,0.12), transparent 70%);
}
.message__card {
  max-width: 820px;
  margin: 0 auto;
  padding: 70px 50px;
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.message__card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--gold), var(--pink-2), var(--gold));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.45;
  pointer-events: none;
}
.message__quote-mark {
  position: absolute;
  top: 10px; left: 30px;
  font-family: 'Playfair Display', serif;
  font-size: 140px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
}
.message__title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin: 0 0 28px;
  color: var(--gold-2);
  letter-spacing: 1px;
}
.message__body {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text);
  line-height: 1.85;
}
.message__greeting {
  margin: 0 0 18px;
  font-style: italic;
  color: var(--gold-2);
}
.typed-wrap {
  min-height: 220px;
  margin: 0 auto;
  max-width: 640px;
}
.typed {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text);
  font-style: italic;
}
.typed .caret {
  display: inline-block;
  width: 2px; height: 1.1em;
  background: var(--pink-2);
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
  box-shadow: 0 0 8px var(--rose-glow);
}
@keyframes blink { 50% { opacity: 0; } }

.message__sign {
  margin: 30px 0 0;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  background: linear-gradient(135deg, var(--gold-2), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 600px) {
  .message__card { padding: 50px 26px; }
  .message__quote-mark { font-size: 90px; left: 16px; }
}

/* ============================================
   QR / VISIT SECTION
   ============================================ */
.qr {
  padding: 100px 24px;
}
.qr__card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 56px 56px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.qr__card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--gold), var(--pink-2), var(--gold));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.4;
  pointer-events: none;
}
.qr__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 14px;
  line-height: 1.2;
  background: linear-gradient(180deg, #fff, #ffe2cc);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.qr__title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-2), var(--pink));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.qr__lead {
  color: var(--text-soft);
  margin: 0 0 22px;
  font-size: 1rem;
  max-width: 460px;
}
.qr__link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px; letter-spacing: 1.5px;
  border: 1px solid var(--border-glass-strong);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  color: var(--text);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.qr__link:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(0,0,0,0.4), 0 0 22px var(--gold-glow);
}
.qr__hint {
  margin: 22px 0 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold-2);
}
.qr__right {
  display: flex; justify-content: center;
}
.qr__frame {
  position: relative;
  padding: 22px 22px 60px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fff7ea);
  box-shadow:
    0 30px 60px rgba(0,0,0,0.5),
    0 0 40px var(--gold-glow),
    0 0 0 1px rgba(255,255,255,0.06) inset;
  text-align: center;
  transform: rotate(-2deg);
  transition: transform 0.5s var(--ease);
}
.qr__frame:hover { transform: rotate(0deg) scale(1.03); }
.qr__code {
  width: 220px; height: 220px;
  display: grid; place-items: center;
  margin: 0 auto;
}
.qr__code img, .qr__code canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  border-radius: 6px;
}
.qr__brand {
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  text-align: center;
  font-family: 'Playfair Display', serif;
}
.qr__brand span {
  display: block;
  font-size: 18px;
  letter-spacing: 3px;
  color: #2a1a0a;
  font-weight: 600;
}
.qr__brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 6px;
  color: #8a6a3a;
  text-transform: uppercase;
  margin-top: 2px;
}

@media (max-width: 820px) {
  .qr__card {
    grid-template-columns: 1fr;
    padding: 44px 28px;
    gap: 36px;
    text-align: center;
  }
  .qr__lead { margin-left: auto; margin-right: auto; }
}

/* ============================================
   ENDING
   ============================================ */
.ending {
  text-align: center;
  padding: 140px 24px 60px;
  position: relative;
}
.ending__inner {
  max-width: 720px;
  margin: 0 auto;
}
.ending__title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin: 0 0 14px;
  background: linear-gradient(135deg, #fff, var(--gold-2), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ending__sub {
  color: var(--text-soft);
  margin: 0 0 36px;
  font-size: 1.05rem;
}
.ending__btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
  color: #2a1a0a;
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold-2), var(--pink));
  box-shadow: 0 14px 40px rgba(0,0,0,0.45), 0 0 30px var(--rose-glow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ending__btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55), 0 0 40px var(--rose-glow);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  margin-top: 80px;
  padding: 28px 16px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--text-mute);
  font-size: 13px;
  letter-spacing: 0.5px;
}
.footer strong {
  background: linear-gradient(135deg, var(--gold-2), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================
   RESPONSIVE FINE-TUNING
   ============================================ */

/* Tablet */
@media (max-width: 980px) {
  .section { padding: 90px 24px; }
  .section__head { margin-bottom: 50px; }
  .qr { padding: 80px 24px; }
  .message { padding: 100px 22px; }
  .ending { padding: 110px 22px 40px; }
  .timeline__card { border-radius: var(--radius-md); }
}

/* Phones */
@media (max-width: 640px) {
  body { line-height: 1.55; }

  .section { padding: 70px 18px; }
  .section__head { margin-bottom: 40px; }
  .section__lead { font-size: 0.95rem; }

  .hero { padding: 100px 18px 80px; min-height: 100svh; }
  .hero__eyebrow { letter-spacing: 4px; font-size: 10px; margin-bottom: 14px; }
  .hero__eyebrow::before, .hero__eyebrow::after { width: 20px; }
  .hero__title { gap: 8px; line-height: 1.1; margin-bottom: 10px; }
  .hero__title .heart-emoji { font-size: 0.7em; }
  .hero__names { margin-bottom: 12px; }
  .hero__sub { letter-spacing: 1px; font-size: 0.9rem; margin-bottom: 28px; }
  .hero__cta { padding: 12px 22px; font-size: 12px; letter-spacing: 1.5px; }
  .scroll-indicator { display: none; }

  .timeline { padding: 0; }
  .timeline__body { padding: 18px 18px 22px; }
  .timeline__body h3 { font-size: 1.2rem; }
  .timeline__body p  { font-size: 0.9rem; }

  .family-grid { gap: 16px; }
  .member__body { padding: 16px 16px 20px; }
  .member__name { font-size: 1.25rem; }

  .masonry { column-gap: 12px; }
  .masonry__item { margin-bottom: 12px; border-radius: 14px; }

  .message { padding: 80px 18px; }
  .message__card { padding: 44px 22px; border-radius: 24px; }
  .message__title { margin-bottom: 22px; }

  .qr { padding: 70px 18px; }
  .qr__card { padding: 36px 22px; gap: 28px; border-radius: 24px; }
  .qr__frame { padding: 18px 18px 50px; }
  .qr__code { width: 180px; height: 180px; }

  .ending { padding: 90px 18px 30px; }
  .ending__sub { font-size: 0.95rem; margin-bottom: 28px; }
  .ending__btn { padding: 14px 26px; font-size: 12px; letter-spacing: 1.5px; }

  .footer { margin-top: 60px; padding: 22px 14px; font-size: 12px; }

  .lightbox__close { top: 16px; right: 16px; width: 42px; height: 42px; font-size: 24px; }
}

/* Small phones */
@media (max-width: 380px) {
  .nav { padding: 12px 14px; }
  .nav__brand-mark { font-size: 18px; }
  .section { padding: 60px 14px; }
  .timeline__body h3 { font-size: 1.1rem; }
  .qr__code { width: 160px; height: 160px; }
}

/* Large desktops — widen container slightly */
@media (min-width: 1500px) {
  :root { --maxw: 1320px; }
}

/* Touch devices: disable hover-driven scale to avoid sticky-hover */
@media (hover: none) {
  .timeline__card:hover,
  .member:hover,
  .masonry__item:hover { transform: none; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .hero__bg { animation: none; }
}
