/* ============================================================================
   RTS LINK — Wayfinding Identity
   A transit design language, not a template. Lineage: Vignelli/Unimark (NYC),
   Johnston (TfL), Frutiger, Swiss International, SBB. Built around a line-map
   spine, station-blade signage, split-flap data, and DOT-style pictograms.
   ----------------------------------------------------------------------------
   Layers: tokens · base · components (nav, hero, linemap, blades, board,
   fares, stations, videos, faq, chatbot, footer) · responsive
   ============================================================================ */

/* ---------- TOKENS --------------------------------------------------------- */
:root {
  /* The RTS line is RED. JB-blue is a sparing second-terminus accent only. */
  --rts:        #E1132E;   /* line colour */
  --rts-bright: #FF2740;
  --rts-deep:   #A50F22;
  --jb:         #1F6FEB;   /* destination accent, used sparingly */
  --signal:     #1FBF75;   /* live / on-time only */
  --amber:      #F5A623;   /* boarding / caution only */

  --ink:        #0B0E14;   /* near-black, slightly warm */
  --ink-2:      #11151F;
  --ink-3:      #1A2030;
  --paper:      #F4F2ED;   /* warm signage off-white */
  --paper-2:    #EAE7DF;
  --paper-3:    #E0DCD2;
  --card:       #FBFAF7;

  --t-hi:       #0B0E14;   /* text on light */
  --t-mid:      #4A4F5C;
  --t-low:      #5C616E;
  --t-ondark:   #F4F2ED;
  --t-ondark-2: #A7AEBF;
  --t-ondark-3: #9098AB;

  --hair:       #0B0E141a; /* hairline on light */
  --hair-d:     #ffffff1f; /* hairline on dark */

  /* Type — Archivo Expanded (signage/display) + Inter (UI) + JetBrains (data) */
  --f-sign: "Archivo Expanded", "Archivo", system-ui, sans-serif;
  --f-ui:   "Inter", system-ui, sans-serif;
  --f-data: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Modular scale */
  --fs-mega: clamp(3rem, 1rem + 9vw, 9rem);
  --fs-h1:   clamp(2.4rem, 1.2rem + 4.4vw, 5rem);
  --fs-h2:   clamp(1.8rem, 1.1rem + 2.6vw, 3.2rem);
  --fs-h3:   clamp(1.25rem, 1rem + 1vw, 1.7rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.4vw, 1.28rem);
  --fs-sm:   0.875rem;
  --fs-xs:   0.75rem;

  /* Rhythm */
  --gut: clamp(1.1rem, 4vw, 2.4rem);
  --sec: clamp(4rem, 3rem + 6vw, 8.5rem);
  --maxw: 1240px;

  --r-s: 4px;          /* signage prefers tight radii */
  --r-m: 10px;
  --r-l: 18px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-io: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.5s;
}

/* ---------- BASE ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--f-ui);
  background: var(--paper);
  color: var(--t-hi);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1,h2,h3,h4 { margin: 0; font-family: var(--f-sign); font-weight: 800; line-height: 0.98; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--jb); outline-offset: 2px; border-radius: 2px; }
/* On red / ink surfaces, a white ring reads far better than blue-on-red */
.btn--rts:focus-visible, .cb-send:focus-visible, .cb-fab:focus-visible,
.dirtoggle button:focus-visible, .sttabs button:focus-visible { outline-color: #fff; outline-offset: 3px; }

/* Skip link — first focusable, sr-only until focused */
.skip { position: fixed; top: -60px; left: 12px; z-index: 200; background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--r-m) var(--r-m); font-weight: 600; transition: top .2s var(--ease); }
.skip:focus { top: 0; }
/* Lock scroll behind the mobile nav drawer */
body.nav-open { overflow: hidden; }

.wrap { width: min(100% - var(--gut)*2, var(--maxw)); margin-inline: auto; }
.wrap-wide { width: min(100% - var(--gut)*2, 1480px); margin-inline: auto; }
main { display: block; }
section { position: relative; }
[hidden] { display: none !important; }

/* Signage label — the recurring meta type */
.tag {
  font-family: var(--f-data);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--t-low);
  display: inline-flex; align-items: center; gap: .55rem;
}
.tag--node::before { content:""; width: 9px; height: 9px; border-radius: 50%; background: var(--rts); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rts) 22%, transparent); }
.on-dark .tag, .tag.on-dark { color: var(--t-ondark-2); }

.lede { font-size: var(--fs-lead); color: var(--t-mid); max-width: 60ch; }
.on-dark .lede { color: var(--t-ondark-2); }

/* ---------- BUTTONS -------------------------------------------------------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 100px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: .95rem; letter-spacing: -0.01em;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur);
  position: relative; will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn--rts { --bg: var(--rts); --fg: #fff; box-shadow: 0 12px 28px -14px color-mix(in srgb, var(--rts) 80%, transparent); }
.btn--rts:hover { box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--rts) 90%, transparent); }
.btn--ghost { --bg: transparent; --fg: var(--t-ondark); border: 1.5px solid var(--hair-d); }
.btn--ghost:hover { background: #ffffff14; }
.btn--ink { --bg: var(--ink); --fg: #fff; }
.btn--outline { --bg: transparent; --fg: var(--ink); border: 1.5px solid var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

/* ============================================================================
   NAV — a service bar
   ============================================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem var(--gut);
  transition: background var(--dur) var(--ease), backdrop-filter var(--dur), border-color var(--dur), box-shadow var(--dur);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: color-mix(in srgb, var(--ink) 82%, transparent); backdrop-filter: blur(16px) saturate(150%); border-bottom-color: var(--hair-d); }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; }
.roundel {
  width: 38px; height: 38px; flex: none; position: relative;
  display: grid; place-items: center;
}
.roundel svg { width: 38px; height: 38px; }
.brand-txt { font-family: var(--f-sign); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; line-height: 1; color: #fff; }
.brand-txt small { display: block; font-family: var(--f-data); font-weight: 500; font-size: .54rem; letter-spacing: 0.24em; color: var(--t-ondark-2); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--t-ondark-2); font-size: .9rem; font-weight: 500; position: relative; padding: .3rem 0; transition: color var(--dur); }
.nav-links a::after { content:""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--rts); transition: right var(--dur) var(--ease-io); }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a.nav-cta { padding: .6rem 1.35rem; font-size: .85rem; }
.nav-links a.nav-cta::after { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-m); background: #ffffff14; border: 1px solid var(--hair-d); color: #fff; place-items: center; }
.nav-toggle svg { width: 22px; height: 22px; }

.nav-scrim { display: none; }
@media (max-width: 1080px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100dvh; width: min(86vw, 360px); z-index: 105;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 1.1rem;
    padding: 2rem; background: var(--ink); border-left: 1px solid var(--hair-d);
    transform: translateX(100%); visibility: hidden;
    transition: transform var(--dur) var(--ease-io), visibility var(--dur) var(--ease-io);
  }
  .nav-links.open { transform: none; visibility: visible; box-shadow: -30px 0 80px -20px #000; }
  .nav-links a { font-size: 1.25rem; font-family: var(--f-sign); font-weight: 700; color: #fff; }
  /* Next train: clean full-width button at the foot of the drawer, no glow */
  .nav-links .nav-cta { width: 100%; display: inline-flex; justify-content: center; text-align: center; margin-top: .5rem; box-shadow: none; font-size: 1.05rem; padding: .9rem 1.2rem; }
  .nav-toggle { display: grid; z-index: 106; }
  /* Backdrop behind the drawer so the hero never bleeds through */
  .nav-scrim { display: block; position: fixed; top: 0; left: 0; right: 0; height: 100dvh; z-index: 104; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease); }
  body.nav-open .nav-scrim { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

/* ============================================================================
   HERO
   ============================================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); padding-top: clamp(4.5rem, 15vw, 6rem); padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.hero-media { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-video { transform: scale(1.02); }
@media (prefers-reduced-motion: reduce) { .hero-video { transform: none; } }
.hero-media::after {
  content:""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 70%, transparent) 0%, transparent 30%, color-mix(in srgb, var(--ink) 30%, transparent) 55%, var(--ink) 96%);
}
/* faint signage grid over hero */
.hero-grid { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .14;
  background-image: linear-gradient(var(--hair-d) 1px, transparent 1px), linear-gradient(90deg, var(--hair-d) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(180deg, transparent, #000 40%, #000); }
.hero-inner { position: relative; z-index: 2; width: min(100% - var(--gut)*2, var(--maxw)); margin-inline: auto; color: #fff; }
.hero .kicker { color: #fff; margin-bottom: 1.3rem; }
.hero h1 { font-size: var(--fs-mega); font-weight: 800; letter-spacing: -0.03em; max-width: 15ch; text-transform: uppercase; }
.hero h1 .row { display: block; overflow: hidden; }
.hero h1 .row > span { display: block; transform: translateY(110%); animation: rise 1s var(--ease-io) forwards; }
.hero h1 .row:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .row:nth-child(3) > span { animation-delay: .2s; }
.hero h1 em { font-style: normal; color: var(--rts-bright); }
@keyframes rise { to { transform: none; } }
.hero-sub { margin-top: 1.4rem; max-width: 46ch; font-size: var(--fs-lead); color: var(--t-ondark); opacity: 0; animation: fade .9s var(--ease-io) .5s forwards; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; opacity: 0; animation: fade .9s var(--ease-io) .65s forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ============================================================================
   LINE MAP — the signature spine
   ============================================================================ */
.linemap { --line: var(--rts); position: relative; padding: 1.4rem 0; }
.linemap-track {
  position: relative; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--line), var(--line));
  margin: 0 max(10%, 60px);
}
.linemap-track::before, .linemap-track::after {
  content:""; position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%;
  transform: translateY(-50%); background: var(--paper); border: 4px solid var(--line);
}
.on-dark .linemap-track::before, .on-dark .linemap-track::after { background: var(--ink); }
.linemap-track::before { left: -9px; }
.linemap-track::after  { right: -9px; }
.linemap-train {
  position: absolute; top: 50%; left: 0; width: 30px; height: 14px; border-radius: 3px;
  background: #fff; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px var(--line), 0 6px 14px -4px rgba(0,0,0,.4);
  animation: glide 7s var(--ease) infinite;
}
.linemap-train::after { content:""; position: absolute; right: 3px; top: 3px; bottom: 3px; width: 5px; border-radius: 2px; background: var(--line); }
@keyframes glide { 0%{left:0} 46%{left:100%} 50%{left:100%} 96%{left:0} 100%{left:0} }
.linemap-ends { display: flex; justify-content: space-between; margin-top: .8rem; }
.linemap-end { font-family: var(--f-sign); font-weight: 700; font-size: .95rem; }
.linemap-end small { display: block; font-family: var(--f-data); font-size: .62rem; letter-spacing: .16em; color: var(--t-low); font-weight: 500; margin-top: 2px; }
.on-dark .linemap-end small { color: var(--t-ondark-2); }
.linemap-end:last-child { text-align: right; }

/* hero stat rail — split-flap feel */
.rail { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--hair-d); border-radius: var(--r-m); overflow: hidden; margin-top: clamp(2rem,4vw,3rem); opacity: 0; animation: fade 1s var(--ease-io) .8s forwards; }
.rail > div { padding: 1.1rem 1.2rem; background: color-mix(in srgb, var(--ink) 55%, transparent); backdrop-filter: blur(8px); border-right: 1px solid var(--hair-d); }
.rail > div:last-child { border-right: 0; }
.flap { font-family: var(--f-sign); font-weight: 800; font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rail .k { font-family: var(--f-data); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--t-ondark-2); margin-top: .25rem; }
@media (max-width: 640px) { .rail { grid-template-columns: repeat(2,1fr); } .rail > div:nth-child(2){border-right:0} .rail>div:nth-child(1),.rail>div:nth-child(2){border-bottom:1px solid var(--hair-d)} }

.scrollcue { position: absolute; left: 50%; bottom: 1rem; z-index: 3; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .4rem; font-family: var(--f-data); font-size: .56rem; letter-spacing: .24em; color: var(--t-ondark-2); }
.scrollcue i { width: 1px; height: 30px; background: linear-gradient(var(--t-ondark-2), transparent); animation: cue 2s infinite; }
/* Mobile: let the hero size to its content (it's taller than the viewport with
   the 2x2 stat grid) so nothing rides under the fixed nav, and drop the scroll
   cue which would otherwise collide with the stats. */
@media (max-width: 640px) {
  .hero { min-height: auto; padding-top: clamp(4.75rem, 22vw, 6.5rem); padding-bottom: 2.25rem; }
  .scrollcue { display: none; }
}
@keyframes cue { 0%,100%{opacity:.2;transform:scaleY(.5)} 50%{opacity:1;transform:scaleY(1)} }

/* ============================================================================
   SECTION SHELLS + STATION BLADE headers
   ============================================================================ */
.band { padding-block: var(--sec); }
.band--paper { background: var(--paper); }
.band--paper2 { background: var(--paper-2); }
.band--ink { background: var(--ink); color: var(--t-ondark); }
.band--ink.on-dark, .on-dark { }
.band--ink h2 { color: #fff; }

/* The station-blade: a platform sign. Colour bar + name + meta. */
.blade { display: inline-flex; flex-direction: column; gap: .5rem; margin-bottom: clamp(1.8rem, 3vw, 2.8rem); }
.blade-bar { display: inline-flex; align-items: center; gap: .7rem; }
.blade-bar i { width: 30px; height: 8px; border-radius: 2px; background: var(--rts); }
.blade-bar span { font-family: var(--f-data); font-size: var(--fs-xs); letter-spacing: .22em; text-transform: uppercase; color: var(--t-low); font-weight: 600; }
.band--ink .blade-bar span { color: var(--t-ondark-2); }
.blade h2 { font-size: var(--fs-h2); text-transform: uppercase; max-width: 18ch; }
.blade .lede { margin-top: .7rem; }

/* page header (sub-page hero) */
.pagehead { position: relative; padding: calc(var(--sec) + 3rem) 0 var(--sec); background: var(--ink); color: var(--t-ondark); overflow: hidden; }
.pagehead::before { content:""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(120% 90% at 88% 0%, color-mix(in srgb, var(--rts) 26%, transparent), transparent 55%); }
.pagehead-grid { position:absolute; inset:0; opacity:.1; background-image: linear-gradient(var(--hair-d) 1px,transparent 1px),linear-gradient(90deg,var(--hair-d) 1px,transparent 1px); background-size:56px 56px; mask-image:linear-gradient(180deg,#000,transparent); }
.pagehead .wrap { position: relative; z-index: 1; }
.pagehead .idx { font-family: var(--f-data); font-size: var(--fs-xs); letter-spacing: .26em; color: var(--rts-bright); }
.pagehead h1 { font-size: var(--fs-h1); text-transform: uppercase; margin: .8rem 0 1rem; color: #fff; max-width: 16ch; }
.pagehead .lede { color: var(--t-ondark-2); }
.pagehead .crumbs { display:flex; gap:.5rem; align-items:center; font-family:var(--f-data); font-size:.7rem; letter-spacing:.12em; text-transform:uppercase; color:var(--t-ondark-2); margin-bottom:1.4rem; }
.pagehead .crumbs a:hover { color:#fff; }

/* reveal */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-io), transform .8s var(--ease-io); }
.rv.in { opacity: 1; transform: none; }
.rv[data-d="1"]{transition-delay:.08s} .rv[data-d="2"]{transition-delay:.16s} .rv[data-d="3"]{transition-delay:.24s} .rv[data-d="4"]{transition-delay:.32s}

/* ============================================================================
   PICTOGRAMS (DOT/AIGA style)
   ============================================================================ */
.pictos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; border: 1px solid var(--hair); background: var(--hair); border-radius: var(--r-m); overflow: hidden; }
.picto { background: var(--card); padding: 1.3rem 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .6rem; transition: background var(--dur); }
.picto:hover { background: var(--paper); }
.picto svg { width: 30px; height: 30px; color: var(--ink); }
.picto .t { font-size: .82rem; font-weight: 600; }
.band--ink .pictos { border-color: var(--hair-d); background: var(--hair-d); }
.band--ink .picto { background: var(--ink-2); color: var(--t-ondark); }
.band--ink .picto:hover { background: var(--ink-3); }
.band--ink .picto svg { color: #fff; }
@media (max-width: 820px){ .pictos{ grid-template-columns: repeat(3,1fr);} }
@media (max-width: 460px){ .pictos{ grid-template-columns: repeat(2,1fr);} }

/* ============================================================================
   FEATURE GRID / cards (editorial, asymmetric — no uniform card slop)
   ============================================================================ */
.feat { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2vw, 1.4rem); }
.cell { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-l); padding: clamp(1.4rem, 2.4vw, 2rem); position: relative; overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.cell:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -36px rgba(11,14,20,.4); }
.cell .n { font-family: var(--f-data); font-size: var(--fs-xs); letter-spacing: .2em; color: var(--rts); }
.cell h3 { font-size: var(--fs-h3); margin: .6rem 0 .5rem; text-transform: none; letter-spacing: -0.01em; }
.cell p { color: var(--t-mid); font-size: .94rem; }
.cell--ink { background: var(--ink); color: var(--t-ondark); border-color: transparent; }
.cell--ink h3 { color: #fff; } .cell--ink p { color: var(--t-ondark-2); }
.cell--media { padding: 0; min-height: 220px; }
.cell--media img { width:100%; height:100%; object-fit: cover; }
.col-12{grid-column:span 12} .col-8{grid-column:span 8} .col-7{grid-column:span 7} .col-6{grid-column:span 6} .col-5{grid-column:span 5} .col-4{grid-column:span 4} .col-3{grid-column:span 3}
@media (max-width: 860px){ .col-8,.col-7,.col-6,.col-5,.col-4,.col-3{grid-column:span 12} .col-4.keep,.col-6.keep{grid-column:span 6} }
@media (max-width: 520px){ .col-4.keep,.col-6.keep{grid-column:span 12} }

/* ============================================================================
   DEPARTURE BOARD (split-flap)
   ============================================================================ */
.board-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.4rem,3vw,2.4rem); align-items: start; }
@media (max-width: 940px){ .board-grid { grid-template-columns: 1fr; } }
.dirtoggle { display: inline-flex; background: var(--ink-3); border: 1px solid var(--hair-d); border-radius: 100px; padding: 4px; margin-bottom: 1.2rem; }
.dirtoggle button { padding: .5rem 1rem; border-radius: 100px; font-size: .8rem; font-weight: 600; color: var(--t-ondark-2); transition: all var(--dur); white-space: nowrap; }
.dirtoggle button.active { background: var(--rts); color: #fff; }
.board {
  background: linear-gradient(180deg, #0c1322, #070b14);
  border: 1px solid var(--hair-d); border-radius: var(--r-l);
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  box-shadow: inset 0 1px 0 #ffffff0d, 0 40px 80px -44px #000;
}
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--hair-d); }
.board-route { display: flex; align-items: center; gap: .6rem; color: #fff; font-family: var(--f-sign); font-weight: 700; font-size: .98rem; }
.board-route svg { width: 20px; height: 20px; color: var(--rts-bright); }
.live { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--f-data); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--signal) 55%,transparent)} 70%{box-shadow:0 0 0 7px transparent} 100%{box-shadow:0 0 0 0 transparent} }
.dep { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; padding: .95rem .15rem; border-bottom: 1px dashed #ffffff14; }
.dep:last-child { border-bottom: 0; }
.dep-time { font-family: var(--f-data); font-weight: 700; font-size: 1.35rem; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.dep-meta { color: var(--t-ondark-2); font-size: .8rem; }
.dep-meta b { color: var(--t-ondark); font-weight: 600; }
.dep-count { text-align: right; }
.dep-count .m { font-family: var(--f-data); font-size: 1.5rem; font-weight: 700; color: var(--signal); font-variant-numeric: tabular-nums; line-height: 1; }
.dep-count .l { font-family: var(--f-data); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--t-ondark-2); }
.dep-count.boarding .m { color: var(--amber); }
.pill { display: inline-block; font-family: var(--f-data); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; padding: .18rem .45rem; border-radius: 4px; font-weight: 600; }
.pill.ok { background: color-mix(in srgb,var(--signal) 16%,transparent); color: var(--signal); }
.pill.board { background: color-mix(in srgb,var(--amber) 18%,transparent); color: var(--amber); }
.pill.first { background: color-mix(in srgb,var(--rts) 18%,transparent); color: var(--rts-bright); }
.board-foot { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--hair-d); display: flex; justify-content: space-between; font-family: var(--f-data); font-size: .64rem; letter-spacing: .08em; color: var(--t-ondark-2); }
.svc-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.svc { background: var(--ink-2); border: 1px solid var(--hair-d); border-radius: var(--r-m); padding: 1rem; }
.svc .ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb,var(--rts) 16%,transparent); color: var(--rts-bright); margin-bottom: .6rem; }
.svc .ic svg { width: 18px; height: 18px; }
.svc .t { color: #fff; font-weight: 600; font-size: .92rem; }
.svc .d { color: var(--t-ondark-2); font-size: .8rem; margin-top: .15rem; }
.note { font-family: var(--f-data); font-size: .68rem; color: var(--t-ondark-2); margin-top: 1rem; }
.band--paper .note { color: var(--t-low); }

/* ============================================================================
   FARES — boarding-pass ticket
   ============================================================================ */
.fare-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.4rem,3vw,2.2rem); align-items: start; }
@media (max-width: 920px){ .fare-grid { grid-template-columns: 1fr; } }
.tickets { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 520px){ .tickets { grid-template-columns: 1fr; } }
.ticket { position: relative; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-l); padding: 1.5rem; overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur); }
.ticket:hover { transform: translateY(-3px); box-shadow: 0 28px 56px -34px rgba(11,14,20,.4); }
.ticket--feature { background: var(--ink); color: var(--t-ondark); border-color: transparent; }
/* perforation */
.ticket::before, .ticket::after { content:""; position: absolute; left: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); }
.band--paper2 .ticket::before, .band--paper2 .ticket::after { background: var(--paper-2); }
.ticket::before { top: calc(50% - 9px); }
.ticket::after { left: auto; right: -9px; top: calc(50% - 9px); }
.ticket .tk { font-family: var(--f-data); font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--t-low); }
.ticket--feature .tk { color: var(--t-ondark-2); }
.ticket .price { font-family: var(--f-sign); font-weight: 800; font-size: clamp(1.9rem,1.2rem+2.2vw,2.7rem); letter-spacing: -0.03em; margin: .5rem 0 .1rem; }
.ticket .price small { font-size: .85rem; color: var(--t-low); font-weight: 400; font-family: var(--f-ui); }
.ticket--feature .price small { color: var(--t-ondark-2); }
.ticket .sub { font-size: .85rem; color: var(--t-mid); }
.ticket--feature .sub { color: var(--t-ondark-2); }
.ticket ul { margin-top: 1.1rem; display: grid; gap: .42rem; }
.ticket li { display: flex; gap: .5rem; align-items: flex-start; font-size: .86rem; color: var(--t-mid); }
.ticket--feature li { color: var(--t-ondark); }
.ticket li svg { width: 15px; height: 15px; color: var(--rts); flex: none; margin-top: 3px; }
.ticket--feature li svg { color: var(--rts-bright); }
.ticket .dash { border: 0; border-top: 1px dashed var(--hair); margin: 1.1rem 0; }
.ticket--feature .dash { border-top-color: var(--hair-d); }

.calc { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-l); padding: clamp(1.4rem,2.4vw,2rem); }
.calc h3 { font-size: var(--fs-h3); text-transform: none; }
.calc > p { color: var(--t-mid); font-size: .9rem; margin: .3rem 0 1.2rem; }
.field { margin-bottom: 1rem; }
.field > label { display: block; font-family: var(--f-data); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--t-low); margin-bottom: .45rem; }
.seg { display: flex; gap: .5rem; flex-wrap: wrap; }
.seg button { flex: 1; min-width: fit-content; padding: .6rem .8rem; border: 1.5px solid var(--hair); border-radius: var(--r-m); font-size: .84rem; font-weight: 600; color: var(--t-mid); background: var(--paper); transition: all var(--dur); }
.seg button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.calc-out { margin-top: 1.3rem; padding: 1.3rem; border-radius: var(--r-m); background: var(--rts); color: #fff; text-align: center; }
.calc-out .amt { font-family: var(--f-sign); font-weight: 800; font-size: clamp(2rem,1.4rem+2.4vw,2.8rem); letter-spacing: -0.03em; line-height: 1; }
.calc-out .amt small { font-size: .9rem; opacity: .85; font-family: var(--f-ui); font-weight: 400; }
.calc-out .nt { font-size: .76rem; opacity: .92; margin-top: .45rem; }
.pays { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.pay { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .75rem; border-radius: 100px; background: var(--paper-2); font-size: .78rem; font-weight: 600; color: var(--t-mid); }
.pay svg { width: 15px; height: 15px; }

/* ============================================================================
   STATIONS / FLOOR PLAN
   ============================================================================ */
.sttabs { display: inline-flex; gap: .4rem; background: var(--card); border: 1px solid var(--hair); border-radius: 100px; padding: 5px; margin-bottom: 1.8rem; }
.sttabs button { padding: .6rem 1.15rem; border-radius: 100px; font-weight: 600; font-size: .88rem; color: var(--t-mid); transition: all var(--dur); }
.sttabs button.active { background: var(--ink); color: #fff; }
.station-panel { display: none; }
.station-panel.active { display: block; animation: fade .5s var(--ease-io); }
.st-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.4rem,3vw,2.2rem); align-items: start; }
@media (max-width: 960px){ .st-grid { grid-template-columns: 1fr; } }
.floor { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-l); overflow: hidden; }
.floor-h { padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--hair); }
.floor-h .t { font-family: var(--f-sign); font-weight: 700; font-size: 1.15rem; }
.floor-h .s { font-size: .84rem; color: var(--t-mid); margin-top: .2rem; }
.lvl { display: grid; grid-template-columns: 90px 1fr; border-bottom: 1px solid var(--hair); transition: background var(--dur); }
.lvl:last-child { border-bottom: 0; }
.lvl:hover { background: var(--paper); }
.lvl .badge { display: grid; place-items: center; background: var(--paper-2); font-family: var(--f-data); font-weight: 700; font-size: .82rem; color: var(--t-mid); padding: .6rem; border-right: 1px solid var(--hair); text-align: center; line-height: 1.2; }
.lvl.platform .badge { background: var(--rts); color: #fff; }
.lvl .badge small { display: block; font-size: .54rem; font-weight: 500; letter-spacing: .08em; opacity: .85; margin-top: .2rem; }
.lvl .body { padding: 1rem 1.2rem; }
.lvl .body .ti { font-weight: 700; font-size: .96rem; }
.lvl .body .de { font-size: .83rem; color: var(--t-mid); margin-top: .15rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.chips span { font-family: var(--f-data); font-size: .68rem; padding: .2rem .5rem; border-radius: 4px; background: var(--paper-2); color: var(--t-mid); }
.st-facts { background: var(--ink); border: 1px solid var(--hair-d); border-radius: var(--r-l); padding: clamp(1.4rem,2.4vw,1.9rem); color: var(--t-ondark); }
.st-facts img { border-radius: var(--r-m); margin-bottom: 1.2rem; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.st-facts h4 { color: #fff; font-family: var(--f-sign); font-size: 1.1rem; margin-bottom: .7rem; }
.kv { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed #ffffff1a; font-size: .87rem; }
.kv:last-of-type { border-bottom: 0; }
.kv .k { color: var(--t-ondark-2); } .kv .v { color: #fff; font-weight: 600; text-align: right; }
.callout { margin-top: 1.1rem; font-size: .82rem; color: var(--t-ondark-2); background: color-mix(in srgb,var(--jb) 14%,transparent); border-left: 3px solid var(--jb); padding: .8rem 1rem; border-radius: 0 var(--r-s) var(--r-s) 0; }
.callout b { color: #fff; }

/* ============================================================================
   VIDEOS
   ============================================================================ */
.vids { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
@media (max-width: 900px){ .vids { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .vids { grid-template-columns: 1fr; } }
.vid { position: relative; aspect-ratio: 16/9; border-radius: var(--r-m); overflow: hidden; background: #000; border: 1px solid var(--hair-d); cursor: pointer; }
.vid.feat { grid-column: span 2; }
@media (max-width: 560px){ .vid.feat { grid-column: span 1; } }
.vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-io); }
.vid:hover img { transform: scale(1.05); }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-ov { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, color-mix(in srgb,var(--ink) 88%,transparent)); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.1rem; }
.vid-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 58px; height: 58px; border-radius: 50%; background: #fffffff2; display: grid; place-items: center; transition: transform var(--dur) var(--ease); }
.vid:hover .vid-play { transform: translate(-50%,-50%) scale(1.1); }
.vid-play svg { width: 22px; height: 22px; color: var(--rts); margin-left: 3px; }
.vid-ov .vt { color: #fff; font-weight: 600; font-size: .92rem; line-height: 1.3; }
.vid-ov .vs { color: var(--t-ondark-2); font-family: var(--f-data); font-size: .72rem; margin-top: .2rem; }

/* ============================================================================
   FAQ
   ============================================================================ */
.faq-wrap { display: grid; grid-template-columns: 270px 1fr; gap: clamp(1.4rem,3vw,2.4rem); align-items: start; }
@media (max-width: 860px){ .faq-wrap { grid-template-columns: 1fr; } }
.faq-side { position: sticky; top: 90px; }
@media (max-width: 860px){ .faq-side { position: static; } }
.faq-search { display: flex; align-items: center; gap: .55rem; background: var(--card); border: 1px solid var(--hair); border-radius: 100px; padding: .7rem 1.1rem; margin-bottom: 1.1rem; }
.faq-search svg { width: 18px; height: 18px; color: var(--t-low); flex: none; }
.faq-search input { border: 0; outline: 0; background: none; width: 100%; font-size: .92rem; color: var(--t-hi); }
.cats { display: flex; flex-direction: column; gap: .2rem; }
@media (max-width: 860px){ .cats { flex-direction: row; flex-wrap: wrap; } }
.cats button { text-align: left; padding: .55rem .85rem; border-radius: var(--r-m); font-size: .87rem; font-weight: 500; color: var(--t-mid); transition: all var(--dur); display: flex; justify-content: space-between; gap: .6rem; align-items: center; }
.cats button.active { background: var(--ink); color: #fff; }
.cats button .c { font-family: var(--f-data); font-size: .68rem; opacity: .6; }
.faq-list { display: flex; flex-direction: column; gap: .65rem; }
.qa { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-m); overflow: hidden; transition: box-shadow var(--dur); }
.qa.open { box-shadow: 0 18px 40px -30px rgba(11,14,20,.4); }
.qa-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; text-align: left; font-weight: 600; font-size: .97rem; }
.qa-q .cat { display: block; font-family: var(--f-data); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rts); margin-bottom: .3rem; font-weight: 600; }
.qa-q .cx { flex: none; width: 22px; height: 22px; transition: transform var(--dur) var(--ease); color: var(--t-low); }
.qa.open .cx { transform: rotate(180deg); }
.qa-a { max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease-io); }
.qa-a .in { padding: 0 1.25rem 1.25rem; color: var(--t-mid); font-size: .92rem; white-space: pre-line; }
.faq-empty { text-align: center; padding: 3rem; color: var(--t-low); }

/* ============================================================================
   CTA + FOOTER
   ============================================================================ */
.cta { background: var(--ink); color: var(--t-ondark); text-align: center; padding-block: clamp(4rem,7vw,7rem); position: relative; overflow: hidden; }
.cta::before { content:""; position:absolute; inset:0; opacity:.5; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb,var(--rts) 22%,transparent), transparent 55%); }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { font-size: var(--fs-h2); text-transform: uppercase; color: #fff; max-width: 18ch; margin-inline: auto; }
.cta p { color: var(--t-ondark-2); margin: 1.1rem auto 1.9rem; max-width: 48ch; font-size: var(--fs-lead); }
.cta-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

.footer { background: #060911; color: var(--t-ondark-2); padding: clamp(3rem,5vw,4.5rem) 0 2rem; border-top: 1px solid var(--hair-d); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 760px){ .footer-top { grid-template-columns: 1fr; gap: 1.6rem; } }
.footer .brand { margin-bottom: 1rem; }
.footer-col h5 { color: #fff; font-family: var(--f-sign); font-size: .92rem; margin-bottom: .9rem; }
.footer-col a { display: block; font-size: .86rem; padding: .25rem 0; color: var(--t-ondark-2); transition: color var(--dur); }
.footer-col a:hover { color: #fff; }
.footer .blurb { font-size: .88rem; max-width: 38ch; }
.footer-bot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--hair-d); font-size: .77rem; }
.footer-bot .disc { max-width: 64ch; color: var(--t-ondark-3); }

/* ============================================================================
   CHATBOT
   ============================================================================ */
.cb-fab { position: fixed; right: var(--gut); bottom: var(--gut); z-index: 120; width: 60px; height: 60px; border-radius: 50%; background: var(--rts); color: #fff; display: grid; place-items: center; box-shadow: 0 16px 40px -12px color-mix(in srgb,var(--rts) 75%,transparent); transition: transform var(--dur) var(--ease); }
.cb-fab:hover { transform: scale(1.07) translateY(-2px); }
.cb-fab svg { width: 26px; height: 26px; }
.cb-fab .ping { position: absolute; top: -2px; right: -2px; width: 18px; height: 18px; background: var(--amber); color: var(--ink); border-radius: 50%; font-size: .62rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--paper); }
.cb-fab.hidden { transform: scale(0); }
.cb-panel { position: fixed; right: var(--gut); bottom: var(--gut); z-index: 121; width: min(92vw, 400px); height: min(76vh, 620px); background: var(--card); border-radius: 22px; border: 1px solid var(--hair); box-shadow: 0 40px 90px -30px rgba(6,9,17,.6); display: flex; flex-direction: column; overflow: hidden; transform: translateY(20px) scale(.96); opacity: 0; pointer-events: none; transition: transform var(--dur) var(--ease-io), opacity var(--dur); }
.cb-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.cb-head { background: var(--ink); color: #fff; padding: 1.05rem 1.15rem; display: flex; align-items: center; gap: .8rem; }
.cb-head .av { width: 42px; height: 42px; border-radius: 11px; background: var(--rts); display: grid; place-items: center; flex: none; }
.cb-head .av svg { width: 22px; height: 22px; }
.cb-head .ti { font-family: var(--f-sign); font-weight: 700; font-size: 1rem; }
.cb-head .stt { font-size: .72rem; color: var(--signal); display: flex; align-items: center; gap: .35rem; }
.cb-head .stt i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.cb-x { margin-left: auto; width: 34px; height: 34px; border-radius: 9px; background: #ffffff18; display: grid; place-items: center; color: #fff; transition: background var(--dur); }
.cb-x:hover { background: #ffffff28; }
.cb-body { flex: 1; overflow-y: auto; padding: 1.05rem; display: flex; flex-direction: column; gap: .75rem; background: var(--paper); }
.cb-msg { max-width: 85%; padding: .72rem .95rem; border-radius: 14px; font-size: .9rem; line-height: 1.5; white-space: pre-line; animation: fade .35s var(--ease-io); }
.cb-msg.bot { background: var(--card); border: 1px solid var(--hair); border-bottom-left-radius: 4px; align-self: flex-start; }
.cb-msg.user { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.cb-msg .src { display: block; margin-top: .4rem; font-family: var(--f-data); font-size: .64rem; color: var(--t-low); }
.cb-typing { display: flex; gap: 4px; padding: .8rem 1rem; }
.cb-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--t-low); animation: blink 1.2s infinite; }
.cb-typing span:nth-child(2){animation-delay:.2s} .cb-typing span:nth-child(3){animation-delay:.4s}
@keyframes blink { 0%,60%,100%{opacity:.25;transform:translateY(0)} 30%{opacity:1;transform:translateY(-3px)} }
.cb-chips { display: flex; flex-wrap: wrap; gap: .42rem; padding: 0 1.05rem .55rem; background: var(--paper); }
.cb-chip { font-size: .78rem; font-weight: 500; padding: .42rem .8rem; border-radius: 100px; background: var(--card); border: 1px solid var(--hair); color: var(--t-mid); transition: all var(--dur); }
.cb-chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cb-input { display: flex; gap: .5rem; padding: .8rem 1.05rem 1rem; background: var(--paper); border-top: 1px solid var(--hair); }
.cb-input input { flex: 1; border: 1px solid var(--hair); background: var(--card); border-radius: 100px; padding: .7rem 1.05rem; font-size: .9rem; outline: 0; color: var(--t-hi); }
.cb-input input:focus { border-color: var(--rts); }
.cb-send { width: 44px; height: 44px; border-radius: 50%; background: var(--rts); color: #fff; display: grid; place-items: center; flex: none; transition: transform var(--dur); }
.cb-send:hover { transform: scale(1.08); }
.cb-send svg { width: 18px; height: 18px; }

/* ---------- utilities ---------- */
.mt-1{margin-top:1rem} .mt-2{margin-top:2rem} .center{text-align:center}
.split { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem,3vw,2.4rem); align-items:center; }
@media (max-width: 820px){ .split{ grid-template-columns:1fr; } }
