/* =========================================================
   VORX — site styles
   Palette is semantic: blue = awareness/brand, amber = warning,
   red = critical/intervention. Surface pages tint ochre,
   underground pages tint viridis (as in the UG dashboard).
   ========================================================= */
@view-transition { navigation: auto; }

:root {
  color-scheme: dark;
  --night: #08131d;
  --deck: #0c1a26;
  --deck-2: #10212f;
  --rule: #1d3242;
  --rule-2: #284457;
  --ink: #e9f0f5;
  --ink-2: #a3b5c3;
  --ink-3: #6f8597;
  --signal: #2e9bff;
  --signal-2: #7cc4ff;
  --warn: #ffb23f;
  --crit: #ff5b4d;
  --ochre: #c9894a;
  --vir-1: #b5de2b; --vir-2: #35b779; --vir-3: #26828e; --vir-4: #3e4a89; --vir-5: #5b3a8e;
  --env: var(--signal);
  --env-soft: rgba(46,155,255,.14);
  --f-sans: "Archivo", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --wrap: 1280px;
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-io: cubic-bezier(.7,0,.25,1);
  --r-s: 4px; --r-m: 10px; --r-l: 18px;
}
body[data-env="surface"] { --env: var(--ochre); --env-soft: rgba(201,137,74,.16); }
body[data-env="ug"] { --env: var(--vir-2); --env-soft: rgba(53,183,121,.14); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font: 400 17px/1.6 var(--f-sans); font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--signal-2); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--signal); color: #fff; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--night); padding: 10px 14px; border-radius: var(--r-s); font-weight: 600; }
.skip:focus { top: 12px; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.veh { width: 64px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- type ---------- */
.display, h1 {
  font-variation-settings: "wdth" 116; font-weight: 640; letter-spacing: -.035em;
  font-size: clamp(40px, 6vw, 92px); line-height: .95; text-wrap: balance;
}
h2 { font-variation-settings: "wdth" 112; font-weight: 620; letter-spacing: -.03em; font-size: clamp(32px, 4.6vw, 64px); line-height: 1; text-wrap: balance; }
h3 { font-variation-settings: "wdth" 106; font-weight: 600; letter-spacing: -.015em; font-size: clamp(21px, 2vw, 27px); line-height: 1.15; }
h4 { font-weight: 600; font-size: 17px; line-height: 1.3; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
p { color: var(--ink-2); max-width: 66ch; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--env); margin-bottom: 22px; }
.kicker .ico { width: 18px; height: 18px; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; }
.fine { font-size: 13px; color: var(--ink-3); max-width: 80ch; }

/* ---------- layout ---------- */
.wrap { width: min(var(--wrap), 100% - var(--gut) * 2); margin-inline: auto; }
.sec { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head p { justify-self: start; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 50; view-transition-name: site-head;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-head.is-solid { background: rgba(8,19,29,.82); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-color: var(--rule); }
.nav { height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 42px; height: auto; }
.brand b { font-variation-settings: "wdth" 125; font-weight: 600; letter-spacing: .18em; font-size: 18px; }
.brand b span { color: var(--signal); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { position: relative; padding: 10px 12px; font-size: 15px; color: var(--ink-2); border-radius: var(--r-s); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--env); border-radius: 2px; }
.nav-sep { width: 1px; height: 20px; background: var(--rule-2); margin-inline: 8px; }
.nav-cta { margin-left: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--r-s); align-items: center; justify-content: center; border: 1px solid var(--rule-2); }
@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
}
.drawer {
  position: fixed; inset: 0; z-index: 60; background: rgba(6,14,22,.97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; grid-template-rows: auto 1fr auto; padding: 0 var(--gut) 32px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer-top { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.drawer nav { display: grid; align-content: center; gap: 4px; }
.drawer nav a { font-variation-settings: "wdth" 118; font-weight: 600; font-size: clamp(30px, 8vw, 48px); letter-spacing: -.03em; padding: 6px 0; display: flex; align-items: baseline; gap: 14px; color: var(--ink-2); transform: translateY(14px); opacity: 0; transition: transform .5s var(--ease), opacity .5s, color .2s; }
.drawer nav a small { font: 400 13px var(--f-mono); color: var(--ink-3); letter-spacing: 0; }
.drawer.is-open nav a { transform: none; opacity: 1; }
.drawer nav a:hover, .drawer nav a[aria-current="page"] { color: var(--ink); }
.drawer.is-open nav a:nth-child(2) { transition-delay: .04s; } .drawer.is-open nav a:nth-child(3) { transition-delay: .08s; }
.drawer.is-open nav a:nth-child(4) { transition-delay: .12s; } .drawer.is-open nav a:nth-child(5) { transition-delay: .16s; }
.drawer.is-open nav a:nth-child(6) { transition-delay: .2s; } .drawer.is-open nav a:nth-child(7) { transition-delay: .24s; }

/* ---------- buttons & links ---------- */
.btn {
  --b: var(--rule-2);
  display: inline-flex; align-items: center; gap: 14px; min-height: 50px; padding: 0 20px 0 22px;
  border-radius: var(--r-s); border: 1px solid var(--b); font-weight: 560; font-size: 15px; letter-spacing: .005em;
  position: relative; overflow: hidden; isolation: isolate; transition: border-color .25s, color .25s, transform .25s var(--ease);
}
.btn .ico { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.btn:hover::before { transform: scaleX(1); }
.btn-primary { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn-primary::before { background: #1680e6; }
.btn-ghost { background: rgba(8,19,29,.55); }
.btn-ghost:hover { border-color: var(--signal); }
.btn-sm { min-height: 40px; padding: 0 14px 0 16px; font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.tlink { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 560; border-bottom: 1px solid var(--rule-2); padding-bottom: 3px; transition: border-color .2s, gap .3s var(--ease); }
.tlink:hover { border-color: var(--env); gap: 12px; }
.tlink .ico { width: 16px; height: 16px; }

/* ---------- home hero: live model ---------- */
.hero-home { position: relative; min-height: max(700px, 100svh); display: grid; grid-template-rows: 1fr auto; align-items: center; padding-bottom: clamp(20px, 3vw, 36px); overflow: hidden; }
.sim { position: relative; }
.sim canvas { width: 100%; height: 100%; transition: opacity .26s; }
.sim.is-switching canvas { opacity: 0; }
.hero-home > .sim { position: absolute; inset: 0; }
.hero-veil { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,19,29,.94) 0%, rgba(8,19,29,.8) 34%, rgba(8,19,29,.1) 62%, rgba(8,19,29,0) 100%),
    linear-gradient(0deg, rgba(8,19,29,.95) 0%, rgba(8,19,29,0) 30%),
    linear-gradient(180deg, rgba(8,19,29,.7) 0%, rgba(8,19,29,0) 18%); }
.hero-copy { position: relative; z-index: 2; padding-top: 110px; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero-copy h1 { max-width: 10.5ch; }
.hero-copy { max-width: none; }
.hero-copy > h1, .hero-copy > .lede, .hero-copy > .cta-row { max-width: min(620px, 52vw); }
@media (max-width: 1080px) { .hero-copy > h1, .hero-copy > .lede, .hero-copy > .cta-row { max-width: none; } }
.hero-copy .lede { margin-top: 28px; max-width: 46ch; color: #c2d0db; }
.hero-foot { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 18px; border-top: 1px solid rgba(40,68,87,.7); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--rule-2); border-radius: 999px; background: rgba(8,19,29,.7); }
.seg button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: background .25s, color .25s; }
.seg button .ico { width: 17px; height: 17px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--night); }
.icon-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--rule-2); border-radius: 999px; font-size: 14px; color: var(--ink-2); background: rgba(8,19,29,.7); }
.icon-btn .ico { width: 15px; height: 15px; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.scene-cap { font-size: 14px; color: var(--ink-3); }

.hud {
  position: absolute; z-index: 4; right: var(--gut); bottom: 92px; width: 330px;
  background: rgba(7,16,25,.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--rule-2); border-radius: var(--r-m); padding: 16px 16px 12px; font-size: 13px;
}
.hud-top { display: flex; justify-content: space-between; align-items: center; color: var(--ink-2); font-size: 13px; }
.hud-top .live { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 560; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--crit); box-shadow: 0 0 0 0 rgba(255,91,77,.6); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(255,91,77,0); } 100% { box-shadow: 0 0 0 0 rgba(255,91,77,0); } }
.hud-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 12px; }
.hud-stats div { border-top: 2px solid var(--rule-2); padding-top: 8px; }
.hud-stats div:nth-child(1) { border-color: var(--warn); } .hud-stats div:nth-child(2) { border-color: var(--crit); } .hud-stats div:nth-child(3) { border-color: #ffd23f; }
.hud-stats b { display: block; font: 500 22px/1.1 var(--f-mono); color: var(--ink); }
.hud-stats span { font-size: 12px; color: var(--ink-3); line-height: 1.3; display: block; margin-top: 2px; }
.hud-log { min-height: 128px; font: 400 11.5px/1.45 var(--f-mono); }
.hud-log li { display: grid; grid-template-columns: 62px 1fr; gap: 8px; padding: 5px 0 5px 10px; border-left: 2px solid var(--rule-2); animation: logIn .45s var(--ease); color: var(--ink-2); }
.hud-log li + li { margin-top: 2px; }
.hud-log time { color: var(--ink-3); }
.hud-log .lvl-warn { border-color: var(--warn); } .hud-log .lvl-crit { border-color: var(--crit); color: var(--ink); }
@keyframes logIn { from { opacity: 0; transform: translateX(10px); } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--ink-3); }
.legend i { display: inline-block; width: 14px; height: 9px; border-radius: 50%; border: 1.5px solid; vertical-align: -1px; margin-right: 6px; }
.legend .l-a { border-color: var(--signal); border-style: dashed; } .legend .l-w { border-color: var(--warn); } .legend .l-c { border-color: var(--crit); } .legend .l-p { border-color: #ffd23f; background: #ffd23f; width: 9px; }
@media (max-width: 1080px) {
  .hero-home { display: flex; flex-direction: column; min-height: 0; padding-bottom: 8px; }
  .hero-home > .sim { position: relative; height: 58vh; min-height: 380px; order: -1; }
  .hero-copy { order: -2; }
  .hero-foot { order: -1; }
  .hero-veil { background: linear-gradient(180deg, rgba(8,19,29,1) 0%, rgba(8,19,29,0) 22%, rgba(8,19,29,0) 80%, rgba(8,19,29,1) 100%); }
  .hero-copy { padding-top: 112px; padding-bottom: 28px; }
  .hero-home > .hud { position: relative; top: auto; right: auto; bottom: auto; width: auto; margin: 8px var(--gut) 0; }
  .hero-foot { margin-inline: var(--gut); border-top: 0; padding-top: 16px; margin-top: 0; }
}

/* framed sim (environment pages) */
.sim-frame { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; border: 1px solid var(--rule-2); border-radius: var(--r-l); overflow: hidden; background: #0a141d; }
.sim-frame .sim { aspect-ratio: 16 / 9; min-width: 0; }
.sim-frame .hud { position: static; width: auto; border-radius: 0; border-width: 0 0 0 1px; background: var(--deck); -webkit-backdrop-filter: none; backdrop-filter: none; display: flex; flex-direction: column; }
.sim-frame .hud .hud-log { flex: 1; }
.sim-frame .sim-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--rule); }
@media (max-width: 900px) {
  .sim-frame { grid-template-columns: 1fr; }
  .sim-frame .sim { aspect-ratio: 4 / 3; }
  .sim-frame .hud { border-width: 1px 0 0; }
}

/* ---------- doors (home) ---------- */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.door {
  --acc: var(--signal);
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 430px;
  padding: clamp(24px, 3vw, 40px); border: 1px solid var(--rule-2); border-radius: var(--r-l); overflow: hidden; isolation: isolate;
  background: var(--deck); transition: transform .4s var(--ease), border-color .3s;
}
.door:hover, .door:focus-visible { transform: translateY(-4px); border-color: var(--acc); }
.door .art { position: absolute; inset: 0; z-index: -1; opacity: .38; transition: opacity .5s, transform 1.2s var(--ease); }
.door:hover .art { opacity: .9; transform: scale(1.03); }
.door h3 { font-size: clamp(25px, 2.45vw, 34px); font-variation-settings: "wdth" 116; letter-spacing: -.03em; max-width: 14ch; }
.door p { margin-top: 14px; max-width: 40ch; }
.door ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.door li { font-size: 13px; padding: 6px 11px; border: 1px solid var(--rule-2); border-radius: 999px; color: var(--ink-2); background: rgba(8,19,29,.6); }
.door .go { display: flex; align-items: center; justify-content: space-between; font-weight: 560; }
.door .go span.arrow { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--rule-2); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.door:hover .go span.arrow { background: var(--acc); border-color: var(--acc); transform: rotate(-45deg); }
.door-con { --acc: var(--warn); }
.door-assure { --acc: #7dd8c1; }
.door-investigate { --acc: var(--signal-2); }
@media (max-width: 680px) { .doors { grid-template-columns: 1fr; } .door { min-height: 370px; } }

.assurance { background: linear-gradient(180deg, rgba(125,216,193,.035), transparent 65%); }
.assurance .caps { margin-top: 38px; }

/* ---------- environments (home) ---------- */
.envs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.env-card { position: relative; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--rule-2); min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.env-card video, .env-card img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.env-card:hover video, .env-card:hover img.bg { transform: scale(1.04); }
.env-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,19,29,.97) 10%, rgba(8,19,29,.55) 48%, rgba(8,19,29,.05) 100%); }
.env-card .body { padding: clamp(22px, 3vw, 36px); }
.env-card h3 { font-size: clamp(30px, 3.6vw, 48px); font-variation-settings: "wdth" 118; letter-spacing: -.03em; }
.env-card p { margin-top: 10px; max-width: 44ch; }
.env-card .fleet { display: flex; align-items: center; gap: 6px; margin-top: 22px; color: var(--ink-2); }
.vehicle-filters { position: absolute; width: 0; height: 0; overflow: hidden; }
.env-card .veh-mark { position: relative; display: block; flex: none; width: 46px; height: 32px; overflow: visible; }
.env-card .veh-mark img { display: block; width: 100%; height: 100%; object-fit: contain; filter: url(#vehicle-dark-matte); }
.env-card .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.env-s { --env: var(--ochre); } .env-u { --env: var(--vir-2); }
.env-card .tag { position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(8,19,29,.75); border: 1px solid var(--rule-2); }
.env-card .tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--env); }
.env-card .arrow { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--rule-2); background: rgba(8,19,29,.6); transition: background .3s, transform .4s var(--ease); }
.env-card:hover .arrow { background: var(--env); transform: rotate(-45deg); color: var(--night); }
@media (max-width: 860px) { .envs { grid-template-columns: 1fr; } .env-card { min-height: 440px; } }
@media (max-width: 560px) { .env-card .fleet { gap: 4px; } .env-card .veh-mark { width: 40px; height: 28px; } .env-card .row { gap: 8px; } .env-card .arrow { width: 44px; height: 44px; } }

/* ---------- EMESRT layers strip ---------- */
.layers { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.layer { position: relative; padding: 16px 12px 14px; border-radius: var(--r-s); background: var(--deck); border: 1px solid var(--rule); min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.layer b { font: 500 13px var(--f-mono); color: var(--ink-3); }
.layer span { font-size: 14px; line-height: 1.25; color: var(--ink-2); }
.layer.ca { border-color: var(--rule-2); background: linear-gradient(180deg, rgba(46,155,255,.1), var(--deck)); }
.layer.ca b { color: var(--signal-2); }
.layer.l8 { background: linear-gradient(180deg, rgba(255,178,63,.12), var(--deck)); } .layer.l8 b { color: var(--warn); }
.layer.l9 { background: linear-gradient(180deg, rgba(255,91,77,.16), var(--deck)); border-color: rgba(255,91,77,.5); } .layer.l9 b { color: var(--crit); }
.layers-key { display: grid; grid-template-columns: 6fr 3fr; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.layers-key span { border-top: 1px solid var(--rule-2); padding-top: 8px; }
@media (max-width: 900px) { .layers { grid-template-columns: repeat(3, 1fr); } .layers-key { display: none; } .layer { min-height: 110px; } }

/* ---------- footprint teaser ---------- */
.footprint { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.globe-wrap { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; }
.globe-wrap canvas { width: 100%; height: 100%; }
.regions { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; margin-top: 36px; }
.regions li { background: var(--night); padding: 18px; display: flex; flex-direction: column; gap: 4px; cursor: default; transition: background .25s; }
.regions li:hover, .regions li.is-on { background: var(--deck-2); }
.regions b { font-weight: 600; font-size: 17px; }
.regions span { font-size: 13px; color: var(--ink-3); }
@media (max-width: 900px) { .footprint { grid-template-columns: 1fr; } }

/* ---------- CTA band + next link ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; }
.cta-band h2 { max-width: 14ch; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }
.next { display: block; border-top: 1px solid var(--rule); position: relative; overflow: hidden; isolation: isolate; }
.next .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(40px, 6vw, 72px); }
.next small { display: block; color: var(--ink-3); font-size: 14px; margin-bottom: 8px; }
.next strong { display: block; font-variation-settings: "wdth" 118; font-weight: 620; letter-spacing: -.035em; font-size: clamp(36px, 6vw, 88px); line-height: 1; transition: transform .6s var(--ease); }
.next .arrow { width: clamp(56px, 7vw, 88px); height: clamp(56px, 7vw, 88px); border-radius: 50%; border: 1px solid var(--rule-2); display: grid; place-items: center; flex: none; transition: background .4s, transform .5s var(--ease), border-color .4s; }
.next .arrow .ico { width: 28px; height: 28px; }
.next::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--deck); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.next:hover::before { transform: scaleY(1); }
.next:hover strong { transform: translateX(12px); }
.next:hover .arrow { background: var(--env); border-color: var(--env); transform: rotate(-45deg); color: var(--night); }

/* ---------- page hero (inner pages) ---------- */
.phero { padding-top: clamp(130px, 16vw, 180px); padding-bottom: clamp(56px, 8vw, 100px); position: relative; overflow: hidden; }
.phero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.phero h1 { font-size: clamp(42px, 6.4vw, 96px); view-transition-name: page-title; }
.phero .lede { margin-top: 26px; }
.crumb { display: flex; gap: 8px; font-size: 14px; color: var(--ink-3); margin-bottom: 26px; }
.crumb a:hover { color: var(--ink); }
.crumb span[aria-hidden] { color: var(--rule-2); }
.phero-visual { position: relative; }
.phero.stack-hero .phero-grid { grid-template-columns: 1fr; }
@media (max-width: 960px) { .phero-grid { grid-template-columns: 1fr; } }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 80% 30%, var(--env-soft), transparent 70%); }

/* console frame for dashboard video */
.console { border: 1px solid var(--rule-2); border-radius: var(--r-l); overflow: hidden; background: #05090d; position: relative; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.console-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--rule); background: var(--deck); font-size: 13px; color: var(--ink-2); }
.console-bar .live::before { background: var(--vir-2); }
.console video { width: 100%; aspect-ratio: var(--ar, 16/9); object-fit: cover; background: #05090d; }
.console .pin { position: absolute; display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(8,19,29,.85); border: 1px solid var(--rule-2); color: var(--ink); pointer-events: none; }
.console .pin::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--env); }
.console-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-3); background: var(--deck); }

/* ---------- lists of capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-2); }
.caps > li { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--rule); }
.caps > li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.caps > li:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.caps .ico { width: 30px; height: 30px; color: var(--env); stroke-width: 1.3; margin-bottom: 22px; }
.caps h3 { font-size: 22px; }
.caps p { margin-top: 10px; font-size: 16px; }
.caps .pts { margin-top: 18px; display: grid; gap: 8px; }
.caps .pts li { font-size: 15px; color: var(--ink-2); padding-left: 18px; position: relative; }
.caps .pts li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1.5px; background: var(--env); }
.caps.two { grid-template-columns: repeat(2, 1fr); }
.caps.two > li:nth-child(3n+1) { padding-left: 28px; border-left: 1px solid var(--rule); }
.caps.two > li:nth-child(2n+1) { padding-left: 0; border-left: 0; }
.caps.four { grid-template-columns: repeat(4, 1fr); }
.caps.four > li:nth-child(3n+1) { padding-left: 28px; border-left: 1px solid var(--rule); }
.caps.four > li:nth-child(4n+1) { padding-left: 0; border-left: 0; }
@media (max-width: 960px) {
  .caps, .caps.two, .caps.four { grid-template-columns: 1fr; }
  .caps > li, .caps.two > li, .caps.four > li { padding: 26px 0 !important; border-left: 0 !important; }
}

/* interaction rows */
.inter { display: grid; gap: 0; border-top: 1px solid var(--rule-2); }
.inter li { display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.inter .ico { width: 40px; height: 40px; color: var(--env); stroke-width: 1.2; }
.inter h3 { font-size: 22px; }
.inter p { font-size: 16px; }
@media (max-width: 760px) { .inter li { grid-template-columns: 52px 1fr; } .inter li p { grid-column: 2; } .inter .ico { width: 32px; height: 32px; } }

/* fleet strip */
.fleet-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; gap: 1px; background: var(--rule); }
.fleet-strip li { background: var(--night); padding: 22px 18px 18px; display: flex; flex-direction: column; gap: 14px; transition: background .3s; }
.fleet-strip li:hover { background: var(--deck); }
.fleet-strip .veh-asset { position: relative; display: block; width: 100%; max-width: 132px; aspect-ratio: 3/2; overflow: visible; }
.fleet-strip .veh-asset img { display: block; width: 100%; height: 100%; object-fit: contain; filter: url(#vehicle-dark-matte); transition: transform .5s var(--ease); }
.fleet-strip .veh { width: 100%; max-width: 110px; height: auto; aspect-ratio: 64/36; color: var(--ink); stroke-width: 1.25; transition: color .3s, transform .5s var(--ease); }
.fleet-strip li:hover .veh-asset img { transform: scale(1.04); }
.fleet-strip li:hover .veh { color: var(--env); transform: translateX(6px); }
.fleet-strip span { font-size: 15px; font-weight: 500; }
.fleet-strip small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* photo pair */
.photos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.photos figure { position: relative; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--rule); min-height: 380px; }
.photos img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photos figcaption { position: absolute; left: 14px; bottom: 14px; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(8,19,29,.8); color: var(--ink-2); }
@media (max-width: 760px) { .photos { grid-template-columns: 1fr; } .photos figure { min-height: 280px; } }

/* split text + media */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.media { border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--rule); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- platform: pipeline + module explorer ---------- */
.pipe { width: 100%; height: auto; overflow: visible; }
.pipe .node rect { fill: var(--deck); stroke: var(--rule-2); }
.pipe .node text { fill: var(--ink-2); font: 500 13px var(--f-sans); }
.pipe .node .ico-g { stroke: var(--signal-2); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pipe .wire { fill: none; stroke: var(--rule-2); stroke-width: 1.5; }
.pipe .flow { fill: none; stroke: var(--signal); stroke-width: 2; stroke-dasharray: 3 14; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -34; } }
.pipe .pkt { fill: var(--signal-2); }
.pipe .pkt.w { fill: var(--warn); }

/* Fleet Intelligence home: a clickable module map inspired by the product dashboard. */
.hex-dashboard { --hex-size: min(95%, 190px); width: 100%; max-width: 600px; aspect-ratio: 1; margin: 4px auto 0; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, 1fr); isolation: isolate; }
.hex-links { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; overflow: visible; }
.hex-links path { fill: none; stroke: var(--rule-2); stroke-width: 1.2; }
.hex-node { --node-accent: var(--signal); width: var(--hex-size); aspect-ratio: 1; justify-self: center; align-self: center; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; padding: 18px 10px; text-align: center; clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); background: color-mix(in srgb, var(--node-accent) 68%, transparent); transition: transform .3s var(--ease), filter .3s; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--node-accent) 15%, transparent)); }
.hex-node::before { content: ""; position: absolute; inset: 3px; z-index: -1; clip-path: inherit; background: linear-gradient(150deg, color-mix(in srgb, var(--node-accent) 16%, var(--deck)), rgba(12,26,38,.98) 68%); }
.hex-node:hover, .hex-node:focus-visible { transform: scale(1.04); filter: drop-shadow(0 0 15px color-mix(in srgb, var(--node-accent) 32%, transparent)); }
.hex-node .ico { width: 25px; height: 25px; color: color-mix(in srgb, var(--node-accent) 82%, white); margin-bottom: 3px; }
.hex-node b { font-size: clamp(12px, 1.25vw, 16px); font-weight: 500; line-height: 1.2; }
.hex-node small { color: var(--ink-2); font-size: clamp(9px, .95vw, 12px); line-height: 1.35; white-space: nowrap; }
.hex-node > span { color: var(--ink-3); font-size: clamp(8px, .82vw, 10px); line-height: 1.3; white-space: nowrap; }
.hex-safety { grid-area: 1 / 2; --node-accent: var(--crit); }
.hex-operators { grid-area: 2 / 1; --node-accent: #29b7c5; }
.hex-production { grid-area: 2 / 3; --node-accent: var(--warn); }
.hex-overview { grid-area: 2 / 2; --node-accent: #8b9aad; transform: scale(1.04); }
.hex-overview:hover, .hex-overview:focus-visible { transform: scale(1.08); }
.hex-overview .ico { width: 28px; height: 28px; color: var(--signal-2); }
.hex-asset { grid-area: 3 / 1; --node-accent: #8b6dc6; }
.hex-operations { grid-area: 3 / 2; --node-accent: var(--signal); }
.hex-efficiency { grid-area: 3 / 3; --node-accent: var(--vir-2); }

.platform-demos { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.platform-demos .console video { aspect-ratio: var(--ar, 16/9); }
.console > img { width: 100%; aspect-ratio: var(--ar, 16/9); object-fit: cover; background: #05090d; }
.console-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--signal-2); }
.console-foot a .ico { width: 16px; height: 16px; }
.compliance-preview { background: linear-gradient(180deg, rgba(46,155,255,.045), transparent 68%); }
.compliance-screen { border: 1px solid var(--rule-2); border-radius: var(--r-l); overflow: hidden; background: #111820; box-shadow: 0 30px 70px -50px rgba(0,0,0,.9); }
.compliance-screen img { width: 100%; height: auto; }
.compliance-screen figcaption { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 13px; }
.compliance-screen figcaption a { color: var(--signal-2); display: inline-flex; align-items: center; gap: 6px; }
.compliance-links { display: inline-flex; gap: 18px; flex-wrap: wrap; }
.compliance-screen figcaption .ico { width: 16px; height: 16px; }
.incentive-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.incentive-card { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--rule-2); border-radius: var(--r-m); background: var(--deck); }
.incentive-mark { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 20px; border: 1px solid rgba(53,183,121,.38); border-radius: 50%; color: var(--vir-2); }
.incentive-mark .ico { width: 22px; height: 22px; }
.incentive-card h3 { font-size: clamp(20px, 2vw, 26px); }
.incentive-card p { margin-top: 10px; font-size: 15.5px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--signal-2); font-size: 14px; }
.text-link:hover { color: var(--ink); }
.text-link .ico { width: 16px; height: 16px; }
.incentive-note { max-width: 100ch; margin-top: 18px; color: var(--ink-3); font-size: 13px; }
@media (max-width: 960px) { .platform-demos { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .hex-dashboard { --hex-size: min(95%, 130px); aspect-ratio: 1; }
  .hex-node { padding: 12px 5px; }
  .hex-node .ico { width: 19px; height: 19px; }
  .hex-node small { font-size: clamp(8px, 2.5vw, 10px); }
  .hex-node > span { display: none; }
  .hex-node b { font-size: clamp(10px, 3.2vw, 13px); }
  .hex-overview .ico { width: 23px; height: 23px; }
  .incentive-grid { grid-template-columns: 1fr; }
  .compliance-screen figcaption { align-items: flex-start; flex-direction: column; }
  .compliance-links { flex-direction: column; gap: 8px; }
}

.explorer { display: grid; grid-template-columns: 330px minmax(0, 1fr); border: 1px solid var(--rule-2); border-radius: var(--r-l); overflow: hidden; background: var(--deck); }
.ex-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--rule); }
.ex-tabs button { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; text-align: left; padding: 20px 22px; border-bottom: 1px solid var(--rule); position: relative; transition: background .25s; }
.ex-tabs button .ico { color: var(--ink-3); transition: color .25s; margin-top: 2px; }
.ex-tabs button b { display: block; font-weight: 600; font-size: 16px; }
.ex-tabs button small { display: block; font-size: 13.5px; color: var(--ink-3); line-height: 1.4; margin-top: 3px; }
.ex-tabs button::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--signal); transform: scaleY(0); transition: transform .35s var(--ease); }
.ex-tabs button[aria-selected="true"] { background: var(--deck-2); }
.ex-tabs button[aria-selected="true"]::before { transform: scaleY(1); }
.ex-tabs button[aria-selected="true"] .ico { color: var(--signal-2); }
.ex-tabs button:hover { background: var(--deck-2); }
.ex-panel { padding: clamp(22px, 3vw, 36px); display: grid; grid-template-rows: auto 1fr auto; gap: 22px; min-height: 520px; }
.ex-panel h3 { font-size: clamp(24px, 2.4vw, 32px); }
.ex-panel .ex-copy p { margin-top: 10px; }
.ex-chart { position: relative; border: 1px solid var(--rule); border-radius: var(--r-m); background: #091520; overflow: hidden; }
.ex-chart svg { width: 100%; height: auto; }
.ex-chart .note { position: absolute; right: 12px; top: 10px; font-size: 12px; color: var(--ink-3); }
.ex-out { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-out li { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule-2); color: var(--ink-2); }
.ex-anim { animation: exIn .55s var(--ease); }
@keyframes exIn { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 900px) {
  .explorer { grid-template-columns: 1fr; }
  .ex-tabs { flex-direction: row; overflow-x: auto; border-right: 0; scrollbar-width: none; }
  .ex-tabs button { flex: none; width: 230px; border-bottom: 0; border-right: 1px solid var(--rule); }
  .ex-tabs button::before { top: auto; right: 0; height: 3px; width: auto; transform: scaleX(0); }
  .ex-tabs button[aria-selected="true"]::before { transform: scaleX(1); }
}
/* chart primitives (generated by platform.js) */
.c-grid { stroke: var(--rule); stroke-width: 1; }
.c-axis { fill: var(--ink-3); font: 400 11px var(--f-mono); }
.c-base { fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-dasharray: 4 4; }
.c-opt { fill: none; stroke: var(--signal); stroke-width: 2.4; }
.c-area { fill: url(#gArea); }
.c-hot { fill: var(--crit); }
.c-warn { fill: var(--warn); }
.c-lbl { fill: var(--ink-2); font: 500 12px var(--f-sans); }
.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pop { transform-box: fill-box; transform-origin: center bottom; animation: pop .7s var(--ease) both; }
@keyframes pop { from { transform: scaleY(0); } }
.fade { animation: fadeIn .6s ease both; }
@keyframes fadeIn { from { opacity: 0; } }

/* infra list */
.infra { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.infra li { border: 1px solid var(--rule); border-radius: var(--r-m); padding: 22px; background: var(--deck); }
.infra .ico { width: 28px; height: 28px; color: var(--signal-2); margin-bottom: 18px; stroke-width: 1.3; }
.infra h4 { font-size: 17px; }
.infra p { font-size: 15px; margin-top: 6px; }
@media (max-width: 960px) { .infra { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .infra { grid-template-columns: 1fr; } }

/* ---------- consulting: 3D layer stack ---------- */
.stack { position: relative; height: 520px; perspective: 1400px; perspective-origin: 50% 20%; }
.stack-in { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(-32deg); }
.plate {
  position: absolute; left: 12%; top: 18%; width: 76%; height: 64%;
  border: 1px solid var(--rule-2); border-radius: 14px; transform-style: preserve-3d;
  background: linear-gradient(135deg, rgba(16,33,47,.95), rgba(12,26,38,.9));
  transition: transform .7s var(--ease), border-color .3s, box-shadow .3s; cursor: pointer;
}
.plate svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plate[data-i="0"] { transform: translateZ(0); }
.plate[data-i="1"] { transform: translateZ(90px); background: linear-gradient(135deg, rgba(16,33,47,.82), rgba(12,26,38,.7)); }
.plate[data-i="2"] { transform: translateZ(180px); background: linear-gradient(135deg, rgba(16,33,47,.78), rgba(12,26,38,.62)); }
.stack[data-on="0"] .plate[data-i="0"] { transform: translateZ(-30px); }
.stack[data-on="0"] .plate[data-i="1"] { transform: translateZ(140px); } .stack[data-on="0"] .plate[data-i="2"] { transform: translateZ(230px); }
.stack[data-on="1"] .plate[data-i="2"] { transform: translateZ(250px); } .stack[data-on="1"] .plate[data-i="0"] { transform: translateZ(-40px); }
.stack[data-on="2"] .plate[data-i="2"] { transform: translateZ(260px); }
.plate.is-on { border-color: var(--acc, var(--signal)); box-shadow: 0 0 0 1px var(--acc, var(--signal)), 0 0 60px -10px var(--acc, var(--signal)); }
.plate[data-i="0"] { --acc: var(--signal); } .plate[data-i="1"] { --acc: var(--warn); } .plate[data-i="2"] { --acc: var(--crit); }
.plate-lbl { position: absolute; left: 0; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); pointer-events: none; transition: color .3s; }
.plate-lbl b { font: 500 12px var(--f-mono); color: var(--ink-3); }
.plate-lbl.is-on { color: var(--ink); }
.stack-tabs { display: grid; gap: 8px; margin-top: 30px; }
.stack-tabs button { display: grid; grid-template-columns: 36px 1fr; gap: 14px; text-align: left; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--r-m); transition: border-color .25s, background .25s; }
.stack-tabs button .ico { width: 26px; height: 26px; color: var(--ink-3); }
.stack-tabs button b { display: block; font-weight: 600; }
.stack-tabs button small { color: var(--ink-3); font-size: 14px; }
.stack-tabs button[aria-selected="true"] { border-color: var(--acc); background: var(--deck); }
.stack-tabs button[aria-selected="true"] .ico { color: var(--acc); }
.stack-tabs button:nth-child(1) { --acc: var(--signal); } .stack-tabs button:nth-child(2) { --acc: var(--warn); } .stack-tabs button:nth-child(3) { --acc: var(--crit); }
@media (max-width: 960px) { .stack { height: 380px; } }
@media (max-width: 560px) { .stack { height: 300px; } }

/* lifecycle (true sequence) */
.life { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; counter-reset: step; }
.life > li { position: relative; min-width: 0; padding: 22px; border: 1px solid var(--rule-2); border-radius: var(--r-m); background: linear-gradient(145deg, rgba(16,33,47,.85), rgba(12,26,38,.7)); }
.life .dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--night); border: 1px solid var(--rule-2); font: 500 13px var(--f-mono); color: var(--signal-2); }
.life h3 { font-size: 19px; margin-top: 18px; }
.life p { font-size: 14px; margin-top: 8px; }
.life ul { margin-top: 13px; display: grid; gap: 7px; }
.life ul li { font-size: 13px; color: var(--ink-3); padding: 0; list-style: disc; margin-left: 18px; }
.implementation-note { margin-top: 28px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-left: 3px solid var(--warn); background: rgba(255,178,63,.06); border-radius: 0 var(--r-m) var(--r-m) 0; }
.implementation-note b { font-size: 15px; }
.implementation-note p { margin-top: 5px; color: var(--ink-3); }
@media (max-width: 900px) { .life { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .life { grid-template-columns: 1fr; } .implementation-note { align-items: flex-start; flex-direction: column; } }

/* Expanded EMESRT framework explanations on the team page. */
.layer-detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; }
.layer-detail li { padding: 20px; border: 1px solid var(--rule-2); border-radius: var(--r-m); background: var(--deck); }
.layer-detail b { color: var(--signal-2); font-size: 15px; }
.layer-detail p { margin-top: 8px; font-size: 14px; }
@media (max-width: 900px) { .layer-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .layer-detail { grid-template-columns: 1fr; } }

/* Independent audit and post-commissioning content. */
.audit-standards { margin-top: 36px; }
.audit-standards a { display: inline-block; margin-top: 12px; color: var(--signal-2); font-size: 13px; }
.audit-callout, .post-implementation-note { margin-top: 26px; padding: 20px 22px; color: var(--ink-2); background: rgba(125,216,193,.07); border: 1px solid rgba(125,216,193,.22); border-radius: var(--r-m); }
.audit-callout b { color: var(--ink); }
.investigation-method { margin-top: 64px; align-items: center; }
.post-implementation-note { background: rgba(46,155,255,.05); border-color: var(--rule-2); }

/* integration network */
.net { width: 100%; height: auto; max-width: 720px; margin-inline: auto; overflow: visible; }
.net .lnk { fill: none; stroke: var(--rule-2); stroke-width: 1.5; }
.net .pulse { fill: none; stroke: var(--signal); stroke-width: 2; stroke-dasharray: 6 220; animation: netpulse 3.2s linear infinite; }
.net .pulse.b { animation-delay: -.8s; stroke: var(--warn); } .net .pulse.c { animation-delay: -1.6s; } .net .pulse.d { animation-delay: -2.4s; stroke: var(--crit); }
@keyframes netpulse { to { stroke-dashoffset: -226; } }
.net .n circle { fill: var(--deck); stroke: var(--rule-2); stroke-width: 1.5; }
.net .n text { fill: var(--ink); font: 600 15px var(--f-sans); text-anchor: middle; }
.net .n text.s { fill: var(--ink-3); font: 400 12.5px var(--f-sans); }
.net .core circle.ring { fill: none; stroke: var(--signal); stroke-width: 1.5; stroke-dasharray: 2 6; animation: spin 30s linear infinite; transform-origin: center; transform-box: fill-box; }
.net .core circle.fill { fill: #0f2436; stroke: var(--signal); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- investigations ---------- */
.recon { border: 1px solid var(--rule-2); border-radius: var(--r-l); background: #071019; overflow: hidden; }
.recon-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--ink-2); background: var(--deck); }
.recon canvas { width: 100%; aspect-ratio: 16 / 11; }
.recon-ctl { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--rule); background: var(--deck); }
.recon-ctl button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rule-2); display: grid; place-items: center; }
.recon-ctl button .ico { width: 16px; height: 16px; }
.recon-ctl input[type=range] { width: 100%; accent-color: var(--warn); }
.recon-ctl output { font: 500 12px var(--f-mono); color: var(--ink-2); min-width: 64px; text-align: right; }
.loop { width: 100%; max-width: 520px; height: auto; margin-inline: auto; overflow: visible; }
.loop .ring { fill: none; stroke: var(--rule-2); stroke-width: 1.5; }
.loop .sweep { fill: none; stroke: var(--warn); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 120 1000; animation: sweep 8s linear infinite; transform-origin: 260px 260px; }
@keyframes sweep { to { transform: rotate(360deg); } }
.loop .st circle { fill: var(--deck); stroke: var(--rule-2); stroke-width: 1.5; }
.loop .st text { fill: var(--ink); font: 600 15px var(--f-sans); text-anchor: middle; }
.loop .st text.s { fill: var(--ink-3); font: 400 12.5px var(--f-sans); }
.loop .st .ico-g { fill: none; stroke: var(--warn); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- team ---------- */
.trl { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; align-items: end; height: 220px; }
.trl li { position: relative; background: var(--deck); border: 1px solid var(--rule); border-radius: 4px 4px 0 0; height: calc(var(--h) * 1%); display: flex; flex-direction: column; justify-content: flex-start; padding: 10px 8px; transition: background .4s, border-color .4s; }
.trl li b { font: 500 13px var(--f-mono); color: var(--ink-3); }
.trl li.on { background: linear-gradient(180deg, rgba(46,155,255,.35), rgba(46,155,255,.08)); border-color: rgba(46,155,255,.6); }
.trl li.on b { color: var(--ink); }
.trl-key { display: grid; grid-template-columns: 3fr 6fr; gap: 4px; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.trl-key span { border-top: 1px solid var(--rule-2); padding-top: 8px; }
.trl-key span:last-child { border-color: var(--signal); color: var(--ink-2); }
.disc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.disc > div { border: 1px solid var(--rule); border-radius: var(--r-l); padding: clamp(22px, 3vw, 36px); background: var(--deck); }
.disc .ico { width: 34px; height: 34px; stroke-width: 1.2; color: var(--signal-2); }
.disc h3 { margin-top: 22px; }
.disc ul { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.disc li { font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule-2); color: var(--ink-2); }
@media (max-width: 860px) { .disc { grid-template-columns: 1fr; } }
.std { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.std li { border-top: 2px solid var(--signal); padding-top: 18px; }
.std b { display: block; font-variation-settings: "wdth" 118; font-weight: 640; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; }
.std span { display: block; margin-top: 6px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .std { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.form-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--deck); border: 1px solid var(--rule-2);
  border-radius: var(--r-s); padding: 13px 14px; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); background: var(--deck-2); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--rule-2); border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: all .2s; }
.chips span .ico { width: 16px; height: 16px; }
.chips input:checked + span { background: var(--ink); color: var(--night); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--signal-2); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.status { grid-column: 1 / -1; font-size: 15px; min-height: 24px; }
.status.ok { color: #7be0a6; } .status.err { color: var(--crit); }
.aside-card { border: 1px solid var(--rule); border-radius: var(--r-l); padding: clamp(22px, 3vw, 32px); background: var(--deck); }
.aside-card + .aside-card { margin-top: 14px; }
.aside-card ol { display: grid; gap: 16px; margin-top: 18px; counter-reset: s; }
.aside-card ol li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 15px; color: var(--ink-2); counter-increment: s; }
.aside-card ol li::before { content: counter(s, decimal-leading-zero); font: 500 12px/1.9 var(--f-mono); color: var(--signal-2); }
.sent { display: none; }
.form-wrap.is-sent .form { display: none; }
.form-wrap.is-sent .sent { display: block; animation: exIn .6s var(--ease); }
.sent .ico { width: 54px; height: 54px; color: #7be0a6; stroke-width: 1.3; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding-block: 56px 34px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font-size: 14px; color: var(--ink-3); font-weight: 500; margin-bottom: 14px; }
.foot-grid ul { display: grid; gap: 8px; }
.foot-grid a { color: var(--ink-2); font-size: 15px; } .foot-grid a:hover { color: var(--ink); }
.foot-grid .tag { margin-top: 18px; font-size: 14px; color: var(--ink-3); max-width: 34ch; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- motion ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }
.no-js .rv { opacity: 1; transform: none; }

/* page transitions — cross-document view transitions (Chrome/Edge 126+, Safari 18.2+) */
::view-transition-old(root) { animation: vtOut .42s var(--ease-io) both; }
::view-transition-new(root) { animation: vtIn .7s var(--ease) both; }
::view-transition-group(site-head) { animation-duration: .5s; }
::view-transition-old(page-title) { animation: vtTitleOut .35s ease both; }
::view-transition-new(page-title) { animation: vtTitleIn .6s var(--ease) .1s both; }
@keyframes vtOut { to { opacity: 0; transform: scale(.985); filter: blur(6px); } }
@keyframes vtIn { from { clip-path: polygon(0 0, 0 0, -20% 100%, -20% 100%); } to { clip-path: polygon(0 0, 120% 0, 100% 100%, -20% 100%); } }
@keyframes vtTitleOut { to { opacity: 0; transform: translateY(-20px); } }
@keyframes vtTitleIn { from { opacity: 0; transform: translateY(30px); } }

/* fallback curtain for browsers without cross-document transitions */
.curtain { position: fixed; inset: 0; z-index: 300; pointer-events: none; background: var(--night); transform: scaleX(0); transform-origin: right; }
.curtain::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 2px; background: var(--signal); box-shadow: 0 0 24px 4px rgba(46,155,255,.55); }
html.is-leaving .curtain { transform: scaleX(1); transform-origin: left; transition: transform .42s var(--ease-io); }
html.is-arriving .curtain { animation: curtainOut .6s var(--ease) both; }
@keyframes curtainOut { from { transform: scaleX(1); transform-origin: right; } to { transform: scaleX(0); transform-origin: right; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- small-screen refinements ---------- */
@media (max-width: 1080px) { .site-head .nav-cta { display: none; } }
@media (max-width: 860px) { .door { min-height: 340px; } .door .art { opacity: .25; } }
@media (max-width: 960px) {
  .stack { height: 360px; margin: 40px 0 0; }
  .stack-in { transform: scale(.78) rotateX(56deg) rotateZ(-32deg); }
}
@media (max-width: 600px) {
  .net .n text { font-size: 21px; }
  .net .n text.s { display: none; }
  .loop .st text { font-size: 19px; }
  .loop .st text.s { display: none; }
  .recon canvas { aspect-ratio: 4 / 5; }
  .c-axis, .c-lbl { font-size: 19px; }
}

/* Fleet Intelligence's official, non-interactive hex module graphic. */
.platform-hex-art { display: block; width: min(100%, 430px); height: auto; margin-inline: auto; border: 1px solid var(--rule-2); border-radius: var(--r-l); box-shadow: 0 28px 70px -48px rgba(0,0,0,.9); }
