/* =====================================================================================
   Optronix v4: solutions page group
   /solutions (hub) and /solutions/* (seven solution pages, one shared template).
   Every page: page hero with a framed bespoke figure, overview + key benefits panel with
   the lifecycle stage bar, a bespoke section where the page has one, numbered capability
   cards on paper, CTA band, FAQ, related links and the solution pager.
   Tokens only (tokens.css); behaviour in /js/ox/pages/solutions.js.
   ===================================================================================== */

/* ---------------------------------------------------------------- shared: hero */
.sol-hero { padding-top: calc(var(--header-h) + clamp(28px, 4vw, 72px)); }
.sol-hero .page-hero__inner { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(32px, 4.5vw, 80px); }
.sol-title { font-size: clamp(2.6rem, 1.5rem + 3.2vw, 4.75rem); line-height: 0.98; letter-spacing: var(--track-display); }
.sol-strap {
  margin-top: var(--s-4);
  font-size: clamp(1.375rem, 1.05rem + 1.05vw, 2.125rem); line-height: 1.12; letter-spacing: -0.022em; font-weight: 500;
  text-wrap: balance; color: var(--fg);
}
.sol-strap .text-grad { padding-bottom: 0.08em; }
.sol-hero .sol-strap + .lead { margin-top: var(--s-5); }
.sol-hero .page-hero__actions { margin-top: var(--s-6); }
.sol-hero .page-hero__visual { aspect-ratio: auto; max-height: none; }
@media (max-width: 899px) {
  .sol-hero .page-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .sol-hero .page-hero__visual { max-width: 620px; max-height: none; }
}

/* ---------------------------------------------------------------- shared: framed figure */
.sol-viz {
  position: relative; margin: 0 0 0 auto; width: 100%; max-width: var(--viz-max, 600px);
  display: flex; flex-direction: column;
  border: 1px solid var(--line-2); border-radius: var(--r-3);
  background:
    radial-gradient(120% 70% at 72% 0%, rgba(123, 126, 242, 0.09), transparent 62%),
    rgba(8, 8, 13, 0.78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 50px 100px -60px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
@media (max-width: 899px) { .sol-viz { margin: 0; max-width: none; } }
.sol-viz__bar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  font: 500 10.5px/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3);
}
.sol-viz__fig { color: var(--accent-text); }
.sol-viz__name { color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sol-viz__code { color: var(--fg-4); }
.sol-viz__stage { position: relative; aspect-ratio: var(--viz-ratio, 1 / 1); overflow: hidden; }
.sol-viz__stage > svg, .sol-viz__stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sol-viz__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 86px; padding: 14px 16px; border-top: 1px solid var(--line); margin: 0;
}
.sol-cap-line { display: grid; gap: 4px; min-width: 0; font-size: 0.875rem; line-height: 1.45; color: var(--fg-2); text-wrap: pretty; }
.sol-cap-line__k { font: 500 10.5px/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.sol-cap-line.is-swap { animation: sol-swap 0.45s var(--ease-out); }
@keyframes sol-swap { from { opacity: 0.2; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* play / pause toggle (aria-pressed = paused) */
.sol-play {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--fg-2); cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast);
}
.sol-play:hover { border-color: var(--accent-text); color: var(--fg); background: rgba(123, 126, 242, 0.1); }
.sol-play svg { width: 14px; height: 14px; }
.sol-play .i-pause path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sol-play .i-play path { fill: currentColor; }
.sol-play .i-play, .sol-play[aria-pressed="true"] .i-pause { display: none; }
.sol-play[aria-pressed="true"] .i-play { display: block; }
html.no-js .sol-play { display: none; }

/* segmented control (buttons with aria-pressed, or tabs with aria-selected) */
.sol-seg {
  display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; max-width: 100%;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.02);
}
.sol-seg button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  min-height: 32px; padding: 0 14px; border-radius: var(--r-pill);
  font: 500 0.8125rem/1 var(--font-sans); color: var(--fg-3); white-space: nowrap;
  transition: color var(--t-fast), background-color var(--t-med), box-shadow var(--t-med);
}
.sol-seg button:hover { color: var(--fg); }
.sol-seg button[aria-pressed="true"], .sol-seg button[aria-selected="true"] {
  background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px rgba(123, 126, 242, 0.85);
}

/* ---------------------------------------------------------------- shared: overview */
.sol-intro__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 112px); align-items: start;
}
@media (max-width: 999px) { .sol-intro__grid { grid-template-columns: minmax(0, 1fr); } }
.sol-intro__text { margin-top: var(--s-7); display: grid; gap: var(--s-5); max-width: 42em; }
.sol-intro__text .body-l { color: var(--fg-2); }
.sol-intro__text .link-arrow { justify-self: start; }
.sol-panel {
  position: relative; padding: clamp(24px, 2.6vw, 38px);
  border: 1px solid var(--line-2); border-radius: var(--r-3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 55%), var(--ink-2);
}
.sol-panel__h {
  margin-bottom: var(--s-5);
  font: 500 var(--fs-mono)/1.3 var(--font-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--fg-3);
}
.sol-ticks { gap: 12px; }
.sol-ticks li { font-size: 0.98rem; }

/* lifecycle stage bar */
.sol-stagebar { margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--line); container-type: inline-size; }
.sol-stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.sol-stages li { position: relative; padding-top: 16px; min-width: 0; }
.sol-stages li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 2px;
  background: var(--line-2);
}
.sol-stages li.is-core::before { background: var(--c); box-shadow: 0 0 14px -2px var(--c); }
.sol-stages li.is-also::before {
  background: repeating-linear-gradient(135deg, var(--c) 0 2px, transparent 2px 5px);
  box-shadow: inset 0 0 0 1px var(--c); opacity: 0.75;
}
.sol-stages__n { display: block; font: 500 10px/1.2 var(--font-mono); letter-spacing: 0.08em; color: var(--fg-4); }
.sol-stages__t { display: block; margin-top: 4px; font-size: 0.75rem; line-height: 1.3; color: var(--fg-3); text-wrap: balance; }
.sol-stages .is-core .sol-stages__n { color: var(--c); }
.sol-stages .is-core .sol-stages__t { color: var(--fg); }
.sol-stages .is-also .sol-stages__t { color: var(--fg-2); }
.sol-stages__key {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: var(--s-5);
  font: 500 10px/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3);
}
.sol-stages__key > span { display: inline-flex; align-items: center; gap: 8px; }
.sol-stages__key i, .sx-key i { width: 16px; height: 6px; border-radius: 2px; display: inline-block; }
.k-core { background: var(--grad-mark-h); }
.k-also { background: repeating-linear-gradient(135deg, var(--ox-300) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--ox-300); }
.sol-stages__key .link-arrow { margin-left: auto; }
@media (max-width: 559px) {
  .sol-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .sol-stages__key .link-arrow { margin-left: 0; }
}

/* ---------------------------------------------------------------- shared: capability cards */
.sol-caps__grid { --gap: var(--s-4); }
.sol-cap { height: 100%; gap: var(--s-3); padding: clamp(26px, 2.4vw, 38px); }
.sol-cap__top { display: flex; align-items: center; gap: 14px; margin-bottom: var(--s-4); }
.sol-cap__n { font: 500 0.8125rem/1 var(--font-mono); letter-spacing: 0.1em; color: var(--accent-text); }
.sol-cap__rule { position: relative; flex: 1; height: 1px; background: var(--line-2); overflow: hidden; }
.sol-cap__rule::after {
  content: ""; position: absolute; inset: 0; background: var(--grad-mark-h);
  transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease-out);
}
.sol-cap:hover .sol-cap__rule::after { transform: scaleX(1); }
.sol-cap .card__title { font-size: clamp(1.3rem, 1.12rem + 0.55vw, 1.625rem); }
.sol-cap .card__text { font-size: 0.97rem; }
.sol-cap .card__list { margin-top: auto; padding-top: var(--s-5); border-top: 1px solid var(--line); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); column-gap: 16px; }
/* subgrid: number, title, text and list sit on shared rows, so the list rules line up across a row of cards */
@supports (grid-template-rows: subgrid) {
  .sol-caps__grid > .sol-cap { height: auto; display: grid; grid-template-rows: subgrid; grid-row: span 3; align-content: start; }
  .sol-caps__grid:has(.card__list) > .sol-cap { grid-row: span 4; }
  .sol-caps__grid > .sol-cap > * { min-width: 0; }
  .sol-caps__grid > .sol-cap .sol-cap__top { align-self: start; }
  .sol-caps__grid > .sol-cap .card__list { margin-top: 0; align-self: start; }
}
.sol-cap.card--accent .sol-cap__n { color: var(--cyan); }
.sol-cap.card--accent .card__text { color: var(--fg-2); }

/* ---------------------------------------------------------------- shared: FAQ, specs, CTA */
.sol-faq__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 112px); align-items: start;
}
.sol-faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
.sol-faq__aside, .sol-every__aside { margin-top: var(--s-5); color: var(--fg-2); max-width: 30em; font-size: 1.0625rem; }
.sol-every__aside + p { margin-top: var(--s-5); }
@media (max-width: 899px) {
  .sol-faq__grid { grid-template-columns: minmax(0, 1fr); }
  .sol-faq__head { position: static; }
}
.sol-cta { padding-block: calc(var(--section-y) * 0.5); }
.sol-related .related__grid .card { height: 100%; }
.mg-spec dd, .te-specsec .spec dd { text-wrap: pretty; }

/* ---------------------------------------------------------------- shared: icons */
.sx-ic { display: block; overflow: visible; }
.sx-ic path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sx-ic .d { stroke: var(--fg-2); stroke-width: 1.3; }
.sx-ic .d.a { stroke: var(--accent-text); stroke-width: 1.7; }
.sx-ic .sig {
  stroke: var(--cyan); stroke-width: 2.4; stroke-dasharray: 16 84; stroke-dashoffset: 100; opacity: 0;
  filter: drop-shadow(0 0 3px rgba(92, 225, 230, 0.9));
}
@media (prefers-reduced-motion: no-preference) {
  a:hover .sx-ic .sig, a:focus-visible .sx-ic .sig { opacity: 1; animation: sx-sig 1.5s linear infinite; }
}
@keyframes sx-sig { to { stroke-dashoffset: 0; } }

/* =====================================================================================
   HUB /solutions
   ===================================================================================== */
@media (min-width: 1200px) { .sx-hero .page-hero__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
/* below 1200 the index sheet sits under the copy at full width, so no tile title is squeezed */
@media (min-width: 900px) and (max-width: 1199px) {
  .sx-hero .page-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .sx-hero .page-hero__visual { max-width: none; }
  .sx-sheet { margin: 0; max-width: none; }
}
.sx-sheet { --viz-max: 640px; }
.sx-tiles {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border-radius: 0 0 calc(var(--r-3) - 1px) calc(var(--r-3) - 1px); overflow: hidden;
}
.sx-tiles > li { display: flex; }
.sx-tile {
  position: relative; flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 172px;
  padding: 18px 16px 16px; background: rgba(8, 8, 13, 0.92); color: var(--fg-2); text-decoration: none;
  transition: background-color var(--t-med) var(--ease-out);
}
.sx-tile::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad-mark-h);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-slow) var(--ease-out);
}
.sx-tile:hover, .sx-tile:focus-visible { background: rgba(26, 26, 40, 0.96); }
.sx-tile:hover::after, .sx-tile:focus-visible::after { transform: scaleX(1); }
.sx-tile:focus-visible { outline-offset: -3px; }
.sx-tile .sx-ic { width: 38px; height: 38px; }
.sx-tile__n { position: absolute; top: 16px; right: 14px; font: 500 10px/1 var(--font-mono); letter-spacing: 0.1em; color: var(--fg-4); }
.sx-tile__t { margin-top: auto; font-size: 0.875rem; line-height: 1.3; color: var(--fg); font-weight: 500; text-wrap: balance; }
.sx-tile__dots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.sx-tile__dots i { height: 3px; border-radius: 1px; background: var(--line-2); }
.sx-tile__dots i.is-core { background: var(--c); }
.sx-tile__dots i.is-also { background: color-mix(in srgb, var(--c) 40%, transparent); }
@media (max-width: 559px) {
  .sx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-tile { min-height: 132px; padding: 14px 12px 12px; }
  .sx-tile .sx-ic { width: 32px; height: 32px; }
}
.sx-meta { align-items: flex-end; }
.sx-meta__stats { display: flex; flex-wrap: wrap; gap: 8px clamp(24px, 4vw, 64px); margin: 0 auto 0 clamp(0px, 6vw, 120px); }
.sx-meta__stats > div { display: grid; gap: 6px; }
.sx-meta__stats dt { font: 500 10.5px/1.2 var(--font-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--fg-3); }
.sx-meta__stats dd { margin: 0; font: 500 1.75rem/1 var(--font-mono); color: var(--fg); letter-spacing: -0.03em; }
@media (max-width: 899px) { .sx-meta__stats { margin: 0; order: 3; width: 100%; } }
@media (max-width: 559px) {
  .sx-meta__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 16px; }
  .sx-meta__stats dt { font-size: 10px; }
}

/* matrix */
.sx-mx { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(20px, 2.6vw, 40px); align-items: stretch; }
@media (max-width: 1099px) { .sx-mx { grid-template-columns: minmax(0, 1fr); } }
.sx-mx__table {
  position: relative; padding: clamp(14px, 2vw, 28px) clamp(14px, 2vw, 28px) clamp(16px, 1.6vw, 24px);
  border: 1px solid var(--line-2); border-radius: var(--r-3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%), var(--ink-2);
}
.sx-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.sx-table th, .sx-table td { padding: 0; font-weight: 400; }
.sx-corner {
  width: 31%; text-align: left; vertical-align: bottom; padding: 0 0 14px !important;
  font: 500 10px/1.5 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3);
}
.sx-corner span { display: block; }
.sx-corner span + span::before { content: "/ "; }
.sx-colh { vertical-align: bottom; }
.sx-colbtn {
  position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px;
  min-height: 86px; padding: 10px 4px 16px; border: 0; border-radius: var(--r-2) var(--r-2) 0 0; justify-content: flex-start;
  background: transparent; color: var(--fg-3); cursor: pointer; text-align: center;
  transition: background-color var(--t-med), color var(--t-med);
}
.sx-colbtn::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 6px; height: 3px; border-radius: 2px;
  background: var(--c); opacity: 0.45; transition: opacity var(--t-med), left var(--t-med) var(--ease-out), right var(--t-med) var(--ease-out);
}
.sx-colbtn__n { font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.08em; color: var(--c); }
.sx-colbtn__t { min-height: 2.5em; font-size: 0.78rem; line-height: 1.25; text-wrap: balance; }
.sx-colbtn:hover, .sx-colbtn:focus-visible, .sx-colbtn[aria-pressed="true"], .sx-colh.is-lit .sx-colbtn { color: var(--fg); background: color-mix(in srgb, var(--c) 9%, transparent); }
.sx-colbtn:hover::after, .sx-colbtn[aria-pressed="true"]::after, .sx-colh.is-lit .sx-colbtn::after { opacity: 1; left: 8%; right: 8%; }
.sx-colbtn:focus-visible { outline-offset: -2px; }
.sx-row > th, .sx-row > td { border-top: 1px solid var(--line); transition: background-color var(--t-med); }
.sx-rowbtn {
  width: 100%; display: flex; align-items: baseline; gap: 12px; padding: 15px 12px 15px 6px; border: 0;
  background: transparent; color: var(--fg-2); cursor: pointer; text-align: left;
  font: 500 0.9375rem/1.3 var(--font-sans); transition: color var(--t-fast);
}
.sx-rowbtn__n { flex: none; font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.08em; color: var(--fg-4); transition: color var(--t-fast); }
.sx-rowbtn:hover, .sx-rowbtn:focus-visible, .sx-rowbtn[aria-pressed="true"] { color: var(--fg); }
.sx-rowbtn:hover .sx-rowbtn__n, .sx-rowbtn[aria-pressed="true"] .sx-rowbtn__n, .sx-row.is-lit .sx-rowbtn__n { color: var(--accent-text); }
.sx-rowbtn:focus-visible { outline-offset: -2px; }
.sx-row.is-lit > th, .sx-row.is-lit > td { background: rgba(123, 126, 242, 0.075); }
.sx-row.is-lit .sx-rowbtn { color: var(--fg); }
.sx-cell { text-align: center; vertical-align: middle; position: relative; }
.sx-cell.is-col { background: color-mix(in srgb, var(--c) 7%, transparent); }
.sx-mark {
  display: inline-block; width: 26px; height: 14px; vertical-align: middle;
  clip-path: polygon(32% 0, 100% 0, 68% 100%, 0 100%);
  background: var(--line-2); transform: scale(0.42);
  transition: transform 0.45s var(--ease-spring), opacity var(--t-med), background-color var(--t-med), box-shadow var(--t-med);
  transition-delay: var(--dl, 0s);
}
.sx-cell.is-core .sx-mark { background: var(--c); transform: none; }
.sx-cell.is-also .sx-mark { background: repeating-linear-gradient(135deg, var(--c) 0 2px, transparent 2px 5px); transform: none; opacity: 0.85; }
.sx-mx.is-active .sx-cell .sx-mark { opacity: 0.22; }
.sx-mx.is-active .sx-cell.is-hit .sx-mark { opacity: 1; transform: scale(1.18); }
.sx-mx.is-active .sx-cell.is-core.is-hit .sx-mark { filter: drop-shadow(0 0 8px var(--c)); }
.sx-key {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font: 500 10px/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3);
}
.sx-key span { display: inline-flex; align-items: center; gap: 8px; }
.sx-stagekey { display: none; }
@media (max-width: 899px) {
  .sx-colbtn { min-height: 44px; padding: 6px 0 14px; }
  .sx-colbtn__t { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sx-stagekey {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; list-style: none; padding: 0; margin: 12px 0 0;
    font-size: 0.8125rem; line-height: 1.25; color: var(--fg-2);
  }
  .sx-stagekey li { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
  .sx-stagekey b { font: 500 10px/1 var(--font-mono); letter-spacing: 0.08em; color: var(--c); }
}
@media (max-width: 759px) {
  .sx-corner { width: 38%; }
  .sx-rowbtn { font-size: 0.8125rem; padding: 12px 6px 12px 2px; gap: 8px; }
  .sx-rowbtn__n { display: none; }
  .sx-mark { width: 20px; height: 11px; }
}
/* the detail panel */
.sx-panel {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line-2); border-radius: var(--r-3);
  background: radial-gradient(120% 70% at 100% 0%, rgba(123, 126, 242, 0.14), transparent 60%), var(--ink-2);
  padding: clamp(22px, 2.4vw, 34px); min-height: 100%;
}
.sx-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; border-radius: 2px; background: var(--pc, var(--grad-mark-h)); opacity: 0.9; }
.sx-panel__inner { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.sx-panel__inner.is-swap { animation: sol-swap 0.45s var(--ease-out); }
.sx-panel__k { font: 500 var(--fs-mono)/1.3 var(--font-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--accent-text); }
.sx-panel__t { font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -0.02em; color: var(--fg); font-weight: 500; }
.sx-panel__d { color: var(--fg-2); font-size: 0.97rem; }
.sx-panel__h { margin-top: 6px; font: 500 10px/1.3 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.sx-panel__list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.sx-panel__list li {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  font-size: 0.8125rem; color: var(--fg-2);
}
.sx-panel__list li i { width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--accent)); }
.sx-panel__list li.is-also i { background: transparent; box-shadow: inset 0 0 0 1px var(--c); }
.sx-panel__pts { display: grid; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.sx-panel__pts li {
  display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: 0.9375rem; line-height: 1.35; color: var(--fg-2);
}
.sx-panel__pts li::before { content: ""; flex: none; width: 10px; height: 1px; background: var(--accent-text); transform: translateY(-4px); }
.sx-panel__links { display: grid; gap: 10px; margin-top: auto; padding-top: 10px; }
.sx-panel__links .link-arrow { font-size: 0.95rem; }

/* cards (paper) */
.sx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); list-style: none; padding: 0; margin: 0; }
.sx-grid > li { display: flex; }
@media (max-width: 1199px) { .sx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .sx-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .sx-card__k { display: none; }
  .sx-card__top { margin-bottom: 8px; }
  .sx-card .sx-ic { width: 42px; height: 42px; }
}
.sx-card { flex: 1; gap: 12px; padding: clamp(22px, 2vw, 30px); min-height: 100%; }
.sx-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.sx-card .sx-ic { width: 52px; height: 52px; }
.sx-card .sx-ic .d { stroke: var(--fg); }
.sx-card__n { font: 500 var(--fs-mono)/1 var(--font-mono); letter-spacing: var(--track-mono); color: var(--fg-3); }
.sx-card__t { font-size: 1.3rem; line-height: 1.18; letter-spacing: -0.015em; color: var(--fg); font-weight: 500; }
.sx-card__d { font-size: var(--fs-small); color: var(--fg-2); line-height: 1.55; }
.sx-card__k { display: grid; gap: 7px; margin-top: 4px; font-size: 0.875rem; color: var(--fg-2); }
.sx-card__k li { display: flex; gap: 10px; align-items: baseline; }
.sx-card__k li::before { content: ""; flex: none; width: 10px; height: 1px; background: var(--accent-text); transform: translateY(-4px); }
.sx-card__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sx-card__stages { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: var(--r-1);
  border: 1px solid var(--line-2); font: 500 9.5px/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3);
}
.sx-chip i { width: 6px; height: 6px; border-radius: 1px; background: var(--c); }
.sx-card--wt { background: var(--ink-2); border-color: rgba(161, 163, 255, 0.3); }
.sx-card--wt .sx-ic .d { stroke: var(--ox-200); }
.sx-card--wt .sx-ic .d.a { stroke: var(--cyan); }
.sx-card--wt .sx-card__t { color: var(--fg); }

.sx-process { --n: 5; }
.sx-process__link { margin-top: var(--s-4); }
.sx-joined__foot { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); }

/* =====================================================================================
   01 Professional Services: advisory stack
   ===================================================================================== */
.pa { --viz-max: 590px; }
.pa-svg { overflow: visible; }
.pa-ruler { fill: none; stroke: var(--line-2); stroke-width: 1; }
.pa-rl { font: 500 9px var(--font-mono); letter-spacing: 0.08em; fill: var(--fg-4); }
.pa-top { fill: rgba(13, 13, 21, 0.9); stroke: var(--line-3); stroke-width: 1; transition: stroke 0.5s, fill 0.5s; }
.pa-side { fill: rgba(161, 163, 255, 0.07); stroke: var(--line-2); stroke-width: 1; }
.pa-side--r { fill: rgba(161, 163, 255, 0.035); }
.pa-art path, .pa-art circle { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.pa-grid { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.pa-dash { stroke-dasharray: 4 4; }
.pa-ink { stroke: rgba(161, 163, 255, 0.42); stroke-width: 1.15; transition: stroke 0.5s; }
.pa-key { stroke-width: 1.4; }
.pa-mile { stroke: rgba(161, 163, 255, 0.55); stroke-width: 1.2; fill: #0e0e15 !important; transition: fill 0.5s, stroke 0.5s; }
.pa-flag { stroke: rgba(161, 163, 255, 0.4); stroke-width: 1.2; }
.pa-lead { fill: none; stroke: var(--line-3); stroke-width: 1; stroke-dasharray: 2 3; }
.pa-dot { fill: var(--fg-4); transition: fill 0.5s; }
.pa-plate.is-on .pa-top { stroke: rgba(92, 225, 230, 0.7); fill: rgba(14, 18, 30, 0.92); }
.pa-plate.is-on .pa-ink { stroke: rgba(197, 199, 255, 0.72); }
.pa-plate.is-on .pa-key { stroke: var(--cyan); }
.pa-plate.is-on .pa-mile--on { fill: var(--cyan) !important; stroke: var(--cyan); }
.pa-plate.is-on .pa-flag { stroke: var(--cyan); }
.pa-plate.is-on .pa-dot { fill: var(--cyan); }
.pa-plate.is-sel .pa-top { stroke: var(--ox-300); fill: rgba(28, 26, 52, 0.94); }
.pa-scan { transition: opacity 0.4s; }
.pa-scan__plane { fill: rgba(92, 225, 230, 0.06); stroke: var(--cyan); stroke-width: 1.2; filter: drop-shadow(0 0 6px rgba(92, 225, 230, 0.55)); }
.pa-scan__line { fill: none; stroke: rgba(92, 225, 230, 0.4); stroke-width: 1; stroke-dasharray: 2 4; }
.pa-scan__mark { fill: var(--cyan); }
.pa-labels { position: absolute; inset: 0; pointer-events: none; }
.pa-label {
  position: absolute; left: 73.2%; top: var(--y); transform: translateY(-50%); pointer-events: auto;
  display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 8px; align-items: baseline;
  max-width: 25.5%; padding: 6px 10px 6px 8px;
  border: 1px solid var(--line-2); border-radius: var(--r-1); background: rgba(8, 8, 13, 0.82);
  font: 500 0.75rem/1.2 var(--font-sans); color: var(--fg-2); text-align: left; cursor: pointer;
  transition: border-color var(--t-med), color var(--t-med), background-color var(--t-med);
}
.pa-label__n { font: 500 10px/1 var(--font-mono); letter-spacing: 0.06em; color: var(--fg-4); }
.pa-label__ok {
  grid-column: 1 / -1; max-height: 0; opacity: 0; overflow: hidden;
  font: 500 9px/1.3 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan);
  transition: max-height 0.4s var(--ease-out), opacity 0.4s, margin 0.4s;
}
.pa-label:hover { border-color: var(--ox-300); color: var(--fg); }
.pa-label.is-on { border-color: rgba(92, 225, 230, 0.5); color: var(--fg); }
.pa-label.is-on .pa-label__ok { max-height: 1.4em; opacity: 1; margin-top: 3px; }
.pa-label.is-on .pa-label__n { color: var(--cyan); }
.pa-label[aria-pressed="true"] { border-color: var(--ox-300); background: rgba(91, 93, 199, 0.32); color: #fff; }
@media (max-width: 559px) {
  .pa-label { padding: 4px 6px; font-size: 0.6875rem; column-gap: 5px; max-width: 26%; }
  .pa-label__ok { display: none; }
}

/* =====================================================================================
   02 Sourcing & Advisory: AVANT Pathfinder funnel
   ===================================================================================== */
.sa-powered { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: var(--s-6); }
.sa-powered__k { font: 500 10.5px/1.2 var(--font-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--fg-4); }
.sa-powered__pf { height: 34px; width: auto; }
.sa-powered__tile { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: var(--r-2); background: #fff; }
.sa-powered__tile img { height: 18px; width: auto; }
.sa { --viz-max: 600px; }
.sa-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.sa-tab {
  appearance: none; cursor: pointer; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02);
  font: 500 0.8125rem/1 var(--font-sans); color: var(--fg-3); white-space: nowrap;
  transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-med);
}
.sa-tab:hover { color: var(--fg); border-color: var(--line-3); }
.sa-tab[aria-selected="true"] { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 6px 18px -8px rgba(123, 126, 242, 0.85); }
.sa-lbl { position: absolute; z-index: 1; display: grid; gap: 3px; pointer-events: none; }
.sa-lbl__k { font: 500 9.5px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.sa-lbl__v { font-size: 0.8125rem; line-height: 1.3; color: var(--fg-2); transition: opacity 0.3s; }
.sa-lbl__v.is-out { opacity: 0; }
.sa-lbl--top { left: 4%; top: 3%; }
.sa-lbl--top .sa-lbl__v { color: var(--fg); }
.sa-lbl--g1, .sa-lbl--g2, .sa-lbl--sl { left: 63%; right: 3%; transform: translateY(-50%); }
.sa-lbl--g1 { top: 40%; }
.sa-lbl--g2 { top: 62%; }
.sa-lbl--sl { top: 78%; }
.sa-lbl--end { left: 46%; right: 3%; top: 90.5%; transform: translateY(-50%); }
.sa-lbl--end .sa-lbl__v { color: var(--cyan); font: 500 10px/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.sa-panel { min-width: 0; }
.sa-stats .stat__value { display: flex; align-items: baseline; }
.sa-live { display: inline-flex !important; align-items: center; gap: 0.22em; }
.sa-live i { position: relative; width: 0.24em; height: 0.24em; border-radius: 50%; background: var(--cyan); flex: none; box-shadow: 0 0 16px var(--cyan); }
.sa-live i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--cyan); animation: ox-ping 2.4s var(--ease-out) infinite; }
.sa-reach { border-bottom: 1px solid var(--line); }
@media (max-width: 559px) {
  .sa-tab { padding: 0 10px; font-size: 0.75rem; min-height: 30px; }
  .sa-lbl__v { font-size: 0.6875rem; }
  .sa-lbl--g1, .sa-lbl--g2, .sa-lbl--sl { left: 61%; }
}

/* =====================================================================================
   03 Design & Build: plan to isometric hall
   ===================================================================================== */
.db { --viz-max: 580px; }
.db-note { display: inline-flex; align-items: center; gap: 10px; font: 500 10px/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); text-align: right; }
.db-note__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); flex: none; }
.db-process { --n: 7; }
.db-process .process__title { font-size: 1.0625rem; }
.db-process .process__text { font-size: 0.875rem; }
@media (min-width: 900px) and (max-width: 1239px) {
  .db-process { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .db-process .process__rail { left: 7px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .db-process .process__fill { transform-origin: center top; transform: scaleY(var(--p, 0)); }
  .db-process .process__head { left: 50%; top: calc(var(--p, 0) * 100%); margin: -4.5px 0 0 -4.5px; }
  .db-process .process__step { padding: 0 0 0 44px; }
  .db-process .process__step::before { top: 2px; }
}
/* vertical rail in this range too: the head moves as a transform (see .process__head in ox.css) */
@supports (width: 1cqw) { @media (min-width: 900px) and (max-width: 1239px) {
  .db-process .process__head { top: 0; translate: 0 calc(var(--p, 0) * 100cqh); }
} }

/* =====================================================================================
   04 Migrations: site A to site B
   ===================================================================================== */
.mg { --viz-max: 640px; }
.mg-slab__top { fill: rgba(14, 14, 21, 0.92); stroke: var(--line-3); stroke-width: 1; }
.mg-slab__side { fill: rgba(161, 163, 255, 0.07); stroke: var(--line-2); stroke-width: 1; }
.mg-slab__side--r { fill: rgba(161, 163, 255, 0.035); }
.mg-slab__grid { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.mg-slab--b .mg-slab__top { stroke: rgba(92, 225, 230, 0.35); }
.mg-slot { fill: none; stroke: rgba(161, 163, 255, 0.35); stroke-width: 1; stroke-dasharray: 2 2.5; transition: stroke 0.4s, fill 0.4s; }
.mg-slot--b { stroke: rgba(92, 225, 230, 0.35); }
.mg-slot.is-empty { stroke: rgba(161, 163, 255, 0.55); fill: rgba(161, 163, 255, 0.05); }
.mg-slot.is-filled { stroke: transparent; }
.mg-arc { fill: none; stroke: var(--line-3); stroke-width: 1; stroke-dasharray: 3 5; }
.mg-arc__lit { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-dasharray: 100 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 4px rgba(92, 225, 230, 0.7)); opacity: 0; transition: opacity 0.3s; }
.mg-arc__lit.is-on { opacity: 1; }
.mg-mid__box { fill: rgba(8, 8, 13, 0.9); stroke: var(--line-2); }
.mg-tx { font: 500 10px var(--font-mono); letter-spacing: 0.1em; fill: var(--fg-3); }
.mg-mid__tx { fill: var(--fg-2); font-size: 9px; }
.mg-count { fill: var(--fg-4); }
.mg-count tspan { fill: var(--fg); }
.mg-rack__l { fill: #17172a; stroke: rgba(161, 163, 255, 0.55); stroke-width: 0.9; stroke-linejoin: round; }
.mg-rack__r { fill: #111120; stroke: rgba(161, 163, 255, 0.55); stroke-width: 0.9; stroke-linejoin: round; }
.mg-rack__t { fill: #23233d; stroke: rgba(197, 199, 255, 0.7); stroke-width: 0.9; stroke-linejoin: round; }
.mg-rack__led { stroke: var(--cyan); stroke-width: 1.2; stroke-linecap: round; opacity: 0.85; }
.mg-rack__u { stroke: rgba(255, 255, 255, 0.07); stroke-width: 0.8; }
.mg-rack.is-moving .mg-rack__t { fill: #2c2c52; stroke: var(--cyan); }
.mg-rack.is-moving { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 8px rgba(92, 225, 230, 0.35)); }
.mg-rack.is-off .mg-rack__led { opacity: 0.15; }
.mg-tl { position: relative; padding: 42px 18px 4px; border-top: 1px solid var(--line); container-type: inline-size; }
/* when the timeline is narrow the stage names would collide: numbers only, the caption names the stage */
@container (max-width: 559px) { .mg-st__t { display: none; } }
.mg-tl__rail { position: relative; height: 2px; background: var(--line-2); border-radius: 2px; }
.mg-tl__fill { position: absolute; inset: 0; background: var(--grad-mark-h); transform-origin: left center; transform: scaleX(var(--p, 0)); border-radius: 2px; }
.mg-tl__head {
  position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: #e9fbff; box-shadow: 0 0 0 4px rgba(92, 225, 230, 0.18), 0 0 16px 4px rgba(92, 225, 230, 0.5);
}
.mg-gate { position: absolute; left: var(--x); top: 50%; z-index: 1; }
.mg-gate i {
  position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; transform: rotate(45deg);
  background: var(--ink-1); border: 1px solid var(--line-3); transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.mg-gate b {
  position: absolute; bottom: 11px; left: 0; transform: translateX(-50%); white-space: nowrap;
  font: 500 9px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-4); transition: color 0.3s;
}
.mg-gate[data-g="1"] b, .mg-gate[data-g="3"] b { bottom: 24px; }
.mg-gate[data-g="3"] b { transform: translateX(-100%); left: 8px; }
.mg-gate.is-go i { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 12px rgba(92, 225, 230, 0.7); }
.mg-gate.is-go b { color: var(--cyan); }
.mg-tl__stages { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 10px; }
.mg-st {
  width: 100%; display: grid; gap: 3px; padding: 8px 4px 10px 0; border: 0; background: transparent; cursor: pointer;
  text-align: left; color: var(--fg-4); border-radius: var(--r-1);
}
.mg-st__n { font: 500 10px/1 var(--font-mono); letter-spacing: 0.08em; transition: color 0.3s; }
.mg-st__t { font-size: 0.75rem; line-height: 1.2; color: var(--fg-3); transition: color 0.3s; }
.mg-st:hover .mg-st__t, .mg-st:focus-visible .mg-st__t { color: var(--fg); }
.mg-st.is-done .mg-st__n { color: var(--accent-text); }
.mg-st.is-now .mg-st__n { color: var(--cyan); }
.mg-st.is-now .mg-st__t { color: var(--fg); }
@media (max-width: 599px) {
  .mg-tl { padding: 16px 14px 2px; }
  .mg-gate b { display: none; }
  .mg-st__t { display: none; }
  .mg-st { justify-items: start; }
  .mg-tx { font-size: 13px; }
  .mg-mid__tx { font-size: 12px; }
}

/* =====================================================================================
   05 Technical Engineering: spine and leaf
   ===================================================================================== */
.te { --viz-max: 600px; }
.te-svg .te-link { fill: none; stroke: rgba(161, 163, 255, 0.24); stroke-width: 1; transition: stroke 0.3s, opacity 0.3s; }
.te-pulse {
  fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 6 100; stroke-dashoffset: 106; opacity: 0;
  animation: te-run 3s linear infinite; animation-delay: var(--d, 0s);
  transition: opacity 0.3s;
}
.te-pulse.is-idle { opacity: 0.85; }
@keyframes te-run { to { stroke-dashoffset: 0; } }
.te-drop { fill: none; stroke: rgba(180, 122, 232, 0.45); stroke-width: 1; transition: stroke 0.3s, opacity 0.3s; }
.te-box { fill: #0e0e15; stroke: var(--line-3); stroke-width: 1; transition: stroke 0.3s, fill 0.3s; }
.te-rack { fill: #0b0b12; }
.te-u { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.te-led { fill: none; stroke: var(--cyan); stroke-width: 1.4; stroke-linecap: round; opacity: 0.6; }
.te-tx { font: 500 10px var(--font-mono); letter-spacing: 0.06em; fill: var(--fg-2); pointer-events: none; }
.te-tx--s { font-size: 9px; }
.te-tier { font: 500 8.5px var(--font-mono); letter-spacing: 0.14em; fill: var(--fg-3); paint-order: stroke; stroke: #0b0b12; stroke-width: 4px; stroke-linejoin: round; }
.te-dim { fill: none; stroke: var(--line-2); stroke-width: 1; }
.te-node { cursor: pointer; outline: none; }
.te-node:hover .te-box { stroke: var(--ox-300); }
.te-node:focus-visible .te-box { stroke: var(--ox-200); stroke-width: 2; }
.te-svg.has-active .te-link, .te-svg.has-active .te-drop { opacity: 0.16; }
.te-svg.has-active .te-link.is-on { opacity: 1; stroke: rgba(92, 225, 230, 0.75); }
.te-svg.has-active .te-drop.is-on { opacity: 1; stroke: var(--violet); }
.te-svg.has-active .te-pulse { opacity: 0; }
.te-svg.has-active .te-pulse.is-on { opacity: 1; animation-duration: 1.6s; }
.te-node.is-active .te-box { stroke: var(--cyan); fill: rgba(92, 225, 230, 0.14); }
.te-node.is-active .te-tx { fill: #fff; }
.te-node.is-linked .te-box { stroke: rgba(92, 225, 230, 0.6); fill: rgba(92, 225, 230, 0.05); }
.te-svg.has-active .te-node:not(.is-active):not(.is-linked) { opacity: 0.5; }
.te-node { transition: opacity 0.3s; }
.te-legend { display: grid; gap: 6px; flex: none; font: 500 9.5px/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.te-legend span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.te-legend i { width: 16px; height: 2px; border-radius: 2px; }
.te-legend__f { background: var(--cyan); }
.te-legend__c { background: var(--violet); }
@media (max-width: 599px) {
  .te .sol-viz__foot { flex-direction: column; align-items: flex-start; }
  .te-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .te-tx { font-size: 13px; }
  .te-tx--s { font-size: 11.5px; }
  .te-tier { font-size: 11px; }
}

/* =====================================================================================
   06 M&E: power chain and airflow
   ===================================================================================== */
.me { --viz-max: 600px; }
.me-bus { fill: none; stroke: rgba(161, 163, 255, 0.3); stroke-width: 2; stroke-linejoin: round; }
.me-lit {
  fill: none; stroke: rgba(161, 163, 255, 0.85); stroke-width: 2; stroke-linejoin: round;
  stroke-dasharray: var(--lit, 0) 2000; transition: stroke-dasharray 0.9s var(--ease-out);
}
.me-current {
  fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 3 16; animation: me-flow 0.9s linear infinite;
  filter: drop-shadow(0 0 3px rgba(92, 225, 230, 0.85));
}
@keyframes me-flow { to { stroke-dashoffset: -19; } }
.me-chev { fill: none; stroke: var(--cyan); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
.me-sym { fill: none; stroke: var(--ox-200); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s; }
.me-thin { stroke-width: 1; }
.me-fill, .me-fill-a, .me-brk { fill: #0b0b12; }
.me-led { fill: none; stroke: var(--cyan); stroke-width: 1.4; stroke-linecap: round; opacity: 0.7; }
.me-halo { fill: transparent; stroke: transparent; stroke-width: 1; transition: fill 0.3s, stroke 0.3s; }
.me-node { cursor: pointer; outline: none; }
.me-node:hover .me-sym { stroke: #fff; }
.me-node.is-active .me-sym { stroke: var(--cyan); }
.me-node.is-active .me-halo { fill: rgba(92, 225, 230, 0.07); stroke: rgba(92, 225, 230, 0.4); stroke-dasharray: 2 4; }
.me-node:focus-visible .me-halo { fill: rgba(123, 126, 242, 0.1); stroke: var(--ox-300); stroke-width: 1.5; stroke-dasharray: none; }
.me-tx { font: 500 10px var(--font-mono); letter-spacing: 0.1em; fill: var(--fg-3); }
.me-tx--f { font-size: 9px; fill: var(--fg-4); }
.me-dimln { fill: none; stroke: var(--line-2); stroke-width: 1; }
@media (max-width: 599px) {
  .me-tx { font-size: 12.5px; }
  .me-tx--f { font-size: 11px; }
}

.me-air { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-3); background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%), var(--ink-2); }
.me-air__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.me-air__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 10px/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.me-air__legend span { display: inline-flex; align-items: center; gap: 8px; }
.me-air__legend i { width: 18px; height: 3px; border-radius: 2px; }
.k-cold { background: var(--cyan); }
.k-hot { background: #f2647b; }
.me-air__stage { position: relative; aspect-ratio: 1000 / 440; }
.me-air__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.me-air__panels { padding: 16px 20px 20px; border-top: 1px solid var(--line); min-height: 96px; }
.me-air__panel p { max-width: 72ch; color: var(--fg-2); }
.me-air__panel.is-active { animation: sol-swap 0.45s var(--ease-out); }
@media (max-width: 699px) {
  .me-air__stage { aspect-ratio: 1000 / 470; }
  .me-air .sol-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-radius: var(--r-2); }
  .me-air .sol-seg button { min-height: 42px; padding: 4px 6px; border-radius: 6px; font-size: 0.75rem; line-height: 1.2; white-space: normal; text-wrap: balance; }
}
/* phones: the canvas shows the west half of the (symmetrical) section at twice the scale */
@media (max-width: 639px) { .me-air__stage { aspect-ratio: 540 / 440; } }

/* =====================================================================================
   07 Managed Services: incident loop and tier ladder
   ===================================================================================== */
.ms { --viz-max: 560px; }
.ms-ticks { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.ms-orbit { fill: none; stroke: rgba(161, 163, 255, 0.22); stroke-width: 1; stroke-dasharray: 2 6; transform-origin: 260px 260px; }
@media (prefers-reduced-motion: no-preference) { .ms-orbit { animation: ms-spin 80s linear infinite; } }
@keyframes ms-spin { to { transform: rotate(360deg); } }
.ms-hex { fill: rgba(123, 126, 242, 0.035); stroke: var(--line-3); stroke-width: 1.2; stroke-linejoin: round; }
.ms-hex__done { fill: none; stroke: url(#ox-grad-mark); stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: var(--done, 0) 600; }
.ms-hex__pulse { fill: none; stroke: #e9fbff; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 10 590; stroke-dashoffset: 5; filter: drop-shadow(0 0 5px var(--cyan)); }
.ms-node__halo { fill: transparent; transition: fill 0.4s; }
.ms-node__c { fill: #0b0b12; stroke: var(--line-3); stroke-width: 1.2; transition: fill 0.4s, stroke 0.4s; }
.ms-node__n { font: 500 11px var(--font-mono); fill: var(--fg-3); letter-spacing: 0.04em; transition: fill 0.4s; }
.ms-node.is-done .ms-node__c { stroke: var(--ox-300); }
.ms-node.is-done .ms-node__n { fill: var(--fg-2); }
.ms-node.is-now .ms-node__c { fill: var(--accent); stroke: var(--ox-300); }
.ms-node.is-now .ms-node__n { fill: #fff; }
.ms-node.is-now .ms-node__halo { fill: rgba(123, 126, 242, 0.22); }
.ms-centre { position: absolute; left: 50%; top: 50%; width: 40%; transform: translate(-50%, -50%); display: grid; justify-items: center; text-align: center; gap: 8px; pointer-events: none; }
.ms-centre__v { font: 500 clamp(2.75rem, 1.6rem + 3.4vw, 4.6rem)/0.9 var(--font-mono); letter-spacing: -0.05em; color: var(--fg); }
.ms-centre__v small { font-size: 0.3em; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); margin-left: 0.2em; }
.ms-centre__l { font: 500 9.5px/1.45 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); text-wrap: balance; }
.ms-labels { position: absolute; inset: 0; pointer-events: none; }
.ms-label {
  position: absolute; left: var(--x); top: var(--y); pointer-events: auto;
  padding: 5px 9px; border: 1px solid var(--line-2); border-radius: var(--r-1); background: rgba(8, 8, 13, 0.85);
  font: 500 0.75rem/1.2 var(--font-sans); color: var(--fg-2); white-space: nowrap; cursor: pointer;
  transition: border-color var(--t-med), color var(--t-med), background-color var(--t-med);
}
.ms-label__s { display: none; }
.ms-label--0, .ms-label--1, .ms-label--5 { transform: translate(-50%, calc(-100% - 28px)); }
.ms-label--2, .ms-label--3, .ms-label--4 { transform: translate(-50%, 28px); }
.ms-label:hover { color: var(--fg); border-color: var(--ox-300); }
.ms-label[aria-pressed="true"] { color: #fff; border-color: var(--ox-300); background: rgba(91, 93, 199, 0.35); }
@media (max-width: 559px) {
  .ms-label { padding: 4px 7px; font-size: 0.6875rem; }
  .ms-label__l { display: none; }
  .ms-label__s { display: inline; }
  .ms-label--0, .ms-label--1, .ms-label--5 { transform: translate(-50%, calc(-100% - 20px)); }
  .ms-label--2, .ms-label--3, .ms-label--4 { transform: translate(-50%, 20px); }
  .ms-centre__l { font-size: 8px; }
}

.ms-tiers { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(20px, 3vw, 48px); align-items: stretch; }
@media (max-width: 1279px) { .ms-tiers { grid-template-columns: minmax(0, 1fr); } }
.ms-ladder {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--line-2); border-radius: var(--r-3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 50%), var(--ink-2);
}
.ms-ladder__axis { display: inline-flex; align-items: center; gap: 8px; font: 500 10px/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.ms-ladder__axis svg { width: 14px; height: 14px; fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ms-ladder__list { flex: 1 1 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 10px; min-height: 380px; margin-top: 18px; }
.ms-step { appearance: none; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.ms-step__resp { display: block; margin-bottom: 8px; font: 500 0.9375rem/1 var(--font-mono); letter-spacing: -0.02em; color: var(--fg-3); white-space: nowrap; transition: color var(--t-med); }
.ms-step__bar {
  position: relative; display: flex; flex-direction: column; gap: 5px;
  height: calc(14% + var(--k) * 15.5%); padding: 12px 10px;
  border: 1px solid var(--line-2); border-bottom-color: transparent; border-radius: var(--r-2) var(--r-2) 2px 2px;
  background: linear-gradient(180deg, rgba(123, 126, 242, 0.12), rgba(123, 126, 242, 0.02));
  transform-origin: bottom center;
  transition: background-color var(--t-med), border-color var(--t-med), box-shadow var(--t-med), transform 1s var(--ease-out);
  transition-delay: 0s, 0s, 0s, calc(var(--k) * 70ms);
}
html.js .ms-tiers:not(.is-in) .ms-step__bar { transform: scaleY(0.04); }
.ms-step__n { font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.08em; color: var(--fg-4); }
.ms-step__name { font-size: 0.9375rem; line-height: 1.2; font-weight: 500; color: var(--fg); overflow-wrap: normal; hyphens: manual; }
.ms-step__metal { font: 500 9.5px/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.ms-step:hover .ms-step__bar { border-color: var(--ox-300); }
.ms-step:focus-visible { outline: none; }
.ms-step:focus-visible .ms-step__bar { outline: 2px solid var(--focus); outline-offset: 3px; }
.ms-step[aria-selected="true"] .ms-step__bar {
  background: linear-gradient(180deg, rgba(123, 126, 242, 0.6), rgba(140, 82, 255, 0.16));
  border-color: var(--ox-300); box-shadow: 0 24px 50px -22px rgba(123, 126, 242, 0.75);
}
.ms-step[aria-selected="true"] .ms-step__n { color: #fff; }
.ms-step[aria-selected="true"] .ms-step__metal { color: var(--ox-100); }
.ms-step[aria-selected="true"] .ms-step__resp { color: var(--cyan); }
.ms-ladder__base { display: flex; justify-content: space-between; gap: 12px; margin-top: 0; padding-top: 12px; border-top: 1px solid var(--line-3); font: 500 10px/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
@media (max-width: 599px) {
  .ms-ladder__list { min-height: 300px; gap: 6px; }
  .ms-step__bar { align-items: center; padding: 8px 0; gap: 8px; }
  .ms-step__name {
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-size: 0.8125rem; white-space: nowrap; overflow-wrap: normal;
  }
  .ms-step__metal { display: none; }
  .ms-step__resp { font-size: 0.6875rem; text-align: center; }
}
.ms-panels { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-3); background: radial-gradient(110% 60% at 100% 0%, rgba(123, 126, 242, 0.12), transparent 60%), var(--ink-2); padding: clamp(22px, 2.6vw, 36px); }
.ms-panel__head { display: flex; justify-content: space-between; gap: 12px; font: 500 var(--fs-mono)/1.2 var(--font-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--accent-text); }
.ms-panel__metal { color: var(--fg-3); }
.ms-panel__title { margin-top: 10px; font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; color: var(--fg); }
.ms-panel__text { margin-top: 10px; color: var(--fg-2); max-width: 46em; }
.ms-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 22px 0 18px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.ms-facts > div { padding: 14px 12px 14px 0; min-width: 0; }
.ms-facts > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.ms-facts dt { font: 500 10px/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.ms-facts dd { margin: 6px 0 0; color: var(--fg); font-size: 0.9375rem; line-height: 1.3; }
.ms-capl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
.ms-capl li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.8125rem; line-height: 1.35; }
.ms-capl__t { color: var(--fg-2); }
.ms-capl__s { flex: none; font: 500 9px/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.ms-capl .is-std .ms-capl__t { color: var(--fg); }
.ms-capl .is-std .ms-capl__s { color: var(--cyan); }
.ms-capl .is-opt .ms-capl__t, .ms-capl .is-opt .ms-capl__s { color: var(--fg-3); }
@media (max-width: 599px) {
  .ms-capl { grid-template-columns: minmax(0, 1fr); }
  .ms-facts { grid-template-columns: minmax(0, 1fr); }
  .ms-facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
.ms-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-7); }
.ms-notes p { padding-top: var(--s-4); border-top: 1px solid var(--line-2); color: var(--fg-2); font-size: 0.95rem; }
.ms-notes b { display: block; margin-bottom: 4px; }
@media (max-width: 899px) { .ms-notes { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================================
   QA review fixes
   ===================================================================================== */
/* solution pager: direction at the top, title on the bottom edge, so the 140px box reads as designed */
.sol-pager .pager__link { justify-content: space-between; min-height: 128px; }
.sol-pager .pager__title { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); }
@media (max-width: 699px) { .sol-pager .pager__link { min-height: 104px; padding: 20px 22px; } }

/* framed figures: the drawing code is decorative; give the title room on phones */
@media (max-width: 479px) { .sol-viz__code { display: none; } .sol-viz__bar { grid-template-columns: auto minmax(0, 1fr); } }

/* segmented control inside a figure foot never wraps; the note beside it does */
.sol-viz__foot .sol-seg { flex: none; flex-wrap: nowrap; }
.db-note { min-width: 0; text-wrap: balance; }
@media (max-width: 419px) { .db-note { font-size: 9.5px; letter-spacing: 0.08em; gap: 8px; } .db-toggle button { padding: 0 12px; } }

/* if ox.js never initialises, the tier bars must still stand up */
html.ox-failsafe:not(.ox-ready) .ms-step__bar { transform: none; }

/* hub cards: icon, title, summary, list and foot share rows across each row of cards */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 640px) {
    .sx-grid > li { display: grid; grid-template-rows: subgrid; grid-row: span 5; }
    .sx-grid > li > .sx-card { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; row-gap: 12px; min-height: 0; }
    .sx-card > * { min-width: 0; }
    .sx-card__t, .sx-card__d { align-self: start; }
    .sx-card__k { align-self: start; margin-top: 6px; }
    .sx-card__foot { align-self: end; }
  }
}

/* without JavaScript the canvas drawings can't run: name the drawing in its frame and drop the dead controls */
html.no-js [data-nojs]::after {
  content: attr(data-nojs); position: absolute; inset: 0; display: grid; place-items: center; padding: 10% 14%;
  text-align: center; font: 500 11px/1.7 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3);
}
html.no-js .db .sol-viz__foot { display: none; }

/* a narrow panel can't fit six stage names on one row ("Acquisition" collides): two rows of three */
@container (max-width: 429px) { .sol-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; } }
