/* Columbia Transport — World in Motion prototype */

:root {
  --bg:        #050912;
  --bg-2:     #0A0F1F;
  --ink:       #E8ECF2;
  --ink-dim:   #8893A6;
  --gold:      #C9A66B;
  --gold-soft: #E8D0A1;
  --brand-red: #c8352a;
  --brand-red-soft: #e25548;
  --teal:      #4FC3F7;
  --line:      rgba(255,255,255,0.08);
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ─────────── NAV ─────────── */
nav.site {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2.5rem;
  padding-top: max(1.2rem, env(safe-area-inset-top));
  padding-left: max(2.5rem, env(safe-area-inset-left));
  padding-right: max(2.5rem, env(safe-area-inset-right));
  backdrop-filter: blur(12px);
  background: rgba(5,9,18,0.4);
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
nav.site .brand {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brand-red);
  text-shadow: 0 0 18px rgba(200, 53, 42, 0.35);
}
nav.site ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}
nav.site a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 200ms ease;
}
nav.site a:hover { color: var(--gold); }

/* ─────────── HERO ─────────── */
section.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.globe-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  max-width: 900px;
  padding: 0 2rem;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--brand-red);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-shadow: 0 0 14px rgba(200, 53, 42, 0.5);
}
.headline {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.headline .yours {
  color: var(--brand-red);
  font-style: italic;
  text-shadow: 0 0 28px rgba(200, 53, 42, 0.45);
}
.headline {
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}
.cursor {
  display: inline-block;
  width: 3px;
  background: var(--gold);
  margin-left: 4px;
  animation: blink 1s infinite;
  vertical-align: -0.15em;
}
@keyframes blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }

.sub {
  margin-top: 2rem;
  color: var(--ink-dim);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.hero-bottom {
  position: absolute;
  bottom: 2rem;
  bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1rem));
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  text-align: center;
  pointer-events: none;
}
.eyebrow-below {
  margin: 0 0 1.4rem 0;
  background: rgba(5, 9, 18, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(200, 53, 42, 0.4);
  display: inline-block;
  font-weight: 600;
}
.scroll-cue {
  color: var(--ink-dim);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: float 2.5s ease-in-out infinite;
}
.scroll-cue .line {
  width: 1px; height: 30px;
  background: linear-gradient(to bottom, transparent, var(--gold));
}
@keyframes float {
  0%,100% { transform: translateY(0) }
  50%     { transform: translateY(8px) }
}

/* Live clocks corner */
.clocks {
  position: absolute;
  top: 6rem; right: 2.5rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.7rem;
  color: var(--ink-dim);
  text-align: right;
  letter-spacing: 0.1em;
}
.clocks .clock { display: flex; gap: 0.8rem; justify-content: flex-end; }
.clocks .city  { color: var(--gold); width: 60px; text-align: right; }
.clocks .time  { color: var(--ink); }

/* ─────────── STATS ─────────── */
section.stats {
  padding: 8rem 2rem;
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item .num {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}
.stat-item .num .plus { color: var(--gold-soft); font-size: 0.6em; }
.stat-item .lbl {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ─────────── LANES ─────────── */
section.lanes {
  padding: 6rem 2rem 0 2rem;
  position: relative;
  background: var(--bg-2);
}
.section-header {
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  text-align: center;
}
.section-header .eyebrow { margin-bottom: 1rem; }
.section-header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.section-header h2 em { color: var(--gold); font-style: italic; }
.section-header p {
  margin-top: 1.2rem;
  color: var(--ink-dim);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.lanes-globe-wrap {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;
}
.lanes-globe {
  position: absolute;
  inset: 0;
}
.lane-list {
  position: absolute;
  left: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 320px;
}
.lane-item {
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border-left: 2px solid var(--line);
  font-size: 0.85rem;
  transition: all 300ms ease;
  cursor: default;
}
.lane-item.active {
  border-left-color: var(--gold);
  background: rgba(201,166,107,0.06);
}
.lane-item .lane-name {
  color: var(--ink);
  font-weight: 400;
}
.lane-item .lane-meta {
  color: var(--ink-dim);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.3rem;
}

/* ─────────── SERVICES ─────────── */
section.services {
  padding: 8rem 2rem;
  background: var(--bg);
}
.services-grid {
  max-width: 1200px;
  margin: 4rem auto 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.svc {
  position: relative;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 100%);
  border: 1px solid var(--line);
  transition: all 400ms cubic-bezier(.2,.7,.2,1);
}
.svc:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(201,166,107,0.08) 0%, transparent 100%);
}
.svc .num {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.2em;
}
.svc h3 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  margin: 0.6rem 0 1rem 0;
}
.svc p {
  color: var(--ink-dim);
  font-size: 0.95rem;
}
.svc .icon-3d {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 64px; height: 64px;
  opacity: 0.4;
  transition: opacity 400ms ease;
}
.svc:hover .icon-3d { opacity: 1; }

/* ─────────── BRANCH MAP (full-bleed, hero-style) ─────────── */
section.network {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 720px;
  padding: 0;
  background: var(--bg);
  overflow: hidden;
}
#branch-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.network-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.network-head {
  position: absolute;
  top: 6rem;
  left: 0; right: 0;
  text-align: center;
  pointer-events: none;
}
.network-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}
.network-head h2 em { color: var(--brand-red); font-style: italic; }

.branch-panel-floating {
  position: absolute;
  top: 50%;
  right: 2.5rem;
  transform: translateY(-50%);
  width: 280px;
  background: rgba(5, 9, 18, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  padding: 1.8rem 1.4rem;
  pointer-events: auto;
}
.resume-rotation {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
  background: rgba(5, 9, 18, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--brand-red);
  color: var(--brand-red);
  padding: 0.7rem 1.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 240ms ease;
}
.resume-rotation:hover { background: var(--brand-red); color: var(--bg); }
.resume-rotation[hidden] { display: none; }
.filter-group {
  margin-bottom: 1.5rem;
}
.filter-group .lbl {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.6rem;
}
.chip {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  margin: 0.2rem 0.2rem 0.2rem 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 200ms ease;
  background: transparent;
  color: var(--ink-dim);
}
.chip.active, .chip:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,166,107,0.05);
}
#branch-count {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--gold);
  margin: 1rem 0 0.2rem 0;
}
#branch-count-lbl {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.branch-detail {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  min-height: 120px;
}
.branch-detail .city {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--ink);
}
.branch-detail .country { color: var(--ink-dim); font-size: 0.85rem; }
.branch-detail .badges { margin-top: 0.8rem; }
.branch-detail .badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(201,166,107,0.1);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-right: 0.4rem;
}

/* ─────────── CTA / FOOTER ─────────── */
section.cta {
  padding: 10rem 2rem;
  text-align: center;
  background: var(--bg);
}
section.cta h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
}
section.cta .btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: all 300ms ease;
}
section.cta .btn:hover {
  background: var(--gold);
  color: var(--bg);
}

footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-dim);
}

/* ─────────── RESPONSIVE ─────────── */
@media (max-width: 900px) {
  .stats-grid, .services-grid { grid-template-columns: 1fr 1fr; }
  .map-wrap { grid-template-columns: 1fr; height: auto; }
  .clocks { display: none; }
  nav.site {
    padding: 1rem 1.2rem;
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-left: max(1.2rem, env(safe-area-inset-left));
    padding-right: max(1.2rem, env(safe-area-inset-right));
  }
  nav.site ul { gap: 1rem; }

  /* Hero: lighter type, eyebrow stays */
  .hero-overlay h1.headline { font-size: clamp(2rem, 8vw, 3rem); line-height: 1.05; }
  .hero-overlay .sub { font-size: 0.85rem; }

  /* Lanes: globe out, lane list takes full width */
  .lanes-globe-wrap { display: block; height: auto; }
  .lanes-globe { display: none; }
  .lane-list { position: static; transform: none; margin: 1.5rem auto; max-width: 520px; }

  /* Network: globe out, branch list takes its place */
  .network { min-height: 0; height: auto; padding: 4rem 1.2rem; }
  #branch-map { display: none; }
  .network-overlay { position: static; padding: 0; pointer-events: auto; }
  .network-head { margin-bottom: 1.5rem; }
  .branch-panel-floating {
    position: static;
    width: 100%;
    backdrop-filter: none;
    background: rgba(15, 23, 41, 0.6);
    margin-bottom: 1.5rem;
  }
  .resume-rotation { display: none !important; }

  #branch-list-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0.3rem;
  }
  .branch-item {
    display: flex; align-items: center; gap: 0.8rem;
    width: 100%;
    background: rgba(15, 23, 41, 0.55);
    border: 1px solid rgba(201, 166, 107, 0.18);
    color: var(--ink);
    padding: 0.85rem 1rem;
    text-align: left;
    cursor: pointer;
    transition: background 200ms, border-color 200ms;
  }
  .branch-item:hover, .branch-item:active {
    background: rgba(201, 166, 107, 0.1);
    border-color: rgba(201, 166, 107, 0.5);
  }
  .branch-item-dot {
    width: 10px; height: 10px; border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
  }
  .branch-item-text { flex: 1; min-width: 0; }
  .branch-item-city {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--ink);
  }
  .branch-item-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--ink-dim);
    letter-spacing: 0.08em;
    margin-top: 0.2rem;
  }
}

/* ─────────── BRANCH MODAL ─────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 9, 18, 0.78);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 2rem;
  animation: fade 200ms ease;
}
.modal-backdrop[hidden] { display: none; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
  position: relative;
  background: linear-gradient(135deg, #0F1729 0%, #050912 100%);
  border: 1px solid var(--gold);
  max-width: 460px;
  width: 100%;
  padding: 2.5rem 2.2rem 2rem 2.2rem;
  color: var(--ink);
  animation: rise 280ms cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(201,166,107,0.15);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(20px) scale(0.96) }
  to   { opacity: 1; transform: translateY(0)    scale(1) }
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: none; border: none;
  color: var(--ink-dim);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 200ms;
}
.modal-close:hover { color: var(--gold); }
.modal-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.modal-city {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.modal-country {
  color: var(--ink-dim);
  font-size: 0.9rem;
}
.modal-badges {
  margin-top: 1rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.modal-badges .badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: rgba(201,166,107,0.1);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.modal-divider {
  height: 1px;
  background: var(--line);
  margin: 1.5rem 0;
}
.modal-list {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.6rem 1rem;
  font-size: 0.85rem;
}
.modal-list dt {
  color: var(--ink-dim);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  align-self: center;
}
.modal-list dd { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; }
.modal-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.7rem;
}
.modal-btn {
  flex: 1;
  text-align: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 220ms ease;
}
.modal-btn:hover { border-color: var(--gold); color: var(--gold); }
.modal-btn.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--bg);
}
.modal-btn.primary:hover { background: transparent; color: var(--gold); }

/* ─────────── LOADING ─────────── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000;
  display: grid;
  place-items: center;
  transition: opacity 600ms ease;
}
.loader.hidden { opacity: 0; pointer-events: none; }
.loader .brand {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 2rem;
  letter-spacing: 0.05em;
}
.loader .bar {
  margin-top: 2rem;
  width: 200px; height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader .bar::after {
  content: '';
  display: block;
  width: 40%; height: 100%;
  background: var(--gold);
  animation: load 1.2s ease-in-out infinite;
}
@keyframes load {
  0%   { transform: translateX(-100%) }
  100% { transform: translateX(400%) }
}
