/* ===========================
   VANAPA — 84 YEARS OF LOVE & ADVENTURE
   Award-Winning Warm Luxury Design

   1.  CSS CUSTOM PROPERTIES
   2.  RESET & BASE
   3.  TYPOGRAPHY
   4.  LAYOUT UTILITIES
   5.  NAVIGATION
   6.  HERO SECTION
   7.  DECORATIVE ART
   8.  STORY SECTION
   9.  GALLERY SECTION
   10. TIMELINE SECTION
   11. BIRTHDAY SECTION
   12. MESSAGES SECTION
   13. PHOTO STRIP
   14. FOOTER
   15. ANIMATIONS & KEYFRAMES
   16. RESPONSIVE
   17. ADMIN PANEL
=========================== */

/* ===========================
   1. CSS CUSTOM PROPERTIES
=========================== */
:root {
  /* Colors */
  --bg-primary:    #0E0905;
  --bg-secondary:  #160D07;
  --bg-card:       rgba(255, 248, 235, 0.04);
  --bg-card-hover: rgba(255, 248, 235, 0.07);

  --gold:          #C9A84C;
  --gold-light:    #E4C76B;
  --gold-pale:     #F5E6B8;
  --gold-glow:     rgba(201, 168, 76, 0.18);
  --gold-glow-lg:  rgba(201, 168, 76, 0.30);

  --rose:          #D4827D;
  --rose-light:    #E8A8A3;
  --rose-glow:     rgba(212, 130, 125, 0.15);

  --cream:         #FAF0E6;
  --cream-dim:     rgba(250, 240, 230, 0.7);
  --cream-muted:   rgba(250, 240, 230, 0.45);
  --cream-faint:   rgba(250, 240, 230, 0.12);

  --text-primary:   #FAF0E6;
  --text-secondary: rgba(250, 240, 230, 0.65);
  --text-muted:     rgba(250, 240, 230, 0.40);

  /* Fonts */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-script:  'Great Vibes', cursive;
  --font-body:    'Lato', system-ui, sans-serif;

  /* Layout */
  --max-width:      1280px;
  --section-pad:    clamp(80px, 11vw, 150px);
  --radius:         16px;
  --radius-sm:      8px;
  --radius-lg:      24px;

  /* Motion */
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:       cubic-bezier(0, 0, 0.2, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition:     0.35s var(--ease);
  --transition-slow: 0.65s var(--ease);
}

/* ===========================
   2. RESET & BASE
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* ===========================
   3. TYPOGRAPHY
=========================== */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  position: relative;
  padding-left: 36px;
}
.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--gold);
  transform: translateY(-50%);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 28px;
}
.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-light);
}
.section-title--center {
  text-align: center;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

/* ===========================
   4. LAYOUT UTILITIES
=========================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ===========================
   5. NAVIGATION
=========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 48px;
  transition: background var(--transition-slow), padding var(--transition), box-shadow var(--transition);
}
.nav--scrolled {
  background: rgba(14, 9, 5, 0.92);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  padding: 16px 48px;
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.12);
}

.nav__container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo {
  flex-shrink: 0;
  margin-right: auto;
}
.nav__logo-script {
  font-family: var(--font-script);
  font-size: 34px;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav__links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav__link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
  transition: color var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav__link:hover { color: var(--gold); }
.nav__link:hover::after { width: 100%; }

.btn-nav {
  padding: 10px 22px;
  border: 1px solid var(--gold);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-nav:hover {
  background: var(--gold);
  color: var(--bg-primary);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: all var(--transition);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(14, 9, 5, 0.98);
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(32px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right 0.4s var(--ease-out);
  border-left: 1px solid var(--gold-glow);
}
.mobile-menu.is-open { right: 0; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 32px; text-align: center; }
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--cream-dim);
  transition: color var(--transition);
}
.mobile-menu__link:hover { color: var(--gold); }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  background: var(--gold);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.18);
  transform: translateX(-110%);
  transition: transform var(--transition);
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(201, 168, 76, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  background: transparent;
  color: var(--cream-dim);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  border-radius: 100px;
  border: 1px solid var(--cream-faint);
  transition: all var(--transition);
}
.btn-ghost:hover {
  border-color: var(--cream-dim);
  color: var(--cream);
  transform: translateY(-2px);
}

/* ===========================
   6. HERO SECTION
=========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 160px 40px 100px;
}

.hero__bg-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeSlideUp 0.9s var(--ease-out) 0.3s forwards;
}

.hero__number-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: -20px;
}
.hero__number {
  font-family: var(--font-display);
  font-size: clamp(160px, 28vw, 320px);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--gold) 40%, var(--rose-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: fadeSlideUp 1.1s var(--ease-out) 0.1s forwards;
  display: block;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeSlideUp 0.9s var(--ease-out) 0.5s forwards;
}
.hero__title-line {
  display: inline;
  color: var(--cream);
}
.hero__title-script {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-light);
}

.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 32px auto;
  opacity: 0;
  animation: fadeSlideUp 0.9s var(--ease-out) 0.65s forwards;
}
.hero__divider-line {
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero__divider-icon {
  color: var(--gold);
  font-size: 14px;
}

.hero__name {
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeSlideUp 0.9s var(--ease-out) 0.75s forwards;
}
.hero__name-label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 8px;
}
.hero__name-script {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(56px, 9vw, 100px);
  color: var(--gold);
  line-height: 1.0;
}

.hero__sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeSlideUp 0.9s var(--ease-out) 0.9s forwards;
}

.hero__ctas {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideUp 0.9s var(--ease-out) 1.05s forwards;
}

/* Hero frame decoration */
.hero__frame {
  position: absolute;
  inset: 40px;
  pointer-events: none;
  z-index: 1;
}
.hero__frame-svg {
  width: 100%;
  height: 100%;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s ease 2s forwards;
}
.hero__scroll-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ===========================
   7. DECORATIVE ART
=========================== */

/* Orbs — glowing blurs */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
}

.orb--gold { background: radial-gradient(circle, var(--gold-glow-lg) 0%, transparent 70%); }
.orb--rose  { background: radial-gradient(circle, var(--rose-glow) 0%, transparent 70%); }

.orb--1 { width: 700px; height: 700px; top: -200px; right: -150px; opacity: 0.8; }
.orb--2 { width: 500px; height: 500px; bottom: -100px; left: -100px; opacity: 0.6; }
.orb--3 { width: 300px; height: 300px; top: 40%; left: 30%; opacity: 0.4; filter: blur(60px); }

.orb--gallery { width: 800px; height: 800px; top: 0; left: 50%; transform: translateX(-50%); opacity: 0.5; }
.orb--timeline { width: 600px; height: 600px; bottom: 0; right: -200px; opacity: 0.4; }
.orb--b1 { width: 900px; height: 900px; top: -200px; left: -200px; opacity: 0.6; }
.orb--b2 { width: 600px; height: 600px; bottom: 0; right: -100px; opacity: 0.5; }
.orb--b3 { width: 400px; height: 400px; top: 50%; left: 50%; opacity: 0.3; filter: blur(120px); }
.orb--footer { width: 600px; height: 600px; top: -100px; left: 50%; transform: translateX(-50%); opacity: 0.5; }

/* Grid overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Noise texture */
.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Blob shapes */
.blob {
  position: absolute;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.12;
}
.blob--rose  { background: var(--rose); }
.blob--gold  { background: var(--gold); }
.blob--espresso { background: #3A1F0A; opacity: 0.6; filter: blur(60px); }

.blob--1 { width: 600px; height: 500px; top: -100px; right: -200px; animation: blob-morph 9s ease-in-out infinite; }
.blob--2 { width: 400px; height: 350px; bottom: 0; left: -100px; animation: blob-morph 11s ease-in-out infinite reverse; }
.blob--3 { width: 700px; height: 500px; top: 0; left: 0; animation: blob-morph 14s ease-in-out infinite; }
.blob--4 { width: 500px; height: 400px; top: 0; right: -150px; animation: blob-morph 10s ease-in-out infinite; }
.blob--5 { width: 350px; height: 300px; bottom: 0; left: -50px; animation: blob-morph 12s ease-in-out infinite reverse; }

/* Rose petals canvas */
.petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.petal {
  position: absolute;
  top: -20px;
  font-size: 18px;
  opacity: 0;
  animation: petalFall linear infinite;
}

/* ===========================
   8. STORY SECTION
=========================== */
.story {
  position: relative;
  padding: var(--section-pad) 40px;
  overflow: hidden;
}
.story__bg-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.story__container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story__image-col {
  position: relative;
}

.story__photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.story__photo-border {
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--gold), var(--rose), var(--gold));
  z-index: 0;
  opacity: 0.5;
}
.story__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  filter: sepia(15%) saturate(1.1);
  transition: transform var(--transition-slow);
}
.story__photo-frame:hover .story__photo { transform: scale(1.03); }

.story__photo-badge {
  position: absolute;
  bottom: 24px;
  right: -20px;
  z-index: 2;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: var(--radius);
  padding: 16px 24px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.story__photo-badge-year {
  display: block;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--bg-primary);
  line-height: 1;
}
.story__photo-badge-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(14, 9, 5, 0.7);
}

/* Floating stat cards */
.story__stat {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.story__stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.story__stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-top: 6px;
}
.story__stat--1 { top: 20px;  left: -40px; }
.story__stat--2 { bottom: 60px; left: -30px; }

.story__text-col {}

.story__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
.story__text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
}

.story__signature {
  border-top: 1px solid var(--cream-faint);
  padding-top: 28px;
}
.story__signature-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-style: italic;
}
.story__signature-names {
  font-family: var(--font-script);
  font-size: 40px;
  color: var(--gold);
  line-height: 1;
}

/* Animate state */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate]:nth-child(2) { transition-delay: 0.08s; }
[data-animate]:nth-child(3) { transition-delay: 0.16s; }
[data-animate]:nth-child(4) { transition-delay: 0.24s; }
[data-animate]:nth-child(5) { transition-delay: 0.32s; }

/* ===========================
   9. GALLERY SECTION
=========================== */
.gallery {
  position: relative;
  padding: var(--section-pad) 40px;
  overflow: hidden;
  background: var(--bg-secondary);
}
.gallery__bg-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gallery__header {
  max-width: 700px;
  margin: 0 auto 64px;
  text-align: center;
}

.gallery__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  grid-auto-flow: dense;
  gap: 16px;
}

/* Cards */
.gallery__card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}
.gallery__card--featured {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.gallery__card-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #2A1A0E, #1A0E06);
}

.gallery__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  filter: sepia(20%) saturate(1.1) brightness(0.85);
}
.gallery__card:hover .gallery__card-img {
  transform: scale(1.08);
  filter: sepia(5%) saturate(1.15) brightness(0.9);
}

/* Image overlay — appears on hover */
.gallery__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 9, 5, 0.95) 0%, rgba(14, 9, 5, 0.4) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.gallery__card:hover .gallery__card-overlay { opacity: 1; }

/* Always visible bottom gradient on featured cards */
.gallery__card--featured .gallery__card-overlay {
  background: linear-gradient(to top, rgba(14, 9, 5, 0.9) 0%, rgba(14, 9, 5, 0.2) 60%, transparent 100%);
  opacity: 1;
}

.gallery__card-overlay-content {
  transform: translateY(12px);
  transition: transform 0.4s var(--ease);
}
.gallery__card:hover .gallery__card-overlay-content {
  transform: translateY(0);
}

.gallery__card-country {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.gallery__card-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 8px;
}
.gallery__card-desc {
  font-size: 13px;
  color: var(--cream-dim);
  line-height: 1.6;
  margin-bottom: 10px;
  display: none;
}
.gallery__card--featured .gallery__card-desc { display: block; }
.gallery__card-year {
  font-size: 11px;
  color: var(--rose-light);
  font-style: italic;
}

.gallery__cta {
  text-align: center;
  margin-top: 56px;
}
.gallery__cta-text {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-style: italic;
  color: var(--text-secondary);
}

/* ===========================
   10. TIMELINE SECTION
=========================== */
.timeline {
  position: relative;
  padding: var(--section-pad) 40px;
  overflow: hidden;
}
.timeline__bg-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.timeline__header {
  max-width: 700px;
  margin: 0 auto 80px;
  text-align: center;
}

.timeline__track {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
}

.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), var(--rose), var(--gold), transparent);
  transform: translateX(-50%);
}

.timeline__item {
  display: flex;
  align-items: center;
  margin-bottom: 72px;
  position: relative;
}

.timeline__item--left {
  flex-direction: row;
  padding-right: calc(50% + 56px);
}
.timeline__item--right {
  flex-direction: row-reverse;
  padding-left: calc(50% + 56px);
}

.timeline__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg-primary);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px var(--gold-glow);
  z-index: 2;
  flex-shrink: 0;
}

.timeline__card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.timeline__card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, 0.28);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.timeline__card-img-wrap {
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #2A1A0E, #1A0E06);
}
.timeline__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  filter: sepia(15%) saturate(1.1);
}
.timeline__card:hover .timeline__card-img { transform: scale(1.06); }

.timeline__card-body {
  padding: 24px 28px;
}
.timeline__card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.timeline__card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 10px;
  line-height: 1.2;
}
.timeline__card-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ===========================
   11. BIRTHDAY SECTION
=========================== */
.birthday {
  position: relative;
  padding: var(--section-pad) 40px;
  overflow: hidden;
  background: var(--bg-secondary);
}
.birthday__bg-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.birthday__confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -10px;
  font-size: 20px;
  opacity: 0;
  animation: confettiFall linear infinite;
}

.birthday__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.birthday__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: block;
}

.birthday__number-display {
  margin-bottom: 24px;
}
.birthday__big-num {
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 260px);
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--gold-pale), var(--gold), var(--rose-light), var(--gold));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease infinite;
  display: block;
}

.birthday__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 24px;
}
.birthday__name {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(60px, 10vw, 120px);
  color: var(--gold);
  line-height: 1.0;
  font-weight: 400;
}

.birthday__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 32px auto;
}
.birthday__divider-line {
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose), transparent);
}
.birthday__divider-rose { font-size: 22px; }

.birthday__message {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 24px;
}
.birthday__message--italic {
  font-style: italic;
  color: var(--cream-dim);
}

.birthday__wishes {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}
.birthday__wish-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: var(--radius);
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.birthday__wish-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 16px 48px var(--gold-glow);
}
.birthday__wish-icon { font-size: 28px; }
.birthday__wish-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

/* ===========================
   12. MESSAGES SECTION
=========================== */
.messages {
  position: relative;
  padding: var(--section-pad) 40px;
  overflow: hidden;
}
.messages__bg-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.messages__header {
  max-width: 700px;
  margin: 0 auto 64px;
  text-align: center;
}

.messages__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
/* 5-sibling layout: first row 3, second row 2 centred */
.messages__grid--five {
  grid-template-columns: repeat(3, 1fr);
}
.messages__grid--five .message-card:nth-child(4) {
  grid-column: 1;
}
.messages__grid--five .message-card:nth-child(4),
.messages__grid--five .message-card:nth-child(5) {
  grid-column: span 1;
}
/* Centre the last two cards on the second row */
.messages__grid--five {
  grid-template-columns: repeat(6, 1fr);
}
.messages__grid--five .message-card:nth-child(1) { grid-column: 1 / span 2; }
.messages__grid--five .message-card:nth-child(2) { grid-column: 3 / span 2; }
.messages__grid--five .message-card:nth-child(3) { grid-column: 5 / span 2; }
.messages__grid--five .message-card:nth-child(4) { grid-column: 2 / span 2; }
.messages__grid--five .message-card:nth-child(5) { grid-column: 4 / span 2; }

.message-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.message-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-glow), transparent);
  transition: opacity var(--transition);
  opacity: 0;
}
.message-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 168, 76, 0.25);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}
.message-card:hover::before { opacity: 1; }

.message-card--featured {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.06) 0%, rgba(212, 130, 125, 0.04) 100%);
  border-color: rgba(201, 168, 76, 0.22);
  margin-top: -20px;
}

.message-card__quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 700;
  line-height: 0.5;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: 20px;
}

.message-card__text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
  color: var(--cream-dim);
  line-height: 1.85;
  margin-bottom: 28px;
}

.message-card__author {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--cream-faint);
  padding-top: 24px;
}
.message-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
  background: linear-gradient(135deg, #2A1A0E, #1A0E06);
}
.message-card__name {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--cream);
  margin-bottom: 2px;
}
.message-card__relation {
  display: block;
  font-size: 12px;
  color: var(--gold);
  font-style: italic;
}

/* ===========================
   13. PHOTO STRIP
=========================== */
.photostrip {
  overflow: hidden;
  padding: 48px 0;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(201, 168, 76, 0.08);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.photostrip__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: stripScroll 30s linear infinite;
}
.photostrip__track:hover { animation-play-state: paused; }

.photostrip__item {
  flex-shrink: 0;
  width: 260px;
  height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #2A1A0E, #1A0E06);
}
.photostrip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(20%) saturate(1.1);
  transition: transform 0.4s var(--ease);
}
.photostrip__item:hover img { transform: scale(1.05); }

/* ===========================
   14. FOOTER
=========================== */
.footer {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(80px, 10vw, 140px) 40px 48px;
  background: var(--bg-primary);
}
.footer__bg-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.footer__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.footer__name {
  font-family: var(--font-script);
  font-size: clamp(64px, 10vw, 120px);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 36px;
}

.footer__rose-row {
  font-size: 20px;
  margin-bottom: 36px;
  opacity: 0.7;
}

.footer__dedication {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 20px);
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 64px;
}

.footer__bottom {
  border-top: 1px solid var(--cream-faint);
  padding-top: 28px;
}
.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===========================
   15. ANIMATIONS & KEYFRAMES
=========================== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes blob-morph {
  0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  33%  { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
  66%  { border-radius: 30% 70% 30% 70% / 60% 40% 60% 40%; }
}

@keyframes petalFall {
  0%   { opacity: 0; transform: translateY(-20px) rotate(0deg) translateX(0); }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(110vh) rotate(720deg) translateX(80px); }
}

@keyframes confettiFall {
  0%   { opacity: 0; transform: translateY(-20px) rotate(0deg); }
  10%  { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(110vh) rotate(400deg); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes stripScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--gold-glow); }
  50%       { box-shadow: 0 0 0 10px var(--gold-glow), 0 0 0 4px var(--gold-glow-lg); }
}

/* Timeline dot pulse animation */
.timeline__dot { animation: dotPulse 2.5s ease-in-out infinite; }

/* ===========================
   16. RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .story__container { gap: 48px; }
  .messages__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .messages__grid .message-card--featured { margin-top: 0; }

  .timeline__item--left  { padding-right: calc(50% + 40px); }
  .timeline__item--right { padding-left:  calc(50% + 40px); }
}

@media (max-width: 900px) {
  .nav__links, .btn-nav { display: none; }
  .nav__burger { display: flex; }

  .story__container {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .story__image-col { max-width: 400px; margin: 0 auto; }
  .story__stat--1 { left: -10px; }
  .story__stat--2 { left: -10px; }

  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .gallery__card--featured { grid-column: span 2; }

  .timeline__line { display: none; }
  .timeline__item,
  .timeline__item--left,
  .timeline__item--right {
    flex-direction: column;
    padding: 0;
    margin-bottom: 40px;
  }
  .timeline__dot { display: none; }

  .messages__grid { grid-template-columns: 1fr; }
  .message-card--featured { margin-top: 0; }
}

@media (max-width: 600px) {
  .nav { padding: 20px 24px; }
  .nav--scrolled { padding: 14px 24px; }

  .hero { padding: 140px 24px 80px; }
  .hero__ctas { flex-direction: column; align-items: center; }
  .hero__frame { inset: 16px; }

  .story, .gallery, .timeline, .birthday, .messages {
    padding: 80px 24px;
  }

  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__card--featured { grid-column: 1; aspect-ratio: 3/2; }

  .birthday__wishes { flex-direction: column; align-items: center; }
  .birthday__wish-card { width: 200px; }

  .story__photo-badge { right: 8px; }
  .story__stat--1, .story__stat--2 { left: 0; }

  .footer { padding: 80px 24px 40px; }
}

/* ===========================
   17. ADMIN PANEL OVERLAY
=========================== */
[contenteditable="true"] {
  cursor: text !important;
  outline: 2px dashed rgba(201, 168, 76, 0.6) !important;
  outline-offset: 4px !important;
  border-radius: 4px !important;
}
