:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --rule: #e2e8f0;
  --rule-2: #cbd5e1;
  --accent: #2563eb;
  --accent-ink: #1d4ed8;
  --risk: #dc2626;
  --z-pos: #2563eb;
  --z-iot: #b45309;
  --z-office: #047857;
  --radius: 10px;
  --header-h: 60px;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.link { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { text-decoration-thickness: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); }
.btn--ghost { background: var(--surface); border-color: var(--rule-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-2); }
.btn[disabled] { opacity: .55; cursor: default; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(16px, 3vw, 32px);
  background: var(--bg); border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 28px; height: 28px; color: var(--ink); }
.brand__word { font-weight: 600; }
.brand__crumb { color: var(--muted); font-size: 14px; padding-left: 10px; border-left: 1px solid var(--rule-2); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav__phone { font-family: var(--mono); color: var(--ink) !important; }
.nav__cta { display: none; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--rule-2); border-radius: 8px; background: var(--surface); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger i { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.header.is-open .burger i:first-child { transform: translateY(3.25px) rotate(45deg); }
.header.is-open .burger i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Intro */
.intro { min-height: calc(100vh - var(--header-h) - 32px); display: flex; flex-direction: column; justify-content: center; padding: 24px 0 40px; }
.eyebrow { font: 500 14px/1 var(--mono); color: var(--muted); margin-bottom: 20px; }
.intro h1 { font-size: clamp(30px, 3vw, 44px); max-width: 18ch; }
.intro__lede { margin-top: 20px; max-width: 52ch; font-size: 17px; color: var(--ink-2); }
.intro__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.facts { display: grid; gap: 16px; margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); }
.facts dt { font: 500 13px/1 var(--mono); color: var(--muted); margin-bottom: 8px; }
.facts dd { margin: 0; font-size: 15px; }
.facts a { color: var(--accent-ink); }

/* Story: sticky stage + steps */
.story {
  position: relative;
  display: grid; grid-template-columns: minmax(300px, 4fr) 7fr; grid-template-areas: "steps stage";
  gap: 0 clamp(24px, 3vw, 48px);
  max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px);
}
.stage {
  grid-area: stage; position: sticky; top: calc(var(--header-h) + 16px);
  height: min(calc(100vh - var(--header-h) - 32px), 760px); min-height: 520px;
  border: 1px solid #1f2a3c; border-radius: 16px; background: #0f1522; overflow: hidden; color: #e5e9f0;
}
.stage__canvas { position: absolute; inset: 0; }
#scene { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#scene.is-dragging { cursor: grabbing; }
#scene.is-hover { cursor: pointer; }
.stage__fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; text-align: center; color: #c3cad6; }
.stage__fallback[hidden] { display: none; }

.labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tag {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font: 500 12px/1 var(--mono); padding: 6px 8px; border-radius: 6px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--rule-2);
  opacity: 0; transition: opacity .25s;
}
.tag.is-on { opacity: 1; }
.tag--risk { background: var(--risk); border-color: var(--risk); color: #fff; }
.tag--ok { background: var(--ink); border-color: var(--ink); color: #fff; }

.toolbar { position: absolute; top: 14px; left: 14px; display: flex; gap: 10px; align-items: center; z-index: 2; }
.seg { display: inline-flex; padding: 3px; background: var(--surface); border: 1px solid var(--rule-2); border-radius: 9px; }
.seg__btn { height: 30px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--muted); }
.seg__btn[aria-pressed="true"] { background: var(--ink); color: #fff; }

.legend { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 8px 12px; list-style: none; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; font-size: 13px; transition: opacity .3s; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend [data-zone="pos"] i { background: var(--z-pos); }
.legend [data-zone="iot"] i { background: var(--z-iot); }
.legend [data-zone="office"] i { background: var(--z-office); }
.legend.is-flat i { background: #94a3b8; }

.alert {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: min(300px, calc(100% - 28px));
  padding: 12px 14px; background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--radius);
  font-size: 14px;
}
.alert[hidden] { display: none; }
.alert__head { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.alert__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--risk); }
.alert.is-ok .alert__dot { background: var(--z-office); }
.alert__body { margin-top: 4px; color: var(--ink-2); }
.alert__time { margin-top: 8px; font: 500 13px/1.3 var(--mono); color: var(--muted); }
#alert-clock { color: var(--ink); }

.card {
  position: absolute; right: 14px; bottom: 14px; z-index: 4; width: min(340px, calc(100% - 28px));
  padding: 16px 18px 18px; background: var(--surface); border: 1px solid var(--rule-2); border-radius: 12px;
}
.card[hidden] { display: none; }
.card__close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.card__close:hover { background: var(--bg); color: var(--ink); }
.card__zone { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--mono); color: var(--muted); }
.card__zone::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--zone, var(--muted)); }
.card__title { margin-top: 8px; font-size: 18px; }
.card__rows { margin: 12px 0 0; display: grid; gap: 10px; }
.card__rows div { display: grid; grid-template-columns: 56px 1fr; gap: 10px; font-size: 14px; }
.card__rows dt { font: 500 12px/1.6 var(--mono); color: var(--muted); }
.card__rows dd { margin: 0; color: var(--ink-2); }
.card__link { display: inline-block; margin-top: 12px; font-size: 14px; }

.steps { grid-area: steps; padding: 0 0 18vh; }
.case-head { display: grid; gap: 10px; padding: 32px 0 0; border-top: 1px solid var(--rule); }
.case-head .eyebrow { margin: 0; }
.case-head p:not(.eyebrow) { color: var(--ink-2); max-width: 52ch; }
.step {
  min-height: 82vh; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  opacity: .35; transition: opacity .35s;
}
.step.is-active { opacity: 1; }
.step__num { font: 500 13px/1 var(--mono); color: var(--muted); }
.step h2 { font-size: clamp(24px, 2.4vw, 32px); }
.step p { color: var(--ink-2); max-width: 52ch; }
.step__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; max-width: 56ch; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  border: 1px solid var(--rule-2); border-radius: 15px; background: var(--surface);
  font-size: 13px; cursor: pointer; color: var(--ink-2);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--muted); }
.chip[data-zone="pos"]::before { background: var(--z-pos); }
.chip[data-zone="iot"]::before { background: var(--z-iot); }
.chip[data-zone="office"]::before { background: var(--z-office); }
.chip[data-zone="infra"]::before { background: var(--ink); }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 52ch; color: var(--ink-2); }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--z-office); }
.ticks--risk li::before { background: var(--risk); }
.ticks strong { color: var(--ink); font-weight: 600; }

/* Results */
.section-title { font-size: clamp(24px, 2.6vw, 34px); }
.results { max-width: 1200px; margin: 0 auto; padding: 96px clamp(16px, 3vw, 32px) 40px; }
.results__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 32px; border-top: 1px solid var(--ink); }
.metric { padding: 20px 20px 4px 0; }
.metric + .metric { padding-left: 20px; border-left: 1px solid var(--rule); }
.metric__value { font-size: clamp(40px, 5vw, 60px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.metric__value span { font-size: .4em; font-weight: 500; margin-left: 4px; letter-spacing: 0; color: var(--muted); }
.metric__label { margin-top: 12px; color: var(--ink-2); font-size: 15px; }
.phases { margin: 56px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.phases li { display: grid; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.phases__n { font: 500 13px/1 var(--mono); color: var(--muted); }
.stack { margin-top: 20px; font: 400 14px/1.6 var(--mono); color: var(--muted); }

/* Checklist */
.check {
  max-width: 1200px; margin: 64px auto 0; padding: 40px clamp(16px, 3vw, 40px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 48px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 16px;
}
.check__intro { grid-column: 1 / -1; display: grid; gap: 8px; }
.check__intro p { color: var(--ink-2); }
.check__form fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 4px; }
.check__form label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.check__form label:hover { background: var(--bg); }
.check__form input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.check__result { align-self: start; padding: 20px; border: 1px solid var(--rule); border-radius: 12px; display: grid; gap: 12px; }
.meter { height: 8px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.meter i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left center; background: var(--z-office); transition: transform .3s ease-out, background-color .3s; }
.meter.is-mid i { background: var(--z-iot); }
.meter.is-high i { background: var(--risk); }
.check__score { font: 600 28px/1 var(--sans); font-variant-numeric: tabular-nums; }
.check__text { color: var(--ink-2); }
.check__result .btn { justify-self: start; }

.footer { max-width: 1200px; margin: 0 auto; padding: 56px clamp(16px, 3vw, 32px) 48px; color: var(--muted); font-size: 14px; display: grid; gap: 8px; }
.footer a { color: var(--ink-2); }

@media (max-width: 960px) {
  .intro { min-height: 0; padding: 32px 0 8px; }
  .story { display: block; padding: 0; }
  .stage {
    position: sticky; top: var(--header-h); z-index: 10;
    height: 50vh; min-height: 330px; max-height: 480px;
    border-radius: 0; border-left: 0; border-right: 0;
  }
  .steps { padding: 4vh clamp(16px, 4vw, 24px) 10vh; position: relative; z-index: 1; }
  .step { min-height: 64vh; justify-content: flex-start; padding-top: 6vh; opacity: 1; }
  .card { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .alert { top: auto; bottom: 56px; right: 10px; width: min(280px, calc(100% - 20px)); }
  .legend { display: none; }
  .results__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(3) { padding-left: 0; border-left: 0; }
  .phases { grid-template-columns: 1fr; }
  .check { grid-template-columns: 1fr; margin: 48px 12px 0; }
}
@media (max-width: 560px) {
  .toolbar { top: 10px; left: 10px; }
  #replay { display: none; }
  .intro__lede { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.footer { gap: 24px; }
.footer__contact { display: grid; gap: 6px; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.footer__brand { font-weight: 600; color: var(--ink); }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Company sections */
.section-head { display: grid; gap: 8px; max-width: 60ch; }
.section-head p { color: var(--ink-2); }
.quote { margin: 48px 0 0; padding: 24px 0 0; border-top: 1px solid var(--rule); max-width: 60ch; }
.quote blockquote { margin: 0; font-size: 20px; line-height: 1.5; color: var(--ink); }
.quote figcaption { margin-top: 10px; font: 500 13px/1 var(--mono); color: var(--muted); }

.services, .industries, .process, .plans, .about { max-width: 1200px; margin: 0 auto; padding: 88px clamp(16px, 3vw, 32px) 0; }
.services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.service { display: grid; align-content: start; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; }
.service h3 { font-size: 18px; }
.service p { color: var(--ink-2); font-size: 15px; }
.service ul, .plan ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.service li, .plan li { padding-left: 16px; position: relative; }
.service li::before, .plan li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1.5px; background: var(--muted); }

.industries__list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.industries__list li { display: grid; gap: 4px; padding: 18px 24px 18px 0; border-bottom: 1px solid var(--rule); }
.industries__list li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--rule); }
.industries__list span { color: var(--ink-2); font-size: 15px; }

.process__list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.process__list li { display: grid; gap: 6px; padding-top: 16px; border-top: 2px solid var(--ink); }
.process__n { font: 500 13px/1 var(--mono); color: var(--muted); }
.process__list span:last-child { color: var(--ink-2); font-size: 15px; }

.plans__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; align-items: start; }
.plan { display: grid; gap: 10px; padding: 24px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; }
.plan--main { border-color: var(--ink); }
.plan h3 { font-size: 18px; }
.plan__scope { color: var(--ink-2); font-size: 15px; }
.plans__cta { margin-top: 24px; }

.team { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.team li { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; }
.team__avatar { grid-row: 1 / 3; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bg); border: 1px solid var(--rule-2); font: 500 14px/1 var(--mono); color: var(--ink-2); }
.team span:last-child { color: var(--muted); font-size: 14px; }

.contact { max-width: 1200px; margin: 88px auto 0; padding: 0 clamp(16px, 3vw, 32px); display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact__info { display: grid; align-content: start; gap: 12px; }
.contact__info > p { color: var(--ink-2); }
.contact__facts { margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact__facts dt { font: 500 13px/1 var(--mono); color: var(--muted); margin-bottom: 6px; }
.contact__facts dd { margin: 0; }
.contact__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding: 24px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; }
.contact__form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.contact__wide, .contact__error, .contact__done, .contact__form .btn { grid-column: 1 / -1; }
.contact__form .btn { justify-self: start; }
.contact__form input, .contact__form select, .contact__form textarea {
  width: 100%; font: 400 15px/1.4 var(--sans); color: var(--ink); padding: 10px 12px;
  border: 1px solid var(--rule-2); border-radius: 8px; background: var(--surface);
}
.contact__form textarea { resize: vertical; }
.contact__form [aria-invalid="true"] { border-color: var(--risk); }
.contact__error { color: var(--risk); font-size: 14px; }
.contact__done { color: var(--z-office); font-weight: 500; }
.contact__error[hidden], .contact__done[hidden] { display: none; }

@media (max-width: 1100px) {
  .nav { gap: 16px; }
  .nav__phone { display: none; }
}
@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--rule);
  }
  .header.is-open .nav { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--rule); font-size: 16px; }
  .nav__phone { display: block; }
  .nav .nav__cta { display: block; color: var(--accent-ink); font-weight: 500; border-bottom: 0; }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industries__list { grid-template-columns: 1fr; }
  .industries__list li:nth-child(even) { padding-left: 0; border-left: 0; }
  .process__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans__grid, .team { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 24px; margin-top: 64px; }
  .services, .industries, .process, .plans, .about { padding-top: 64px; }
}
@media (max-width: 560px) {
  .header__actions .btn { display: none; }
  .services__grid, .process__list, .contact__form, .contact__facts { grid-template-columns: 1fr; }
}

/* Dark stage overlays */
:root { --s-surface: #161e2c; --s-rule: #283449; --s-ink: #e8ecf2; --s-muted: #94a0b4; }
.stage .tag { background: var(--s-surface); color: var(--s-ink); border-color: var(--s-rule); }
.stage .tag--risk { background: #e5484d; border-color: #e5484d; color: #fff; }
.stage .tag--ok { background: #f2f4f7; border-color: #f2f4f7; color: #0f172a; }
.stage .seg { background: var(--s-surface); border-color: var(--s-rule); }
.stage .seg__btn { color: var(--s-muted); }
.stage .seg__btn[aria-pressed="true"] { background: #f2f4f7; color: #0f172a; }
.stage .btn--ghost { background: var(--s-surface); border-color: var(--s-rule); color: var(--s-ink); }
.stage .btn--ghost:hover { border-color: #4a5a76; }
.stage .legend { background: var(--s-surface); border-color: var(--s-rule); color: var(--s-ink); }
.stage .legend.is-flat i { background: #e5484d; }
.stage .alert, .stage .card { background: var(--s-surface); border-color: var(--s-rule); color: var(--s-ink); }
.stage .alert__body, .stage .card__rows dd { color: #c3cad6; }
.stage .alert__time, .stage .card__rows dt, .stage .card__zone { color: var(--s-muted); }
.stage #alert-clock { color: var(--s-ink); }
.stage .card__close { color: var(--s-muted); }
.stage .card__close:hover { background: #1f2a3c; color: var(--s-ink); }
.stage .card__link { color: #93b4ff; }

.paths { position: absolute; right: 16px; bottom: 14px; z-index: 2; text-align: right; pointer-events: none; }
.paths__value { font: 500 44px/1 var(--mono); letter-spacing: -0.02em; color: #f2f4f7; font-variant-numeric: tabular-nums; }
.paths__value.is-risk { color: #ff7b7f; }
.paths__label { margin-top: 6px; font-size: 13px; color: var(--s-muted); max-width: 22ch; margin-left: auto; }
.stage .alert { top: 64px; }


/* Services list + NOC console */
.services { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.svc { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.svc li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.svc__n { font: 500 13px/1.9 var(--mono); color: var(--muted); }
.svc h3 { font-size: 18px; }
.svc p { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.console { position: sticky; top: calc(var(--header-h) + 24px); background: #0f1522; color: var(--s-ink); border: 1px solid #1f2a3c; border-radius: 16px; padding: 18px; display: grid; gap: 16px; font-size: 14px; }
.console__bar { display: flex; justify-content: space-between; align-items: center; }
.console__title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.console__title svg { width: 20px; height: 20px; color: #f2f4f7; }
.console__live { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--mono); color: var(--s-muted); }
.console__live i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.console__summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--s-rule); border: 1px solid var(--s-rule); border-radius: 10px; overflow: hidden; }
.console__summary div { display: grid; gap: 4px; padding: 12px; background: var(--s-surface); }
.console__summary b { font: 500 22px/1 var(--mono); font-variant-numeric: tabular-nums; }
.console__summary b.is-warn { color: #fbbf24; }
.console__summary span { font-size: 12px; color: var(--s-muted); }
.console__table { width: 100%; border-collapse: collapse; }
.console__table th { text-align: left; font: 500 12px/1 var(--mono); color: var(--s-muted); padding: 0 8px 8px; border-bottom: 1px solid var(--s-rule); }
.console__table td { padding: 10px 8px; border-bottom: 1px solid #1b2433; }
.console__table .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.console__table tr.is-alert td { background: rgba(251, 191, 36, 0.06); }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--s-muted); }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4a5568; }
.st--ok { color: var(--s-ink); }
.st--ok::before { background: #34d399; }
.st--warn { color: #fbbf24; }
.st--warn::before { background: #fbbf24; }
.console__feed { margin: 0; padding: 12px 0 0; list-style: none; display: grid; gap: 8px; border-top: 1px solid var(--s-rule); }
.console__feed li { display: grid; grid-template-columns: 52px 1fr; gap: 8px; color: #c3cad6; }
.console__feed time { font-family: var(--mono); color: var(--s-muted); }

@media (max-width: 960px) {
  .services { grid-template-columns: 1fr; gap: 28px; }
  .console { position: static; }
  .paths__value { font-size: 30px; }
  .paths__label { display: none; }
  .paths { bottom: 10px; right: 12px; }
}
@media (max-width: 560px) {
  .console__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console__table th:nth-child(3), .console__table td:nth-child(3) { display: none; }
}

.legend [data-zone="flat"] { display: none; }
.legend.is-flat li { display: none; }
.legend.is-flat [data-zone="flat"] { display: inline-flex; }
.stage .legend [data-zone="flat"] i { background: #e5484d; }
.hint { position: absolute; top: 20px; right: 18px; z-index: 1; margin: 0; font: 500 12px/1 var(--mono); color: var(--s-muted); pointer-events: none; }
.process__list li { align-content: start; }
.ticks li::before, .service li::before, .plan li::before { height: 2px; }
@media (max-width: 960px) { .hint { display: none; } }
