/* ========== CSS Variables & Reset ========== */
:root {
  --g1: #e8c363;
  --g2: #d4a850;
  --g3: #c49a3c;
  --b1: #1a1415;
  --b2: #130e10;
  --b3: #0d090b;
  --text-main: #e8ddd4;
  --text-strong: #faf3e8;
  --text-muted: #b0a398;
  --text-soft: #9a8b7a;
  --text-faint: #8a7a68;
  --text-dim: #5a4e42;
  --accent-rgb: 232, 195, 99;
  --accent-deep-rgb: 212, 168, 80;
  --accent-warm-rgb: 200, 140, 60;
  --surface-rgb: 13, 9, 11;
  --surface-soft-rgb: 19, 14, 16;
  --surface-hero-top: #1c1416;
  --surface-hero-mid: #100b0d;
  --surface-hero-bottom: #0d090b;
  --hero-text-rgb: 255, 255, 255;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(212, 168, 80, 0.08);
  --shadow-glow: rgba(232, 195, 99, 0.3);
}

body[data-theme='coral-breeze'] {
  --g1: #d98074;
  --g2: #5d7ea6;
  --g3: #fbf2ea;
  --b1: #f7ece4;
  --b2: #efe7df;
  --b3: #f4ede7;
  --text-main: #5a6173;
  --text-strong: #3d4d67;
  --text-muted: #7b8193;
  --text-soft: #7d8598;
  --text-faint: #9a9fb0;
  --text-dim: #b2b4c0;
  --accent-rgb: 255, 141, 123;
  --accent-deep-rgb: 93, 126, 166;
  --accent-warm-rgb: 251, 242, 234;
  --surface-rgb: 244, 237, 231;
  --surface-soft-rgb: 247, 240, 235;
  --surface-hero-top: #ece3da;
  --surface-hero-mid: #f4ede7;
  --surface-hero-bottom: #efe5dc;
  --hero-text-rgb: 93, 126, 166;
  --glass-bg: rgba(255, 250, 246, 0.9);
  --glass-border: rgba(170, 155, 147, 0.22);
  --shadow-glow: rgba(217, 128, 116, 0.16);
}

body[data-theme='coral-breeze'] {
  background:
    radial-gradient(circle at 12% 10%, rgba(217, 128, 116, 0.12), transparent 18%),
    radial-gradient(circle at 88% 14%, rgba(93, 126, 166, 0.1), transparent 20%),
    radial-gradient(circle at 1px 1px, rgba(150, 136, 128, 0.05) 1px, transparent 0),
    linear-gradient(180deg, #f7eee6 0%, #f3ebe4 38%, #efe6df 100%);
  background-size: auto, auto, 22px 22px, auto;
}

body[data-theme='coral-breeze']::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.28), transparent 20%),
    radial-gradient(circle at 85% 18%, rgba(93, 126, 166, 0.05), transparent 18%),
    radial-gradient(circle at 18% 78%, rgba(217, 128, 116, 0.05), transparent 18%),
    repeating-linear-gradient(45deg, rgba(160, 145, 136, 0.022) 0 2px, transparent 2px 18px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 18px);
}

body[data-theme='coral-breeze'] nav {
  background: rgba(251, 246, 241, 0.78);
  border-bottom-color: rgba(160, 145, 136, 0.12);
  box-shadow: 0 12px 30px rgba(149, 133, 123, 0.08);
}

body[data-theme='coral-breeze'] nav.scrolled {
  background: rgba(251, 246, 241, 0.94);
  border-bottom-color: rgba(160, 145, 136, 0.16);
  box-shadow: 0 18px 36px rgba(149, 133, 123, 0.12);
}

body[data-theme='coral-breeze'] nav .logo {
  color: var(--g1);
  text-shadow: none;
}

body[data-theme='coral-breeze'] nav .nav-links a {
  color: #746f7d;
}

body[data-theme='coral-breeze'] nav .nav-links a:hover {
  color: var(--text-strong);
  text-shadow: none;
}

body[data-theme='coral-breeze'] .theme-toggle {
  border-color: rgba(160, 145, 136, 0.2);
  background: rgba(255, 250, 246, 0.9);
  color: var(--text-strong);
  box-shadow: 0 12px 24px rgba(149, 133, 123, 0.12);
}

body[data-theme='coral-breeze'] .theme-menu {
  background: rgba(252, 248, 244, 0.96);
  border-color: rgba(160, 145, 136, 0.18);
  box-shadow: 0 18px 45px rgba(149, 133, 123, 0.16);
}

body[data-theme='coral-breeze'] .theme-option {
  color: #756f7c;
}

body[data-theme='coral-breeze'] .sparkle {
  box-shadow: 0 0 10px rgba(217, 128, 116, 0.22);
}

body[data-theme='coral-breeze'] .sparkle-petal {
  border-radius: 60% 40% 60% 40%;
  filter: drop-shadow(0 4px 10px rgba(217, 128, 116, 0.16));
}

body[data-theme='coral-breeze'] .hero {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.7), transparent 18%),
    radial-gradient(circle at 82% 22%, rgba(217, 128, 116, 0.12), transparent 20%),
    linear-gradient(180deg, #efe4db 0%, #f5ece5 55%, #f2e9e2 100%);
}

body[data-theme='coral-breeze'] .hero-bg-rings {
  opacity: 0.72;
}

body[data-theme='coral-breeze'] .hero-ring {
  border-color: rgba(160, 145, 136, 0.18);
  animation-duration: 11s;
}

body[data-theme='coral-breeze'] .hero-bg-text {
  color: rgba(93, 126, 166, 0.06);
  letter-spacing: 14px;
  font-style: italic;
}

body[data-theme='coral-breeze'] .hero-light {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 251, 247, 0.95) 0%, rgba(248, 236, 229, 0.72) 30%, rgba(217, 128, 116, 0.1) 58%, transparent 76%);
  opacity: 1;
  top: 24%;
}

body[data-theme='coral-breeze'] .hero h1 {
  color: #4d617b;
  text-shadow: 0 10px 20px rgba(255, 251, 247, 0.9);
}

body[data-theme='coral-breeze'] .hero h1 .ampersand {
  color: var(--g1);
  text-shadow: 0 10px 22px rgba(217, 128, 116, 0.18);
}

body[data-theme='coral-breeze'] .hero .subtitle {
  color: #8b8190;
  letter-spacing: 10px;
}

body[data-theme='coral-breeze'] .hero .scroll-line {
  width: 2px;
  height: 76px;
  background: linear-gradient(to bottom, rgba(217, 128, 116, 0.72), rgba(93, 126, 166, 0.3), transparent);
}

body[data-theme='coral-breeze'] .section {
  max-width: 1160px;
}

body[data-theme='coral-breeze'] .section-label {
  color: #c8a56a;
  letter-spacing: 5px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82), 0 0 10px rgba(213, 178, 116, 0.1);
}

body[data-theme='coral-breeze'] .section-title {
  color: #c8a56a;
  letter-spacing: 4px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.88), 0 0 14px rgba(213, 178, 116, 0.08);
}

body[data-theme='coral-breeze'] .glass-card {
  background: linear-gradient(180deg, rgba(255, 251, 247, 0.94), rgba(248, 241, 235, 0.9));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(171, 156, 147, 0.18);
  border-radius: 32px;
  box-shadow: 0 20px 45px rgba(161, 145, 135, 0.14);
}

body[data-theme='coral-breeze'] .glass-card::before {
  opacity: 0;
}

body[data-theme='coral-breeze'] .glass-card::after {
  opacity: 1;
  background:
    radial-gradient(circle at 100% 0, rgba(93, 126, 166, 0.05), transparent 34%),
    radial-gradient(circle at 0 100%, rgba(217, 128, 116, 0.06), transparent 30%),
    linear-gradient(135deg, rgba(214, 181, 124, 0.26), rgba(214, 181, 124, 0.03) 52%, transparent 53%),
    linear-gradient(225deg, rgba(214, 181, 124, 0.26), rgba(214, 181, 124, 0.03) 52%, transparent 53%),
    linear-gradient(315deg, rgba(214, 181, 124, 0.26), rgba(214, 181, 124, 0.03) 52%, transparent 53%),
    linear-gradient(45deg, rgba(214, 181, 124, 0.26), rgba(214, 181, 124, 0.03) 52%, transparent 53%);
  background-repeat: no-repeat;
  background-size: auto, auto, 26px 26px, 26px 26px, 26px 26px, 26px 26px;
  background-position: 100% 0, 0 100%, 22px 22px, calc(100% - 22px) 22px, calc(100% - 22px) calc(100% - 22px), 22px calc(100% - 22px);
  z-index: 0;
}

body[data-theme='coral-breeze'] .glass-card:hover {
  background: linear-gradient(180deg, rgba(255, 252, 249, 0.97), rgba(247, 239, 233, 0.94));
  border-color: rgba(217, 128, 116, 0.18);
  box-shadow: 0 28px 56px rgba(161, 145, 135, 0.18);
}

body[data-theme='coral-breeze'] .glass-card > * {
  position: relative;
  z-index: 1;
}

body[data-theme='coral-breeze'] .timer-card {
  background:
    linear-gradient(180deg, rgba(255, 251, 247, 0.98), rgba(248, 241, 235, 0.94));
  border: 1px solid rgba(171, 156, 147, 0.16);
  border-radius: 36px;
  box-shadow: 0 24px 54px rgba(161, 145, 135, 0.16);
  animation: inviteFloat 6.5s ease-in-out infinite;
}

body[data-theme='coral-breeze'] .timer-card h2 {
  color: #8b8190;
}

body[data-theme='coral-breeze'] .timer-digits {
  gap: 22px;
}

body[data-theme='coral-breeze'] .timer-digit {
  min-width: 150px;
  padding: 26px 16px 20px;
  background: linear-gradient(180deg, #fffaf6, #f5ece5);
  border: 1px solid rgba(171, 156, 147, 0.12);
  border-radius: 28px;
  box-shadow: 0 14px 30px rgba(161, 145, 135, 0.12);
}

body[data-theme='coral-breeze'] .timer-digit .number {
  color: #536783;
  font-size: 94px;
  text-shadow: none;
}

body[data-theme='coral-breeze'] .timer-digit .label {
  color: #89a0b8;
}

body[data-theme='coral-breeze'] .timer-digit::after {
  color: rgba(93, 126, 166, 0.14);
}

body[data-theme='coral-breeze'] .avatar-frame {
  padding: 8px;
  background: linear-gradient(145deg, #fffaf6, #f3ebe4);
  box-shadow: 0 18px 36px rgba(161, 145, 135, 0.16);
  animation-duration: 6.8s;
}

body[data-theme='coral-breeze'] .avatar-frame img {
  filter: none;
}

body[data-theme='coral-breeze'] .avatar-box h3 {
  color: #536783;
}

body[data-theme='coral-breeze'] .avatar-heart {
  color: var(--g1);
  text-shadow: none;
}

body[data-theme='coral-breeze'] .section-title::after {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(217, 128, 116, 0.76), rgba(93, 126, 166, 0.48));
}

body[data-theme='coral-breeze'] .intro-card,
body[data-theme='coral-breeze'] .video-card,
body[data-theme='coral-breeze'] .confession-card {
  border-radius: 32px;
}

body[data-theme='coral-breeze'] .timeline::before {
  width: 3px;
  background: linear-gradient(180deg, transparent, rgba(93, 126, 166, 0.16) 18%, rgba(217, 128, 116, 0.14) 80%, transparent);
}

body[data-theme='coral-breeze'] .timeline::after {
  background: linear-gradient(180deg, rgba(93, 126, 166, 0.42), rgba(217, 128, 116, 0.48));
  box-shadow: none;
}

body[data-theme='coral-breeze'] .timeline-dot {
  width: 18px;
  height: 18px;
  background: #fdf7f1;
  border: 3px solid #a8afc0;
  box-shadow: 0 8px 18px rgba(161, 145, 135, 0.16);
}

body[data-theme='coral-breeze'] .timeline-item.active .timeline-dot {
  background: #ffffff;
  border-color: var(--g1);
  box-shadow: 0 0 0 8px rgba(217, 128, 116, 0.1);
}

body[data-theme='coral-breeze'] .timeline-content {
  padding: 40px 36px 34px;
  border-radius: 28px;
  box-shadow: 0 18px 36px rgba(161, 145, 135, 0.14);
  animation: inviteFloatSoft 7.5s ease-in-out infinite;
}

body[data-theme='coral-breeze'] .timeline-content .date {
  color: var(--g1);
}

body[data-theme='coral-breeze'] .timeline-content h4 {
  color: #536783;
}

body[data-theme='coral-breeze'] .timeline-content p {
  color: #7c8597;
}

body[data-theme='coral-breeze'] .timeline-item.active .timeline-content {
  background: linear-gradient(180deg, #fffaf6, #f7eee7);
  border-color: rgba(217, 128, 116, 0.14);
  box-shadow: 0 22px 42px rgba(161, 145, 135, 0.18);
}

body[data-theme='coral-breeze'] .video-placeholder,
body[data-theme='coral-breeze'] .confession-card,
body[data-theme='coral-breeze'] footer {
  border-color: rgba(132, 178, 217, 0.14);
}

body[data-theme='coral-breeze'] .video-placeholder {
  background: linear-gradient(180deg, #fffaf6, #f4ebe4);
  border-radius: 28px;
}

body[data-theme='coral-breeze'] .video-placeholder .play-btn {
  background: linear-gradient(145deg, #fff4ee, #fdf9f6);
  border-color: rgba(217, 128, 116, 0.2);
  color: var(--g1);
  box-shadow: 0 14px 26px rgba(161, 145, 135, 0.14);
}

body[data-theme='coral-breeze'] .confession-card .salutation,
body[data-theme='coral-breeze'] .confession-card .signature {
  color: var(--g1);
}

body[data-theme='coral-breeze'] footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(240, 231, 223, 0.5));
  border-top-color: rgba(171, 156, 147, 0.14);
}

body[data-theme='coral-breeze'] footer p,
body[data-theme='coral-breeze'] footer .quote,
body[data-theme='coral-breeze'] footer .icp p,
body[data-theme='coral-breeze'] footer .icp a {
  color: #8b8190;
}

body[data-theme='coral-breeze'] .cursor-glow {
  background: radial-gradient(circle, rgba(217, 128, 116, 0.1), rgba(255, 251, 247, 0.12) 34%, transparent 70%);
}

body[data-theme='coral-breeze'] .intro-card,
body[data-theme='coral-breeze'] .confession-card {
  animation: inviteFloatSoft 8.5s ease-in-out infinite;
}

body[data-theme='coral-breeze'] .video-card {
  animation: inviteFloatSoft 9s ease-in-out infinite;
}

@keyframes petalFloat {
  0% {
    transform: translate3d(0, 105vh, 0) rotate(0deg) scale(0.75);
    opacity: 0;
  }

  12% {
    opacity: 0.85;
  }

  50% {
    transform: translate3d(26px, 42vh, 0) rotate(160deg) scale(1);
    opacity: 0.72;
  }

  100% {
    transform: translate3d(-38px, -10vh, 0) rotate(320deg) scale(1.08);
    opacity: 0;
  }
}

@keyframes inviteFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes inviteFloatSoft {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'SimSun', 'Noto Serif SC', 'STSong', serif;
  background: var(--b3);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* ========== Cursor Glow ========== */
.cursor-glow {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1), transparent 65%);
  transform: translate(-50%, -50%);
  will-change: left, top;
}

/* ========== Sparkles ========== */
.sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  border-radius: 50%;
  animation: sparkleFloat linear infinite;
  opacity: 0;
  box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.6);
}

@keyframes sparkleFloat {
  0% {
    transform: translateY(105vh) scale(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.9;
  }

  80% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(-5vh) scale(1.5) rotate(360deg);
    opacity: 0;
  }
}

/* ========== Nav ========== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  background: rgba(var(--surface-soft-rgb), 0.3);
  border-bottom: 1px solid rgba(var(--accent-deep-rgb), 0.02);
}

nav.scrolled {
  background: rgba(var(--surface-rgb), 0.9);
  padding: 12px 0;
  border-bottom-color: rgba(var(--accent-deep-rgb), 0.25);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

nav .nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

nav .logo {
  font-family: 'Dancing Script', cursive;
  font-size: 25px;
  color: var(--g1);
  letter-spacing: 1px;
}

nav .logo .logo-hearts {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72em;
  letter-spacing: 2px;
  margin: 0 6px;
  color: var(--g1);
  opacity: 0.92;
  vertical-align: middle;
  text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.25);
}

nav .nav-links {
  display: flex;
  list-style: none;
  gap: 42px;
}

nav .nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.4s, text-shadow 0.4s;
  position: relative;
}

nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 1px;
  background: var(--g1);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav .nav-links a:hover {
  color: var(--text-strong);
  text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3);
}

.theme-picker {
  position: relative;
  display: inline-flex;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  border-radius: 50%;
  background: rgba(var(--surface-rgb), 0.45);
  color: var(--text-main);
  font: inherit;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: all 0.35s ease;
}

.theme-toggle:hover,
.theme-picker.open .theme-toggle {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.12);
  box-shadow: 0 0 30px var(--shadow-glow);
  color: var(--text-strong);
}

.theme-toggle:focus {
  color: var(--text-strong);
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: var(--g1);
}

.theme-toggle-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

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

.theme-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 188px;
  padding: 8px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 20px;
  background: rgba(var(--surface-rgb), 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.theme-picker.open .theme-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.theme-option {
  width: 100%;
  position: relative;
  padding: 12px 36px 12px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--text-main);
  font: inherit;
  font-size: 13px;
  letter-spacing: 1px;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s ease;
}

.theme-option:hover {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.16);
  color: var(--text-strong);
}

.theme-option.active {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-deep-rgb), 0.12));
  border-color: rgba(var(--accent-rgb), 0.26);
  color: var(--text-strong);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.08);
}

.theme-option.active::after {
  content: '\2713';
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--g1);
  font-size: 14px;
}

nav .nav-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ========== Back to Top ========== */
.back-to-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 999;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 50%;
  background: rgba(var(--surface-rgb), 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g1);
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.15);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: var(--g1);
  box-shadow: 0 0 50px rgba(var(--accent-rgb), 0.35);
  transform: translateY(-3px);
}

.back-to-top:active {
  transform: translateY(0);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 90% 70% at 50% 30%, rgba(var(--accent-deep-rgb), 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(var(--accent-deep-rgb), 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 20% 40%, rgba(var(--accent-warm-rgb), 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--surface-hero-top) 0%, var(--surface-hero-mid) 40%, var(--surface-hero-bottom) 100%);
  overflow: hidden;
}

.hero-bg-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-ring {
  position: absolute;
  border: 1px solid rgba(var(--accent-deep-rgb), 0.08);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: ringExpand 8s ease-out infinite;
}

.hero-ring:nth-child(2) {
  animation-delay: 2.6s;
  animation-duration: 10s;
}

.hero-ring:nth-child(3) {
  animation-delay: 5.3s;
  animation-duration: 9s;
}

@keyframes ringExpand {
  0% {
    width: 0;
    height: 0;
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0);
  }

  100% {
    width: 1400px;
    height: 1400px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

.hero-bg-text {
  position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-size: 260px;
  font-weight: 500;
  color: rgba(var(--hero-text-rgb), 0.04);
  white-space: nowrap;
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  letter-spacing: 40px;
  animation: bgTextPulse 8s ease-in-out infinite;
}

@keyframes bgTextPulse {

  0%,
  100% {
    letter-spacing: 40px;
    opacity: 0.7;
  }

  50% {
    letter-spacing: 55px;
    opacity: 1;
  }
}

.hero-light {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-deep-rgb), 0.12), transparent 70%);
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: lightBreathe 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes lightBreathe {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.25);
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero hr {
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--g1), transparent);
  border: none;
  margin: 32px auto;
  opacity: 0;
  animation: hrReveal 1s ease 0.6s forwards;
}

@keyframes hrReveal {
  0% {
    width: 0;
    opacity: 0;
  }

  100% {
    width: 160px;
    opacity: 0.8;
  }
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 120px;
  font-weight: 300;
  color: var(--text-strong);
  letter-spacing: 14px;
  line-height: 1;
  animation: heroTitleIn 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  text-shadow: 0 0 80px rgba(var(--accent-deep-rgb), 0.25);
}

@keyframes heroTitleIn {
  0% {
    opacity: 0;
    transform: translateY(-60px) scale(0.92);
    filter: blur(12px);
  }

  60% {
    opacity: 1;
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero h1 .ampersand {
  font-family: 'Dancing Script', cursive;
  font-size: 110px;
  color: var(--g1);
  margin: 0 18px;
  display: inline-block;
  animation: heartBeatGlow 1.8s ease-in-out infinite;
  font-weight: 500;
  transform-origin: center;
}

@keyframes heartBeatGlow {
  0%,
  100% {
    text-shadow: 0 0 36px rgba(var(--accent-rgb), 0.5), 0 0 72px rgba(var(--accent-deep-rgb), 0.3);
    transform: scale(1);
  }

  20% {
    transform: scale(1.12);
  }

  34% {
    transform: scale(0.96);
  }

  48% {
    text-shadow: 0 0 70px rgba(var(--accent-rgb), 0.9), 0 0 140px rgba(var(--accent-deep-rgb), 0.5);
    transform: scale(1.18);
  }

  62% {
    transform: scale(1);
  }
}

@keyframes goldGlow {

  0%,
  100% {
    text-shadow: 0 0 40px rgba(var(--accent-rgb), 0.5), 0 0 80px rgba(var(--accent-deep-rgb), 0.3);
    transform: scale(1);
  }

  50% {
    text-shadow: 0 0 80px rgba(var(--accent-rgb), 0.9), 0 0 160px rgba(var(--accent-deep-rgb), 0.5);
    transform: scale(1.06);
  }
}

.hero .subtitle {
  font-size: 18px;
  color: var(--text-soft);
  letter-spacing: 12px;
  font-weight: 200;
  animation: subtitleIn 1.2s ease 0.5s both;
}

@keyframes subtitleIn {
  from {
    opacity: 0;
    letter-spacing: 22px;
  }

  to {
    opacity: 1;
    letter-spacing: 12px;
  }
}

.hero .scroll-hint {
  position: absolute;
  bottom: 50px;
  left: 50%;
  animation: floatLine 3s ease-in-out infinite;
}

.hero .scroll-line {
  width: 1px;
  height: 70px;
  background: linear-gradient(to bottom, var(--g1), transparent);
  margin: 0 auto;
  opacity: 0.6;
}

@keyframes floatLine {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 16px);
  }
}

/* ========== Sections ========== */
.section {
  position: relative;
  z-index: 1;
  padding: 140px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  text-align: center;
  font-size: 10px;
  letter-spacing: 7px;
  color: var(--g2);
  margin-bottom: 18px;
  font-weight: 400;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-label.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  color: var(--text-strong);
  margin-bottom: 70px;
  letter-spacing: 6px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: var(--g1);
  margin: 22px auto 0;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.section-title.visible::after {
  width: 50px;
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.5s, border-color 0.5s, box-shadow 0.5s;
}

.glass-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-deep-rgb), 0.2), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(var(--accent-deep-rgb), 0.2);
  box-shadow: 0 0 80px rgba(var(--accent-deep-rgb), 0.08);
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(var(--accent-rgb), 0.05), transparent 50%);
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}

.glass-card:hover::after {
  opacity: 1;
}

/* ========== Timer ========== */
#timer-section {
  position: relative;
  z-index: 2;
  margin-top: -100px;
  padding: 0 20px;
}

.timer-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 70px 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.028);
  border-color: rgba(var(--accent-deep-rgb), 0.12);
}

.timer-card h2 {
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: 7px;
  margin-bottom: 44px;
  font-weight: 300;
  text-transform: uppercase;
  animation: labelFade 1.5s ease 0.3s both;
}

@keyframes labelFade {
  from {
    opacity: 0;
    letter-spacing: 16px;
  }

  to {
    opacity: 1;
    letter-spacing: 7px;
  }
}

.timer-digits {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.timer-digit {
  text-align: center;
  min-width: 130px;
  position: relative;
  animation: digitPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  will-change: transform, opacity;
}

.timer-digit:nth-child(1) {
  animation-delay: 0.4s;
}

.timer-digit:nth-child(2) {
  animation-delay: 0.6s;
}

.timer-digit:nth-child(3) {
  animation-delay: 0.8s;
}

.timer-digit:nth-child(4) {
  animation-delay: 1.0s;
}

@keyframes digitPop {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.7);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.timer-digit .number {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 110px;
  font-weight: 200;
  color: var(--text-strong);
  line-height: 1;
  letter-spacing: 2px;
  text-shadow: 0 0 40px rgba(var(--accent-rgb), 0.25);
  transition: text-shadow 0.3s;
}

.timer-digit:hover .number {
  text-shadow: 0 0 80px rgba(var(--accent-rgb), 0.6);
}

.timer-digit .label {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-top: 14px;
  font-weight: 300;
}

.timer-digit::after {
  content: ':';
  position: absolute;
  right: -22px;
  top: 22px;
  font-size: 52px;
  color: rgba(var(--accent-warm-rgb), 0.3);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 200;
  animation: colonPulse 2.5s ease-in-out infinite;
}

.timer-digit:last-child::after {
  display: none;
}

@keyframes colonPulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

/* ========== Intro ========== */
.intro-card {
  padding: 72px 64px;
  line-height: 2.3;
  font-size: 22px;
  color: var(--text-main);
  text-indent: 2em;
  letter-spacing: 0.5px;
}

.intro-card p {
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.intro-card.visible p {
  opacity: 1;
  transform: translateY(0);
}

.intro-card.visible p:nth-child(2) {
  transition-delay: 0.15s;
}

.intro-card.visible p:nth-child(3) {
  transition-delay: 0.3s;
}

.intro-card p:last-child {
  margin-bottom: 0;
}

/* ========== Avatars ========== */
.avatars-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 90px;
  margin-top: 10px;
}

.avatar-box {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.avatar-box:nth-child(1) {
  transition-delay: 0s;
}

.avatar-box:nth-child(3) {
  transition-delay: 0.2s;
}

.avatar-frame {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.5), rgba(var(--accent-warm-rgb), 0.2));
  position: relative;
  box-shadow: 0 0 50px rgba(var(--accent-deep-rgb), 0.15);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s;
  animation: avatarFloat 5s ease-in-out infinite;
}

.avatar-box:nth-child(3) .avatar-frame {
  animation-delay: 0.8s;
}

@keyframes avatarFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.avatar-frame:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 0 90px rgba(var(--accent-rgb), 0.3);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  filter: grayscale(10%) brightness(0.9) contrast(1.1);
  transition: filter 0.5s;
}

.avatar-frame:hover img {
  filter: grayscale(0%) brightness(1) contrast(1);
}

.avatar-box h3 {
  margin-top: 22px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--text-strong);
  font-weight: 400;
  letter-spacing: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s ease 0.3s;
}

.avatar-box.visible h3 {
  opacity: 1;
  transform: translateY(0);
}

.avatar-box h3 small {
  display: block;
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 5px;
  margin-top: 6px;
}

.avatar-heart {
  font-size: 36px;
  color: var(--g1);
  animation: goldGlow 2.5s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.8s ease 0.4s;
}

.avatar-heart.visible {
  opacity: 1;
}

/* ========== Timeline ========== */
.timeline {
  position: relative;
  padding: 50px 0;
  --timeline-progress: 0;
  --timeline-axis-x: 50%;
}

.timeline::before {
  content: '';
  position: absolute;
  left: var(--timeline-axis-x);
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(var(--accent-deep-rgb), 0.18) 10%, rgba(var(--accent-warm-rgb), 0.24) 50%, rgba(var(--accent-deep-rgb), 0.18) 90%, transparent);
  opacity: 1;
  z-index: 0;
}

.timeline::after {
  content: '';
  position: absolute;
  left: var(--timeline-axis-x);
  top: 0;
  width: 2px;
  height: calc(var(--timeline-progress) * 100%);
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.35), rgba(var(--accent-deep-rgb), 0.8) 45%, rgba(var(--accent-warm-rgb), 0.72));
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.28);
  transition: height 0.1s linear;
  pointer-events: none;
  z-index: 0;
}

.timeline-item {
  position: relative;
  display: flex;
  margin-bottom: 72px;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
  z-index: 1;
}

.timeline-item:nth-child(odd) {
  --timeline-slide-x: 24px;
}

.timeline-item:nth-child(even) {
  --timeline-slide-x: -24px;
}

.timeline-item .timeline-content {
  transform: translateX(var(--timeline-slide-x, 0)) translateY(0);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.timeline-item.visible .timeline-content {
  transform: translateX(0) translateY(0);
}

.timeline-item.active {
  opacity: 1;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-left: calc(50% + 40px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(0.6);
  width: 14px;
  height: 14px;
  background: var(--g1);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.38);
  z-index: 2;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.08s, box-shadow 0.25s ease, background-color 0.25s ease;
  animation: dotPulse 2.5s ease-in-out infinite;
  animation-play-state: paused;
}

.timeline-item.visible .timeline-dot {
  transform: translateX(-50%) scale(1);
  animation-play-state: running;
}

@keyframes dotPulse {

  0%,
  100% {
    box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.6);
  }

  50% {
    box-shadow: 0 0 50px rgba(var(--accent-rgb), 1);
  }
}

.timeline-content {
  position: relative;
  z-index: 1;
  padding: 36px;
  max-width: 420px;
  border-color: rgba(var(--accent-deep-rgb), 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.timeline-item.active .timeline-dot {
  background: var(--text-strong);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.14), 0 0 26px rgba(var(--accent-rgb), 0.7);
}

.timeline-item.active .timeline-content {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24), 0 0 48px rgba(var(--accent-deep-rgb), 0.1);
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.timeline-content .date {
  font-size: 11px;
  color: var(--g2);
  letter-spacing: 5px;
  margin-bottom: 14px;
  font-weight: 400;
}

.timeline-content h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: var(--text-strong);
  margin-bottom: 14px;
  font-weight: 400;
  letter-spacing: 2px;
}

.timeline-content p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 2.1;
  letter-spacing: 0.5px;
}

/* ========== Video ========== */
.video-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 36px;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(255, 255, 255, 0.015);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(var(--accent-deep-rgb), 0.1);
  position: relative;
  overflow: hidden;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(var(--accent-deep-rgb), 0.08), transparent 70%);
  transition: opacity 0.5s;
}

.video-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.06), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.video-placeholder:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 0 100px rgba(var(--accent-deep-rgb), 0.12);
}

.video-placeholder .play-btn {
  width: 80px;
  height: 80px;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--g1);
  transition: all 0.5s;
  z-index: 1;
  padding-left: 5px;
  animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {

  0%,
  100% {
    box-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
  }

  50% {
    box-shadow: 0 0 50px rgba(var(--accent-rgb), 0.3);
  }
}

.video-placeholder:hover .play-btn {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: var(--g1);
  transform: scale(1.08);
  box-shadow: 0 0 60px rgba(var(--accent-rgb), 0.4);
}

.video-placeholder .video-hint {
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  z-index: 1;
}

/* ========== Confession ========== */
.confession-card {
  padding: 72px 64px;
}

.confession-card .letter {
  max-width: 640px;
  margin: 0 auto;
}

.confession-card .salutation {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--g1);
  margin-bottom: 44px;
  letter-spacing: 3px;
  font-style: italic;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.confession-card.visible .salutation {
  opacity: 1;
  transform: translateX(0);
}

.confession-card .body {
  line-height: 2.5;
  font-size: 15px;
  color: var(--text-main);
  text-indent: 2em;
  letter-spacing: 0.5px;
}

.confession-card .body p {
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.confession-card.visible .body p {
  opacity: 1;
  transform: translateY(0);
}

.confession-card.visible .body p:nth-child(2) {
  transition-delay: 0.12s;
}

.confession-card.visible .body p:nth-child(3) {
  transition-delay: 0.24s;
}

.confession-card.visible .body p:nth-child(4) {
  transition-delay: 0.36s;
}

.confession-card.visible .body p:nth-child(5) {
  transition-delay: 0.48s;
}

.confession-card .body p:last-child {
  margin-bottom: 0;
}

.confession-card .signature {
  text-align: right;
  margin-top: 56px;
  font-family: 'Dancing Script', cursive;
  font-size: 28px;
  color: var(--g1);
  letter-spacing: 3px;
  text-shadow: 0 0 30px rgba(var(--accent-rgb), 0.2);
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

.confession-card.visible .signature {
  opacity: 1;
  transform: translateX(0);
}

/* ========== Footer ========== */
footer {
  position: relative;
  z-index: 1;
  padding: 80px 20px 50px;
  text-align: center;
  border-top: 1px solid rgba(var(--accent-deep-rgb), 0.08);
  background: linear-gradient(180deg, transparent, rgba(var(--accent-deep-rgb), 0.02));
}

footer .footer-deco {
  font-size: 24px;
  color: var(--g2);
  margin-bottom: 20px;
  animation: goldGlow 2.5s ease-in-out infinite;
  display: inline-block;
}

footer p {
  color: var(--text-faint);
  font-size: 15px;
  letter-spacing: 4px;
  line-height: 2.2;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

footer p.visible {
  opacity: 1;
  transform: translateY(0);
}

footer .quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--text-soft);
  font-size: 21px;
  letter-spacing: 2px;
  margin-top: 18px;
}

footer .icp {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(var(--accent-deep-rgb), 0.06);
}

footer .icp p {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 2px;
  opacity: 0.6;
  line-height: 2;
  margin: 0;
}

footer .icp a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.3s;
}

footer .icp a:hover {
  color: var(--g2);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  nav {
    padding: 10px 0;
  }

  nav .nav-inner {
    padding: 0 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'logo theme'
      'links links';
    gap: 10px 12px;
    align-items: center;
  }

  nav .logo {
    font-size: 20px;
    grid-area: logo;
    justify-self: start;
  }

  nav .logo .logo-hearts {
    margin: 0 4px;
    letter-spacing: 1px;
  }

  .hero h1 {
    font-size: 44px;
    letter-spacing: 6px;
  }

  .hero h1 .ampersand {
    font-size: 42px;
    margin: 0 8px;
  }

  .hero .subtitle {
    font-size: 13px;
    letter-spacing: 5px;
    padding: 0 10px;
    animation: subtitleInMobile 1.2s ease 0.5s both;
  }

  .hero-bg-text {
    font-size: 120px;
    letter-spacing: 10px;
  }

  nav .nav-links {
    grid-area: links;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  nav .nav-links a {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .theme-picker {
    grid-area: theme;
    width: auto;
    max-width: none;
    justify-self: end;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .theme-toggle-icon svg {
    width: 15px;
    height: 15px;
  }

  .theme-menu {
    width: 180px;
    right: 0;
    left: auto;
    transform-origin: top right;
  }

  .timer-digit .number {
    font-size: 52px;
  }

  .timer-digit {
    min-width: 68px;
  }

  .timer-digits {
    gap: 12px;
  }

  .timer-digit::after {
    right: -8px;
    top: 8px;
    font-size: 28px;
  }

  .avatars-grid {
    flex-direction: column;
    gap: 30px;
  }

  .avatar-heart {
    transform: rotate(90deg);
  }

  .avatar-frame {
    width: 150px;
    height: 150px;
  }

  .avatar-box h3 {
    font-size: 22px;
  }

  .timeline {
    --timeline-axis-x: 20px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 50px;
    padding-right: 0;
    --timeline-slide-x: 18px;
  }

  .timeline-dot {
    left: 20px;
  }

  .section {
    padding: 80px 20px;
  }

  .section-title {
    font-size: 32px;
    letter-spacing: 2px;
  }

  .intro-card,
  .confession-card {
    padding: 40px 24px;
  }

  .intro-card {
    text-indent: 0;
    text-align: center;
  }

  .intro-card p,
  .timeline-content p,
  .confession-card .body,
  .confession-card .body p {
    font-size: 15px;
    line-height: 1.9;
    letter-spacing: 0;
    word-break: break-word;
  }

  .confession-card .body {
    text-indent: 0;
    word-break: normal;
    overflow-wrap: normal;
  }

  .confession-card .body p {
    word-break: normal;
    overflow-wrap: normal;
  }

  .timeline-content .date,
  .timeline-content h4,
  .timer-card h2,
  .confession-card .salutation,
  .confession-card .signature {
    letter-spacing: 1px;
  }

  footer p,
  footer .icp p {
    font-size: 14px;
    letter-spacing: 0.5px;
    line-height: 1.8;
    word-break: break-word;
  }

  footer .quote {
    font-size: 18px;
  }

  .timer-card {
    padding: 50px 24px;
  }

  .hero-light {
    width: 250px;
    height: 250px;
  }

  .cursor-glow {
    display: none;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
}

@keyframes subtitleInMobile {
  from {
    opacity: 0;
    letter-spacing: 8px;
  }

  to {
    opacity: 1;
    letter-spacing: 4px;
  }
}

/* ========== Timeline CSS Fix ========== */

/* 修复 timeline-content 因 glass-card 默认隐藏导致时间轴不显示 */
.timeline-item.visible .timeline-content.glass-card {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* 保留 hover 上浮效果 */
.timeline-item.visible .timeline-content.glass-card:hover {
  transform: translateY(-4px);
}

/* 移动端时间轴布局修正 */
@media (max-width: 768px) {
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 50px;
    padding-right: 0;
  }

  .timeline-content {
    width: 100%;
    max-width: none;
  }

  .timeline-dot {
    left: 20px;
  }

  body[data-theme='coral-breeze'] .timer-card {
    padding: 34px 18px;
    border-radius: 28px;
    animation: none;
  }

  body[data-theme='coral-breeze'] .timer-card h2 {
    margin-bottom: 28px;
    letter-spacing: 4px;
  }

  body[data-theme='coral-breeze'] .timer-digits {
    gap: 12px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
  }

  body[data-theme='coral-breeze'] .timer-digit {
    min-width: 68px;
    flex: 0 1 auto;
    padding: 16px 8px 12px;
    border-radius: 22px;
    animation: none;
  }

  body[data-theme='coral-breeze'] .timer-digit .number {
    font-size: 54px;
  }

  body[data-theme='coral-breeze'] .timer-digit .label {
    margin-top: 10px;
    letter-spacing: 2px;
  }

  body[data-theme='coral-breeze'] .timer-digit::after {
    display: none;
  }
}
