/* ==========================================================================
   GLOBAL DESIGN SYSTEM & VISUAL TOKENS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;700&family=JetBrains+Mono:wght@300;400;500&family=Outfit:wght@200;300;400;500;700&family=Great+Vibes&family=Dancing+Script:wght@400;500;600;700&family=Noto+Sans+KR:wght@100;300;400&display=swap');

:root {
  --color-bg: #050510;
  --color-bg-deep: #0a0a1a;
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.5);
  --color-text-muted: rgba(255, 255, 255, 0.3);

  /* Romantic Journey Color Accents */
  --color-indigo: #6366f1;
  --color-indigo-glow: rgba(99, 102, 241, 0.25);
  --color-rose: #e11d74;
  --color-rose-glow: rgba(225, 29, 116, 0.25);
  --color-rose-soft: #f472b6;
  --color-gold: #f5a623;
  --color-gold-glow: rgba(245, 166, 35, 0.15);
  --color-violet: #8b5cf6;
  --color-violet-glow: rgba(139, 92, 246, 0.2);
  --color-accent-gradient: linear-gradient(135deg, #e11d74, #6366f1);

  /* Fonts */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-handwriting: 'Dancing Script', cursive;
  --font-signature: 'Great Vibes', cursive;

  /* Premium Glassmorphic Attributes */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(25px);

  /* Interaction Easing */
  --ease-expensive: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-medium: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html, body {
  background: linear-gradient(160deg, #050510 0%, #0c0c24 30%, #120a1e 60%, #0a0818 100%);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(225, 29, 116, 0.3);
  border-radius: 10px;
}

/* Cinematic Grain/Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  pointer-events: none;
  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='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   VIVID AMBIENT GLOW SYSTEM (Enhanced)
   ========================================================================== */

.ambient-glows {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform, opacity;
}

/* Primary Rose Glow — top left */
.glow-1 {
  top: -15%;
  left: -10%;
  width: 75vw;
  height: 75vw;
  background: radial-gradient(circle, rgba(225, 29, 116, 0.35) 0%, rgba(225, 29, 116, 0) 70%);
  animation: pulse-glow-1 18s infinite alternate ease-in-out;
}

/* Deep Indigo — bottom right */
.glow-2 {
  bottom: -20%;
  right: -15%;
  width: 85vw;
  height: 85vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0) 70%);
  animation: pulse-glow-2 22s infinite alternate ease-in-out;
}

/* Violet center pulse */
.glow-3 {
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(225, 29, 116, 0.08) 50%, rgba(0, 0, 0, 0) 100%);
  animation: pulse-glow-3 15s infinite alternate ease-in-out;
}

/* Rose-Gold warm glow — mid left */
.glow-4 {
  top: 20%;
  left: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.2) 0%, rgba(245, 166, 35, 0) 70%);
  animation: pulse-glow-4 20s infinite alternate ease-in-out;
}

/* Magenta accent — top right */
.glow-5 {
  top: -10%;
  right: 5%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, rgba(236, 72, 153, 0) 70%);
  animation: pulse-glow-5 16s infinite alternate ease-in-out;
}

/* Deep navy base glow — bottom center */
.glow-6 {
  bottom: -25%;
  left: 30%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(30, 27, 75, 0.4) 0%, rgba(30, 27, 75, 0) 70%);
  animation: pulse-glow-6 25s infinite alternate ease-in-out;
}

@keyframes pulse-glow-1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.9; }
  100% { transform: translate(10%, 8%) scale(1.2); opacity: 1; }
}

@keyframes pulse-glow-2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  100% { transform: translate(-8%, -10%) scale(1.15); opacity: 1; }
}

@keyframes pulse-glow-3 {
  0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.6; }
  100% { transform: translate(-48%, -53%) scale(1.15); opacity: 0.85; }
}

@keyframes pulse-glow-4 {
  0% { transform: translate(0, 0) scale(0.9); opacity: 0.7; }
  100% { transform: translate(5%, 10%) scale(1.1); opacity: 0.9; }
}

@keyframes pulse-glow-5 {
  0% { transform: translate(0, 0) scale(0.95); opacity: 0.6; }
  100% { transform: translate(-6%, 5%) scale(1.1); opacity: 0.8; }
}

@keyframes pulse-glow-6 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  100% { transform: translate(3%, -5%) scale(1.1); opacity: 0.7; }
}

/* Star field effect */
.starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 65%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 10%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 80%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 35%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 90%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 50%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 50% 45%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 15%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 33% 88%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 55%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 75%, rgba(255,255,255,0.3) 0%, transparent 100%);
  animation: starfield-drift 60s linear infinite;
}

@keyframes starfield-drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-20px); }
}

/* Glassmorphic Surfaces */
.glassmorphic {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Layout Utilities */
.smooth-scroll-container {
  position: relative;
  z-index: 10;
  width: 100%;
}

.section {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

/* ==========================================================================
   FLOATING HEARTS CANVAS (Valentine's Day)
   ========================================================================== */

.hearts-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

/* ==========================================================================
   SECTION 0: DEDICATION
   ========================================================================== */

.dedication-section {
  height: 100vh;
  position: relative;
  z-index: 20;
}

.dedication-content {
  text-align: center;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.dedication-for {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 300;
  color: var(--color-text-secondary);
  letter-spacing: 0.15em;
}

.dedication-name {
  font-family: 'Noto Sans KR', var(--font-serif), sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  color: var(--color-text-primary);
  letter-spacing: 0.08em;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, #f0c0d8 40%, #ffffff 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dedication-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-rose), transparent);
  margin: 0.5rem 0;
}

.dedication-scroll {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--color-text-muted);
  margin-top: 2rem;
}

.dedication-scroll-icon {
  margin-top: 0.3rem;
}

/* ==========================================================================
   SECTION 1: THE TEMPORAL GENESIS (HERO)
   ========================================================================== */

.hero-section {
  height: 100vh;
  position: relative;
}

.hero-content {
  text-align: center;
  z-index: 20;
  max-width: 1100px;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.badge-container {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

.mono-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--color-rose);
  border: 1px solid rgba(225, 29, 116, 0.35);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  background: rgba(225, 29, 116, 0.08);
  box-shadow: 0 0 20px rgba(225, 29, 116, 0.1);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 6.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 3.5rem;
  color: var(--color-text-primary);
  opacity: 0;
  transform: translateY(30px);
  white-space: nowrap;
  background: linear-gradient(135deg, #ffffff 0%, #f0c0d8 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Countdown Timer */
.timer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
}

.time-value {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  color: var(--color-text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-shadow: 0 0 30px rgba(225, 29, 116, 0.15);
}

.time-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--color-text-secondary);
  margin-top: 0.75rem;
}

.time-divider {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--color-rose);
  opacity: 0.4;
  transform: translateY(-8px);
}

/* Hero Scroll Section (below timer, in normal flow) */
.hero-scroll-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: 3rem;
  opacity: 0;
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--color-text-muted);
}

.scroll-indicator {
  width: 20px;
  height: 35px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background-color: var(--color-rose);
  border-radius: 50%;
  position: absolute;
  top: 6px;
  animation: scroll-dot-anim 2s infinite ease-in-out;
}

@keyframes scroll-dot-anim {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   MINIMALIST MUSIC PLAYER
   ========================================================================== */

.music-player {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 8px 12px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition-medium);
  min-width: 160px;
}

.music-player:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 28px rgba(225, 29, 116, 0.12);
}

.mp-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.mp-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, background 0.3s ease;
}

.mp-btn:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
}

.mp-btn-main {
  width: 34px;
  height: 34px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
}

.mp-btn-main:hover {
  color: var(--color-rose-soft);
  background: rgba(225, 29, 116, 0.1);
}

.mp-btn-main.is-playing {
  color: var(--color-rose-soft);
}

/* Seek Bar Row */
.mp-seek-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 0 2px;
}

.mp-time {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.35);
  min-width: 28px;
  text-align: center;
  user-select: none;
}

.mp-seek-track {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  overflow: visible;
}

.mp-seek-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-rose), var(--color-rose-soft));
  border-radius: 3px;
  pointer-events: none;
  transition: width 0.15s linear;
}

.mp-seek-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%) scale(0);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-rose-soft);
  box-shadow: 0 0 6px rgba(225, 29, 116, 0.4);
  pointer-events: none;
  transition: transform 0.2s ease;
}

.mp-seek-track:hover .mp-seek-thumb,
.mp-seek-track.seeking .mp-seek-thumb {
  transform: translate(-50%, -50%) scale(1);
}

/* ==========================================================================
   SECTION 2: 3D GLOBE FLIGHT
   ========================================================================== */

.flight-section {
  position: relative;
  height: 100vh;
  z-index: 15;
}

#globe-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}


/* Globe UI Overlay */
.globe-ui-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  overflow: hidden;
  opacity: 0;
}

@media (min-width: 1024px) {
  .globe-ui-layer { padding: 48px; }
}

/* City cards (glassmorphic panels) */
.city-cards-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.city-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
  pointer-events: auto;
  min-width: 240px;
  position: relative;
}

.city-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 60%, rgba(255, 255, 255, 0.4) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.city-card-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  margin-bottom: 0.4rem;
}

.city-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.city-card-header.right {
  flex-direction: row-reverse;
}

.city-card.right {
  text-align: right;
}

.flag-icon {
  width: 28px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.city-card h2 {
  font-size: 1.1rem;
  font-weight: 500;
  font-family: var(--font-sans);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  margin-top: 8px;
}

.telemetry-grid.right-aligned {
  text-align: right;
}

.telemetry-grid.right-aligned .label {
  text-align: right;
}

.telemetry-grid.right-aligned .value {
  text-align: right;
}

.telemetry-grid .label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
}

.telemetry-grid .value {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Orbital Distance Panel */
.orbital-panel {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
  border-radius: 2rem;
  padding: 2rem;
  pointer-events: auto;
  max-width: 420px;
  position: relative;
}

.orbital-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 60%, rgba(255, 255, 255, 0.4) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.orbital-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  margin-bottom: 0.3rem;
}

.orbital-value {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 3rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.orbital-unit {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 0.5rem;
}

.flight-progress-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.flight-progress-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.flight-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-rose), var(--color-indigo));
  transition: width 0.1s ease;
}

.flight-telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
}

.flight-telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.flight-telemetry-item .ft-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.flight-telemetry-item .ft-value {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-primary);
}

.scroll-hint {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
  margin-top: 1rem;
}

/* Flight Scroll Spacer */
#flight-scroll-spacer {
  position: relative;
  z-index: 5;
  pointer-events: none;
}

/* ==========================================================================
   SECTION TRANSITIONS — Smooth gradient dividers
   ========================================================================== */

.section-transition {
  position: relative;
  z-index: 20;
  width: 100%;
  pointer-events: none;
}

.transition-dark-to-warm {
  height: 0;
  display: none;
}

/* ==========================================================================
   SECTION 3: ANTIQUARIAN ENVELOPE
   ========================================================================== */

.landing-section {
  position: relative;
  z-index: 20;
  background: transparent;
  min-height: 100vh;
  overflow: hidden;
}

/* Background texture — disabled to keep seamless page gradient */
.antiquarian-bg-texture {
  display: none;
}

.landing-container {
  width: 100%;
  height: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

/* Antiquarian Header */
.antiquarian-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0;
}

.ornament-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 200px;
}

.ornament-line::before,
.ornament-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 29, 116, 0.5), transparent);
}

.ornament-flourish {
  font-size: 1.2rem;
  color: var(--color-rose);
  opacity: 0.6;
  line-height: 1;
}

.antiquarian-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.03em;
  line-height: 1.4;
  padding: 0.2em 0;
  background: linear-gradient(135deg, #ffffff 0%, #f0c0d8 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.antiquarian-subtitle {
  font-family: 'EB Garamond', serif;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 400;
  color: var(--color-text-secondary);
  letter-spacing: 0.08em;
}

/* Envelope Scene Container */
.envelope-scene {
  position: relative;
  width: 600px;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem;
}

/* Corner Ornaments */
.corner-ornament {
  position: absolute;
  width: 60px;
  height: 60px;
  border-color: rgba(244, 180, 200, 0.55);
  border-style: solid;
  border-width: 0;
  opacity: 0.6;
}

.corner-ornament.top-left {
  top: 0; left: 0;
  border-top-width: 1px;
  border-left-width: 1px;
  border-top-left-radius: 12px;
}

.corner-ornament.top-right {
  top: 0; right: 0;
  border-top-width: 1px;
  border-right-width: 1px;
  border-top-right-radius: 12px;
}

.corner-ornament.bottom-left {
  bottom: 0; left: 0;
  border-bottom-width: 1px;
  border-left-width: 1px;
  border-bottom-left-radius: 12px;
}

.corner-ornament.bottom-right {
  bottom: 0; right: 0;
  border-bottom-width: 1px;
  border-right-width: 1px;
  border-bottom-right-radius: 12px;
}

/* Floating Petals */
.petal {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50% 0 50% 0;
  background: rgba(225, 29, 116, 0.1);
  pointer-events: none;
  animation: petal-drift 8s infinite ease-in-out;
}

.petal-1 { top: 15%; left: 10%; animation-delay: 0s; transform: rotate(30deg); }
.petal-2 { top: 25%; right: 12%; animation-delay: -2s; transform: rotate(-20deg); width: 10px; height: 10px; }
.petal-3 { bottom: 20%; left: 15%; animation-delay: -4s; transform: rotate(60deg); width: 8px; height: 8px; }
.petal-4 { bottom: 30%; right: 10%; animation-delay: -6s; transform: rotate(-40deg); width: 14px; height: 14px; }

@keyframes petal-drift {
  0%, 100% { transform: translateY(0) rotate(30deg); opacity: 0.15; }
  50% { transform: translateY(-12px) rotate(45deg); opacity: 0.3; }
}

/* Envelope Image */
.envelope-wrapper {
  position: relative;
  width: 420px;
  max-width: 85vw;
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  will-change: transform, opacity;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.envelope-wrapper:hover {
  transform: translateY(-4px) scale(1.02);
}

.envelope-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.5));
  transition: filter 0.4s ease;
}

.envelope-wrapper:hover .envelope-image {
  filter: drop-shadow(0 20px 45px rgba(225, 29, 116, 0.25)) drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
}

/* Subtle ground shadow so the envelope doesn't look like it's floating */
.envelope-shadow {
  position: absolute;
  bottom: -8px;
  left: 15%;
  right: 15%;
  height: 20px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

/* Seal Hint */
.seal-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.8rem;
  text-align: center;
}

.seal-hint-arrow {
  font-size: 0.85rem;
  color: var(--color-rose-soft);
  opacity: 0.5;
  animation: seal-arrow-bounce 1.5s infinite ease-in-out;
}

.seal-hint-text {
  font-family: 'EB Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

@keyframes seal-arrow-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(4px); opacity: 0.8; }
}

/* ==========================================================================
   LETTER MODAL (Pop-up)
   ========================================================================== */

.letter-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 5, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.letter-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.letter-modal {
  position: relative;
  width: 640px;
  max-width: 92vw;
  max-height: 85vh;
  background: rgba(10, 10, 15, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 50px rgba(225, 29, 116, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.6s var(--ease-expensive);
  overflow: hidden;
}

.letter-modal-overlay.open .letter-modal {
  transform: translateY(0) scale(1);
}

.letter-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-medium);
  z-index: 10;
}

.letter-modal-close:hover {
  background: rgba(225, 29, 116, 0.1);
  border-color: rgba(225, 29, 116, 0.3);
  color: var(--color-text-primary);
}

.letter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
}

.letter-place {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--color-rose);
}

.letter-stamp {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.2);
  margin-right: 2.5rem;
}

.letter-body {
  flex-grow: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding-right: 0.5rem;
  max-height: 50vh;
}

.letter-body::-webkit-scrollbar {
  display: none;
}

.typewriter-text {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  text-align: justify;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background-color: var(--color-rose);
  margin-left: 2px;
  animation: cursor-blink 0.8s infinite;
  vertical-align: middle;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Letter Footer with Signature */
.letter-footer {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s var(--ease-expensive);
}

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

/* Valentine's Day Message */
.valentine-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s var(--ease-expensive);
}

.valentine-message.visible {
  opacity: 1;
  transform: translateY(0);
}

.valentine-text {
  font-family: var(--font-handwriting);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-rose);
  letter-spacing: 0.02em;
}

.valentine-heart {
  color: var(--color-rose);
  font-size: 1rem;
  animation: valentine-pulse 1.5s infinite ease-in-out;
}

@keyframes valentine-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.letter-closing {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-rose);
  margin-bottom: 0.8rem;
}

/* Handwritten Signature */
.signature-container {
  text-align: right;
  overflow: visible;
  position: relative;
  min-height: 70px;
  padding-bottom: 10px;
}

.signature-text {
  font-family: var(--font-signature);
  font-size: 2rem;
  color: var(--color-rose);
  white-space: nowrap;
  opacity: 0;
  display: inline-block;
}

.signature-text.writing {
  opacity: 1;
}

.signature-text .sig-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.15s ease, transform 0.3s var(--ease-expensive);
}

.signature-text .sig-char.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */

@media (max-width: 768px) {
  .dedication-name {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero-title {
    white-space: normal;
    font-size: clamp(1.8rem, 7vw, 3rem);
  }

  .timer-container {
    gap: 0.6rem;
  }

  .time-block {
    min-width: 65px;
  }

  .time-value {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .envelope-wrapper {
    width: 85vw;
  }

  .envelope-scene {
    padding: 1.5rem;
  }

  .corner-ornament {
    width: 35px;
    height: 35px;
  }

  .antiquarian-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .letter-modal {
    padding: 1.5rem;
    max-width: 95vw;
  }

  .typewriter-text {
    font-size: 1rem;
    line-height: 1.5;
  }

  .city-cards-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .city-card {
    min-width: auto;
    padding: 1rem;
  }

  .orbital-panel {
    max-width: 100%;
    padding: 1.2rem;
  }

  .orbital-value {
    font-size: 2rem;
  }

  .globe-ui-layer {
    padding: 12px;
  }

  .music-player {
    bottom: 15px;
    right: 15px;
    padding: 4px 6px;
  }

  .signature-text {
    font-size: 1.5rem;
  }

  .signature-container {
    height: 45px;
  }
}
