/* ============================================================
   MyChatBot.dev — prototype.css
   Direction A: light editorial engineering studio + Agent Works
   ============================================================ */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f5ef;
  --surface: #ffffff;
  --ink: #0b0c0a;
  --ink-2: #2d312b;
  --muted: #667062;
  --faint: #9aa595;
  --line: #dfe5db;
  --line-strong: #c7d4c4;

  --blue: #2f6bff;
  --blue-soft: #d4ebff;
  --green: #19e76e;
  --green-soft: #d7face;
  --gold: #d5700b;
  --gold-soft: #ffedc4;
  --pink-soft: #f4e7f2;
  --purple-soft: #d6b7f5;
  --ok: #19e76e;

  --sans: "Geist", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --mono: "Geist Mono", "SFMono-Regular", ui-monospace, Consolas, monospace;

  --nav-h: 68px;
  --grid-gap: 12px;
  --section-inset: 12px;
  --maxw: 1680px;
  --ease: cubic-bezier(.75, 0, .1, .99);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 350;
  line-height: 1.5;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(11, 12, 10, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 12, 10, .04) 1px, transparent 1px);
  background-size: 60px 60px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
p, h1, h2, h3, h4 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--green-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .96;
}
.lede { color: var(--muted); font-size: 16px; line-height: 1.5; }
.mono { font-family: var(--mono); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-ink: #fff;
  --btn-shadow: #2d312b;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 450;
  letter-spacing: -.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--btn-shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.btn span[aria-hidden] { font-family: var(--mono); font-size: 16px; transition: transform .35s var(--ease); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--btn-shadow); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn:active { transform: translate(0, 0); box-shadow: 3px 3px 0 var(--btn-shadow); }
.btn--ghost {
  --btn-bg: #fff;
  --btn-ink: var(--ink);
  --btn-shadow: #d5dbd1;
  border-color: var(--line-strong);
}
.btn--ghost:hover { --btn-shadow: #9aa595; }
.btn--sm { height: 36px; padding: 0 13px; font-size: 13px; box-shadow: 3px 3px 0 var(--btn-shadow); }
.btn--sm:hover { box-shadow: 5px 5px 0 var(--btn-shadow); }

/* ---------- Nav ---------- */
.pnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 245, 239, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.pnav__inner {
  max-width: var(--maxw);
  height: var(--nav-h);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.pnav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.pnav__brand svg { width: 22px; height: 22px; }
.pnav__links { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.pnav__links a {
  padding: 7px 10px;
  font-size: 13.5px;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.pnav__links a:hover { color: var(--ink); background: rgba(11, 12, 10, .045); }
.pnav__cta { margin-left: auto; }

/* ---------- Hero ---------- */
main { padding: 0 var(--section-inset); }
.hero {
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: clip;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
  min-height: 820px;
  padding: 26px 26px 0;
}
.hero__head { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 5; min-width: 0; }
.hero__eyebrow { margin-bottom: 22px; }
.hero h1 {
  max-width: 13ch;
  font-size: clamp(56px, 7.5vw, 112px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .92;
}
.hero__copy {
  grid-column: 1 / span 4;
  grid-row: 2;
  align-self: start;
  position: relative;
  z-index: 4;
  max-width: 360px;
  min-width: 0;
  margin-top: 40px;
  padding: 18px 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 6px 6px 0 rgba(11, 12, 10, .045);
}
.hero__lede { font-size: 16px; line-height: 1.45; color: var(--ink-2); letter-spacing: -.01em; }
.hero__lede strong { font-weight: 520; color: var(--ink); }
.hero__copy .btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero__note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Stage ---------- */
.hero__stage {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  height: 680px;
  margin-top: -18px;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
}
.stage__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: pan-y;
}
.stage__canvas:active { cursor: grabbing; }
.stage__chrome {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--faint);
}
.stage__live { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.stage__live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(25, 231, 110, .55);
  animation: live-pulse 1.9s infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(25, 231, 110, .5); }
  70% { box-shadow: 0 0 0 7px rgba(25, 231, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 231, 110, 0); }
}

/* Station labels projected over the canvas */
.station-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.station-label {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  will-change: transform;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.station-label:hover {
  background: #fff;
  border-color: var(--ink);
  box-shadow: 3px 3px 0 rgba(11, 12, 10, .07);
}
.station-label.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 3px 3px 0 rgba(11, 12, 10, .16);
}
.station-label .dot {
  width: 5px; height: 5px; flex: none; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(25, 231, 110, .12);
}
.station-label.is-fault .dot {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(213, 112, 11, .14);
}
.station-label.is-active .dot { animation: dot-blink 1.6s steps(1) infinite; }
@keyframes dot-blink { 50% { opacity: .25; } }

/* Tabs */
.stage-tabs {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 4;
  width: max-content;
  max-width: calc(100% - 32px);
}
.mode-tabs {
  display: flex;
  gap: 3px;
  padding: 5px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mode-tab {
  --tab-color: var(--blue);
  --tab-bg: var(--blue-soft);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.mode-tab .swatch { width: 8px; height: 8px; flex: none; background: var(--tab-color); }
.mode-tab[data-mode="build"] { --tab-color: var(--blue); --tab-bg: var(--blue-soft); }
.mode-tab[data-mode="fix"] { --tab-color: var(--gold); --tab-bg: var(--gold-soft); }
.mode-tab[data-mode="operate"] { --tab-color: var(--ok); --tab-bg: var(--green-soft); }
.mode-tab:hover { color: var(--ink); }
.mode-tab.is-active { background: var(--tab-bg); color: var(--ink); }
.mode-progress {
  height: 2px;
  margin-top: 6px;
  background: var(--line);
  overflow: hidden;
}
.mode-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent, var(--blue));
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  transition: transform .1s linear;
}
.stage-tabs__hint {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--faint);
}

/* Detail card */
.stage-card {
  --detail-accent: var(--blue);
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  width: 296px;
  padding: 14px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--line);
  box-shadow: 6px 6px 0 rgba(11, 12, 10, .045);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.stage-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}
.stage-card__dot {
  width: 6px; height: 6px; flex: none; border-radius: 50%;
  background: var(--detail-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--detail-accent) 14%, transparent);
}
.stage-card__status { margin-left: auto; color: var(--detail-accent); }
.stage-card h3 {
  margin: 11px 0 5px;
  font-family: var(--sans);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.stage-card__desc {
  min-height: 38px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.stage-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.stage-card__metrics span {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--faint);
}
.stage-card__metrics b {
  display: block;
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 520;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--ink);
}

/* Mobile detail (hidden on desktop) */
.mobile-detail { display: none; min-width: 0; }

/* WebGL fallback */
.stage-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(to right, rgba(11, 12, 10, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 12, 10, .04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.stage-fallback[hidden] { display: none; }
.stage-fallback p {
  max-width: 34ch;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ---------- Proof ---------- */
.proof {
  margin: 0 1px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--surface);
}
.proof__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 14px;
}
.proof__note {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}
.proof__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.proof__item {
  --item-bg: #f1f5f0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 20px 18px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--surface);
  transition: background .2s;
}
.proof__item:last-child { border-right: 0; }
.proof__item:hover { background: var(--item-bg); }
.proof__item--blue { --item-bg: var(--blue-soft); }
.proof__item--green { --item-bg: var(--green-soft); }
.proof__item--gold { --item-bg: var(--gold-soft); }
.proof__item--pink { --item-bg: var(--pink-soft); }
.proof__icon {
  width: 34px; height: 34px; flex: none;
  display: grid;
  place-items: center;
  background: var(--item-bg);
  border: 1px solid var(--line);
}
.proof__icon svg { width: 22px; height: 22px; }
.proof__name {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.proof__meta {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Statement ---------- */
.statement {
  padding: clamp(84px, 11vw, 150px) 24px clamp(68px, 8vw, 100px);
}
.statement .eyebrow { text-align: center; margin-bottom: 24px; }
.statement h2 {
  max-width: 19ch;
  margin-inline: auto;
  font-size: clamp(38px, 5.5vw, 74px);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: 1.02;
  text-align: center;
  text-wrap: balance;
}
.statement p {
  max-width: 52ch;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

/* ---------- Services ---------- */
.services { margin-bottom: 12px; }
.services__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 6px 22px;
}
.services__head h2 {
  margin-top: 10px;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
}
.services__note {
  max-width: 34ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
}
.service {
  --service-color: var(--blue-soft);
  --service-ink: var(--blue);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: background .25s;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--service-ink);
}
.service--build { --service-color: var(--blue-soft); --service-ink: var(--blue); }
.service--fix { --service-color: var(--gold-soft); --service-ink: var(--gold); }
.service--operate { --service-color: var(--green-soft); --service-ink: #009735; }
.service:hover { background: var(--service-color); }
.service__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.service__num {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
.service__icon { width: 46px; height: 46px; flex: none; }
.service__icon .face-top { fill: var(--service-ink); }
.service__icon .face-left { fill: var(--service-color); }
.service__icon .face-right { fill: #eef1ea; }
.service h3 {
  margin: 32px 0 7px;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1;
}
.service p { max-width: 31ch; color: var(--muted); font-size: 14px; line-height: 1.45; }
.service__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 28px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}
.service__link span { transition: transform .3s var(--ease); }
.service:hover .service__link span { transform: translateX(4px); }

/* ---------- Footer ---------- */
.footer {
  margin-top: 12px;
  padding: 44px 24px 0;
  background: var(--ink);
  color: #f3f5ef;
  overflow: clip;
}
.footer__top {
  display: grid;
  grid-template-columns: 2.2fr repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(243, 245, 239, .16);
}
.footer__tag {
  max-width: 26ch;
  margin-top: 12px;
  color: #9aa595;
  font-size: 14px;
  line-height: 1.45;
}
.footer h4 {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: #7f8a7b;
}
.footer li + li { margin-top: 8px; }
.footer a { color: #c7d4c4; font-size: 13.5px; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__word {
  margin: 34px 0 0;
  font-family: var(--sans);
  font-size: clamp(64px, 15.2vw, 236px);
  font-weight: 400;
  letter-spacing: -.075em;
  line-height: .76;
  white-space: nowrap;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 22px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: #7f8a7b;
}
.footer__status { display: inline-flex; align-items: center; gap: 8px; color: #c7d4c4; }
.footer__status i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(25, 231, 110, .14);
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero__inner { min-height: 760px; }
  .hero__copy { grid-column: 1 / span 5; }
  .hero__stage { height: 620px; }
  .stage-card { width: 270px; }
}
@media (max-width: 980px) {
  .pnav__links { display: none; }
  .hero__inner { min-height: 0; padding: 22px 18px 0; }
  .hero h1 { font-size: clamp(50px, 10vw, 82px); }
  .hero__copy {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 100%;
    margin-top: 22px;
  }
  .hero__stage {
    grid-row: 3;
    height: 540px;
    margin-top: 6px;
    margin-inline: -18px;
  }
  .stage-card { display: none; }
  .mobile-detail {
    display: block;
    grid-column: 1 / -1;
    padding: 16px;
    border: 1px solid var(--line);
    border-top: 0;
    background: var(--surface);
  }
  .mobile-detail__head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .mobile-detail__head i {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent, var(--blue));
  }
  .mobile-detail__head span:last-child { margin-left: auto; color: var(--accent, var(--blue)); }
  .mobile-detail h3 {
    margin: 10px 0 4px;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -.03em;
  }
  .mobile-detail p { color: var(--muted); font-size: 13px; line-height: 1.45; }
  .mobile-detail__chips {
    display: flex;
    gap: 5px;
    margin-top: 14px;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .mobile-detail__chip {
    flex: none;
    padding: 6px 9px;
    border: 1px solid var(--line);
    background: #fff;
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
  }
  .mobile-detail__chip.is-active { border-color: var(--ink); color: var(--ink); }
  .proof__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof__item:nth-child(2n) { border-right: 0; }
  .services__grid { grid-template-columns: 1fr; }
  .service { min-height: 230px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .pnav__inner { padding-inline: 14px; }
  .hero__inner { padding-inline: 14px; }
  .hero h1 { font-size: clamp(42px, 12.5vw, 60px); }
  .hero__stage { margin-inline: -14px; height: 430px; }
  .stage__chrome { top: 12px; left: 12px; right: 12px; }
  .stage-tabs { left: 12px; bottom: 12px; }
  .mode-tab { padding: 0 8px; font-size: 8.5px; }
  .proof__grid { grid-template-columns: 1fr; }
  .proof__item { border-right: 0; }
  .services__head { flex-direction: column; align-items: flex-start; }
  .services__note { max-width: 100%; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* Mobile station rail: labels become static chips. The JS skips projection here. */
@media (max-width: 980px) {
  .station-layer {
    inset: auto 12px 88px;
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 2px;
    pointer-events: auto;
  }
  .station-label {
    position: static;
    transform: none !important;
    flex: none;
    font-size: 8px;
    padding: 4px 7px;
  }
}

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