:root {
  --accent: #30d158;
  --accent-dim: rgba(48, 209, 88, 0.14);
  --amber: #ffb340;
  --amber-dim: rgba(255, 179, 64, 0.14);
}

/* fade-in images */
.fade-img { opacity: 0; transition: opacity 0.45s ease; }
.fade-img.is-loaded { opacity: 1; }

/* scroll reveal (key headings only) */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* hero */
.hero { padding: 36px 0 24px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
}
.hero .kicker { margin: 18px 0 6px; letter-spacing: 0.22em; }
.hero h1 { font-size: clamp(32px, 5.2vw, 54px); line-height: 1.15; }
.hero .lead { margin-top: 12px; font-size: 15.5px; line-height: 1.7; }
.hero-actions { margin-top: 20px; }

.hero-window {
  justify-self: center;
  width: min(260px, 100%);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--panel);
}
.hero-window img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* departure board */
.board {
  background: #090d1b;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-disp);
}
.board-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  padding-bottom: 6px;
  border-bottom: 1px dotted var(--line);
  margin-bottom: 6px;
}
.board-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.board-row {
  display: grid;
  grid-template-columns: 52px 92px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 4px 0;
  font-size: 13.5px;
  border-bottom: 1px dotted rgba(201, 199, 214, 0.1);
}
.board-row:last-child { border-bottom: none; }
.b-time { color: var(--ink-hi); }
.b-type { color: var(--ink-dim); }
.b-type.is-green { color: var(--accent); }
.b-dest { color: var(--ink-hi); }
.b-stat { font-size: 12px; color: var(--ink-dim); }
.b-stat.is-amber { color: var(--amber); }

/* ride simulation */
.sim-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.sim-track-wrap {
  overflow-x: auto;
  padding: 14px 4px 18px;
}
.sim-track {
  position: relative;
  min-width: 680px;
  height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sim-line {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 14px;
  height: 2px;
  background: var(--line);
}
.sim-station {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.sim-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--ink-dim);
  margin-top: 10px;
}
.sim-station.is-passed .sim-dot {
  border-color: var(--accent);
  background: var(--accent);
}
.sim-name {
  font-size: 11px;
  color: var(--ink-dim);
  white-space: nowrap;
}
.sim-train {
  position: absolute;
  top: 8px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
  transform: translateX(-50%);
  z-index: 2;
  transition: left 0.25s linear;
}
.sim-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 14px;
  border-top: 1px dotted var(--line);
}
.sim-label {
  display: block;
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-bottom: 2px;
}
.sim-val {
  font-family: var(--font-disp);
  font-size: 16px;
  color: var(--ink-hi);
  font-weight: 400;
}
.sim-val.is-green { color: var(--accent); }
.sim-val.is-amber { color: var(--amber); }

/* 6 lines diagram */
.diagram-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.diag-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: center;
  padding: 14px 18px;
  background: rgba(13, 17, 36, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.diag-meta h3 {
  font-family: var(--font-disp);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink-hi);
}
.diag-sub {
  font-size: 12.5px;
  color: var(--ink-dim);
}
.diag-line {
  display: flex;
  align-items: center;
  width: 100%;
}
.diag-line .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.diag-line .bar {
  height: 2px;
  flex: 1;
  background: linear-gradient(90deg, var(--accent), rgba(48, 209, 88, 0.28));
}

/* 6 experiences (departure board style with dotted rules) */
.exp-list .exp-row {
  grid-template-columns: 36px 1fr;
  border-top: 1px dotted var(--line);
}
.exp-list .exp-row:last-child {
  border-bottom: 1px dotted var(--line);
}
.led-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 6px;
}
.led-dot.is-green { background: var(--accent); box-shadow: 0 0 8px rgba(48, 209, 88, 0.55); }
.led-dot.is-amber { background: var(--amber); box-shadow: 0 0 8px rgba(255, 179, 64, 0.55); }

/* screens staggered layout */
.screens-stagger {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: start;
}
.screens-stagger .shot { width: 100%; }
.screens-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.shot-offset-1 { margin-top: 18px; }
.shot-offset-2 { margin-top: 0; }
.shot-offset-3 { grid-column: 1 / -1; width: min(260px, 100%) !important; justify-self: center; }

@media (max-width: 760px) {
  .hero { padding: 20px 0 18px; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero .kicker { margin: 12px 0 4px; font-size: 12px; }
  .hero h1 { font-size: 32px; }
  .hero .lead { font-size: 14px; margin-top: 8px; line-height: 1.6; }
  .hero-actions { margin-top: 14px; }
  .hero-window { width: min(220px, 68vw); }

  .sim-info { grid-template-columns: 1fr; gap: 10px; }
  .diag-row { grid-template-columns: 1fr; gap: 10px; }
  .screens-stagger { grid-template-columns: 1fr; }
  .screens-sub { grid-template-columns: 1fr 1fr; }
  .shot-offset-1 { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-img, .reveal, .sim-train { transition: none; }
  .reveal { opacity: 1; transform: none; }
}
