  :root {
    --bg:           #06080a;
    --bg-soft:      #0a0d10;
    --ink:          #c8e6d2;
    --ink-bright:   #ecf8ef;
    --dim:          #6b8a78;
    --line:         rgba(200, 230, 210, 0.08);
    --line-strong:  rgba(200, 230, 210, 0.16);

    --accent:       #34d399;
    --accent-soft:  rgba(52, 211, 153, 0.35);
    --tier-live:    #34d399;
    --tier-next:    #fbbf24;
    --tier-soon:    #22d3ee;
    --tier-planned: #5a7068;
  }

  * { box-sizing: border-box; }
  ::selection { background: rgba(52,211,153,0.28); color: var(--ink-bright); }

  html, body {
    margin: 0; padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }

  /* Vignette + grain */
  body::before {
    content: ""; position: fixed; inset: 0;
    background:
      radial-gradient(140% 90% at 50% 30%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 100%),
      repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px);
    pointer-events: none;
    z-index: 40;
  }

  a { color: inherit; }

  /* ─────────────────────────────────────────────────────────────
     Top bar — brand + status
     ───────────────────────────────────────────────────────────── */
  .top {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: clamp(1rem, 2.4vh, 1.6rem) clamp(1.25rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    line-height: 1;
    color: var(--ink-bright);
    letter-spacing: -0.01em;
    user-select: none;
    text-decoration: none;
  }
  .brand .num,
  .brand .period { color: var(--accent); }

  .top-meta {
    display: flex;
    gap: clamp(0.9rem, 2vw, 1.8rem);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dim);
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .top-meta > div { display: flex; flex-direction: column; gap: 0.2rem; align-items: flex-end; }
  .top-meta .v { color: var(--ink); letter-spacing: 0.1em; font-weight: 400; }
  .top-meta .v.online::before {
    content: ""; display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-soft);
    margin-right: 0.5em;
    vertical-align: 1px;
    animation: livePulse 2.4s ease-in-out infinite;
  }
  @keyframes livePulse {
    0%, 100% { box-shadow: 0 0 8px var(--accent-soft); opacity: 1; }
    50%      { box-shadow: 0 0 16px rgba(52,211,153,1); opacity: 0.75; }
  }

  /* ─────────────────────────────────────────────────────────────
     Hero — headline + non-interactive rotating globe
     ───────────────────────────────────────────────────────────── */
  .hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    padding: clamp(2rem, 6vh, 4.5rem) clamp(1.25rem, 4vw, 2.5rem);
    min-height: 78vh;
  }

  .hero-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: clamp(0.9rem, 2vh, 1.4rem);
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }
  .hero-eyebrow::before {
    content: ""; display: inline-block;
    width: clamp(1.8rem, 4vw, 2.6rem); height: 1px;
    background: var(--accent);
    opacity: 0.6;
  }

  .headline {
    margin: 0;
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-style: normal;
    font-weight: 500;
    font-size: clamp(2.1rem, 5.8vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink-bright);
    text-wrap: balance;
    text-transform: lowercase;
  }
  .headline .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
  .headline .inner {
    display: inline-block;
    transform: translateY(108%);
    opacity: 0;
    will-change: transform, opacity;
    animation: lineUp 900ms cubic-bezier(.2,.8,.25,1) forwards;
  }
  .headline .line:nth-child(1) .inner { animation-delay: 300ms; }
  .headline .line:nth-child(2) .inner { animation-delay: 540ms; }
  .headline .dot {
    color: var(--accent);
    font-style: italic;
    display: inline-block;
    transition: text-shadow 400ms ease, color 400ms ease;
  }
  .headline .dot.flare {
    color: #d1fae5;
    text-shadow:
      0 0 14px rgba(52,211,153,0.9),
      0 0 28px rgba(52,211,153,0.4);
  }
  @keyframes lineUp { to { transform: translateY(0); opacity: 1; } }

  .sub {
    margin: clamp(1.2rem, 3vh, 1.8rem) 0 0;
    font-size: clamp(0.78rem, 1.05vw, 0.92rem);
    line-height: 1.7;
    color: var(--ink);
    max-width: 34em;
    letter-spacing: 0.02em;
    opacity: 0;
    animation: fadeUp 800ms ease 1000ms forwards;
  }
  .sub b { color: var(--ink-bright); font-weight: 400; }
  .sub .accent { color: var(--accent); }

  .cta-row {
    margin-top: clamp(1.2rem, 3vh, 1.8rem);
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 1.8rem);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 800ms ease 1150ms forwards;
  }
  .cta {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ink-bright);
    text-decoration: none;
    padding: 0.95em 1.5em;
    border: 1px solid var(--line-strong);
    background: transparent;
    transition: color 240ms, border-color 240ms, background 240ms, box-shadow 240ms;
    white-space: nowrap;
  }
  .cta::after {
    content: "→"; display: inline-block;
    margin-left: 0.55em;
    color: var(--accent);
    transition: transform 240ms cubic-bezier(.2,.8,.25,1);
  }
  .cta:hover {
    color: var(--bg);
    background: var(--ink-bright);
    border-color: var(--ink-bright);
    box-shadow: 0 0 32px rgba(52,211,153,0.25);
  }
  .cta:hover::after { transform: translateX(4px); color: var(--bg); }
  .contact {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--dim);
    text-decoration: none;
    transition: color 200ms;
  }
  .contact:hover { color: var(--accent); }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Hero globe — non-interactive marquee */
  .hero-globe {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 640px;
    justify-self: end;
    opacity: 0;
    animation: fadeUp 1200ms ease 700ms forwards;
  }
  #globe {
    position: absolute; inset: 0;
    width: 100% !important; height: 100% !important;
    pointer-events: none;       /* non-interactive */
  }

  /* Hero globe POP markers — flat DOM dots, always face the camera */
  .hg-pop {
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
  .hg-dot {
    display: block;
    border-radius: 50%;
    background: currentColor;
  }
  .hg-pop.tier-0 { color: var(--tier-live); }
  .hg-pop.tier-1 { color: var(--tier-next); }
  .hg-pop.tier-2 { color: var(--tier-soon); }
  .hg-pop.tier-3 { color: var(--tier-planned); }
  .hg-pop.tier-0 .hg-dot { width: 9px;  height: 9px;  box-shadow: 0 0 10px currentColor; }
  .hg-pop.tier-1 .hg-dot { width: 7px;  height: 7px;  box-shadow: 0 0 8px  currentColor; }
  .hg-pop.tier-2 .hg-dot { width: 5px;  height: 5px;  box-shadow: 0 0 6px  currentColor; }
  .hg-pop.tier-3 .hg-dot { width: 3.5px; height: 3.5px; opacity: 0.85; }

  /* ─────────────────────────────────────────────────────────────
     2D map section — zoomable & hoverable
     ───────────────────────────────────────────────────────────── */
  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: clamp(0.8rem, 2vh, 1.4rem);
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  }
  .section-head h2 {
    margin: 0;
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 500;
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
    color: var(--ink-bright);
    letter-spacing: -0.012em;
    text-transform: lowercase;
  }
  .section-head h2 .accent { color: var(--accent); }
  .section-head .hint {
    font-size: 0.6rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--dim);
  }

  .map-section {
    padding: clamp(2.5rem, 6vh, 4.5rem) 0 clamp(1rem, 3vh, 2rem);
    border-top: 1px solid var(--line);
  }
  .map-wrap {
    margin: 0 clamp(1.25rem, 4vw, 2.5rem);
    position: relative;
    background:
      radial-gradient(120% 80% at 50% 50%, rgba(52,211,153,0.04) 0%, transparent 70%),
      var(--bg-soft);
    border: 1px solid var(--line);
    overflow: hidden;
    /* Natural Earth projection's intrinsic shape is ~2:1; let the wrap
       take the available width and derive height. No max-height — that
       was capping height below the aspect-driven value on tall MacBooks
       and leaving an empty gap to the right. */
    aspect-ratio: 2 / 1;
  }
  #map {
    display: block;
    width: 100%;
    height: 100%;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
  }
  #map.dragging { cursor: grabbing; }

  /* Map graticule (very subtle) */
  .map-graticule { stroke: rgba(200,230,210,0.04); fill: none; stroke-width: 0.5; }
  .map-sphere    { fill: transparent; stroke: rgba(200,230,210,0.12); stroke-width: 1; }
  .map-land      { fill: rgba(200,230,210,0.06); stroke: rgba(200,230,210,0.18); stroke-width: 0.5; vector-effect: non-scaling-stroke; }
  .map-country   { fill: none; stroke: rgba(200,230,210,0.10); stroke-width: 0.5; vector-effect: non-scaling-stroke; }

  /* Map markers */
  .map-pop { cursor: pointer; }
  .map-pop .aura { opacity: 0.32; }
  .map-pop .core { stroke: var(--bg); stroke-width: 0.5; }
  .map-pop.tier-0 { color: var(--tier-live);    }
  .map-pop.tier-1 { color: var(--tier-next);    }
  .map-pop.tier-2 { color: var(--tier-soon);    }
  .map-pop.tier-3 { color: var(--tier-planned); }
  .map-pop.tier-0 .aura { animation: auraPulse 2.4s ease-in-out infinite; }
  .map-pop.tier-1 .aura { animation: auraPulse 3.2s ease-in-out infinite; }
  @keyframes auraPulse {
    0%, 100% { opacity: 0.20; }
    50%      { opacity: 0.55; }
  }
  .map-pop .core,
  .map-pop .aura { fill: currentColor; }

  .map-pop.highlight .core { filter: drop-shadow(0 0 6px currentColor); }
  .map-pop:hover .aura { opacity: 0.7; }

  /* Map tooltip */
  .map-tooltip {
    position: absolute;
    background: rgba(6,8,10,0.94);
    border: 1px solid var(--line-strong);
    padding: 8px 12px;
    font-size: 10.5px;
    letter-spacing: 0.16em;
    color: var(--ink);
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms;
    z-index: 5;
    line-height: 1.55;
  }
  .map-tooltip.visible { opacity: 1; }
  .map-tooltip .tt-row { display: flex; gap: 0.8em; align-items: baseline; }
  .map-tooltip .tt-iata { font-weight: 500; }
  .map-tooltip .tt-tier { opacity: 0.6; font-size: 8.5px; letter-spacing: 0.22em; }

  /* Map zoom controls */
  .map-zoom {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    background: rgba(6,8,10,0.55);
    backdrop-filter: blur(4px);
    z-index: 4;
  }
  .map-zoom button {
    background: transparent;
    border: 0;
    color: var(--ink);
    width: 32px; height: 32px;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: background 200ms, color 200ms;
  }
  .map-zoom button + button { border-top: 1px solid var(--line); }
  .map-zoom button:hover { background: rgba(52,211,153,0.12); color: var(--accent); }
  .map-zoom button:active { background: rgba(52,211,153,0.22); }

  /* ─────────────────────────────────────────────────────────────
     POPs section — grouped by phase
     ───────────────────────────────────────────────────────────── */
  .pops-section {
    padding: clamp(2.5rem, 6vh, 4rem) 0 clamp(2rem, 4vh, 3rem);
    border-top: 1px solid var(--line);
  }
  .pops-grid {
    margin: 0 clamp(1.25rem, 4vw, 2.5rem);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
  }
  .pops-col {
    border: 1px solid var(--line);
    padding: clamp(1rem, 2vw, 1.4rem);
    background: linear-gradient(180deg, rgba(200,230,210,0.015) 0%, transparent 100%);
    transition: border-color 240ms, background 240ms;
  }
  .pops-col:hover { border-color: var(--line-strong); }
  .pops-col header {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    padding-bottom: 0.7rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid var(--line);
  }
  .pops-col header .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    flex-shrink: 0;
  }
  .pops-col header .label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: currentColor;
    flex-grow: 1;
  }
  .pops-col header .count {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--ink-bright);
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
  }
  .pops-col.tier-0 { color: var(--tier-live);    }
  .pops-col.tier-1 { color: var(--tier-next);    }
  .pops-col.tier-2 { color: var(--tier-soon);    }
  .pops-col.tier-3 { color: var(--tier-planned); }

  .pops-col ul {
    list-style: none; margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }
  .pops-col li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    align-items: baseline;
    font-size: 0.7rem;
    line-height: 1.3;
    cursor: default;
    padding: 0.15rem 0;
    transition: color 200ms;
  }
  .pops-col li:hover { color: var(--ink-bright); }
  .pops-col li .iata {
    color: currentColor;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
  }
  .pops-col li .city {
    color: var(--ink);
    letter-spacing: 0.02em;
    font-weight: 300;
  }
  .pops-col li .country {
    grid-column: 2;
    color: var(--dim);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 0.1rem;
  }

  /* ─────────────────────────────────────────────────────────────
     Footer
     ───────────────────────────────────────────────────────────── */
  .footer {
    border-top: 1px solid var(--line);
    padding: clamp(1.4rem, 3vh, 2rem) clamp(1.25rem, 4vw, 2.5rem);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--dim);
  }
  .footer .stack { display: flex; flex-direction: column; gap: 0.3rem; }
  .footer .stack.r { align-items: flex-end; text-align: right; }
  .footer a { color: var(--dim); text-decoration: none; transition: color 200ms; }
  .footer a:hover { color: var(--accent); }

  /* ─────────────────────────────────────────────────────────────
     Reveal-on-scroll helper
     ───────────────────────────────────────────────────────────── */
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 800ms ease, transform 800ms cubic-bezier(.2,.8,.25,1);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ─────────────────────────────────────────────────────────────
     Mobile
     ───────────────────────────────────────────────────────────── */
  @media (max-width: 920px) {
    .top { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .top-meta { justify-content: flex-start; }
    .top-meta > div { align-items: flex-start; }

    .hero {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto;
      gap: 2.5rem;
      min-height: auto;
      padding-top: 2rem;
      padding-bottom: 3rem;
    }
    .hero-content { order: 2; }
    .hero-globe { order: 1; justify-self: center; max-width: 92vw; max-height: 56vh; aspect-ratio: 1 / 1; }
    .headline { font-size: clamp(2.4rem, 11.5vw, 4.2rem); }
    .sub { max-width: 100%; }

    .map-wrap { aspect-ratio: 4 / 3; max-height: none; }

    .pops-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  }

  @media (max-width: 560px) {
    .top-meta { gap: 0.8rem 1.2rem; }
    .pops-grid { grid-template-columns: 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
    .map-zoom { top: 0.6rem; right: 0.6rem; }
    .map-zoom button { width: 28px; height: 28px; font-size: 14px; }
    .cta-row { width: 100%; }
    .cta { flex: 1; text-align: center; }
  }

  /* ─────────────────────────────────────────────────────────────
     Reduced motion
     ───────────────────────────────────────────────────────────── */
  @media (prefers-reduced-motion: reduce) {
    .headline .inner,
    .sub, .cta-row, .hero-globe, .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
    .top-meta .v.online::before { animation: none; }
    .map-pop .aura { animation: none !important; }
  }
