/* ══════════════════════════════════════════════════════
   Arnaud & Zoey Space — style.css
   Deep-space romantic aesthetic
   Blue × Purple/Violet palette, eye-friendly dark theme
══════════════════════════════════════════════════════ */

/* ─── Variables ──────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:         #0d0f1f;
  --bg-alt:     #111327;
  --surface:    #161930;
  --surface2:   #1d2040;
  --surface3:   #252850;

  /* Borders */
  --border:     rgba(139,92,246,.18);
  --border-hi:  rgba(139,92,246,.38);

  /* Purple palette */
  --purple:     #8b5cf6;
  --purple-mid: #a78bfa;
  --purple-lo:  #c4b5fd;
  --purple-gl:  rgba(139,92,246,.22);
  --purple-gl2: rgba(139,92,246,.08);

  /* Blue palette */
  --blue:       #3b82f6;
  --blue-mid:   #60a5fa;
  --blue-lo:    #93c5fd;
  --blue-gl:    rgba(59,130,246,.22);
  --blue-gl2:   rgba(59,130,246,.08);

  /* Text */
  --text:       #eae6f8;
  --text-mid:   #b0abc8;
  --muted:      #706d96;

  /* Accent */
  --accent:     #e879f9;
  --accent-gl:  rgba(232,121,249,.18);

  /* Fonts */
  --ff-display: 'Cormorant Garant', Georgia, serif;
  --ff-body:    'Nunito', system-ui, sans-serif;

  /* Layout */
  --sidebar-w:  240px;
  --radius:     14px;
  --radius-lg:  22px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ─── Stars canvas ───────────────────────────────────── */
#stars-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── SIDEBAR ─────────────────────────────────────────── */
.sidebar {
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: rgba(13,15,31,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid var(--border);
  animation: sidebarIn .7s cubic-bezier(.16,1,.3,1) .1s both;
}

@keyframes sidebarIn {
  from { transform: translateX(-100%); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

/* Logo area */
.sidebar-top {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.logo-a    { color: var(--blue-lo); }
.logo-heart{
  color: var(--accent);
  font-size: 1.6rem;
  animation: heartbeat 2.4s ease-in-out infinite;
  display: inline-block;
}
@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  25%      { transform: scale(1.22); }
  35%      { transform: scale(.96); }
  45%      { transform: scale(1.14); }
}
.logo-z { color: var(--purple-lo); }
.logo-sub {
  margin-top: 4px;
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Nav links */
.sidebar-nav {
  flex: 1;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--text-mid);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: background var(--transition), color var(--transition);
  position: relative;
  overflow: hidden;
}
.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--purple-gl), var(--blue-gl));
  opacity: 0;
  transition: opacity var(--transition);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::before { opacity: 1; }
.nav-link.active {
  color: var(--purple-lo);
  background: var(--purple-gl2);
}
.nav-link.active::before { opacity: 1; }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: linear-gradient(to bottom, var(--purple), var(--blue));
  border-radius: 0 3px 3px 0;
}
.nav-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.nav-icon svg { width: 100%; height: 100%; }
.nav-label { position: relative; z-index: 1; }

/* Footer */
.sidebar-footer {
  padding: 18px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.sidebar-heart-beat {
  font-size: 1.4rem;
  color: var(--accent);
  animation: heartbeat 2.4s ease-in-out infinite;
  display: inline-block;
}

/* ─── MOBILE HEADER ──────────────────────────────────── */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 56px;
  background: rgba(13,15,31,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.mobile-logo {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}
.mobile-heart { color: var(--accent); }
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-mid);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 56px 0 0 0;
  z-index: 190;
  background: rgba(13,15,31,.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav-link {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 10px 24px;
  transition: color var(--transition);
}
.mobile-nav-link:hover { color: var(--purple-lo); }

/* ─── MAIN CONTENT ───────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  position: relative;
  z-index: 1;
}

/* ─── SECTION BASE ───────────────────────────────────── */
.section {
  min-height: 100vh;
  padding: 0;
  position: relative;
}
.section-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 90px 40px 100px;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-eyebrow {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 14px;
}
.section-subtitle {
  color: var(--text-mid);
  font-size: .95rem;
}

/* Reveal animation */
.reveal-target {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.16,1,.3,1);
}
.reveal-target.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════
   HOME SECTION
══════════════════════════════════════════════════════ */
.section-home {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Decorative rings */
.home-deco-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  transform: translate(-50%, -50%);
  left: 50%; top: 50%;
}
.ring-1 {
  width: 340px; height: 340px;
  border-color: rgba(139,92,246,.18);
  animation: ringRotate 28s linear infinite;
}
.ring-2 {
  width: 560px; height: 560px;
  border-color: rgba(59,130,246,.12);
  animation: ringRotate 42s linear infinite reverse;
  border-style: dashed;
}
.ring-3 {
  width: 780px; height: 780px;
  border-color: rgba(139,92,246,.07);
  animation: ringRotate 60s linear infinite;
}
@keyframes ringRotate {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}

/* Glow behind title */
.home-content {
  position: relative;
  text-align: center;
  z-index: 2;
  padding: 0 24px;
}
.home-content::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 520px; height: 320px;
  background: radial-gradient(ellipse, rgba(139,92,246,.14) 0%, transparent 72%);
  pointer-events: none;
}

.home-eyebrow {
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
  animation: fadeUp .9s ease .3s both;
}
.home-title {
  font-family: var(--ff-display);
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.0;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .18em;
  flex-wrap: wrap;
}
.ht-name {
  animation: fadeUp .9s ease .5s both;
  background: linear-gradient(135deg, var(--text) 30%, var(--purple-lo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ht-amp {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: .6em;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  animation: fadeUp .9s ease .65s both;
  margin: 0 .06em;
}
.home-tagline {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--purple-lo);
  margin-bottom: 18px;
  animation: fadeUp .9s ease .75s both;
}
.home-text {
  color: var(--text-mid);
  font-size: .92rem;
  max-width: 440px;
  margin: 0 auto 42px;
  line-height: 1.8;
  animation: fadeUp .9s ease .9s both;
}

/* Scroll cue */
.home-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  animation: fadeUp .9s ease 1.1s both;
}
.scroll-arrow {
  width: 18px; height: 18px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  animation: arrowBounce 2s ease-in-out infinite;
}
@keyframes arrowBounce {
  0%,100% { transform: rotate(45deg) translateY(0); }
  50%      { transform: rotate(45deg) translateY(6px); }
}

/* Floating hearts */
.floating-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.fh {
  position: absolute;
  color: var(--accent);
  opacity: .22;
  animation: floatUp linear infinite;
  font-size: 1.1rem;
}
.fh-1 { left: 10%; bottom: -40px; font-size: .9rem;  animation-duration: 12s; animation-delay: 0s;   }
.fh-2 { left: 25%; bottom: -40px; font-size: 1.3rem; animation-duration: 16s; animation-delay: 3s;   }
.fh-3 { left: 60%; bottom: -40px; font-size: .8rem;  animation-duration: 14s; animation-delay: 6s;   }
.fh-4 { left: 78%; bottom: -40px; font-size: 1rem;   animation-duration: 18s; animation-delay: 2s;   color: var(--purple-lo); }
.fh-5 { left: 45%; bottom: -40px; font-size: 1.4rem; animation-duration: 20s; animation-delay: 9s;   }
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(-10deg);  opacity: 0; }
  10%  { opacity: .22; }
  90%  { opacity: .18; }
  100% { transform: translateY(-110vh) rotate(10deg); opacity: 0; }
}

/* ══════════════════════════════════════════════════════
   OUR STORY — TIMERS
══════════════════════════════════════════════════════ */
.section-story {
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.timers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 70px;
}

.timer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.timer-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 0 32px var(--purple-gl);
}
.timer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.tc-together::before {
  background: linear-gradient(90deg, var(--purple), var(--blue));
}
.tc-meeting::before {
  background: linear-gradient(90deg, var(--blue), var(--accent));
}

/* Card glow bg */
.timer-card::after {
  content: '';
  position: absolute;
  top: -60%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--purple-gl) 0%, transparent 70%);
  pointer-events: none;
}
.tc-meeting::after {
  background: radial-gradient(circle, var(--blue-gl) 0%, transparent 70%);
}

.tc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.tc-icon { font-size: 1.4rem; }
.tc-label {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.tc-display {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.tc-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tc-val {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  min-width: 2ch;
  text-align: center;
  transition: color .15s;
}
.tc-uname {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.tc-sep {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--border-hi);
  line-height: 1.2;
  padding-bottom: 20px;
  flex-shrink: 0;
}
/* Flash animation on second tick */
@keyframes digitFlash {
  0%,100% { color: var(--text); }
  50%      { color: var(--purple-lo); }
}
.tc-val.flash { animation: digitFlash .2s ease; }

/* ══════════════════════════════════════════════════════
   OUR STORY — TIMELINE
══════════════════════════════════════════════════════ */
.timeline-wrapper {
  position: relative;
  padding-top: 10px;
}
.timeline-heading {
  text-align: center;
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-mid);
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.tl-deco { color: var(--purple-lo); font-style: normal; font-size: .9rem; }

.timeline {
  position: relative;
}
/* Center spine */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--purple) 12%,
    var(--blue) 50%,
    var(--purple-mid) 88%,
    transparent 100%
  );
}

.tl-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 36px);
  margin-bottom: 44px;
  position: relative;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity .6s ease, transform .6s ease;
}
.tl-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 36px);
  transform: translateX(24px);
}
.tl-item.tl-revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Dot on spine */
.tl-item::after {
  content: attr(data-emoji);
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: 36px; height: 36px;
  background: var(--surface2);
  border: 2px solid var(--border-hi);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 36px;
  text-align: center;
  z-index: 2;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.tl-item:hover::after {
  border-color: var(--purple);
  box-shadow: 0 0 16px var(--purple-gl);
}

/* The card */
.tl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  max-width: 340px;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.tl-item:nth-child(even) .tl-card {
  border-radius: var(--radius);
}
.tl-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 4px 28px var(--purple-gl);
}
.tl-date {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 6px;
}
.tl-title {
  font-family: var(--ff-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.tl-desc {
  font-size: .86rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* Highlight event */
.tl-item.tl-highlight .tl-card {
  border-color: rgba(139,92,246,.4);
  background: linear-gradient(135deg, var(--surface), var(--surface2));
}
.tl-item.tl-highlight .tl-title {
  background: linear-gradient(90deg, var(--purple-lo), var(--blue-lo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Upcoming event */
.tl-item.tl-upcoming .tl-card {
  border-color: var(--border);
  border-style: dashed;
  opacity: .72;
}
.tl-item.tl-upcoming .tl-title { color: var(--muted); }

/* ══════════════════════════════════════════════════════
   GALLERY
══════════════════════════════════════════════════════ */
.section-gallery {
  background: var(--bg);
}

.masonry-gallery {
  column-count: 3;
  column-gap: 12px;
  width: 100%;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: var(--surface);
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,12,28,.88) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity .35s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption {
  font-size: .82rem;
  color: var(--text);
  font-style: italic;
}

.gallery-hint {
  text-align: center;
  margin-top: 32px;
  font-size: .82rem;
  color: var(--muted);
}
.gallery-hint code {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 7px;
  font-size: .8rem;
  color: var(--purple-lo);
}

/* ══════════════════════════════════════════════════════
   OUR WORLD — MAP & WEATHER
══════════════════════════════════════════════════════ */
.section-world {
  background: linear-gradient(160deg, var(--bg-alt) 0%, var(--bg) 100%);
}

/* Distance badge */
.distance-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 40px;
  padding: 10px 26px;
  width: fit-content;
  margin: 0 auto 28px;
  font-size: .92rem;
  color: var(--text-mid);
  box-shadow: 0 0 24px var(--purple-gl);
}
.db-icon { font-size: 1.1rem; }
#distance-text {
  font-family: var(--ff-display);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text);
}

/* Map */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 48px rgba(0,0,0,.5);
  margin-bottom: 36px;
  background: #0a0c1c;
}
#map {
  height: 420px;
  width: 100%;
  background: #0a0c1c;
}
/* Override Leaflet attribution */
.leaflet-control-attribution {
  background: rgba(10,12,28,.8) !important;
  color: var(--muted) !important;
  font-size: .65rem !important;
}
.leaflet-control-attribution a { color: var(--muted) !important; }

/* Custom map markers */
.map-marker {
  position: relative;
  width: 44px; height: 44px;
}
.marker-inner {
  width: 36px; height: 36px;
  background: var(--surface2);
  border: 2px solid var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  position: absolute;
  top: 4px; left: 4px;
  z-index: 2;
  box-shadow: 0 0 16px var(--purple-gl);
}
.marker-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--purple);
  animation: markerPulse 2.2s ease-out infinite;
}
.marker-label {
  position: absolute;
  top: 46px; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--ff-body);
  font-size: .7rem;
  font-weight: 600;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--text);
}
@keyframes markerPulse {
  0%   { transform: scale(.8); opacity: .9; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* World cards (time + weather) */
.world-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.world-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.world-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 4px 28px var(--purple-gl);
}
.world-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.wc-1::before { background: linear-gradient(90deg, var(--blue), var(--purple)); }
.wc-2::before { background: linear-gradient(90deg, var(--purple), var(--accent)); }

.wc-location {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.wc-flag { font-size: 1.5rem; }
.wc-name {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}
.wc-place {
  font-size: .75rem;
  color: var(--muted);
}

.wc-time {
  font-family: var(--ff-display);
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: .04em;
  margin-bottom: 4px;
  line-height: 1;
}
.wc-date {
  font-size: .75rem;
  color: var(--text-mid);
  margin-bottom: 18px;
}

.wc-weather {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.wc-weather-icon { font-size: 1.7rem; }
.wc-temp {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.wc-desc {
  font-size: .78rem;
  color: var(--muted);
}
.wc-loading { color: var(--muted); font-size: .82rem; font-style: italic; }

/* ─── Shared animations ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .masonry-gallery { column-count: 2; }
}

@media (max-width: 700px) {
  :root { --sidebar-w: 0px; }

  .sidebar { display: none; }
  .mobile-header { display: flex; }
  .mobile-nav-overlay { display: flex; }

  .main-content { margin-left: 0; padding-top: 56px; }

  .section-inner { padding: 60px 20px 70px; }

  .home-title { font-size: clamp(2.6rem, 14vw, 4rem); }

  /* Timeline stacks on mobile */
  .timeline::before { left: 18px; }
  .tl-item,
  .tl-item:nth-child(even) {
    padding: 0 0 0 58px;
    justify-content: flex-start;
  }
  .tl-item::after,
  .tl-item:nth-child(even)::after {
    left: 0;
    transform: none;
  }
  .tl-card { max-width: 100%; }

  .masonry-gallery { column-count: 1; }
}

@media (max-width: 480px) {
  .tc-val { font-size: 1.6rem; }
  .tc-sep { font-size: 1.4rem; padding-bottom: 16px; }
  #map { height: 280px; }
}