/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px clamp(20px, 5vw, 80px) 100px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  will-change: transform;
}
.hero-orb-1 { width: 620px; height: 620px; background: var(--accent); top: -160px; right: -120px; }
.hero-orb-2 { width: 460px; height: 460px; background: #4ECDC4; bottom: -160px; left: -120px; }
html.dark .hero-orb { opacity: 0.28; }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(color-mix(in oklab, var(--border) 60%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--border) 60%, transparent) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 80%);
  opacity: 0.35;
  pointer-events: none;
}

.hero-inner { max-width: 1320px; width: 100%; margin: 0 auto; position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 70%, transparent); }
  50% { box-shadow: 0 0 0 10px transparent; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 7.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--fg);
  margin-bottom: 32px;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0.08em;
  height: 0.1em;
  background: color-mix(in oklab, var(--accent) 35%, transparent);
  z-index: -1;
  border-radius: 4px;
}
.cursor-blink {
  display: inline-block;
  width: 4px;
  height: 0.85em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--muted);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 48px;
}
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero-meta {
  position: absolute;
  left: clamp(20px, 5vw, 80px);
  bottom: 32px;
  display: flex;
  gap: 32px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.hero-meta strong { color: var(--fg); margin-right: 8px; font-weight: 600; }
.scroll-arrow {
  position: absolute;
  right: clamp(20px, 5vw, 80px);
  bottom: 32px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-arrow .line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  --gap: 60px;
}
.marquee-track {
  display: flex;
  gap: var(--gap);
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
}
.marquee-item::after {
  content: '';
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.marquee-item.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--fg);
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - var(--gap) / 2)); }
}

/* ============ WORLD JOURNEY ============ */
#journey {
  position: relative;
  background: var(--bg);
}
.journey-scroll {
  /* total scroll length determines pacing — each stop ~100vh */
  height: 900vh;
  position: relative;
}
.journey-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.journey-globe-wrap {
  position: absolute;
  inset: 0;
  display: block;
}
.journey-globe {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
}
.journey-globe::before, .journey-globe::after { display: none !important; }
.journey-meridians { display: none !important; }
.journey-globe::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--accent) 8%, var(--bg)), var(--bg) 70%);
  box-shadow:
    inset 40px 40px 80px color-mix(in oklab, var(--accent) 18%, transparent),
    inset -20px -20px 100px color-mix(in oklab, var(--fg) 12%, transparent);
}
.journey-globe::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px dashed color-mix(in oklab, var(--accent) 30%, transparent);
  animation: spinSlow 60s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

.journey-meridians {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.journey-meridians .merid {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--accent) 12%, transparent);
}
.journey-meridians .merid.h1 { transform: rotateX(60deg); }
.journey-meridians .merid.h2 { transform: rotateX(30deg); }
.journey-meridians .merid.h3 { transform: rotateX(-30deg); }
.journey-meridians .merid.h4 { transform: rotateX(-60deg); }
.journey-meridians .merid.v1 { transform: rotateY(30deg); }
.journey-meridians .merid.v2 { transform: rotateY(60deg); }
.journey-meridians .merid.v3 { transform: rotateY(-30deg); }
.journey-meridians .merid.v4 { transform: rotateY(-60deg); }

.journey-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.journey-map-svg .land {
  fill: color-mix(in oklab, var(--fg) 90%, transparent);
  opacity: 0.78;
}
html.dark .journey-map-svg .land { fill: color-mix(in oklab, var(--accent) 60%, var(--fg)); opacity: 0.55; }

.journey-map-svg .grat { stroke: color-mix(in oklab, var(--accent) 20%, transparent); fill: none; stroke-width: 0.3; }

.journey-plane {
  position: absolute;
  width: 56px; height: 56px;
  color: var(--accent);
  pointer-events: none;
  filter: drop-shadow(0 6px 16px color-mix(in oklab, var(--accent) 50%, transparent));
  z-index: 5;
  transition: transform 0.05s linear;
}

.journey-trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.journey-trail path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px color-mix(in oklab, var(--accent) 50%, transparent));
}

.journey-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 6;
}
.journey-pin .dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 70%, transparent);
  animation: pinPulse 2s ease-out infinite;
}
@keyframes pinPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 70%, transparent); }
  70% { box-shadow: 0 0 0 18px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.journey-pin .lbl {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.journey-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  z-index: 10;
}
.journey-info {
  width: 100%;
  padding: 40px clamp(20px, 5vw, 80px) 60px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.journey-stop {
  pointer-events: auto;
}
.journey-stop .stop-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.journey-stop .stop-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.journey-stop .stop-name .yr {
  font-family: var(--font-mono);
  font-size: 0.35em;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.journey-stop .stop-tag {
  font-size: 1rem;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.55;
  margin-top: 14px;
  text-wrap: pretty;
}
.journey-stop .stop-coord {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.journey-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}
.journey-progress .bar {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.journey-progress .bar-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.journey-progress .stops {
  display: flex;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.journey-progress .stops span.cur { color: var(--accent); font-weight: 700; }

.journey-distance {
  position: absolute;
  top: 100px;
  right: clamp(20px, 5vw, 80px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-align: right;
  z-index: 10;
}
.journey-distance .km {
  display: block;
  font-size: 1.6rem;
  color: var(--fg);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

/* compass */
.journey-compass {
  position: absolute;
  top: 100px;
  left: clamp(20px, 5vw, 80px);
  width: 72px; height: 72px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, var(--bg) 60%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
}
.journey-compass .n { position: absolute; top: 6px; }
.journey-compass .s { position: absolute; bottom: 6px; }
.journey-compass .e { position: absolute; right: 6px; }
.journey-compass .w { position: absolute; left: 6px; }
.journey-compass .needle {
  width: 2px; height: 32px;
  background: linear-gradient(to bottom, var(--accent) 0% 50%, var(--muted) 50% 100%);
  border-radius: 2px;
  transition: transform 0.6s var(--ease);
  transform-origin: center;
}


/* ============ JOURNEY BIG TEXT ============ */
.journey-scroll { height: 600vh; position: relative; }
.journey-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.journey-header-mini {
  position: absolute;
  top: 100px;
  left: clamp(20px, 5vw, 80px);
  right: clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
}

.journey-bigtext {
  text-align: center;
  padding: 0 24px;
  position: relative;
  width: 100%;
  user-select: none;
}
.journey-bigtext .bigtext-year {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 28px;
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}
.journey-bigtext .bigtext-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--fg);
  text-wrap: balance;
  transition: opacity 0.45s var(--ease), transform 0.7s var(--ease), filter 0.45s var(--ease);
  white-space: nowrap;
  font-size: clamp(2.5rem, 12vw, 11rem);
  max-width: 92vw;
  margin-left: auto;
  margin-right: auto;
}
.journey-bigtext .bigtext-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: var(--muted);
  margin-top: 32px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  transition: opacity 0.45s var(--ease), transform 0.5s var(--ease);
}

.journey-bigtext.swapping .bigtext-name,
.journey-bigtext.swapping .bigtext-sub,
.journey-bigtext.swapping .bigtext-year {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(8px);
}

.journey-progress-mini {
  position: absolute;
  bottom: clamp(40px, 6vh, 80px);
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 48px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 5;
}
.journey-progress-mini .bar {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.journey-progress-mini .bar-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.journey-progress-mini .stops {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.journey-progress-mini .stops span.cur { color: var(--accent); font-weight: 700; }
