/* ============================================================
   THE LIFE OF SHILOH BROPAD — Living Archive
   Design language: illuminated archive / devotional relic room.
   Ink & brass, a single flame signature carried through every page.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Nunito+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #100f18;
  --ink-soft: #1a1826;
  --ink-softer: #241f34;
  --parchment: #f2e8d5;
  --parchment-dim: #cabe9f;
  --parchment-faint: rgba(242, 232, 213, 0.55);
  --brass: #c9a153;
  --brass-bright: #e6c785;
  --maroon: #832f2f;
  --maroon-soft: #a8534d;
  --line: rgba(201, 161, 83, 0.22);
  --line-bright: rgba(201, 161, 83, 0.45);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --glass-bg: rgba(22, 20, 32, 0.52);
  --glass-bg-strong: rgba(16, 15, 24, 0.68);
  --glass-border: rgba(201, 161, 83, 0.28);
  --glass-highlight: rgba(255, 255, 255, 0.07);
  --glass-blur: blur(22px) saturate(1.35);

  --max-width: 1180px;
}

/* -------------------- liquid glass animations -------------------- */
@keyframes liquidShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(201, 161, 83, 0.08), inset 0 1px 0 rgba(255,255,255,0.06); }
  50% { box-shadow: 0 0 25px rgba(201, 161, 83, 0.15), inset 0 1px 0 rgba(255,255,255,0.1); }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.timeline-scroll { scroll-behavior: auto; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 1200px 700px at 50% -10%, rgba(201,161,83,0.10), transparent 60%),
    var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection { background: var(--brass); color: var(--ink); }

/* -------------------- focus visibility -------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
}

/* -------------------- layout helpers -------------------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

/* -------------------- flame signature -------------------- */
/* The single recurring mark: a devotional flame. Used as the
   nav mark, section dividers, and timeline nodes. */
.flame {
  display: inline-block;
  width: 20px;
  height: 28px;
}
.flame path {
  fill: var(--brass-bright);
  transform-origin: 50% 100%;
  animation: flicker 3.4s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { transform: scaleY(1) scaleX(1) rotate(0deg); opacity: 1; }
  25%      { transform: scaleY(1.06) scaleX(0.97) rotate(-1.5deg); opacity: 0.94; }
  50%      { transform: scaleY(0.96) scaleX(1.03) rotate(1deg); opacity: 1; }
  75%      { transform: scaleY(1.03) scaleX(0.98) rotate(-0.5deg); opacity: 0.97; }
}
@media (prefers-reduced-motion: reduce) {
  .flame path { animation: none; }
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto;
  color: var(--brass);
}
.divider::before,
.divider::after {
  content: '';
  height: 1px;
  width: 72px;
  background: linear-gradient(90deg, transparent, var(--line-bright));
}
.divider::after { background: linear-gradient(90deg, var(--line-bright), transparent); }

/* -------------------- nav -------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: linear-gradient(135deg, rgba(16, 15, 24, 0.78), rgba(22, 20, 36, 0.72));
  background-size: 200% 200%;
  animation: liquidShimmer 8s ease infinite;
  border-bottom: 1px solid rgba(201, 161, 83, 0.25);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.site-logo-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: contain;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.6), 0 4px 14px rgba(0, 0, 0, 0.7);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  vertical-align: middle;
  flex-shrink: 0;
}

.site-logo-text-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.75));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.brand:hover .site-logo-icon {
  transform: scale(1.08) rotate(3deg);
  border-color: #ffffff;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.85), 0 0 18px rgba(201, 161, 83, 0.8);
}
.brand:hover .site-logo-text-img {
  transform: scale(1.04);
  filter: drop-shadow(0 0 14px rgba(201, 161, 83, 0.65));
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--parchment-dim);
  position: relative;
  padding-bottom: 6px;
  transition: color 0.25s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--brass-bright); }
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass);
}
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, rgba(10, 10, 26, 0.97), rgba(16, 15, 24, 0.95));
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    font-size: 16px;
    font-weight: 500;
    z-index: 9999;
    border-left: 1px solid rgba(201, 161, 83, 0.15);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-links.open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
  .nav-toggle {
    display: block;
    background: linear-gradient(145deg, rgba(28, 25, 42, 0.92), rgba(16, 14, 26, 0.96));
    border: none;
    color: var(--brass-bright);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10000;
    position: relative;
    box-shadow:
      4px 4px 10px rgba(0, 0, 0, 0.55),
      -2px -2px 6px rgba(255, 255, 255, 0.03),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
  }
  .nav-toggle:hover {
    box-shadow:
      6px 6px 14px rgba(0, 0, 0, 0.6),
      0 0 12px rgba(201, 161, 83, 0.2);
  }
  .nav-toggle:active {
    box-shadow: 2px 2px 5px rgba(0,0,0,0.55), inset 0 2px 4px rgba(0,0,0,0.3);
  }
}

/* -------------------- buttons — Neumorphism style -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 14px;
  border: none;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 0.25s ease;
  opacity: 0;
  background: rgba(255,255,255,0.12);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(145deg, var(--brass-bright), var(--brass));
  color: var(--ink);
  box-shadow:
    6px 6px 14px rgba(0, 0, 0, 0.45),
    -3px -3px 10px rgba(255, 220, 150, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    8px 10px 20px rgba(0, 0, 0, 0.5),
    -3px -3px 12px rgba(255, 220, 150, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 0 18px rgba(201, 161, 83, 0.35);
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow:
    3px 3px 8px rgba(0, 0, 0, 0.45),
    inset 0 2px 4px rgba(0,0,0,0.2);
}
.btn-ghost {
  background: linear-gradient(145deg, rgba(30, 27, 46, 0.85), rgba(16, 15, 24, 0.9));
  color: var(--parchment);
  border: 1px solid rgba(201, 161, 83, 0.25);
  box-shadow:
    5px 5px 12px rgba(0, 0, 0, 0.4),
    -2px -2px 8px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn-ghost:hover {
  color: var(--brass-bright);
  border-color: rgba(201, 161, 83, 0.5);
  transform: translateY(-2px);
  box-shadow:
    7px 8px 18px rgba(0, 0, 0, 0.5),
    -2px -2px 10px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 14px rgba(201, 161, 83, 0.18);
}
.btn-ghost:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 6px rgba(0,0,0,0.45), inset 0 2px 4px rgba(0,0,0,0.25);
}

/* -------------------- hero -------------------- */
.hero {
  position: relative;
  padding: 108px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -240px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(201,161,83,0.16), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.02;
  margin: 0 0 26px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--brass-bright);
}
.hero p.lede {
  font-size: 18px;
  color: var(--parchment-dim);
  max-width: 46ch;
  margin: 0 0 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* portrait frame — no crop, image shows in full */
.portrait-frame {
  position: relative;
  border-radius: 6px;
  border: 1px solid var(--line-bright);
  padding: 8px;
  background: var(--ink-soft);
  box-shadow: var(--shadow);
  display: inline-flex;
  flex-direction: column;
  width: 100%;
}
.portrait-frame .inner {
  position: relative;
  width: 100%;
  border-radius: 4px;
  background: rgba(16, 15, 24, 0.85);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* NO overflow:hidden — never clip the image */
}
.portrait-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  object-fit: unset;
}
.portrait-frame .placeholder-mark {
  text-align: center;
  color: var(--parchment-faint);
  padding: 48px 0;
}
.portrait-frame .placeholder-mark .flame { width: 28px; height: 40px; }
.portrait-frame .caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--parchment);
  padding: 8px 12px;
  background: rgba(16,15,24,0.75);
  border-top: 1px solid var(--line);
  border-radius: 0 0 4px 4px;
  text-align: center;
  margin-top: 6px;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 340px; margin: 0 auto; }
}

/* -------------------- sections -------------------- */
section { padding: 96px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 46px);
  margin: 18px 0 16px;
}
.section-head p { color: var(--parchment-dim); font-size: 16px; margin: 0; }

/* eras / pillars */
.eras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.era {
  background: linear-gradient(145deg, rgba(26, 24, 38, 0.85), rgba(16, 15, 24, 0.9));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 42px 34px;
  transition: all 0.3s ease;
  animation: glowPulse 6s ease-in-out infinite;
}
.era:hover {
  background: linear-gradient(145deg, rgba(36, 31, 52, 0.9), rgba(22, 20, 36, 0.95));
  box-shadow: 0 0 30px rgba(201, 161, 83, 0.12), inset 0 1px 0 rgba(255,255,255,0.08);
}
.era .years {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brass);
  letter-spacing: 0.08em;
}
.era h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin: 12px 0 12px;
}
.era p { color: var(--parchment-dim); font-size: 14.5px; margin: 0; }

@media (max-width: 860px) {
  .eras { grid-template-columns: 1fr; }
}

/* gallery — simple 3-column grid, every image shows uncropped */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.frame {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px;
  background: var(--ink-soft);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.frame:hover {
  border-color: var(--brass);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.frame .inner {
  border-radius: 4px;
  background: rgba(16, 15, 24, 0.85);
  line-height: 0; /* removes phantom spacing under img */
}
.frame .inner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
}
.frame .placeholder-mark {
  text-align: center;
  color: var(--parchment-faint);
  padding: 40px 20px;
  line-height: 1.6;
}
.frame .placeholder-mark .flame { width: 16px; height: 22px; }

@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
}

/* -------------------- audio narration button — Neumorphism -------------------- */
.audio-narration-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(145deg, rgba(30, 27, 46, 0.9), rgba(20, 18, 32, 0.95));
  border: none;
  border-radius: 20px;
  color: var(--brass-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow:
    4px 4px 10px rgba(0, 0, 0, 0.5),
    -2px -2px 6px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255,255,255,0.07);
}
.audio-narration-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    6px 6px 14px rgba(0, 0, 0, 0.55),
    -2px -2px 8px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255,255,255,0.09),
    0 0 12px rgba(201, 161, 83, 0.2);
}
.audio-narration-btn:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 5px rgba(0,0,0,0.5), inset 0 2px 4px rgba(0,0,0,0.3);
}
.audio-narration-btn.playing {
  background: linear-gradient(145deg, var(--brass-bright), var(--brass));
  color: var(--ink);
  box-shadow:
    4px 4px 10px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 0 16px rgba(201, 161, 83, 0.35);
  animation: audioPulse 1.8s ease-in-out infinite;
}
@keyframes audioPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 161, 83, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(201, 161, 83, 0); }
}

.human-voice-select {
  background: var(--ink-softer);
  color: var(--parchment);
  border: 1px solid var(--line-bright);
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  outline: none;
  cursor: pointer;
}
.human-voice-select:focus {
  border-color: var(--brass);
}

.audio-playing-bar {
  position: fixed;
  bottom: -70px;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(16, 15, 24, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--brass);
  padding: 12px 0;
  transition: bottom 0.3s ease;
}
.audio-playing-bar.visible {
  bottom: 0;
}
.audio-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.audio-bar-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--parchment);
}
.audio-pulse-icon {
  display: inline-block;
  animation: audioPulseIcon 1.2s ease-in-out infinite alternate;
}
@keyframes audioPulseIcon {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.2); opacity: 1; }
}
.audio-bar-stop {
  background: linear-gradient(145deg, #a83838, var(--maroon));
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow:
    3px 3px 8px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.12);
}
.audio-bar-stop:hover {
  transform: translateY(-1px);
  box-shadow: 4px 5px 10px rgba(0,0,0,0.55), 0 0 10px rgba(168, 56, 56, 0.4);
}
.audio-bar-stop:active {
  transform: translateY(1px);
  box-shadow: 1px 1px 4px rgba(0,0,0,0.5), inset 0 2px 4px rgba(0,0,0,0.25);
}

/* voices / testimonials */
.voices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.voice {
  border-left: 2px solid var(--brass);
  padding: 4px 0 4px 24px;
}
.voice p.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--parchment);
  margin: 0 0 14px;
  line-height: 1.5;
}
.voice p.who {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--brass);
  margin: 0;
  text-transform: uppercase;
}
@media (max-width: 860px) {
  .voices { grid-template-columns: 1fr; gap: 36px; }
}

/* ask preview cta */
.ask-cta {
  border: 1px solid rgba(201, 161, 83, 0.3);
  border-radius: 16px;
  padding: 64px 48px;
  text-align: center;
  background:
    radial-gradient(ellipse 700px 300px at 50% 0%, rgba(201,161,83,0.10), transparent 70%),
    linear-gradient(145deg, rgba(26, 24, 38, 0.7), rgba(16, 15, 24, 0.65));
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: glowPulse 8s ease-in-out infinite;
}
.ask-cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  margin: 18px 0 14px;
}
.ask-cta p { color: var(--parchment-dim); max-width: 52ch; margin: 0 auto 32px; }

/* -------------------- footer -------------------- */
footer {
  border-top: 1px solid rgba(201, 161, 83, 0.18);
  padding: 48px 0;
  background: linear-gradient(180deg, rgba(16, 15, 24, 0.5), rgba(10, 10, 20, 0.8));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
footer .brand-mini {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--parchment-faint);
  letter-spacing: 0.06em;
}
footer .brand-mini .flame { width: 14px; height: 20px; }

/* ============================================================
   TIMELINE PAGE — 3D helix through the years
   ============================================================ */
.timeline-hero {
  padding: 88px 0 40px;
  text-align: center;
}
.timeline-hero .eyebrow-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 20px;
}
.timeline-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 5.5vw, 64px);
  margin: 0 0 18px;
}
.timeline-hero p {
  color: var(--parchment-dim);
  max-width: 52ch;
  margin: 0 auto;
}

/* ---- 3D stage ---- */
.timeline-3d {
  position: relative;
  min-height: var(--timeline-scroll-height, 1500vh);
}
.timeline-3d.is-fallback {
  min-height: auto;
  padding-bottom: 120px;
}

.timeline-3d-hud {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 20;
  pointer-events: none;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.timeline-3d-progress-wrap {
  width: min(420px, 72vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(201, 161, 83, 0.18);
  overflow: hidden;
}
.timeline-3d-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brass), var(--brass-bright));
}

.timeline-3d-hint {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--parchment-faint);
  animation: timeline-hint-pulse 2.4s ease-in-out infinite;
}
@keyframes timeline-hint-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.timeline-3d-active-year {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 500;
  color: var(--parchment);
  max-width: 28ch;
  line-height: 1.35;
}

.timeline-3d-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  perspective: 1400px;
  perspective-origin: 50% 42%;
  contain: layout style paint;
  transform: translateZ(0);
  background:
    radial-gradient(ellipse 900px 500px at 50% 38%, rgba(201,161,83,0.08), transparent 65%),
    radial-gradient(circle at 50% 100%, rgba(131,47,47,0.12), transparent 55%),
    linear-gradient(180deg, transparent 0%, rgba(16,15,24,0.55) 100%);
}

.timeline-3d-world {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
}

.timeline-3d-spine {
  position: absolute;
  left: 50%;
  top: -8%;
  width: 2px;
  height: 120%;
  margin-left: -1px;
  transform: translateZ(-40px);
  background: linear-gradient(
    to bottom,
    transparent,
    var(--line-bright) 6%,
    var(--brass) 50%,
    var(--line-bright) 94%,
    transparent
  );
  box-shadow: 0 0 24px rgba(201, 161, 83, 0.25);
  opacity: 0.65;
}

.timeline-3d-entries {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.timeline-3d-entry {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(380px, 86vw);
  margin-left: calc(min(380px, 86vw) / -2);
  padding: 22px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(165deg, rgba(36,31,52,0.96), rgba(20,18,30,0.98));
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  opacity: 0.38;
  will-change: transform, opacity;
}
.timeline-3d-entry.is-active {
  border-color: var(--line-bright);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(201, 161, 83, 0.18),
    0 0 40px rgba(201, 161, 83, 0.12);
  z-index: 10;
}

.timeline-3d-node {
  position: absolute;
  top: -17px;
  left: 50%;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  border-radius: 50%;
  border: 1px solid var(--line-bright);
  background: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(12px);
}
.timeline-3d-entry.is-active .timeline-3d-node {
  border-color: var(--brass);
  box-shadow: 0 0 0 5px rgba(201, 161, 83, 0.12);
}
.timeline-3d-node .flame { width: 13px; height: 18px; }

.timeline-3d-year {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--brass);
  margin-bottom: 8px;
}
.timeline-3d-entry h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 26px);
  margin: 0 0 10px;
}
.timeline-3d-entry p {
  color: var(--parchment-dim);
  font-size: 15px;
  margin: 0;
  line-height: 1.55;
}

.timeline-3d-thumb {
  margin-top: 16px;
  aspect-ratio: 16/10;
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    radial-gradient(circle at 30% 20%, rgba(201,161,83,0.14), transparent 55%),
    linear-gradient(210deg, #2a2438, #15131f 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.timeline-3d-thumb img { width: 100%; height: 100%; object-fit: cover; }
.timeline-3d-thumb span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parchment-faint);
}

/* ---- reduced-motion fallback (classic vertical thread) ---- */
.timeline-fallback-viewport {
  position: relative;
  height: auto;
  perspective: none;
  overflow: visible;
  background: none;
}

.timeline-fallback-list {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 32px 0;
}

.timeline-fallback-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--line-bright) 4%, var(--line-bright) 96%, transparent);
}
.timeline-fallback-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--brass-bright), var(--brass));
  transition: height 0.1s linear;
}

.timeline-fallback-entries {
  position: relative;
}

.timeline-fallback-entry {
  position: relative;
  width: calc(50% - 56px);
  margin-bottom: 84px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.timeline-fallback-entry.in-view { opacity: 1; transform: translateY(0); }
.timeline-fallback-entries > .timeline-fallback-entry:nth-child(odd) { margin-right: auto; text-align: right; }
.timeline-fallback-entries > .timeline-fallback-entry:nth-child(even) { margin-left: auto; text-align: left; }

.timeline-fallback-node {
  position: absolute;
  top: 4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-bright);
  background: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-fallback-entries > .timeline-fallback-entry:nth-child(odd) .timeline-fallback-node { right: -73px; }
.timeline-fallback-entries > .timeline-fallback-entry:nth-child(even) .timeline-fallback-node { left: -73px; }
.timeline-fallback-entry.in-view .timeline-fallback-node {
  border-color: var(--brass);
  box-shadow: 0 0 0 5px rgba(201,161,83,0.10);
}
.timeline-fallback-node .flame { width: 13px; height: 18px; }

.timeline-fallback-year {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--brass);
  margin-bottom: 8px;
}
.timeline-fallback-entry h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 10px;
}
.timeline-fallback-entry p {
  color: var(--parchment-dim);
  font-size: 15px;
  margin: 0;
}
.timeline-fallback-entry .timeline-3d-thumb { margin-top: 16px; }

@media (max-width: 760px) {
  .timeline-3d-hud { bottom: 18px; }
  .timeline-3d-entry { padding: 18px 18px 16px; }

  .timeline-fallback-line { left: 22px; }
  .timeline-fallback-entries > .timeline-fallback-entry,
  .timeline-fallback-entries > .timeline-fallback-entry:nth-child(odd),
  .timeline-fallback-entries > .timeline-fallback-entry:nth-child(even) {
    width: calc(100% - 64px);
    margin-left: 64px;
    text-align: left;
  }
  .timeline-fallback-entries > .timeline-fallback-entry:nth-child(odd) .timeline-fallback-node,
  .timeline-fallback-entries > .timeline-fallback-entry:nth-child(even) .timeline-fallback-node {
    left: -50px;
    right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-3d-hint { animation: none; opacity: 0.75; }
}

/* ============================================================
   ASK PAGE — full-viewport ChatGPT-style interface
   ============================================================ */
body.ask-page {
  background:
    radial-gradient(ellipse 900px 520px at 15% 10%, rgba(201,161,83,0.14), transparent 60%),
    radial-gradient(ellipse 700px 480px at 85% 20%, rgba(131,47,47,0.16), transparent 58%),
    radial-gradient(circle 420px at 50% 85%, rgba(201,161,83,0.08), transparent 70%),
    var(--ink);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Full-page chat container with Illuminated Archive Frame */
.ask-chat-fullpage {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  max-width: 900px;
  width: calc(100% - 32px);
  margin: 14px auto 20px auto;
  padding: 20px 28px;
  box-sizing: border-box;
  background: linear-gradient(165deg, rgba(20, 18, 30, 0.82), rgba(12, 11, 18, 0.92));
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border: 2px solid rgba(201, 161, 83, 0.45);
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.8),
    inset 0 0 30px rgba(201, 161, 83, 0.06),
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    0 0 25px rgba(201, 161, 83, 0.15);
}

/* Ornate Frame Corner Accents */
.ask-chat-fullpage::before,
.ask-chat-fullpage::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(201, 161, 83, 0.7);
  border-style: solid;
  pointer-events: none;
  z-index: 10;
}
.ask-chat-fullpage::before {
  top: 8px;
  left: 8px;
  border-width: 2px 0 0 2px;
  border-top-left-radius: 6px;
}
.ask-chat-fullpage::after {
  bottom: 8px;
  right: 8px;
  border-width: 0 2px 2px 0;
  border-bottom-right-radius: 6px;
}

/* Scrollable chat log */
.chat-log-fullpage {
  flex: 1;
  overflow-y: auto;
  padding: 32px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 161, 83, 0.3) transparent;
}
.chat-log-fullpage::-webkit-scrollbar { width: 4px; }
.chat-log-fullpage::-webkit-scrollbar-thumb {
  background: rgba(201, 161, 83, 0.3);
  border-radius: 2px;
}

/* Intro block inside chat log */
.chat-intro-block {
  text-align: center;
  padding: 40px 0 20px;
  max-width: 54ch;
  margin: 0 auto;
}
.chat-intro-block .flame { width: 22px; height: 30px; margin-bottom: 16px; }
.chat-intro-block h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 14px;
}
.chat-intro-block p {
  color: var(--parchment-dim);
  font-size: 16px;
  margin: 0;
  line-height: 1.6;
}

/* Chat messages */
.msg { max-width: 82%; display: flex; flex-direction: column; gap: 6px; }
.msg .bubble {
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.55;
}
.msg .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--parchment-faint);
}
.msg.from-visitor { align-self: flex-end; align-items: flex-end; }
.msg.from-visitor .bubble {
  background: rgba(201, 161, 83, 0.88);
  color: var(--ink);
  border-bottom-right-radius: 4px;
  box-shadow: 0 8px 24px rgba(201, 161, 83, 0.18);
}
.msg.from-archive { align-self: flex-start; }
.msg.from-archive .bubble {
  background: rgba(36, 31, 52, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 161, 83, 0.2);
  border-bottom-left-radius: 4px;
}
.msg.from-archive.pending .bubble { color: var(--parchment-faint); font-style: italic; }

/* ---- Sticky bottom input bar ---- */
.chat-input-sticky {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 0 20px;
  background: linear-gradient(to top,
    rgba(16, 15, 24, 0.98) 60%,
    transparent);
  z-index: 20;
}
.chat-input-inner {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: linear-gradient(145deg, rgba(26, 24, 38, 0.92), rgba(18, 16, 28, 0.96));
  border: 1px solid rgba(201, 161, 83, 0.28);
  border-radius: 18px;
  padding: 10px 10px 10px 18px;
  box-shadow:
    6px 6px 18px rgba(0, 0, 0, 0.55),
    -3px -3px 10px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 0 0 1px rgba(201, 161, 83, 0.08);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  transition: box-shadow 0.3s ease;
}
.chat-input-inner:focus-within {
  border-color: rgba(201, 161, 83, 0.55);
  box-shadow:
    6px 6px 20px rgba(0, 0, 0, 0.6),
    -3px -3px 12px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255,255,255,0.09),
    0 0 18px rgba(201, 161, 83, 0.15);
}
.chat-input-inner textarea {
  flex: 1;
  resize: none;
  background: transparent;
  border: none;
  outline: none;
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  padding: 6px 0;
  min-height: 30px;
  max-height: 140px;
}
.chat-input-inner textarea::placeholder { color: rgba(242, 232, 213, 0.35); }

/* Send button — Neumorphism icon button */
.send-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: linear-gradient(145deg, var(--brass-bright), var(--brass));
  box-shadow:
    4px 4px 10px rgba(0, 0, 0, 0.5),
    -2px -2px 6px rgba(255, 220, 130, 0.07),
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.18);
  transition: all 0.2s ease;
}
.send-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    6px 8px 16px rgba(0, 0, 0, 0.55),
    -2px -2px 8px rgba(255, 220, 130, 0.09),
    inset 0 1px 0 rgba(255,255,255,0.26),
    0 0 14px rgba(201, 161, 83, 0.3);
}
.send-btn:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 6px rgba(0,0,0,0.5), inset 0 2px 4px rgba(0,0,0,0.25);
}
.send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.chat-input-hint {
  text-align: center;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(242, 232, 213, 0.25);
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .ask-chat-fullpage { padding: 0 12px; }
  .msg { max-width: 94%; }
  .chat-intro-block { padding: 20px 0 16px; }
}

/* ============================================================
   ASK PAGE — 3-ring loader spinner (replaces pending text)
   ============================================================ */

/* Transparent bubble wrapper when loading */
.bubble--loading {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 8px 0 !important;
}

/* The spinner container — sized like the original Codepen */
.loader-spinner {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  perspective: 800px;
  margin: 4px 0;
}

/* Each ring shares these base rules */
.loader-spinner .inner {
  position: absolute;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* Ring 1 — bottom border, rotates on one axis */
.loader-spinner .inner.one {
  left: 0;
  top: 0;
  animation: ask-rotate-one 1s linear infinite;
  border-bottom: 3px solid #EFEFFA;
}

/* Ring 2 — right border, rotates on second axis */
.loader-spinner .inner.two {
  right: 0;
  top: 0;
  animation: ask-rotate-two 1s linear infinite;
  border-right: 3px solid #EFEFFA;
}

/* Ring 3 — top border, rotates on third axis */
.loader-spinner .inner.three {
  right: 0;
  bottom: 0;
  animation: ask-rotate-three 1s linear infinite;
  border-top: 3px solid #EFEFFA;
}

@keyframes ask-rotate-one {
  0%   { transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg); }
  100% { transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg); }
}
@keyframes ask-rotate-two {
  0%   { transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg); }
  100% { transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg); }
}
@keyframes ask-rotate-three {
  0%   { transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg); }
  100% { transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg); }
}

/* ============================================================
   SRILA PRABHUPADA'S WORLD TRAVEL TIMELINE & LIFE RECORD
   ============================================================ */

.travel-timeline-page {
  overflow-x: hidden;
  width: 100%;
}

.travel-hero {
  padding: 24px 0 14px;
  text-align: center;
}
.travel-hero .hero-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}
.travel-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--parchment);
}
.travel-hero h1 em {
  font-style: italic;
  color: var(--brass-bright);
}
.travel-hero .lede {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--parchment-dim);
  font-size: clamp(13px, 2vw, 15px);
  line-height: 1.45;
}

.travel-main-wrap {
  padding-bottom: 60px;
  max-width: 1140px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ---- Visualizer Container Card ---- */
.visualizer-card {
  background: linear-gradient(145deg, rgba(22, 20, 32, 0.75), rgba(16, 15, 24, 0.7));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 var(--glass-highlight),
    0 0 0 1px rgba(201, 161, 83, 0.08);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  margin-bottom: 40px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.visualizer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201, 161, 83, 0.16);
  flex-wrap: wrap;
}

.visualizer-title-group h2 {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 500;
  margin: 0 0 2px;
  color: var(--parchment);
}
.visualizer-title-group .subtext {
  margin: 0;
  font-size: 12.5px;
  color: var(--parchment-dim);
}

/* Time Readout Box positioned inside Map top-right corner empty space */
.time-readout-container {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 15;
  text-align: right;
  background: rgba(10, 9, 18, 0.88);
  border: 1px solid rgba(201, 161, 83, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 12px rgba(201, 161, 83, 0.2);
  pointer-events: none;
}
.time-readout-container .time-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 2px;
}
.time-readout {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2.5vw, 22px);
  letter-spacing: 0.08em;
  line-height: 1;
}
.time-readout::before {
  content: attr(data-month);
  color: var(--brass-bright);
  font-weight: 600;
  margin-right: 8px;
}
.time-readout::after {
  content: attr(data-year);
  color: var(--brass);
  font-weight: 500;
}

/* Active Location Banner */
.active-location-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(201, 161, 83, 0.08);
  border: 1px solid rgba(201, 161, 83, 0.22);
  border-radius: 10px;
  padding: 8px 14px;
  margin: 12px 0;
  font-size: clamp(12px, 1.8vw, 13.5px);
  color: var(--parchment);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.active-location-banner .banner-pin {
  font-size: 14px;
  flex-shrink: 0;
}
.active-location-banner .banner-text {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Map Stage Container (Golden Relief World Map - Scaled to fit 1 screen) */
.map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 560;
  max-height: calc(100vh - 310px);
  background: #0b0a12;
  border: 1px solid rgba(201, 161, 83, 0.35);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.8),
    0 12px 36px rgba(0, 0, 0, 0.5);
}
.world-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}
.travel-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Controls Bar */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(201, 161, 83, 0.16);
  flex-wrap: wrap;
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

/* Scrubber Slider */
.scrubber-wrapper {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.scrubber-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(201, 161, 83, 0.2);
  outline: none;
  cursor: pointer;
}
.scrubber-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brass-bright);
  box-shadow: 0 0 10px rgba(201, 161, 83, 0.6);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.scrubber-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.scrubber-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--parchment-faint);
}

/* Speed Controls */
.speed-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}
.speed-controls .speed-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--parchment-faint);
  margin-right: 2px;
}
.speed-btn {
  background: linear-gradient(145deg, rgba(30, 27, 44, 0.8), rgba(18, 16, 28, 0.9));
  border: 1px solid rgba(201, 161, 83, 0.2);
  color: var(--parchment-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 36px;
}
.speed-btn:hover {
  border-color: var(--brass);
  color: var(--brass-bright);
}
.speed-btn.active {
  background: linear-gradient(145deg, var(--brass-bright), var(--brass));
  color: var(--ink);
  font-weight: 600;
  border-color: var(--brass-bright);
  box-shadow: 0 0 10px rgba(201, 161, 83, 0.3);
}

/* Country Visit Legend & Counter Grid */
.counters-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed rgba(201, 161, 83, 0.2);
}
.counters-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.counters-header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  color: var(--parchment);
}
.counters-header .counters-subtitle {
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--parchment-faint);
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.country-counter-card {
  background: rgba(16, 14, 26, 0.65);
  border: 1px solid rgba(201, 161, 83, 0.16);
  border-radius: 10px;
  padding: 9px 11px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.country-counter-card.active-pulse {
  border-color: var(--brass-bright);
  box-shadow: 0 0 16px rgba(201, 161, 83, 0.35);
  background: rgba(201, 161, 83, 0.12);
}

.country-counter-card .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.country-counter-card .country-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--parchment);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.country-counter-card .visit-tally {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--brass);
  font-weight: 500;
  flex-shrink: 0;
}
.counter-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
.counter-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brass), var(--brass-bright));
  transition: width 0.3s ease;
}
.country-counter-card .card-subtext {
  font-size: 10px;
  color: var(--parchment-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Life Timeline Section (1896–1977) ---- */
.life-timeline-section {
  background: linear-gradient(145deg, rgba(22, 20, 32, 0.75), rgba(16, 15, 24, 0.7));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.life-timeline-header {
  margin-bottom: 24px;
}
.life-timeline-header h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 500;
  margin: 6px 0 8px;
  color: var(--parchment);
}
.life-timeline-header .subtext {
  margin: 0 0 18px;
  color: var(--parchment-dim);
  font-size: 14.5px;
}

/* Decade Tabs */
.decade-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.decade-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 161, 83, 0.2);
  color: var(--parchment-dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.decade-tab:hover {
  border-color: var(--brass);
  color: var(--brass-bright);
}
.decade-tab.active {
  background: linear-gradient(145deg, var(--brass-bright), var(--brass));
  color: var(--ink);
  font-weight: 600;
  border-color: var(--brass-bright);
}

/* Accordion Container */
.life-timeline-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.life-year-card {
  background: rgba(16, 14, 26, 0.6);
  border: 1px solid rgba(201, 161, 83, 0.18);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.life-year-card:hover {
  border-color: rgba(201, 161, 83, 0.4);
}
.life-year-card.has-travel {
  border-left: 3px solid var(--brass-bright);
}
.life-year-card.no-travel {
  border-left: 3px solid rgba(201, 161, 83, 0.2);
}

.life-year-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  cursor: pointer;
  user-select: none;
}
.life-year-header .year-number-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.life-year-header .year-digit {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--brass-bright);
}

.year-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-gold {
  background: rgba(201, 161, 83, 0.2);
  color: var(--brass-bright);
  border: 1px solid rgba(201, 161, 83, 0.35);
}
.badge-dim {
  background: rgba(255, 255, 255, 0.05);
  color: var(--parchment-faint);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-chevron {
  font-size: 11px;
  color: var(--brass);
  transition: transform 0.25s ease;
}
.life-year-card.open .accordion-chevron {
  transform: rotate(180deg);
}

.life-year-body {
  display: none;
  padding: 0 18px 16px 18px;
  border-top: 1px dashed rgba(201, 161, 83, 0.15);
}
.life-year-card.open .life-year-body {
  display: block;
  animation: fadeInDown 0.3s ease;
}

.travel-events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
}

.travel-event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 161, 83, 0.14);
  border-radius: 8px;
  padding: 9px 12px;
  gap: 10px;
  flex-wrap: wrap;
}
.event-date-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--brass-bright);
}
.event-place-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--parchment);
}

.jump-map-btn {
  background: rgba(201, 161, 83, 0.15);
  border: 1px solid rgba(201, 161, 83, 0.3);
  color: var(--brass-bright);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: auto;
}
.jump-map-btn:hover {
  background: var(--brass);
  color: var(--ink);
}

.no-travel-box {
  padding-top: 12px;
}
.no-travel-note {
  margin: 0;
  font-size: 13.5px;
  color: var(--parchment-dim);
  line-height: 1.5;
}
.no-travel-subnote {
  font-size: 11.5px;
  color: var(--parchment-faint);
  font-style: italic;
}

/* ============================================================
   MOBILE RESPONSIVENESS (ANDROID & IOS OPTIMIZATIONS)
   ============================================================ */
@media (max-width: 768px) {
  .wrap {
    padding: 0 14px;
  }
  .travel-hero {
    padding: 50px 0 20px;
  }
  .visualizer-card {
    padding: 16px 14px;
    border-radius: 16px;
    margin-bottom: 30px;
  }
  .visualizer-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .time-readout-container {
    width: 100%;
    text-align: left;
    box-sizing: border-box;
  }
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .controls-left {
    justify-content: space-between;
    width: 100%;
  }
  .controls-left .btn {
    flex: 1;
    justify-content: center;
  }
  .scrubber-wrapper {
    width: 100%;
    min-width: 0;
  }
  .speed-controls {
    justify-content: space-between;
    width: 100%;
  }
  .speed-btn {
    flex: 1;
    text-align: center;
  }
  .counters-grid {
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 8px;
  }
  .life-timeline-section {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .decade-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin-bottom: 10px;
    scrollbar-width: none;
  }
  .decade-tabs::-webkit-scrollbar {
    display: none;
  }
  .travel-event-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .jump-map-btn {
    margin-left: 0;
    width: 100%;
    text-align: center;
    margin-top: 4px;
  }
}

@media (max-width: 480px) {
  .counters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .life-year-header .year-digit {
    font-size: 16px;
  }
  .year-badge {
    font-size: 9.5px;
    padding: 2px 7px;
  }
}

/* ============================================================
   NEW LOGO ICONS & GOLD TYPOGRAPHY BRANDING
   ============================================================ */

.section-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  vertical-align: middle;
}

.divider-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  transition: transform 0.3s ease;
}
.divider-logo-icon:hover {
  transform: scale(1.15) rotate(5deg);
}

.ask-hero-logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 50%;
  object-fit: contain;
  border: 2.5px solid #ffffff;
  box-shadow:
    0 0 24px rgba(255, 255, 255, 0.6),
    0 10px 32px rgba(0, 0, 0, 0.65),
    0 0 24px rgba(201, 161, 83, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.ask-hero-logo:hover {
  transform: scale(1.06);
  box-shadow:
    0 0 32px rgba(255, 255, 255, 0.8),
    0 14px 40px rgba(0, 0, 0, 0.75),
    0 0 35px rgba(201, 161, 83, 0.5);
}

.cta-logo-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px auto;
  display: block;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.45), 0 8px 24px rgba(0,0,0,0.6);
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  border: 1px solid #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
  vertical-align: middle;
  margin-right: 6px;
}
.footer-logo-text-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

/* ============================================================
   GOOGLE TRANSLATE CUSTOM STYLING & DROPDOWN WIDGET
   ============================================================ */
.translate-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.translate-widget {
  position: relative;
}

.translate-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(145deg, rgba(28, 25, 42, 0.92), rgba(16, 14, 26, 0.96));
  border: 1px solid rgba(201, 161, 83, 0.35);
  border-radius: 20px;
  color: var(--brass-bright);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  cursor: pointer;
  box-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}
.translate-btn:hover,
.translate-btn.active {
  border-color: var(--brass-bright);
  color: #fff;
  background: linear-gradient(145deg, rgba(38, 33, 58, 0.95), rgba(22, 19, 36, 0.98));
  box-shadow:
    0 0 14px rgba(201, 161, 83, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.translate-btn .globe-icon { font-size: 14px; }
.translate-btn .arrow-down { font-size: 10px; opacity: 0.7; transition: transform 0.2s ease; }
.translate-btn.active .arrow-down { transform: rotate(180deg); }

/* Dropdown Menu */
.translate-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 290px;
  background: linear-gradient(160deg, rgba(22, 20, 36, 0.96), rgba(14, 13, 24, 0.98));
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(201, 161, 83, 0.4);
  border-radius: 16px;
  padding: 16px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(201, 161, 83, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1000;
}
.translate-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.translate-quick-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(201, 161, 83, 0.18);
}

.translate-quick-btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.lang-pill {
  background: rgba(16, 14, 26, 0.7);
  border: 1px solid rgba(201, 161, 83, 0.2);
  border-radius: 8px;
  color: var(--parchment-dim);
  font-family: var(--font-body);
  font-size: 12px;
  padding: 6px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-pill:hover {
  border-color: var(--brass-bright);
  color: var(--brass-bright);
  background: rgba(201, 161, 83, 0.12);
}
.lang-pill.active {
  background: linear-gradient(145deg, var(--brass-bright), var(--brass));
  color: var(--ink);
  font-weight: 600;
  border-color: var(--brass-bright);
  box-shadow: 0 0 10px rgba(201, 161, 83, 0.3);
}

.translate-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.translate-select-wrap label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--parchment-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.lang-select {
  background: rgba(12, 10, 20, 0.9);
  border: 1px solid rgba(201, 161, 83, 0.3);
  border-radius: 8px;
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 12.5px;
  padding: 7px 10px;
  outline: none;
  cursor: pointer;
}
.lang-select:focus {
  border-color: var(--brass-bright);
}

/* Hide default Google Translate banner and iframe elements */
.goog-te-banner-frame { display: none !important; }
body { top: 0px !important; }
.skiptranslate { font-family: var(--font-body) !important; }
.goog-te-gadget-icon { display: none !important; }
.goog-te-gadget-simple {
  background-color: transparent !important;
  border: none !important;
  font-size: 0 !important;
}
#goog-gt-tt { display: none !important; }
.goog-text-highlight { background-color: transparent !important; box-shadow: none !important; }


