/* ============================================================
   RED TRAIN — design tokens
   ============================================================ */
:root {
  /* color */
  --bg: #0b0d10;
  --surface: #14171b;
  --surface-2: #1c2024;
  --line: #2a2e33;
  --line-soft: #202327;
  --text: #f2f3f4;
  --text-dim: #9aa0a6;
  --text-faint: #656b71;
  --red: #e23744;
  --red-bright: #ff4a56;
  --red-dim: #4a1418;
  --green: #34c566;
  --amber: #e8a93b;

  /* type */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* layout */
  --maxw: 1160px;
  --gutter: 28px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; color: var(--text-dim); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px var(--red-dim);
  flex-shrink: 0;
}

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

/* ============================================================
   NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 16, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark { height: 30px; width: auto; display: block; }
.logo-word { height: 15px; width: auto; display: block; }
.footer-logo { align-items: flex-start; }
.logo-stack { height: 96px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--text-dim);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }

/* mini transit-line indicator under active nav item */
.nav-track {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: 8px;
}
.nav-track .stop {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-track .stop.active {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-dim);
}
.nav-track .rail {
  width: 22px;
  height: 1px;
  background: var(--line);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.nav-cta:hover {
  border-color: var(--red);
  color: var(--text);
  background: rgba(226, 55, 68, 0.08);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 11px;
}
.nav-toggle svg { display: block; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px var(--gutter) 22px;
  border-top: 1px solid var(--line-soft);
}
.mobile-menu a {
  padding: 13px 4px;
  font-size: 15px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a.active { color: var(--red-bright); }
.mobile-menu.open { display: flex; }

@media (max-width: 840px) {
  .nav-links, .nav-cta, .nav-track { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-bright); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text-dim); }

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  gap: 18px;
  max-width: 760px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
}
.hero .sub {
  font-size: 18px;
  max-width: 560px;
  margin-top: 6px;
  color: var(--text-dim);
}
.hero .btn-row { margin-top: 18px; }

@media (max-width: 600px) {
  .hero .wrap { text-align: center; }
  .hero .eyebrow { justify-content: center; }
  .hero .btn-row { justify-content: center; }
  .hero .sub { margin-left: auto; margin-right: auto; }
}

/* ============================================================
   SIGNATURE ELEMENT — the rail line
   ============================================================ */
.railway {
  margin-top: 72px;
  width: 100%;
  overflow: hidden;
}
.railway svg { width: 100%; height: auto; display: block; }

.rail-track {
  stroke: var(--line);
  stroke-width: 2;
}
.rail-progress {
  stroke: var(--red);
  stroke-width: 2;
  stroke-dasharray: 4 6;
  animation: dash-move 3.5s linear infinite;
}
@keyframes dash-move {
  to { stroke-dashoffset: -40; }
}
.rail-stop-ring {
  fill: var(--bg);
  stroke: var(--line);
  stroke-width: 2;
}
.rail-stop-core {
  fill: var(--text-faint);
}
.rail-stop.is-lit .rail-stop-ring { stroke: var(--red); }
.rail-stop.is-lit .rail-stop-core {
  fill: var(--red);
  filter: drop-shadow(0 0 6px rgba(226, 55, 68, 0.9));
}
.rail-stop-label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--text-faint);
  letter-spacing: 0.05em;
}
.rail-stop.is-lit .rail-stop-label { fill: var(--text-dim); }

.rail-train {
  fill: var(--red-bright);
  filter: drop-shadow(0 0 8px rgba(255, 74, 86, 0.7));
  animation: train-move 7s ease-in-out infinite;
}
@keyframes train-move {
  0%   { transform: translateX(0); }
  48%  { transform: translateX(calc(100% - 0px)); }
  50%  { transform: translateX(calc(100% - 0px)); }
  98%  { transform: translateX(0); }
  100% { transform: translateX(0); }
}

/* ============================================================
   DEPARTURE BOARD (stats)
   ============================================================ */
.board {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(226,55,68,0.03), transparent);
}
.board .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 34px var(--gutter);
}
.board-item {
  padding: 0 22px;
  border-left: 1px solid var(--line-soft);
}
.board-item:first-child { border-left: none; padding-left: 0; }
.board-value {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 30px);
  color: var(--red-bright);
  letter-spacing: -0.01em;
}
.board-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 6px;
}
@media (max-width: 840px) {
  .board .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .board-item:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 480px) {
  .board .wrap { grid-template-columns: 1fr; }
  .board-item { border-left: none !important; padding-left: 0 !important; text-align: center; }
}

/* ============================================================
   SECTIONS / GENERAL
   ============================================================ */
.section {
  padding: 88px 0;
}
.section-tight { padding: 64px 0; }
.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
}
.section-head .sub {
  margin-top: 14px;
  font-size: 16.5px;
  color: var(--text-dim);
}
@media (max-width: 600px) {
  .section-head {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

.divider {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 0;
}

/* ============================================================
   STATION / SERVICE CARDS
   ============================================================ */
.stations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) {
  .stations { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .stations { grid-template-columns: 1fr; }
}

.station-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.station-card:hover {
  border-color: var(--red);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.station-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--red-bright);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.station-code::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.station-card h3 {
  font-size: 19px;
  margin-top: 14px;
}
.station-card p {
  margin-top: 10px;
  font-size: 14.5px;
}
.station-card .link-out {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.station-card .link-out svg { transition: transform 0.2s ease; }
.station-card:hover .link-out svg { transform: translateX(3px); }

/* ============================================================
   EXISTING CLIENTS BAND
   ============================================================ */
.clients-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 34px 36px;
}
.clients-band .btn { flex-shrink: 0; }
@media (max-width: 700px) {
  .clients-band {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ============================================================
   PILLARS
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } }

.pillar { padding-top: 18px; border-top: 2px solid var(--line); }
.pillar.is-red { border-top-color: var(--red); }
.pillar h3 { font-size: 17.5px; margin-bottom: 10px; }
.pillar p { font-size: 14.5px; }
@media (max-width: 600px) {
  .pillar { text-align: center; }
  .pillar .icon-tile { margin-left: auto; margin-right: auto; }
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 44px;
  position: relative;
}
.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
}
.testimonial cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.03em;
}
@media (max-width: 600px) { .testimonial { padding: 30px 24px; } }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: radial-gradient(circle at 20% 20%, rgba(226,55,68,0.12), transparent 55%), var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 76px 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, 40px);
}
.cta-band p {
  margin-top: 14px;
  font-size: 16.5px;
}
.cta-band .btn-row {
  justify-content: center;
  margin-top: 30px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 56px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; max-width: 260px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  padding: 6px 0;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-legal-links a {
  color: var(--text-faint);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.footer-legal-links a:hover { color: var(--text-dim); }
@media (max-width: 600px) {
  .footer-grid { text-align: center; }
  .footer-brand .logo { justify-content: center; margin: 0 auto 14px; }
  .footer-brand p { margin: 0 auto; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PAGE HERO (About / Services / Contact — shorter hero)
   ============================================================ */
.page-hero {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { font-size: clamp(36px, 5.5vw, 54px); }
.page-hero .sub {
  margin-top: 16px;
  font-size: 17px;
  max-width: 560px;
}
@media (max-width: 600px) {
  .page-hero .wrap { text-align: center; }
  .page-hero .eyebrow { justify-content: center; }
  .page-hero .sub { margin-left: auto; margin-right: auto; }
}

/* ============================================================
   ABOUT PAGE SPECIFIC
   ============================================================ */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; gap: 30px; }
}
.story-grid p + p { margin-top: 16px; }
@media (max-width: 600px) {
  .story-grid { text-align: center; }
  .story-grid h2 { text-align: center; }
}

.crew-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .crew-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .crew-grid { grid-template-columns: 1fr; } }
.crew-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px;
}
.crew-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.crew-card h3 { font-size: 16.5px; margin-top: 10px; }
.crew-card p { font-size: 13.5px; margin-top: 8px; }

/* ============================================================
   SERVICES PAGE SPECIFIC
   ============================================================ */
.route-line {
  display: flex;
  align-items: center;
  margin: 8px 0 56px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.route-line .seg {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 150px;
}
.route-line .seg-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--red-dim);
  flex-shrink: 0;
}
.route-line .seg-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 10px;
  white-space: nowrap;
}
.route-line .seg-rail {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
  margin-left: 14px;
}
.route-line .seg:last-child .seg-rail { display: none; }

@media (max-width: 560px) {
  .route-line {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .route-line .seg {
    flex: 1 1 45%;
    min-width: 45%;
    margin-bottom: 14px;
  }
  .route-line .seg-rail { display: none; }
}

.service-block {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 52px 0;
  border-top: 1px solid var(--line-soft);
}
.service-block:first-of-type { border-top: none; }
@media (max-width: 780px) {
  .service-block { grid-template-columns: 1fr; gap: 18px; }
}
.service-block .station-code { font-size: 13px; }
.service-block h3 {
  font-size: clamp(24px, 3vw, 30px);
  margin-top: 10px;
}
.service-block .tagline {
  margin-top: 10px;
  font-size: 16px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
}
.service-block ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
@media (max-width: 560px) {
  .service-block ul { grid-template-columns: 1fr; }
}
.service-block li {
  font-size: 14.5px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}
.service-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.process-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 780px) { .process-row { grid-template-columns: 1fr; } }
.process-step {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 22px;
  background: var(--surface);
}
.process-step .step-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.process-step h3 { margin-top: 12px; font-size: 18px; }
.process-step p { margin-top: 10px; font-size: 14px; }

/* ============================================================
   CONTACT PAGE SPECIFIC
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red);
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.form-note {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-faint);
}

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px;
  height: fit-content;
}
.contact-panel h3 {
  font-size: 15px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 20px;
}
.contact-panel .item { margin-bottom: 18px; }
.contact-panel .item .k {
  font-size: 12.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.contact-panel .item .v {
  font-size: 15px;
  color: var(--text);
  margin-top: 4px;
}
.contact-panel .item .v a:hover { color: var(--red-bright); }
@media (max-width: 600px) {
  .contact-panel { text-align: center; }
  .contact-panel .icon-tile { margin-left: auto; margin-right: auto; }
}

.form-success {
  display: none;
  border: 1px solid var(--green);
  background: rgba(52, 197, 102, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.form-success.show { display: block; }
.form-success .signal {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(52,197,102,0.18);
  margin: 0 auto 14px;
}
.form-success h3 { font-size: 18px; }
.form-success p { margin-top: 8px; font-size: 14.5px; }
form.hide { display: none; }

/* ============================================================
   CUSTOM SVG GRAPHICS
   ============================================================ */
.icon-tile {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(226, 55, 68, 0.08);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-tile svg { width: 24px; height: 24px; color: var(--red-bright); }
.icon-tile-lg { width: 64px; height: 64px; border-radius: 14px; margin-bottom: 16px; }
.icon-tile-lg svg { width: 28px; height: 28px; }
.icon-tile-sm { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px; }
.icon-tile-sm svg { width: 18px; height: 18px; }

.station-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.station-top .icon-tile { width: 40px; height: 40px; }
.station-top .icon-tile svg { width: 20px; height: 20px; }

/* hero decorative background graphic */
.hero-bg-graphic {
  position: absolute;
  top: -30px;
  right: -40px;
  width: 50%;
  max-width: 520px;
  height: auto;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}
.hbg-line-a { stroke: var(--red); stroke-width: 1.4; }
.hbg-line-b { stroke: var(--line); stroke-width: 1.2; }
.hbg-node { fill: var(--red); }
.hero .wrap { position: relative; z-index: 1; }

/* about page route-map illustration */
.route-map { margin: 12px 0 26px; }
.route-map svg { width: 100%; height: auto; display: block; }
.map-line-main { stroke: var(--red); stroke-width: 3; }
.map-line-cross { stroke: var(--line); stroke-width: 2; }
.map-node { fill: var(--bg); stroke: var(--red); stroke-width: 2.5; }
.map-interchange-ring { fill: var(--bg); stroke: var(--red); stroke-width: 3; }
.map-interchange-core { fill: var(--red); }
.map-caption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  margin-top: 10px;
}

/* clients band icon row */
.clients-band .cb-text {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.clients-band .cb-text .icon-tile { margin-top: 2px; }
@media (max-width: 700px) {
  .clients-band .cb-text {
    flex-direction: column;
    align-items: center;
  }
  .clients-band .cb-text .icon-tile { margin-top: 0; }
}

/* solo contact panel (no form) */
.contact-solo {
  max-width: 560px;
  margin: 0 auto;
}
.contact-solo .contact-panel { padding: 40px; }

/* ============================================================
   NETWORK GRAPHIC (animated nodes + pulses) — reused site-wide
   ============================================================ */
.network-graphic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.24;
  pointer-events: none;
  z-index: 0;
}
.net-line { stroke: var(--line); stroke-width: 1.4; }
.net-line-alt {
  stroke: var(--red);
  stroke-width: 1.2;
  stroke-dasharray: 4 6;
  animation: dash-move 4s linear infinite;
}
.net-node { fill: var(--bg); stroke: var(--text-faint); stroke-width: 1.6; }
.net-node-main { stroke: var(--red); fill: var(--bg); }
.net-pulse {
  fill: var(--red-bright);
  filter: drop-shadow(0 0 5px rgba(255, 74, 86, 0.9));
}
.net-pulse-b { fill: var(--text-dim); filter: none; }

.infra-network {
  width: 100%;
  height: auto;
  display: block;
  margin: 12px 0 26px;
}
.graphic-caption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  margin-top: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .net-pulse { display: none; }
}

/* ============================================================
   AMBIENT BACKGROUND BLOBS
   ============================================================ */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
  animation: blobDrift 20s ease-in-out infinite;
}
.bg-blob-red { background: var(--red); }
.bg-blob-steel { background: #3d5266; }
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(26px, -18px) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-blob { animation: none; }
}

.page-hero { position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; }
.cta-band { position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 1; }
.clients-band { position: relative; overflow: hidden; }
.clients-band .cb-text,
.clients-band > a.btn { position: relative; z-index: 1; }

/* ============================================================
   STAGGERED REVEAL DELAYS
   ============================================================ */
.reveal-d1 { transition-delay: 0.05s; }
.reveal-d2 { transition-delay: 0.12s; }
.reveal-d3 { transition-delay: 0.19s; }
.reveal-d4 { transition-delay: 0.26s; }

/* ============================================================
   ICON / CARD MICRO-INTERACTIONS
   ============================================================ */
.icon-tile { transition: transform 0.3s ease, background 0.3s ease; }
.station-card:hover .icon-tile,
.service-block:hover .icon-tile,
.pillar:hover .icon-tile {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(226, 55, 68, 0.16);
}
.pillar { transition: border-color 0.25s ease; }
.pillar:hover { border-top-color: var(--red); }

/* animated flow along the services step connector */
.route-line .seg-rail {
  background-size: 24px 2px;
  animation: railFlow 1.4s linear infinite;
}
@keyframes railFlow { to { background-position: 24px 0; } }
@media (prefers-reduced-motion: reduce) {
  .route-line .seg-rail { animation: none; }
}

/* signal icon "on" light pulsing */
@keyframes signalPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.signal-on { animation: signalPulse 2.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .signal-on { animation: none; }
}

/* animated stat counters just inherit .board-value styling */

/* ============================================================
   LEGAL / PRIVACY PAGE
   ============================================================ */
.legal-content {
  max-width: 720px;
}
.legal-updated {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 40px;
}
.legal-content h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-top: 48px;
  margin-bottom: 20px;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  font-size: 17px;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-content p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 4px;
}
.legal-content p + p { margin-top: 14px; }
.legal-content a {
  color: var(--red-bright);
  text-decoration: underline;
  text-decoration-color: var(--red-dim);
}
.legal-content a:hover { color: var(--text); }
.legal-address {
  font-size: 15px;
  color: var(--text-dim);
  margin: 14px 0;
}
.legal-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}
.legal-list li { margin-bottom: 8px; }
.legal-list strong { color: var(--text); }
.legal-divider {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 48px 0;
}
.legal-nowrap { white-space: nowrap; color: var(--text-dim); }
.legal-footnote {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--text-faint);
  font-style: italic;
}
@media (max-width: 600px) {
  .legal-content { text-align: left; }
}
