.page-home {
  --home-glow-red: rgba(255, 58, 69, 0.42);
  --home-glow-teal: rgba(31, 231, 182, 0.2);
  --home-amber-soft: rgba(255, 176, 32, 0.14);
  --home-edge: rgba(34, 48, 76, 0.9);
  --home-card: rgba(20, 32, 58, 0.52);
  overflow-x: hidden;
  background: var(--night);
}

/* ---------- hero ---------- */

.page-home .hero {
  position: relative;
  isolation: isolate;
  padding: clamp(96px, 15vw, 150px) 0 64px;
  background: var(--night);
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
}

.page-home .hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 8% 12%, rgba(255, 58, 69, 0.16) 0%, transparent 58%),
    linear-gradient(180deg, rgba(6, 10, 18, 0.5) 0%, rgba(6, 10, 18, 0.88) 58%, var(--night) 100%);
}

.page-home .hero__pulse {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6%;
  z-index: 2;
  width: 100%;
  height: clamp(76px, 11vw, 150px);
  opacity: 0.5;
  pointer-events: none;
}

.page-home .hero__pulse path {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 14px var(--home-glow-red));
  animation: home-pulse-breathe 6s ease-in-out infinite;
}

@keyframes home-pulse-breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.page-home .hero__inner {
  position: relative;
  z-index: 3;
}

.page-home .breadcrumbs__link {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.page-home .breadcrumbs__link[aria-current="page"] {
  color: var(--teal);
}

.page-home .hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 22px 0 16px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--home-edge);
  border-radius: 999px;
  background: var(--home-card);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.page-home .hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--home-glow-red);
  animation: home-dot 1.8s ease-in-out infinite;
}

@keyframes home-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.78); }
}

.page-home .hero__title {
  margin: 0 0 22px;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--ink);
  line-height: 0.98;
}

.page-home .hero__title-line {
  display: block;
}

.page-home .hero__title-line--main {
  font-size: clamp(46px, 12.5vw, 110px);
  letter-spacing: 0.005em;
}

.page-home .hero__title-line--sub {
  margin-top: 6px;
  font-size: clamp(21px, 4.6vw, 44px);
  letter-spacing: 0.08em;
  color: var(--teal);
}

.page-home .hero__lead {
  max-width: 620px;
  margin: 0 0 26px;
  color: var(--ink);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.75;
}

.page-home .hero__strong {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--amber);
  font-weight: 700;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.page-home .hero__status {
  display: grid;
  gap: 1px;
  border: 1px solid var(--home-edge);
  border-radius: var(--radius);
  background: var(--home-edge);
  overflow: hidden;
}

.page-home .status-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 20px;
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.94) 0%, rgba(6, 10, 18, 0.94) 100%);
}

.page-home .status-cell--amber {
  background: linear-gradient(180deg, rgba(255, 176, 32, 0.09) 0%, rgba(6, 10, 18, 0.96) 100%);
}

.page-home .status-cell__label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.page-home .status-cell__value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.05;
  color: var(--ink);
}

.page-home .status-cell--amber .status-cell__value {
  color: var(--amber);
}

.page-home .status-cell__value .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.page-home .status-cell__note {
  color: var(--muted-dim);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- panels ---------- */

.page-home .stack {
  padding-bottom: clamp(48px, 7vw, 84px);
}

.page-home .panel--narrow {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.page-home .panel__title {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(25px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* ---------- entry ---------- */

.page-home .panel--entry {
  padding: clamp(22px, 3.4vw, 40px);
}

.page-home .entry {
  display: grid;
  gap: 26px;
}

.page-home .entry__text {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.page-home .steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.page-home .steps__item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.page-home .steps__item:last-child {
  border-bottom: 1px solid var(--line);
}

.page-home .steps__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.02em;
}

.page-home .steps__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .steps__text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.page-home .entry__foot {
  margin: 24px 0 0;
  color: var(--muted-dim);
  font-size: 14px;
  line-height: 1.7;
}

.page-home .entry__foot a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid var(--home-glow-teal);
}

.page-home .entry__media {
  margin: 0;
}

.page-home .entry__media img {
  filter: saturate(0.9) contrast(1.05);
}

/* ---------- groups ---------- */

.page-home .panel--groups {
  padding: clamp(22px, 3.4vw, 38px);
}

.page-home .groups__intro {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.page-home .groups__item + .groups__item {
  margin-top: 10px;
}

.page-home .groups__item .expand__trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 22, 38, 0.8);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.page-home .groups__item .expand__trigger:hover {
  border-left-color: var(--red);
  background: rgba(20, 32, 58, 0.85);
}

.page-home .groups__item[data-open] .expand__trigger {
  border-left-color: var(--teal);
}

.page-home .groups__name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-home .groups__meta {
  margin-left: auto;
  color: var(--muted-dim);
  font-size: 13px;
}

.page-home .groups__item .expand__body p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- lineup ---------- */

.page-home .panel--lineup {
  padding: clamp(22px, 3.4vw, 40px);
}

.page-home .lineup {
  display: grid;
  gap: 26px;
}

.page-home .lineup__media {
  margin: 0;
}

.page-home .lineup__text {
  max-width: 600px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.page-home .field-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-home .field-list__item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .field-list__key {
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.page-home .field-list__val {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.page-home .lineup__note {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-left: 2px solid var(--amber);
  background: var(--home-amber-soft);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
}

.page-home .lineup__link {
  margin: 24px 0 0;
}

/* ---------- data ---------- */

.page-home .panel--data {
  padding: clamp(22px, 3.4vw, 38px);
}

.page-home .data__intro {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.page-home .metrics {
  display: grid;
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .metric {
  padding: 20px 18px;
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.96) 0%, rgba(6, 10, 18, 0.96) 100%);
}

.page-home .metric__label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.page-home .metric__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 6px;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--ink);
}

.page-home .metric__value .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(38px, 6vw, 54px);
  line-height: 1;
  color: var(--teal);
}

.page-home .metric__unit {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}

.page-home .metric__note {
  margin: 0;
  color: var(--muted-dim);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.page-home .data__foot {
  margin: 24px 0 0;
  color: var(--muted-dim);
  font-size: 14px;
  line-height: 1.75;
}

.page-home .data__foot a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid var(--home-glow-teal);
}

/* ---------- multi ---------- */

.page-home .panel--multi {
  padding: clamp(22px, 3.4vw, 40px);
}

.page-home .multi {
  display: grid;
  gap: 28px;
}

.page-home .multi__text {
  max-width: 600px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.page-home .multi__facts {
  display: grid;
  gap: 14px;
}

.page-home .fact {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 22, 38, 0.7);
}

.page-home .fact__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.page-home .fact__label {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.page-home .multi__card {
  padding: 20px 18px;
}

.page-home .multi__card-label {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.page-home .watch-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .watch-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .watch-list__row:last-child {
  border-bottom: 0;
}

.page-home .watch-list__name {
  color: var(--ink);
  font-size: 15px;
}

.page-home .multi__card-note {
  margin: 14px 0 0;
  color: var(--muted-dim);
  font-size: 13px;
  line-height: 1.65;
}

/* ---------- routes ---------- */

.page-home .panel--routes {
  padding: clamp(22px, 3.4vw, 38px);
}

.page-home .routes {
  display: grid;
  gap: 12px;
}

.page-home .route-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 46px 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(20, 32, 58, 0.66) 0%, rgba(14, 22, 38, 0.9) 100%);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.page-home .route-card:hover,
.page-home .route-card:focus-visible {
  border-color: var(--red);
  transform: translateX(3px);
}

.page-home .route-card__kicker {
  color: var(--teal);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.page-home .route-card__title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.page-home .route-card__go {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 18px;
  transition: color 160ms ease;
}

.page-home .route-card:hover .route-card__go {
  color: var(--red);
}

/* ---------- city strip ---------- */

.page-home .city-strip {
  position: relative;
  isolation: isolate;
  margin-top: var(--stack-gap);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--night);
}

.page-home .city-strip__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.page-home .city-strip__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(18px, 4vw, 32px);
  text-align: center;
}

.page-home .city-strip__title {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(24px, 3.6vw, 36px);
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-home .city-strip__text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

/* ---------- responsive ---------- */

@media (min-width: 700px) {
  .page-home .hero {
    padding-bottom: 96px;
  }

  .page-home .hero__status {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .entry {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .page-home .entry__media {
    margin-top: 46px;
  }

  .page-home .lineup {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 36px;
  }

  .page-home .metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .multi {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 36px;
  }

  .page-home .routes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-home .hero {
    padding-bottom: 130px;
  }

  .page-home .hero__lead {
    font-size: 18px;
  }

  .page-home .routes {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .route-card:first-child {
    grid-column: span 2;
  }

  .page-home .route-card:first-child .route-card__title {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__pulse path,
  .page-home .hero__dot {
    animation: none;
  }

  .page-home .route-card,
  .page-home .groups__item .expand__trigger {
    transition: none;
  }

  .page-home .route-card:hover,
  .page-home .route-card:focus-visible {
    transform: none;
  }
}
