/* KVALV Media Grid — stage 2 / presentation only.
   State contract for app.js: toggle hidden, aria-selected, aria-pressed,
   data-mode, data-state, .is-active, .is-paused and body.menu-open.
   SVG placement transforms belong to the outer .module / .vectorscope groups;
   animations only transform their children, preserving authored coordinates.
   No fonts, images, imports or other resources are loaded by this stylesheet. */

/* 01. Tokens and document foundation */
:root {
  color-scheme: dark;
  --bg: #07080C;
  --surface: #0D1017;
  --surface-raised: #131822;
  --surface-hover: #1A202E;
  --text: #EFF3FA;
  --muted: #A7B2C5;
  --subtle: #8C9AB1;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --highlight: rgba(255, 255, 255, .14);
  --cobalt: #3B82F6;
  --amber: #42A9BD;
  --emerald: #8582C9;
  --crimson: #B58C56;
  --accent: var(--cobalt);
  --accent-rgb: 59, 130, 246;
  --accent-text: #9CC3FF;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'Fira Code', Consolas, monospace;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --content: 1280px;
  --gutter: clamp(16px, 3.5vw, 48px);
  --section-space: clamp(64px, 8vw, 112px);
  --header-height: 80px;
  --shadow: 0 24px 64px rgba(0, 0, 0, .34), 0 4px 16px rgba(0, 0, 0, .2);
  --inset: inset 0 1px 0 var(--highlight);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --fast: 180ms;
  --slow: 360ms;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  min-width: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
body.menu-open, body.modal-open { overflow: hidden; }
@supports selector(body:has(dialog[open])) {
  body:has(dialog[open]) { overflow: hidden; }
}
main, section, article, aside, nav, header, footer, form, fieldset { min-width: 0; }
h1, h2, h3, h4, p, ul, ol, dl, figure, pre { margin: 0; }
h1, h2, h3, h4 { color: var(--text); font-weight: 620; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(42px, 4.75vw, 70px); letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.035em; }
h3 { font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -.025em; }
h4 { font-size: 18px; letter-spacing: -.02em; }
p { color: var(--muted); }
ul, ol { padding: 0; }
dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, input, select, textarea, output { min-width: 0; max-width: 100%; }
button { margin: 0; overflow-wrap: anywhere; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: rgba(59, 130, 246, .16); }
button:disabled, input:disabled, select:disabled, textarea:disabled {
  cursor: not-allowed;
  opacity: .55;
}
button:disabled { transform: none; }
button[aria-busy='true'] { cursor: progress; }
svg, img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
svg text { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
::selection { color: #FFFFFF; background: #245BA5; }
:focus-visible { outline: 2px solid #A4C9FF; outline-offset: 4px; }
:target { scroll-margin-top: calc(var(--header-height) + 24px); }
[hidden] { display: none !important; }
dialog:not([open]) { display: none; }
.mono, code, pre, output, .range-extents {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.muted { color: var(--muted); }
.fine-print { font-size: 12px; line-height: 1.7; color: var(--subtle); }
.break-anywhere { overflow-wrap: anywhere; word-break: break-word; }
.container { width: calc(100% - var(--gutter) - var(--gutter)); max-width: var(--content); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-space); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 40px; }
.section-heading > p { max-width: 46ch; justify-self: end; font-size: 15px; }
.eyebrow { margin-bottom: 18px; color: var(--subtle); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; line-height: 1.6; text-transform: uppercase; }
.section-kicker { display: flex; justify-content: space-between; align-items: baseline; gap: 16px 32px; flex-wrap: wrap; }
.section-kicker .eyebrow { margin: 0; }
.section-kicker > .mono { color: var(--subtle); font-size: 11px; letter-spacing: .06em; }
.glass-panel {
  background: linear-gradient(140deg, rgba(26, 32, 46, .85), rgba(13, 16, 23, .97) 60%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--inset), var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 12px 18px; border-radius: 6px; background: #E7EEFA; color: #07080C; font-weight: 650; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.desktop-only { display: inline-flex; }
.mobile-only { display: none; }

/* 02. Four module identities: accents stay tied to their assigned functions. */
.tone-vault, .module-vault, .badge-vault { --accent: var(--cobalt); --accent-rgb: 59, 130, 246; --accent-text: #9CC3FF; }
.tone-relay, .module-relay, .badge-relay { --accent: var(--amber); --accent-rgb: 66, 169, 189; --accent-text: #96D9E4; }
.tone-compute, .module-compute, .badge-compute { --accent: var(--emerald); --accent-rgb: 133, 130, 201; --accent-text: #BBB8F3; }
.tone-shield, .module-shield, .badge-shield { --accent: var(--crimson); --accent-rgb: 181, 140, 86; --accent-text: #E6C393; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; }
.button, .icon-button, .tab, .mode-button {
  border: 1px solid transparent;
  transition: color var(--fast) ease, background-color var(--fast) ease, border-color var(--fast) ease, box-shadow var(--slow) var(--ease), transform var(--fast) var(--ease);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}
.button-primary { background: #2563CF; border-color: #4C88EC; color: #FFFFFF; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 4px 18px rgba(59, 130, 246, .16); }
.button-secondary { color: #E5EDFC; background: var(--surface-raised); border-color: var(--line-strong); box-shadow: var(--inset); }
.button-quiet { color: var(--muted); background: transparent; }
.button-full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 10px; border-radius: 6px; background: transparent; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; justify-content: flex-start; gap: 9px; min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: var(--accent-text); font-size: 13px; font-weight: 550; line-height: 1.5; text-align: start; transition: color var(--fast), text-decoration-color var(--fast); }
.text-link .icon { width: 16px; height: 16px; flex-basis: 16px; }
.status-dot { position: relative; display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 9px rgba(133, 130, 201, .42); vertical-align: middle; }
.status-dot::after { content: ''; position: absolute; inset: -3px; border: 1px solid rgba(133, 130, 201, .5); border-radius: inherit; animation: node-beacon 3s ease-out infinite; }
.status-label { display: inline-flex; align-items: center; gap: 8px; color: #BBB8F3; font-size: 11px; letter-spacing: .06em; }
.module-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), .28); }
.badge { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; padding: 4px 7px; border: 1px solid rgba(var(--accent-rgb), .25); border-radius: 4px; background: rgba(var(--accent-rgb), .09); color: var(--accent-text); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .07em; line-height: 1.5; }

/* 03. Telemetry, sticky header and mobile navigation state */
.telemetry-bar { border-bottom: 1px solid var(--line); background: #090C11; }
.telemetry-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 34px; padding-block: 8px; color: var(--subtle); font-size: 11px; line-height: 1.5; letter-spacing: .025em; }
.telemetry-inner > span { min-width: 0; }
.telemetry-inner .status-dot { width: 5px; height: 5px; margin-right: 6px; }
.telemetry-caption { color: #8B9DBB; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(7, 8, 12, .93); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-height); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; min-height: 44px; color: var(--text); font-size: 22px; font-weight: 720; line-height: 1.05; letter-spacing: -.04em; }
.brand > svg { width: 38px; height: 38px; }
.brand-sub { display: block; margin-top: 5px; color: var(--subtle); font-family: var(--font-mono); font-size: 11px; font-weight: 500; line-height: 1.2; letter-spacing: .18em; }
.desktop-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px 24px; }
.desktop-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; transition: color var(--fast); }
.header-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.header-actions .button { padding-inline: 12px; font-size: 12px; }
select.language-select { width: 64px; min-height: 44px; padding: 8px; border-color: transparent; background: transparent; font-family: var(--font-mono); font-size: 12px; }
#menu-toggle[aria-expanded='true'] { border-color: var(--line-strong); background: var(--surface-hover); color: #FFFFFF; }

/* All-width navigation drawer. Kept outside the sticky header in index.html. */
.drawer-toggle { display: inline-grid; border-color: var(--line); background: var(--surface); }
.navigation-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: contain;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(2, 4, 8, .78);
  opacity: 0;
  cursor: pointer;
  transition: opacity 320ms var(--ease);
}
.drawer-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: min(440px, 100%);
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border-left: 1px solid #34435D;
  background: linear-gradient(160deg, #171F2D, #0D1017 45%);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .05), -24px 0 80px rgba(0, 0, 0, .5);
  transform: translateX(100%);
  transition: transform 320ms var(--ease);
}
.navigation-drawer.is-open .drawer-backdrop { opacity: 1; }
.navigation-drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.drawer-heading > div { min-width: 0; }
.drawer-heading .eyebrow { margin-bottom: 8px; font-size: 11px; }
.drawer-heading h2 { font-size: 26px; line-height: 1.3; letter-spacing: -.04em; }
.drawer-heading .icon-button { border-color: var(--line-strong); background: #0D1420; }
.drawer-nav { display: grid; gap: 5px; }
.drawer-nav > a { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 46px; padding: 10px 12px; border: 1px solid transparent; border-radius: 6px; color: #D2DFF3; font-size: 13px; line-height: 1.6; transition: background-color var(--fast), border-color var(--fast); }
.drawer-nav > a > .mono { color: #849AB9; font-size: 11px; }
.drawer-nav > a:focus-visible { outline-offset: -2px; background: #18263B; }
.drawer-tools { display: grid; gap: 12px; padding-block: 22px; border-block: 1px solid var(--line); }
.drawer-tools .field { margin-bottom: 4px; }
.drawer-tools select { font-family: var(--font-mono); }
.drawer-telemetry { margin-top: auto; padding: 18px; border: 1px solid var(--line-strong); border-radius: 8px; background: #090F18; }
.drawer-status-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.drawer-status-heading h3 { font-size: 15px; letter-spacing: -.02em; }
.drawer-telemetry dl { display: grid; gap: 10px; }
.drawer-telemetry dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: 11px; }
.drawer-telemetry dt { color: var(--subtle); }
.drawer-telemetry dd { color: #CEDDF4; }
.drawer-telemetry > .fine-print { margin-top: 16px; font-size: 11px; }
.navigation-drawer .toast { position: sticky; left: auto; bottom: 8px; width: 100%; max-width: 100%; margin: 0; transform: none; flex-shrink: 0; }
.navigation-drawer .clipboard-fallback { position: static; width: 100%; max-height: none; margin: 0; flex-shrink: 0; }
@media (hover: hover) and (pointer: fine) {
  .drawer-nav > a:hover { border-color: #30486B; background: #162338; color: #FFFFFF; }
}
@media (max-width: 390px) {
  .drawer-panel { gap: 20px; padding-inline: 16px; scrollbar-gutter: auto; }
  .drawer-heading { gap: 12px; }
  .drawer-heading h2 { font-size: 22px; }
  .drawer-nav > a { min-height: 44px; padding-inline: 8px; }
  .drawer-telemetry { padding: 14px; }
}

/* 04. Hero blade rack and four-mode optical fabric */
.hero { padding-top: clamp(56px, 6vw, 96px); padding-bottom: clamp(56px, 6vw, 88px); background: radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, .065), transparent 62%); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-copy { min-width: 0; }
.hero-copy > .eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 11px; letter-spacing: .07em; }
.hero h1 { margin-bottom: 26px; }
.text-gradient { color: #A6C9FE; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .text-gradient { background: linear-gradient(105deg, #E8F0FF 5%, #9DC5FF 55%, #548BE6); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.hero-lead { max-width: 34ch; margin-bottom: 16px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; color: #D0D9E8; }
.hero-copy > .muted { max-width: 54ch; font-size: 14px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-metrics > div { min-width: 0; }
.hero-metrics dt { margin-bottom: 6px; color: var(--subtle); font-size: 11px; line-height: 1.5; letter-spacing: .045em; }
.hero-metrics dd { font-size: clamp(22px, 2.3vw, 30px); letter-spacing: -.05em; line-height: 1.35; }
.hero-metrics dd span { color: var(--subtle); font-size: 12px; letter-spacing: 0; }
.hero-copy > .fine-print { margin-top: 16px; max-width: 58ch; font-size: 11px; }
.cluster-panel { min-width: 0; overflow: hidden; border-radius: 16px; }
.cluster-panel[data-mode='vault'] { --accent: var(--cobalt); --accent-rgb: 59, 130, 246; }
.cluster-panel[data-mode='relay'] { --accent: var(--amber); --accent-rgb: 66, 169, 189; }
.cluster-panel[data-mode='compute'] { --accent: var(--emerald); --accent-rgb: 133, 130, 201; }
.cluster-panel[data-mode='shield'] { --accent: var(--crimson); --accent-rgb: 181, 140, 86; }
.panel-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); color: var(--subtle); font-size: 11px; letter-spacing: .035em; }
.panel-heading h3 { font-size: 18px; letter-spacing: -.02em; }
.cluster-scene { display: block; width: 100%; height: auto; aspect-ratio: 640 / 450; isolation: isolate; }
.cluster-scene text { font-family: var(--font-mono); }
.fabric-frame { fill: none; stroke: #3B485C; stroke-width: 1; }
.fabric-coordinates { fill: #78889E; font-size: 11px; letter-spacing: .04em; }
.fabric-caption { fill: #D6E1EF; font-size: 12px; letter-spacing: .08em; }
.fabric-subcaption { fill: #8D9EB4; font-size: 11px; letter-spacing: .06em; }
.fabric-footer { fill: #9BAAC0; font-size: 11px; letter-spacing: .04em; }
.cluster-scene .module { opacity: .72; transition: opacity 350ms ease; }
.rack-top { fill: #202A38; stroke: #354358; stroke-width: .75; }
.rack-side { fill: #0C111A; stroke: #29364A; stroke-width: .75; }
.rack-face { fill: #131A25; stroke: #3A485C; stroke-width: 1; }
.module-outline { fill: none; stroke-width: 1; stroke-opacity: .35; transition: stroke-opacity 350ms ease, filter 350ms ease; }
.cluster-scene .module.is-active { opacity: 1; }
.module.is-active .module-outline { stroke-opacity: 1; filter: drop-shadow(0 0 3px rgba(var(--accent-rgb), .45)); }
.rack-rail { fill: none; stroke: #4C5D75; stroke-width: 1; }
.rack-title { fill: #E0E8F3; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.rack-spec { fill: #AFBED1; font-size: 11px; }
.rack-meta { fill: #8192AA; font-size: 11px; letter-spacing: .07em; }
.blade-slot { fill: #0A1019; stroke: #43516A; stroke-width: .8; }
.blade-vent { fill: none; stroke: #29374A; stroke-width: 1; }
.slot-id { fill: #A5B6CC; font-size: 6px; }
.rack-port { stroke: #0A0D13; stroke-width: 2; }
.scope-baseline { fill: none; stroke: #354258; stroke-width: .5; }
.throughput-trace { fill: none; stroke-width: 1.2; stroke-linejoin: bevel; }
.module.is-active .throughput-trace { animation: fabric-signal 4s ease-in-out infinite; }
.node-led { opacity: .8; }
.module.is-active .node-led { animation: fabric-led 2.8s ease-in-out infinite; }
.optical-spine { fill: none; stroke: #44546C; stroke-width: 1; }
.optical-switch > rect { fill: #121C29; stroke: #71839C; stroke-width: 1; }
.optical-switch > path { fill: none; stroke: #8A9CB5; stroke-width: .8; }
.optical-switch .fabric-led { fill: var(--accent); stroke: none; transition: fill 350ms ease; }
.fabric-taps { fill: #8193AC; stroke: #8193AC; stroke-width: 1; }
.fabric-link-leds { fill: var(--accent); opacity: .75; transition: fill 350ms ease; }
.data-buses { stroke-width: 1.25; }
.bus { opacity: .3; transition: opacity 350ms ease, filter 350ms ease; }
.cluster-panel[data-mode='vault'] .bus-vault,
.cluster-panel[data-mode='relay'] .bus-relay,
.cluster-panel[data-mode='compute'] .bus-compute,
.cluster-panel[data-mode='shield'] .bus-shield { opacity: 1; stroke-width: 1.75; filter: drop-shadow(0 0 3px rgba(var(--accent-rgb), .5)); }
.cluster-scene .bus-pulse { opacity: 0; stroke-width: 2.5; stroke-linecap: butt; animation: fabric-traffic 3s linear infinite; animation-play-state: paused; transition: opacity 200ms ease; }
.cluster-panel[data-mode='vault'] .pulse-vault,
.cluster-panel[data-mode='relay'] .pulse-relay,
.cluster-panel[data-mode='compute'] .pulse-compute,
.cluster-panel[data-mode='shield'] .pulse-shield { opacity: 1; animation-play-state: running; }
.cluster-scene .pulse-relay { animation-direction: reverse; }
.cluster-scene .pulse-shield { animation-direction: reverse; }
@keyframes fabric-traffic { to { stroke-dashoffset: -100; } }
@keyframes fabric-led { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes fabric-signal { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
.cluster-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 0 18px 18px; }
.mode-button { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 10px 12px; border-color: var(--line); border-radius: 6px; color: var(--muted); background: rgba(7, 8, 12, .55); text-align: start; font-size: 11px; line-height: 1.55; }
.mode-button.is-active, .mode-button[aria-pressed='true'] { border-color: rgba(var(--accent-rgb), .5); color: var(--accent-text); background: rgba(var(--accent-rgb), .09); box-shadow: inset 0 1px 0 rgba(var(--accent-rgb), .12), 0 0 18px rgba(var(--accent-rgb), .045); }
.cluster-telemetry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); background: rgba(7, 8, 12, .5); }
.cluster-telemetry > div { min-width: 0; padding: 16px 18px; }
.cluster-telemetry > div + div { border-left: 1px solid var(--line); }
.cluster-telemetry dt { color: var(--subtle); font-size: 11px; letter-spacing: .09em; }
.cluster-telemetry dd { margin-top: 5px; color: #E4EDFA; font-size: 14px; }

/* 05. Protocol and format matrix */
.protocol-section { padding-block: 28px; border-block: 1px solid var(--line); background: rgba(13, 16, 23, .55); }
.protocol-section .section-kicker { margin-bottom: 22px; }
.protocol-row { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 20px; align-items: start; padding-block: 12px; }
.protocol-row + .protocol-row { border-top: 1px solid var(--line); }
.matrix-label { padding-top: 6px; color: var(--subtle); font-family: var(--font-mono); font-size: 11px; letter-spacing: .13em; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip-list li { padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: #C2CDDD; font-family: var(--font-mono); font-size: 11px; }
.chip-note { color: var(--subtle); }
.protocol-section .fine-print { margin-top: 10px; font-size: 11px; }

/* 06. Hardware service cards */
.module-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.module-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, rgba(var(--accent-rgb), .045), transparent 55%), var(--surface); box-shadow: var(--inset), 0 12px 28px rgba(0, 0, 0, .14); transition: border-color var(--slow), box-shadow var(--slow), transform var(--slow) var(--ease); }
.card-topline { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11px; }
.card-topline > .mono { color: var(--subtle); }
.module-label { color: var(--accent-text); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; }
.module-diagram { width: 100%; height: auto; margin-block: 24px; }
.module-card h3 { margin-bottom: 16px; font-size: 21px; line-height: 1.3; }
.module-card > p { margin-bottom: 20px; font-size: 13px; line-height: 1.8; }
.feature-list { display: grid; gap: 12px; list-style: none; }
.feature-list li { position: relative; padding-left: 17px; color: #B7C3D5; font-size: 12px; line-height: 1.65; }
.feature-list li::before { content: ''; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border: 1px solid var(--accent); border-radius: 1px; }
.module-card .feature-list { margin-bottom: 24px; }
.module-card > .text-link { margin-top: auto; }
.integrity-pulse { transform-origin: 160px 70px; animation: integrity-orbit 28s linear infinite; }

/* 07. Media workspace, toolbar, grid and native table */
.workspace-section { border-block: 1px solid var(--line); background: linear-gradient(180deg, #0A0D13, var(--bg)); }
.workspace-shell { overflow: hidden; border-radius: 14px; }
.workspace-titlebar, .terminal-header { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; min-height: 49px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: rgba(7, 8, 12, .5); }
.workspace-titlebar > .mono, .terminal-header > .mono { color: var(--subtle); font-size: 11px; letter-spacing: .055em; }
.workspace-titlebar .status-label { margin-left: auto; }
.window-dots { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.window-dots i { width: 6px; height: 6px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; background: #344056; }
.window-dots i:first-child { background: #89515A; }
.window-dots i:nth-child(2) { background: #8A7343; }
.window-dots i:nth-child(3) { background: #3B786A; }
.workspace-toolbar { display: grid; grid-template-columns: minmax(140px, 1.3fr) minmax(170px, 1.1fr) minmax(105px, .7fr) minmax(125px, .8fr) auto; gap: 14px; align-items: end; padding: 22px 22px 14px; }
.search-control { position: relative; min-width: 0; }
.search-control > .icon { position: absolute; left: 13px; top: 14px; width: 16px; height: 16px; color: var(--subtle); pointer-events: none; }
.search-control input { padding-left: 39px; font-size: 12px; }
.compact-field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; }
.compact-field select { font-size: 11px; padding-inline: 10px; }
.view-switch { display: flex; align-items: center; gap: 3px; border-radius: 6px; background: #090C12; border: 1px solid var(--line); padding: 2px; }
.view-switch .icon-button { width: 38px; height: 38px; min-height: 38px; flex-basis: 38px; }
.view-switch .is-active, .view-switch [aria-pressed='true'] { color: #D8E8FF; background: #1C2A40; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.workspace-summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 0 22px 18px; font-size: 11px; }
.workspace-summary p { color: var(--subtle); }
#asset-summary { color: #C5D3E8; }
#asset-count { color: #FFFFFF; }
.asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 0 22px 22px; }
.asset-card { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #0C1018; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); transition: border-color var(--fast), box-shadow var(--slow), transform var(--slow) var(--ease); }
.asset-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; color: inherit; text-align: start; }
.asset-open:focus-visible { outline-offset: 3px; }
.asset-preview { position: relative; display: block; width: 100%; aspect-ratio: 400 / 220; overflow: hidden; border-radius: 7px 7px 0 0; border-bottom: 1px solid var(--line); background: #0A111B; }
.asset-preview > svg { width: 100%; height: auto; transition: transform 650ms var(--ease); }
.preview-time { position: absolute; bottom: 10px; left: 10px; padding: 3px 6px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 3px; background: rgba(7, 8, 12, .86); color: #D5E1F1; font-size: 11px; letter-spacing: .04em; }
.preview-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(7, 8, 12, .66); color: #FFFFFF; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity var(--fast), transform var(--slow) var(--ease); }
.asset-open:focus-visible .preview-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.asset-card-body { display: flex; flex-direction: column; flex: 1; gap: 10px; width: 100%; padding: 15px; }
.asset-card-tags { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; }
.asset-card-tags > span:last-child { font-size: 11px; color: var(--subtle); }
.asset-name { display: block; color: #DCE6F6; font-size: 11px; font-weight: 550; line-height: 1.65; overflow-wrap: anywhere; }
.asset-codec { font-size: 11px; line-height: 1.5; color: var(--muted); }
.asset-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; font-size: 11px; color: var(--subtle); }
.asset-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.asset-size { color: #D7E3F7; }
.table-scroll { width: 100%; min-width: 0; padding: 0 22px 22px; }
.table-scroll:focus-visible { outline-offset: -4px; }
.table-scroll table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: start; }
.table-scroll th, .table-scroll td { padding: 14px 9px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.table-scroll thead th { background: rgba(7, 8, 12, .6); color: var(--subtle); font-size: 11px; font-weight: 500; line-height: 1.6; }
.table-scroll thead th:first-child { width: 24%; }
.table-scroll thead th:nth-child(3) { width: 16%; }
.table-scroll thead th:nth-child(4), .table-scroll thead th:nth-child(5) { width: 12%; }
.table-scroll tbody th { font-weight: 500; }
.table-scroll tbody td { font-size: 11px; color: var(--muted); line-height: 1.6; }
.table-scroll .text-link { width: 100%; font-size: 11px; }
.table-scroll tbody tr { transition: background-color var(--fast); }
.empty-state { display: grid; justify-items: center; gap: 16px; padding: 64px 24px; text-align: center; }
.empty-state p { max-width: 45ch; font-size: 14px; }
.empty-state h3 { font-size: 23px; }
.empty-icon { width: 36px; height: 36px; margin-bottom: 8px; color: var(--subtle); }
.workspace-footnote { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 14px 22px; border-top: 1px solid var(--line); background: rgba(7, 8, 12, .45); font-size: 11px; color: var(--subtle); }

/* 08. Forms, native range inputs, progress and accessible tabs */
.field { display: grid; gap: 8px; min-width: 0; }
label { color: #C8D2E2; font-size: 12px; line-height: 1.6; }
input:not([type='range']), select, textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: #090D14;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .15);
  color: #E2EAF8;
  font-size: 13px;
  line-height: 1.6;
  transition: border-color var(--fast), box-shadow var(--fast), background-color var(--fast);
}
select { padding-right: 24px; cursor: pointer; }
option { background: #131822; color: #EFF3FA; }
textarea { min-height: 136px; resize: vertical; white-space: pre-wrap; overflow-wrap: anywhere; }
input::placeholder, textarea::placeholder { color: #8F9DB3; opacity: 1; }
input[readonly], textarea[readonly] { color: #ACC5E9; background: #0A101A; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: #6AA1F5;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .13);
}
input[aria-invalid='true'], textarea[aria-invalid='true'], select[aria-invalid='true'] { border-color: #F0757A; }
input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: #F0757A; }
input[type='search']::-webkit-search-cancel-button { cursor: pointer; }
input[type='range'] {
  display: block;
  width: 100%;
  height: 44px;
  margin: 4px 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-radius: 4px;
  accent-color: var(--accent);
  cursor: pointer;
}
/* Separate vendor rules: an unsupported pseudo-element must not drop its peer. */
input[type='range']::-webkit-slider-runnable-track { height: 5px; border: 1px solid #35435C; border-radius: 999px; background: #1A263A; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3); }
input[type='range']::-moz-range-track { height: 5px; border: 1px solid #35435C; border-radius: 999px; background: #1A263A; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3); }
input[type='range']::-webkit-slider-thumb { width: 19px; height: 19px; margin-top: -8px; border: 3px solid #C8DFFF; border-radius: 50%; appearance: none; -webkit-appearance: none; background: #3479E8; box-shadow: 0 0 0 5px rgba(59, 130, 246, .1), 0 2px 8px rgba(0, 0, 0, .45); }
input[type='range']::-moz-range-thumb { width: 19px; height: 19px; border: 3px solid #C8DFFF; border-radius: 50%; background: #3479E8; box-shadow: 0 0 0 5px rgba(59, 130, 246, .1), 0 2px 8px rgba(0, 0, 0, .45); }
input[type='range']::-moz-range-progress { height: 5px; border-radius: 999px; background: #3B82F6; }
input[type='range']:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 7px rgba(59, 130, 246, .24); }
input[type='range']:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 7px rgba(59, 130, 246, .24); }
progress { display: block; width: 100%; height: 6px; overflow: hidden; border: 0; border-radius: 999px; appearance: none; -webkit-appearance: none; background: #1A263A; color: var(--accent); accent-color: var(--accent); }
progress::-webkit-progress-bar { border-radius: 999px; background: #1A263A; }
progress::-webkit-progress-value { border-radius: 999px; background: var(--accent); transition: width 220ms ease; }
progress::-moz-progress-bar { border-radius: 999px; background: var(--accent); }
.tabs { display: flex; align-items: stretch; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); background: rgba(7, 8, 12, .38); }
.tab { position: relative; flex: 1 1 160px; min-width: 0; min-height: 46px; padding: 12px 18px; border-radius: 6px; background: transparent; color: var(--subtle); font-size: 12px; font-weight: 550; line-height: 1.5; text-align: center; }
.tab.is-active, .tab[aria-selected='true'] { color: #DBE9FF; border-color: rgba(59, 130, 246, .28); background: rgba(59, 130, 246, .09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.tab:focus-visible { outline-offset: -3px; }
[role='tabpanel']:focus-visible { outline-offset: -4px; }

/* 09. Infrastructure configurator */
.planner-shell { overflow: hidden; }
.planner-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.planner-inputs { display: grid; align-content: start; gap: 18px; min-width: 0; padding: 28px; }
.range-field { min-width: 0; }
.label-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.label-row label { flex: 1 1 160px; }
.label-row output { color: #D8E8FF; font-size: 14px; }

.planner-results { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 28px; border-left: 1px solid var(--line); background: radial-gradient(ellipse at 100% 0, rgba(59, 130, 246, .07), transparent 65%), rgba(7, 8, 12, .26); }

.planner-results > .button { align-self: start; margin-top: auto; }

.planner-disclaimer { padding: 18px 36px; border-top: 1px solid var(--line); background: rgba(7, 8, 12, .3); font-size: 11px; }

/* The two columns share a single quote and collapse in reading order. */
.planner-inputs fieldset { margin: 0; padding: 0; border: 0; }
.planner-inputs legend, .planner-inputs .field > label, .planner-inputs .label-row > label {
  color: var(--text); font-size: .875rem; font-weight: 600;
}
.planner-inputs legend { margin-bottom: 9px; }
.grid-presets, .grid-terms { display: flex; flex-wrap: wrap; gap: 6px; }
.grid-presets button, .grid-terms label {
  flex: 1 1 80px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  min-height: 42px; padding: 7px 9px; background: #101a29; color: var(--muted);
  font: inherit; font-size: .78rem; line-height: 1.4; cursor: pointer;
}
.grid-presets button:hover, .grid-terms label:hover, .policy-choice:hover { border-color: #7898c4; }
.grid-presets button[aria-pressed="true"], .grid-terms label:has(:checked), .policy-choice:has(:checked) {
  border-color: #70b6f6; color: #edf6ff; background: #152c45;
}
.grid-terms label, .policy-choice { display: flex; gap: 8px; align-items: center; }
.planner-inputs input[type="radio"] {
  width: 15px; height: 15px; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: #80c3ff;
}
.capacity-entry { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .8rem; }
.capacity-entry input { width: 6em; text-align: end; font-variant-numeric: tabular-nums; }
.grid-policies { display: grid; gap: 5px; }
.policy-choice { border: 1px solid var(--line); border-radius: 5px; padding: 8px 10px; cursor: pointer; }
.policy-choice small { display: block; color: var(--muted); font-size: .74rem; }
.planner-results h3 { margin: 0 0 12px; color: var(--text); font-size: 1rem; }
.grid-quote > output { display: block; font-size: clamp(2.5rem,4vw,4rem); line-height: 1.1; font-weight: 650; letter-spacing: -.035em; }
.grid-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 0; }
.grid-kpis dt, .grid-ledger dt { color: var(--muted); font-size: .81rem; }
.grid-kpis dd { margin-top: 4px; font-size: 1.2rem; }
.grid-ledger { margin: 0; }
.grid-ledger > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.grid-ledger dd { flex: none; font-size: .9rem; }
.planner-results dd, .grid-quote > output { font-variant-numeric: tabular-nums; }
.grid-bar { display: block; width: 100%; height: 9px; margin: 12px 0; border-radius: 3px; overflow: hidden; }
.cost-storage { fill: #7cacf8; }
.cost-backup { fill: #c5a6f4; }
.cost-network { fill: #52c6ce; }
.cost-compute { fill: #e3b77d; }
.cost-ledger dt::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 2px; background: #7cacf8; }
.cost-ledger > :nth-child(2) dt::before { background: #c5a6f4; }
.cost-ledger > :nth-child(3) dt::before { background: #52c6ce; }
.cost-ledger > :nth-child(4) dt::before { background: #e3b77d; }
.grid-used { fill: #34445c; }
#bar-reserve { fill: #52c6ce; }
.planner-results .fine-print, .planner-inputs .fine-print { margin: 0; line-height: 1.5; }

/* 10. Pipeline and local connection terminal */
.connect-section { border-block: 1px solid var(--line); background: radial-gradient(ellipse at 10% 50%, rgba(133, 130, 201, .025), transparent 60%); }
.connect-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.pipeline-steps { display: grid; gap: 0; margin-top: 36px; list-style: none; }
.pipeline-steps li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; padding-bottom: 30px; }
.pipeline-steps li:not(:last-child)::after { content: ''; position: absolute; top: 45px; bottom: 6px; left: 19px; width: 1px; background: linear-gradient(var(--line-strong), var(--line)); }
.pipeline-steps li:last-child { padding-bottom: 0; }
.step-number { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-raised); color: #A6C9FF; font-size: 12px; box-shadow: var(--inset); }
.pipeline-steps h3 { margin: 4px 0 10px; font-size: 18px; line-height: 1.4; }
.pipeline-steps p { font-size: 13px; line-height: 1.85; }
.terminal { min-width: 0; overflow: hidden; border-radius: 12px; background: #0B1018; }
.terminal-header > .icon { width: 15px; height: 15px; margin-left: auto; color: #BBB8F3; }
.terminal-tabs { gap: 3px; padding: 6px; }
.terminal-tabs .tab { flex-basis: 110px; padding: 10px 8px; font-family: var(--font-mono); font-size: 11px; }
.terminal-panel { min-height: 280px; padding: 24px; }
.terminal-context { margin-bottom: 20px; color: var(--subtle); font-size: 11px; }
.terminal pre { width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; color: #A4D1B9; font-size: 12px; line-height: 2; }
.terminal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 24px; border-block: 1px solid var(--line); background: rgba(7, 8, 12, .4); }
.terminal-footer > .mono { color: var(--subtle); font-size: 11px; letter-spacing: .045em; }
.terminal-footer .button { font-size: 11px; }
.terminal > .fine-print { padding: 18px 24px; font-size: 11px; }

/* 11. Resource allocation tiers */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pricing-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(26, 32, 46, .45), transparent 65%), var(--surface); box-shadow: var(--inset); transition: border-color var(--slow), box-shadow var(--slow), transform var(--slow) var(--ease); }
.pricing-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 26px; }
.pricing-topline > .mono { color: var(--subtle); font-size: 11px; }
.pricing-card h3 { margin-bottom: 16px; font-size: 25px; line-height: 1.25; }
.pricing-card > p:not(.price) { min-height: 94px; font-size: 13px; line-height: 1.8; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; min-height: 92px; margin-block: 24px; padding-block: 20px; border-block: 1px solid var(--line); color: var(--subtle); font-size: 12px; }
.price strong { color: #EEF4FF; font-size: 32px; line-height: 1.25; font-weight: 580; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.pricing-card:last-child .price strong { font-size: 25px; letter-spacing: -.035em; }
.pricing-card .feature-list { margin-bottom: 30px; }
.pricing-card > .button { width: 100%; margin-top: auto; }
.pricing-featured { border-color: rgba(59, 130, 246, .44); background: radial-gradient(ellipse at 50% 0, rgba(59, 130, 246, .11), transparent 65%), var(--surface); box-shadow: inset 0 1px 0 rgba(122, 177, 255, .3), 0 0 40px rgba(59, 130, 246, .05); }
.pricing-grid + .fine-print { max-width: 100ch; margin: 24px auto 0; text-align: center; font-size: 11px; }

/* 12. FAQ, local inquiry form and ticket result */
.inquiry-section { border-top: 1px solid var(--line); background: linear-gradient(180deg, #0B0E15, #07080C); }
.inquiry-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-column > p:not(.eyebrow) { max-width: 46ch; margin-top: 22px; font-size: 14px; }
.faq-list { margin-top: 30px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; display: block; min-height: 66px; padding: 22px 32px 22px 0; color: #CFD9E9; font-size: 14px; font-weight: 550; line-height: 1.65; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after { content: ''; position: absolute; top: 32px; right: 4px; width: 10px; height: 1px; background: #95A9C7; transition: transform 200ms ease; }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0); }
.faq-list details[open] summary { color: #A6C9FF; }
.faq-list details > p { padding: 0 26px 24px 0; font-size: 13px; line-height: 1.9; }
.inquiry-panel { min-width: 0; overflow: hidden; border-radius: 14px; }
.inquiry-panel > p { padding: 22px 28px 0; font-size: 13px; }
.inquiry-panel .panel-heading { padding: 22px 28px; }
#inquiry-form { display: grid; gap: 20px; padding: 26px 28px 28px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#inquiry-boundary { font-size: 11px; }
.form-status { color: #8EE4C2; font-size: 12px; }
.form-status:empty, #auth-status:empty { display: none; }
.form-error { padding: 12px 14px; border: 1px solid rgba(181, 140, 86, .35); border-radius: 6px; background: rgba(181, 140, 86, .06); color: #FFB6B9; font-size: 12px; }
#inquiry-progress { display: grid; gap: 12px; }
#inquiry-progress label { font-size: 11px; color: #B7CEEE; }
.ticket-result { display: grid; gap: 20px; margin: 0 28px 28px; padding: 22px; border: 1px solid rgba(133, 130, 201, .32); border-radius: 10px; background: linear-gradient(130deg, rgba(133, 130, 201, .07), transparent), #0A1417; box-shadow: inset 0 1px 0 rgba(112, 223, 183, .12); }
.ticket-heading { display: flex; align-items: center; gap: 10px; color: #BBB8F3; }
.ticket-heading h4 { color: #BEF0DC; }
.ticket-metadata { display: grid; gap: 16px; }
.ticket-metadata dt { color: var(--subtle); font-size: 11px; }
.ticket-metadata dd { margin-top: 4px; color: #D0E9DF; font-size: 12px; }
.ticket-result > p { font-size: 12px; line-height: 1.85; }
#ticket-json { min-height: 180px; font-size: 11px; }
.ticket-result .button { font-size: 11px; }

/* 13. Footer */
.site-footer { padding: 40px 0 24px; border-top: 1px solid var(--line); background: #080B10; }
.footer-top { display: flex; align-items: center; flex-wrap: wrap; gap: 24px 40px; padding-bottom: 32px; }
.footer-top > p { flex: 1 1 230px; font-size: 13px; }
.footer-top > .text-link { margin-left: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-bottom > .mono { color: var(--subtle); font-size: 11px; letter-spacing: .035em; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
.footer-bottom nav > a, .footer-bottom .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 11px; font-weight: 400; color: var(--muted); }

/* 14. Native dialogs: closed dialogs remain hidden, only [open] is styled. */
.modal {
  position: fixed;
  inset: 0;
  width: calc(100% - 48px);
  max-width: 1080px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid #354158;
  border-radius: 16px;
  background: linear-gradient(145deg, #171E2B, #0D1017 50%);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 48px 120px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .5);
}
.modal[open] { display: block; animation: dialog-enter 240ms var(--ease) both; }
.modal::backdrop { background: rgba(2, 4, 8, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.modal-header > div { min-width: 0; }
.modal-header .eyebrow { margin-bottom: 7px; font-size: 11px; }
.modal-header h2 { font-size: 25px; line-height: 1.35; letter-spacing: -.035em; overflow-wrap: anywhere; }
.modal-header .icon-button { margin-top: -4px; border-color: var(--line); background: rgba(7, 8, 12, .55); }
.modal > p { margin-block: 20px; font-size: 13px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.inspector-modal { max-width: 1180px; }
.inspector-modal .modal-header h2 { font-size: clamp(16px, 2vw, 23px); letter-spacing: -.025em; }
.inspector-layout { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.inspector-player { min-width: 0; }
.preview-monitor { position: relative; overflow: hidden; border: 1px solid #2C3C54; border-radius: 7px; background: #080D16; box-shadow: inset 0 0 24px rgba(0, 0, 0, .4); }
.preview-monitor > svg { width: 100%; height: auto; aspect-ratio: 720 / 405; }
.monitor-overlay { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 9px 12px; border-top: 1px solid var(--line); background: #090E16; color: #A1B9DB; font-size: 11px; }
#monitor-state { color: #78DDB8; }
.is-paused #monitor-state { color: #96D9E4; }
.scope-wave { animation: waveform-drift 3.4s ease-in-out infinite alternate; }
.vectorscope { opacity: .9; }
.vector-trace { transform-box: fill-box; transform-origin: center; animation: vectorscope-drift 7s ease-in-out infinite alternate; }
.monitor-scanline { animation: monitor-scan 5s linear infinite; }
.preview-monitor.is-paused .scope-wave,
.preview-monitor.is-paused .vector-trace,
.preview-monitor.is-paused .monitor-scanline { animation-play-state: paused; }
.player-controls { display: grid; grid-template-columns: auto auto minmax(48px, 1fr) auto; gap: 12px; align-items: center; padding-block: 16px; }
.player-controls .button { min-height: 42px; padding: 8px 12px; font-size: 11px; }
#player-timecode { color: #D5E4FC; font-size: 12px; white-space: nowrap; }
#player-fps { color: var(--subtle); font-size: 11px; white-space: nowrap; }
.player-controls input[type='range'] { margin: 0; }
#player-toggle[aria-pressed='true'] { border-color: rgba(133, 130, 201, .45); color: #9CE5CA; background: rgba(133, 130, 201, .08); }
.inspector-metadata { min-width: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.inspector-metadata h3 { margin-bottom: 20px; font-size: 17px; }
.inspector-metadata dl { display: grid; gap: 13px; }
.inspector-metadata dt { margin-bottom: 4px; color: var(--subtle); font-size: 11px; }
.inspector-metadata dd { color: #CDD9EB; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.inspector-metadata > .fine-print { margin-block: 18px; font-size: 11px; }
.inspector-metadata > label { display: block; margin-bottom: 8px; font-size: 11px; }
#stream-uri { margin-bottom: 12px; font-size: 11px; }
.inspector-metadata > .button { font-size: 11px; }
.console-modal { max-width: 560px; }
.console-modal > .tabs { margin-top: 24px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; }
.console-modal .tab { flex-basis: 140px; padding-inline: 10px; font-size: 11px; }
.auth-panel { padding-block: 24px; }
.auth-panel .fine-print { font-size: 11px; }
.console-modal > .field { margin-bottom: 20px; }
.hardware-identity { display: grid; justify-items: center; gap: 16px; padding: 24px 18px; border: 1px dashed #34465F; border-radius: 10px; background: rgba(7, 8, 12, .35); text-align: center; }
.hardware-icon { width: 38px; height: 38px; color: #A5C6F5; }
.hardware-identity h3 { font-size: 19px; }
.hardware-identity p { font-size: 12px; line-height: 1.85; }
.auth-progress { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #0A0F17; }
.auth-progress .eyebrow { margin-bottom: 12px; font-size: 11px; }
.handshake-steps { display: grid; gap: 14px; margin-bottom: 20px; list-style: none; }
.handshake-steps li { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--subtle); font-family: var(--font-mono); font-size: 11px; line-height: 1.7; }
.step-state { display: grid; place-items: center; flex: 0 0 24px; min-height: 24px; border: 1px solid var(--line); border-radius: 4px; color: var(--subtle); }
.handshake-steps [data-state='active'] { color: #C9DDFF; }
.handshake-steps [data-state='active'] .step-state { border-color: #578ADB; background: rgba(59, 130, 246, .12); animation: handshake-beacon 1.2s ease-in-out infinite; }
.handshake-steps [data-state='complete'], .handshake-steps [data-state='done'] { color: #8CE3C2; }
.handshake-steps [data-state='complete'] .step-state, .handshake-steps [data-state='done'] .step-state { color: #8CE3C2; border-color: rgba(133, 130, 201, .4); }
.handshake-steps [data-state='error'] { color: #FFB0B5; }
.handshake-steps [data-state='error'] .step-state { color: #FFB0B5; border-color: rgba(181, 140, 86, .45); }
#auth-status { margin-top: 18px; color: #B7CBED; font-size: 12px; }
.system-response { margin-top: 20px; padding: 18px; border: 1px solid rgba(181, 140, 86, .35); border-left: 3px solid #EF4444; border-radius: 6px; background: rgba(181, 140, 86, .055); }
.system-response > .mono { margin-bottom: 12px; color: #FFAFB3; font-size: 11px; }
.system-response > p { color: #D6B9C2; font-size: 12px; line-height: 1.85; }
.system-response > .fine-print { margin-top: 14px; color: #B59DAA; font-size: 11px; }
.policy-modal { max-width: 780px; }
.policy-body { padding-top: 24px; }
.policy-body > p { font-size: 13px; line-height: 1.85; }
.policy-body > section { padding-block: 24px; border-bottom: 1px solid var(--line); }
.policy-body > section:last-child { border-bottom: 0; padding-bottom: 0; }
.policy-body h3 { margin-bottom: 12px; color: #CDDCF3; font-family: var(--font-mono); font-size: 14px; font-weight: 500; line-height: 1.6; letter-spacing: -.015em; }
.policy-body section p { font-size: 13px; line-height: 1.9; }

/* 15. Clipboard feedback and no-script notice. app.js may move the clipboard
   nodes into the active dialog: body siblings cannot overlay the top layer. */
.toast { position: fixed; z-index: 100; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 32px); padding: 13px 20px; border: 1px solid rgba(133, 130, 201, .45); border-radius: 8px; background: #112A25; color: #C2F1DF; box-shadow: 0 12px 36px rgba(0, 0, 0, .45); font-size: 12px; line-height: 1.7; text-align: center; transform: translateX(-50%); }
.clipboard-fallback { position: fixed; z-index: 110; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: min(440px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 22px; border: 1px solid #4B6389; border-radius: 12px; background: #111A28; box-shadow: 0 24px 60px rgba(0, 0, 0, .65); }
.clipboard-fallback h2 { margin-bottom: 12px; font-size: 22px; }
.clipboard-fallback p { margin-bottom: 14px; font-size: 12px; }
.clipboard-fallback textarea { margin-bottom: 12px; font-family: var(--font-mono); font-size: 11px; }
.modal .toast { position: sticky; left: auto; bottom: 8px; width: fit-content; max-width: 100%; margin: 18px auto 0; transform: none; }
.modal .clipboard-fallback { position: static; width: 100%; max-height: none; margin-top: 20px; }
.noscript-notice { margin: 24px auto; width: calc(100% - var(--gutter) - var(--gutter)); max-width: var(--content); padding: 18px 22px; border: 1px solid rgba(66, 169, 189, .35); border-radius: 8px; background: #241D12; color: #EDCE98; font-size: 13px; line-height: 1.8; }

/* 16. Pointer interactions are gated to prevent sticky touch hover. */
@media (hover: hover) and (pointer: fine) {
  .button-primary:hover:not(:disabled) { border-color: #83AFF8; background: #3072DF; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 24px rgba(59, 130, 246, .25); transform: translateY(-1px); }
  .button-secondary:hover:not(:disabled) { border-color: #52637D; background: #1B2638; transform: translateY(-1px); }
  .button-quiet:hover:not(:disabled), .icon-button:hover:not(:disabled) { color: #EDF4FF; background: #1A2434; }
  .text-link:hover { color: #ECF3FF; text-decoration: underline; text-underline-offset: 5px; }
  .desktop-nav a:hover, .footer-bottom nav > a:hover { color: #FFFFFF; }
  .mode-button:hover { border-color: rgba(var(--accent-rgb), .45); color: var(--accent-text); background: rgba(var(--accent-rgb), .075); }
  .module-card:hover { border-color: rgba(var(--accent-rgb), .38); box-shadow: inset 0 1px 0 rgba(var(--accent-rgb), .24), 0 20px 38px rgba(0, 0, 0, .24), 0 0 24px rgba(var(--accent-rgb), .055); transform: translateY(-2px); }
  .asset-card:hover { border-color: rgba(var(--accent-rgb), .48); box-shadow: 0 6px 24px rgba(var(--accent-rgb), .08); transform: translateY(-2px); }
  .asset-open:hover .asset-preview > svg { transform: scale(1.025); }
  .asset-open:hover .preview-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .table-scroll tbody tr:hover { background: rgba(59, 130, 246, .045); }
  .tab:hover { color: #DCE9FD; background-color: rgba(59, 130, 246, .07); }
  .pricing-card:hover { border-color: #425779; box-shadow: var(--inset), 0 18px 48px rgba(0, 0, 0, .25); transform: translateY(-2px); }
  .pricing-featured:hover { border-color: #699EEB; }
  .faq-list summary:hover { color: #ACCFFF; }
}
.button:active:not(:disabled), .icon-button:active:not(:disabled) { transform: translateY(1px); }

/* 17. Motion: slow, asynchronous hardware motion with bounded transforms. */
@keyframes node-beacon {
  0%, 15% { opacity: .65; transform: scale(.75); }
  80%, 100% { opacity: 0; transform: scale(1.8); }
}
@keyframes integrity-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes waveform-drift {
  0% { transform: translate(0, 0); opacity: .75; }
  50% { transform: translate(-3px, -5px); opacity: .95; }
  100% { transform: translate(3px, 4px); opacity: .8; }
}
@keyframes vectorscope-drift {
  from { transform: rotate(-8deg) scale(.94); }
  to { transform: rotate(8deg) scale(1.05); }
}
@keyframes monitor-scan {
  0% { transform: translateY(-50px); opacity: 0; }
  10%, 85% { opacity: .7; }
  100% { transform: translateY(300px); opacity: 0; }
}
@keyframes handshake-beacon {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
  50% { box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }
}
@keyframes dialog-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 18. Responsive layout. No component relies on a fixed minimum page width.
   The table becomes a compact two-column record at narrow widths: source
   headers remain in the accessibility tree, and no horizontal scroller is used. */
.search-control input[type='search'] { padding-left: 39px; }

@media (min-width: 1440px) {
  :root { --gutter: 64px; --section-space: 112px; }
  .hero-layout { gap: 64px; }
  .hero h1 { font-size: 70px; }
  .module-card { padding: 26px; }
  .asset-card-body { padding: 18px; }
  .section-heading { margin-bottom: 48px; }
}

@media (max-width: 1199px) {
  :root { --header-height: 112px; }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 20px; padding-block: 12px 6px; }
  .header-actions { justify-self: end; }
  .desktop-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 8px 30px; }
  .desktop-nav a { min-height: 36px; }
  .hero-layout { gap: 28px; }
  .hero h1 { font-size: clamp(40px, 5vw, 58px); }
  .hero-lead { font-size: 18px; }
  .hero-actions .button { font-size: 12px; padding-inline: 14px; }
  .hero-metrics { gap: 12px; }
  .cluster-panel .panel-heading { padding: 16px; font-size: 11px; }
  .cluster-panel .status-label { font-size: 11px; }
  .cluster-modes { gap: 6px; padding: 0 12px 12px; }
  .mode-button { padding: 9px; gap: 7px; font-size: 11px; }
  .cluster-telemetry > div { padding: 14px 12px; }
  .cluster-telemetry dd { font-size: 12px; }
  .module-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .module-card { padding: 28px; }
  .module-diagram { max-width: 300px; align-self: center; margin-block: 24px; }
  .module-card h3 { max-width: 26ch; font-size: 24px; }
  .workspace-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr) auto; }
  .search-control { grid-column: 1 / -1; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .asset-name { font-size: 12px; }
  .asset-card-body { padding: 18px; }
  .asset-meta, .asset-footer { font-size: 11px; }
  .planner-inputs, .planner-results { padding: 28px; }
  .planner-disclaimer { padding-inline: 28px; }
  .pricing-card { padding: 24px; }
  .pricing-topline { align-items: start; flex-direction: column; }
  .pricing-card h3 { font-size: 23px; }
  .pricing-card > p:not(.price) { min-height: 116px; }
  .connect-layout, .inquiry-layout { gap: 32px; }
  .inquiry-panel .panel-heading { padding-inline: 22px; }
  .inquiry-panel > p { padding-inline: 22px; }
  #inquiry-form { padding-inline: 22px; }
  .ticket-result { margin-inline: 22px; padding: 18px; }
  .inspector-layout { gap: 22px; }
  .inspector-metadata { padding-left: 20px; }
  .player-controls { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 12px; }
  #player-timecode { justify-self: center; }
  #player-seek { grid-row: 2; grid-column: 1 / -1; }
  #player-fps { grid-column: 3; grid-row: 1; justify-self: end; }
}

@media (max-width: 1023px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-copy { max-width: 700px; }
  .hero h1 { font-size: clamp(44px, 7.2vw, 64px); }
  .hero-lead { max-width: 44ch; font-size: 21px; }
  .hero-copy > .muted { max-width: 65ch; }
  .hero-metrics { max-width: 580px; }
  .cluster-panel { width: 100%; max-width: 720px; justify-self: center; }
  .cluster-panel .panel-heading { padding: 18px 22px; font-size: 11px; }
  .cluster-modes { padding: 0 20px 20px; gap: 10px; }
  .mode-button { min-height: 48px; padding: 12px 14px; font-size: 12px; }
  .cluster-telemetry > div { padding: 18px 22px; }
  .cluster-telemetry dd { font-size: 16px; }
  .section-heading { gap: 28px; }
  .section-heading > p { font-size: 13px; }
  .planner-inputs, .planner-results { padding: 24px; }

  .connect-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pipeline-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .pipeline-steps li { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-bottom: 0; }
  .pipeline-steps li:not(:last-child)::after { top: 20px; right: 0; bottom: auto; left: 55px; width: auto; height: 1px; }
  .pipeline-steps h3 { font-size: 16px; }
  .pipeline-steps p { font-size: 12px; }
  .terminal-panel { min-height: 250px; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-card:last-child { grid-column: 1 / -1; }
  .pricing-card:last-child .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
  .pricing-card:last-child > p:not(.price) { min-height: 0; max-width: 70ch; }
  .pricing-card:last-child > .button { width: fit-content; }
  .pricing-topline { flex-direction: row; align-items: center; }
  .inquiry-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .faq-column > p:not(.eyebrow) { max-width: 65ch; }
  .inquiry-panel .panel-heading { padding: 24px 28px; }
  .inquiry-panel > p { padding-inline: 28px; }
  #inquiry-form { padding-inline: 28px; }
  .ticket-result { margin-inline: 28px; }
  .inspector-layout { grid-template-columns: minmax(0, 1fr); }
  .inspector-metadata { padding-left: 0; padding-top: 24px; border-left: 0; border-top: 1px solid var(--line); }
  .inspector-metadata dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
  .inspector-metadata dl > div:last-child { grid-column: 1 / -1; }
  .inspector-metadata > .button { width: fit-content; }
}

/* At 768px the complete desktop navigation occupies its own header row. */
@media (min-width: 768px) and (max-width: 1023px) {
  .header-inner { column-gap: 16px; }
  .header-actions { gap: 6px; }
  .header-actions .button { padding-inline: 10px; font-size: 11px; }
  .table-scroll { padding-inline: 14px; }
  .table-scroll th, .table-scroll td { padding: 12px 6px; }
  .table-scroll tbody td, .table-scroll .text-link { font-size: 11px; }
}

@media (max-width: 767px) {
  :root { --header-height: 68px; --gutter: 22px; --section-space: 64px; }
  .section-heading { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 28px; }
  .section-heading > p { max-width: 60ch; justify-self: start; font-size: 14px; }
  h2 { font-size: clamp(30px, 6vw, 38px); }
  .eyebrow { font-size: 11px; margin-bottom: 14px; }
  .telemetry-inner { justify-content: flex-start; gap: 7px 18px; padding-block: 9px; font-size: 11px; }
  .telemetry-inner > span:first-child { flex-basis: 100%; }
  .telemetry-caption { margin-left: 0; }
  .header-inner { display: flex; min-height: var(--header-height); gap: 12px; padding-block: 8px; }
  .brand { gap: 7px; font-size: 21px; }
  .brand > svg { width: 34px; height: 34px; }
  .brand-sub { font-size: 11px; }
  .desktop-nav, .desktop-only { display: none; }
  .mobile-only { display: inline-grid; }
  .header-actions { margin-left: auto; gap: 6px; }
  select.language-select { width: 58px; padding-inline: 6px; }
  /* hidden remains the sole open/close switch; app.js also sets aria-expanded. */
  .hero { padding-top: 48px; }
  .hero-layout { gap: 32px; }
  .hero h1 { margin-bottom: 22px; font-size: clamp(41px, 8.5vw, 60px); line-height: 1.08; letter-spacing: -.035em; }
  .hero-copy > .eyebrow { gap: 7px; font-size: 11px; letter-spacing: .04em; }
  .hero-lead { font-size: 18px; }
  .hero-actions { gap: 10px; margin-top: 24px; }
  .hero-actions .button { flex: 1 1 200px; min-height: 48px; }
  .hero-metrics { margin-top: 28px; padding-top: 20px; gap: 14px; }
  .hero-metrics dd { font-size: 26px; }
  .hero-metrics dd span { font-size: 11px; }
  .hero-metrics dt { font-size: 11px; }
  .cluster-panel { border-radius: 12px; }
  .cluster-panel .panel-heading { gap: 8px 14px; padding: 14px; font-size: 11px; }
  .cluster-panel .status-label { font-size: 11px; }
  .cluster-modes { padding: 0 12px 12px; gap: 7px; }
  .mode-button { min-height: 50px; padding: 10px; font-size: 11px; gap: 7px; }
  .cluster-telemetry > div { padding: 14px; }
  .cluster-telemetry dt { font-size: 11px; }
  .cluster-telemetry dd { font-size: 12px; }
  .protocol-section { padding-block: 24px; }
  .protocol-section .section-kicker { gap: 8px; }
  .section-kicker > .mono { font-size: 11px; }
  .protocol-row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: 16px; }
  .matrix-label { padding: 0; }
  .chip-list { gap: 7px; }
  .chip-list li { font-size: 11px; padding: 5px 8px; }
  .module-cards { gap: 14px; }
  .module-card { padding: 20px; }
  .module-card h3 { font-size: 20px; }
  .module-card > p { font-size: 12px; }
  .feature-list li { font-size: 11px; }
  .card-topline { gap: 6px; font-size: 11px; }
  .module-label { font-size: 11px; }
  .workspace-titlebar { gap: 8px 12px; padding: 14px 16px; }
  .workspace-titlebar > .mono { font-size: 11px; }
  .workspace-titlebar .status-label { font-size: 11px; }
  .workspace-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; padding: 18px 16px 14px; }
  .search-control { grid-column: 1 / -1; }
  .workspace-toolbar .view-switch { justify-self: end; align-self: end; }
  .view-switch .icon-button { width: 42px; height: 42px; flex-basis: 42px; }
  .compact-field select { min-height: 48px; font-size: 12px; }
  .search-control input[type='search'] { min-height: 48px; font-size: 14px; }
  .search-control > .icon { top: 16px; }
  .workspace-summary { padding-inline: 16px; gap: 6px; font-size: 11px; }
  .workspace-summary p:last-child { flex-basis: 100%; }
  .asset-grid { padding: 0 16px 16px; gap: 12px; }
  .asset-card-body { padding: 13px; gap: 9px; }
  .asset-name { font-size: 11px; }
  .asset-meta, .asset-footer { font-size: 11px; }
  .asset-codec { font-size: 11px; }
  .workspace-footnote { padding: 14px 16px; gap: 6px; font-size: 11px; }
  .workspace-footnote > span { flex-basis: 100%; }
  .table-scroll { padding: 0 16px 16px; }
  .table-scroll table { display: block; }
  .table-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
  .table-scroll tbody { display: grid; gap: 12px; }
  .table-scroll tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; gap: 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: #0C1018; }
  .table-scroll tbody th { grid-column: 1 / -1; padding: 0 0 9px; border-bottom: 1px solid var(--line); }
  .table-scroll tbody td { min-width: 0; padding: 0; border: 0; font-size: 11px; }
  .table-scroll .text-link { font-size: 12px; min-height: 44px; }
  .table-scroll tbody td:last-child { display: flex; align-items: center; }
  .tabs { padding: 6px; gap: 4px; }
  .tab { flex-basis: 120px; padding: 12px 10px; font-size: 11px; }
  .planner-panel { grid-template-columns: minmax(0, 1fr); }
  .planner-inputs { padding: 24px; gap: 24px; }
  .planner-results { padding: 24px; border-left: 0; border-top: 1px solid var(--line); gap: 24px; }
  .planner-results > .button { align-self: stretch; }

  .planner-disclaimer { padding: 18px 24px; }
  .pipeline-steps { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 28px; }
  .pipeline-steps li { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding-bottom: 28px; }
  .pipeline-steps li:last-child { padding-bottom: 0; }
  .pipeline-steps li:not(:last-child)::after { top: 45px; bottom: 6px; right: auto; left: 19px; width: 1px; height: auto; }
  .pipeline-steps h3 { font-size: 18px; }
  .pipeline-steps p { font-size: 13px; }
  .terminal-header { padding-inline: 18px; }
  .terminal-panel { padding: 20px; min-height: 270px; }
  .terminal pre { font-size: 11px; }
  .terminal-footer { padding-inline: 20px; }
  .terminal > .fine-print { padding: 18px 20px; }
  .pricing-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pricing-card { padding: 28px; }
  .pricing-card:last-child { grid-column: auto; }
  .pricing-card h3 { font-size: 26px; }
  .pricing-card > p:not(.price) { min-height: 0; }
  .pricing-card:last-child .feature-list { grid-template-columns: minmax(0, 1fr); }
  .pricing-card:last-child > .button { width: 100%; }
  .pricing-card .feature-list li { font-size: 13px; }
  .price { min-height: 0; margin-block: 22px; }
  .price strong { font-size: 36px; }
  .inquiry-panel .panel-heading { padding: 20px 24px; }
  .inquiry-panel > p { padding-inline: 24px; }
  #inquiry-form { padding-inline: 24px; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ticket-result { margin-inline: 24px; }
  input:not([type='range']), select, textarea { font-size: 16px; }
  .inquiry-panel label { font-size: 13px; }
  .footer-top { align-items: flex-start; flex-direction: column; gap: 16px; padding-bottom: 22px; }
  .footer-top > p { flex-basis: auto; }
  .footer-top > .text-link { margin-left: 0; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; padding-top: 20px; }
  .footer-bottom nav { gap: 2px 20px; }
  .modal { width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 22px; border-radius: 12px; scrollbar-gutter: auto; }
  .modal-header { gap: 12px; padding-bottom: 18px; }
  .modal-header h2 { font-size: 22px; }
  .modal-header .eyebrow { font-size: 11px; }
  .inspector-modal .modal-header h2 { font-size: 16px; }
  .modal > p { margin-block: 16px; font-size: 12px; }
  .inspector-layout { gap: 20px; }
  .inspector-metadata dl { gap: 16px; }
  .inspector-metadata > .button { width: 100%; }
  .player-controls .button { min-height: 44px; }
  .monitor-overlay { font-size: 11px; }
  .policy-body section p { font-size: 12px; }
  .console-modal .tab { flex-basis: 120px; }
  .modal-footer > .button { width: 100%; }
  .clipboard-fallback { padding: 18px; }
  .noscript-notice { font-size: 12px; padding: 16px; }
}

@media (max-width: 539px) {
  .module-cards { grid-template-columns: minmax(0, 1fr); }
  .module-card { padding: 24px; }
  .module-card h3 { font-size: 24px; max-width: none; }
  .module-card > p { font-size: 14px; }
  .module-card .feature-list li { font-size: 12px; }
  .module-label { font-size: 11px; }
  .module-diagram { max-width: 290px; margin-block: 20px; }
  .asset-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .asset-card-body { padding: 17px; gap: 12px; }
  .asset-name { font-size: 12px; }
  .asset-codec { font-size: 12px; }
  .asset-meta, .asset-footer { font-size: 11px; }
  .preview-time { bottom: 12px; left: 12px; font-size: 11px; }
  .preview-play { width: 42px; height: 42px; opacity: .85; transform: translate(-50%, -50%); }
  .workspace-titlebar .status-label { margin-left: 0; }
  .terminal-tabs .tab { flex: 1 1 100%; min-height: 44px; text-align: start; padding: 10px 14px; }
  .terminal-panel { min-height: 0; }
  .terminal-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
  .terminal-footer .button { padding-left: 0; }
  .cluster-panel .panel-heading .status-label { flex-basis: 100%; }
  .hero-metrics { column-gap: 10px; }
  .hero-metrics dd { font-size: 24px; }
  .inspector-metadata dl { grid-template-columns: minmax(0, 1fr); }
  .ticket-result .button-row { align-items: stretch; flex-direction: column; }
  .ticket-result .button { width: 100%; }
}

/* 390px phones: comfortable tap areas without compressing long translations. */
@media (max-width: 390px) {
  :root { --gutter: 16px; --section-space: 56px; }
  .hero { padding-top: 38px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 17px; }
  .hero-copy > .muted { font-size: 13px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { flex: 0 1 auto; width: 100%; }
  .hero-metrics dd { font-size: 22px; }
  .hero-metrics dt { font-size: 11px; }
  .cluster-modes { gap: 6px; padding-inline: 10px; }
  .mode-button { padding: 9px 8px; font-size: 11px; gap: 6px; }
  .cluster-telemetry > div { padding: 12px 9px; }
  .cluster-telemetry dd { font-size: 11px; }
  .cluster-telemetry dt { font-size: 11px; }
  .workspace-titlebar > .mono { font-size: 11px; }
  .workspace-toolbar { grid-template-columns: minmax(0, 1fr); }
  .search-control { grid-column: auto; }
  .workspace-toolbar .view-switch { justify-self: start; }
  .compact-field select { font-size: 14px; }

  .planner-inputs, .planner-results { padding: 20px; }
  .planner-disclaimer { padding: 16px 20px; }

  .pricing-card { padding: 24px; }
  .inquiry-panel .panel-heading { padding-inline: 20px; }
  .inquiry-panel > p { padding-inline: 20px; }
  #inquiry-form { padding: 22px 20px; }
  .ticket-result { margin: 0 16px 20px; padding: 16px; }
  .ticket-heading { align-items: flex-start; }
  .ticket-heading h4 { font-size: 16px; }
  .modal { padding: 16px; }
  .modal-header { gap: 8px; }
  .modal-header h2 { font-size: 20px; }
  .modal-header .icon-button { width: 40px; height: 44px; flex-basis: 40px; }
  .console-modal .tabs { flex-direction: column; }
  .console-modal .tab { flex: 0 1 auto; text-align: start; }
  .auth-progress { padding: 16px; }
  .system-response { padding: 14px; }
  .hardware-identity { padding: 20px 14px; }
  .monitor-overlay { flex-direction: column; align-items: flex-start; gap: 4px; }
  .player-controls { gap: 8px; }
  #player-timecode { font-size: 11px; }
  #player-fps { font-size: 11px; }
  .player-controls .button { gap: 6px; padding-inline: 8px; font-size: 11px; }
}

/* 320px floor: maintain a single-column page and readable metric units. */
@media (max-width: 320px) {
  :root { --gutter: 12px; }
  h2 { font-size: 28px; }
  .hero h1 { font-size: 36px; }
  .hero-copy > .eyebrow { font-size: 11px; }
  .brand { font-size: 19px; gap: 5px; }
  .brand > svg { width: 30px; height: 30px; }
  .header-actions { gap: 2px; }
  select.language-select { width: 54px; }
  .hero-metrics { gap: 8px; }
  .hero-metrics dd span { display: block; margin-top: 2px; }
  .cluster-modes { grid-template-columns: minmax(0, 1fr); }
  .mode-button { font-size: 11px; min-height: 44px; }
  .cluster-telemetry dd { font-size: 11px; }
  .module-card { padding: 20px; }
  .workspace-titlebar, .workspace-toolbar, .workspace-summary, .workspace-footnote { padding-inline: 12px; }
  .asset-grid, .table-scroll { padding-inline: 12px; }
  .asset-card-body { padding: 14px; }
  .table-scroll tbody tr { padding: 12px; gap: 8px; }
  .planner-inputs, .planner-results { padding: 18px; }

  .pipeline-steps li { gap: 12px; }
  .terminal-header { padding-inline: 14px; }
  .terminal-panel, .terminal-footer, .terminal > .fine-print { padding-inline: 16px; }
  .pricing-card { padding: 20px; }
  .inquiry-panel .panel-heading { padding-inline: 16px; }
  .inquiry-panel > p, #inquiry-form { padding-inline: 16px; }
  .modal { width: calc(100% - 16px); padding: 14px; }
  .inspector-modal .modal-header h2 { font-size: 14px; }
  .player-controls { grid-template-columns: auto minmax(0, 1fr); }
  #player-timecode { justify-self: end; }
  #player-fps { grid-column: 1 / -1; grid-row: 3; justify-self: end; }
}

/* 19. Accessibility preferences. Motion is removed, not merely accelerated. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after, dialog::backdrop {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .scope-wave, .vector-trace, .monitor-scanline, .integrity-pulse { transform: none !important; }
  .status-dot::after { opacity: 0; }
  .bus-pulse { stroke-dashoffset: 0; }
  .module-card:hover, .asset-card:hover, .pricing-card:hover,
  .button:hover, .button:active, .icon-button:active { transform: none !important; }
  .asset-open:hover .asset-preview > svg { transform: none; }
  .modal[open] { opacity: 1; transform: none; }
  .navigation-drawer.is-open .drawer-panel { transform: none; }
}

@media (prefers-contrast: more) {
  :root { --muted: #CCD6E6; --subtle: #B5C3DA; --line: rgba(255, 255, 255, .24); --line-strong: rgba(255, 255, 255, .4); }
  .glass-panel { background: #0D1017; }
  .cluster-scene .module { opacity: 1; }
  .badge { border-color: var(--accent-text); }
  .text-link { text-decoration: underline; text-underline-offset: 4px; }
}

@media (forced-colors: active) {
  .text-gradient { color: CanvasText; background: none; }
  .glass-panel, .module-card, .asset-card, .pricing-card, .modal, .ticket-result,
  .terminal, .clipboard-fallback, .toast, .drawer-panel, .drawer-telemetry { border: 1px solid CanvasText; box-shadow: none; }
  .button, .icon-button, .mode-button, .tab { border: 1px solid ButtonText; }
  .is-active, [aria-selected='true'], [aria-pressed='true'] { outline: 2px solid Highlight; outline-offset: -3px; }
  .status-dot, .module-dot, .feature-list li::before { background: CanvasText; border-color: CanvasText; }
  .faq-list summary::before, .faq-list summary::after { background: CanvasText; }
  :focus-visible { outline-color: Highlight; }
  input[type='range'] { appearance: auto; -webkit-appearance: auto; }
  progress { appearance: auto; -webkit-appearance: auto; }
}

/* Optical fabric refinement: local surfaces, no resource requests. */
:root {
  --inset: inset 0 1px 0 rgba(255, 255, 255, .12);
}
html { scrollbar-color: #45546B var(--bg); }
input, textarea { caret-color: #9CC3FF; }
body {
  background-color: var(--bg);
  background-image: linear-gradient(rgba(157,183,219,.025) 1px, transparent 1px), linear-gradient(90deg,rgba(157,183,219,.025) 1px,transparent 1px);
  background-size: 48px 48px;
}
.hero { background: radial-gradient(ellipse at 78% 42%,rgba(61,104,181,.18),transparent 58%), radial-gradient(ellipse at 47% 78%,rgba(65,144,159,.055),transparent 48%); }
#planner { background: radial-gradient(ellipse at 67% 50%,rgba(74,103,172,.16),transparent 65%); }
.hero h1 { max-width: 20ch; font-size: clamp(38px,4.05vw,62px); line-height: 1.1; letter-spacing: -.035em; }
.hero h1 span { display: inline; }
.cluster-panel { box-shadow: var(--inset), 0 24px 65px rgba(0,0,0,.36); }
.module-card, .pricing-card, .asset-card {
  background-color: var(--surface);
  background-image: linear-gradient(135deg,rgba(var(--accent-rgb),.09),transparent 62%);
  box-shadow: var(--inset), inset 0 0 0 1px rgba(255,255,255,.018), 0 12px 28px rgba(0,0,0,.18);
  transition: transform 240ms var(--ease), border-color 240ms ease, box-shadow 240ms ease, background-color 240ms ease;
}
@media (hover:hover) and (pointer:fine) {
  .module-card:hover, .pricing-card:hover, .asset-card:hover {
    transform: translateY(-2px); border-color: rgba(var(--accent-rgb),.48);
    background-color: var(--surface-raised);
    box-shadow: var(--inset), inset 0 0 0 1px rgba(var(--accent-rgb),.1), 0 16px 32px rgba(0,0,0,.26);
  }
}
.status-dot { background: #8AC9CF; box-shadow: 0 0 8px rgba(138,201,207,.25); }
.status-dot::after { border-color: rgba(138,201,207,.45); animation-duration: 3.8s; }
.cluster-scene .bus-pulse { stroke-dasharray: 8 92; animation-play-state: running; opacity: .6; }
.cluster-scene .pulse-relay { animation-delay: -.8s; }
.cluster-scene .pulse-compute { animation-delay: -1.6s; }
.cluster-scene .pulse-shield { animation-delay: -2.4s; }

.terminal-example { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.terminal-example p { margin-bottom: 10px; font-size: 12px; }
.terminal-example samp { white-space: pre-wrap; color: #96D9E4; font-family: var(--font-mono); font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }

@media (min-width:961px) { #menu-toggle { display: none !important; } }
@media (max-width:600px) { .hero h1 { font-size: clamp(36px,8.5vw,48px); max-width: 17ch; } }
@media (prefers-reduced-motion:reduce) {
  .cluster-scene .bus-pulse { animation: none; stroke-dasharray: none; opacity: .65; }
  .status-dot::after { animation: none; opacity: 0; }
  .module-card:hover, .pricing-card:hover, .asset-card:hover { transform: none; }
}
@media (forced-colors:active) {
  body, .hero, #planner { background-image: none; }
  .terminal-example samp { color: CanvasText; }
}

/* Optical circuit / layered hardware surfaces. */
:root { --bg: #050811; --hardware-surface: rgba(10,16,29,.74); --hardware-border: rgba(59,130,246,.22); }
body { background: #050811; isolation: isolate; }
.circuit-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; }
header, main, section, footer { position: relative; z-index: 1; background: transparent; }
.site-header, .hero, #planner, .inquiry-section, .site-footer, .telemetry-bar { background: transparent; }
.site-header { position: relative; z-index: 1; backdrop-filter: none; -webkit-backdrop-filter: none; }
.telemetry-bar { position: relative; z-index: 1; }
.glass-panel, .module-card, .asset-card, .pricing-card, .planner-shell, .terminal {
  background: var(--hardware-surface); border: 1px solid var(--hardware-border);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 16px 40px -12px rgba(0,0,0,.6);
}
.planner-inputs, .planner-results, .terminal-panel { background: transparent; }
.cluster-panel, .planner-shell, .terminal, .pricing-featured { position: relative; }
.cluster-panel::before, .planner-shell::before, .terminal::before, .pricing-featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent 5%, #3b82f6 35%, #22d3ee 65%, transparent 95%);
  pointer-events: none;
}
.pricing-card.pricing-featured { border-color: rgba(56,189,248,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 20px 50px -10px rgba(37,99,235,.30); }
@media (min-width:961px) { .pricing-card.pricing-featured { transform: translateY(-8px); } }
@media (min-width:961px) and (hover:hover) { .pricing-card.pricing-featured:hover { transform: translateY(-10px); } }
@media (prefers-contrast:more) { .glass-panel, .module-card, .asset-card, .pricing-card { background: rgba(10,16,29,.97); border-color: #7895B9; } }
@media (forced-colors:active) { .circuit-bg { display: none; } }

/* Section backgrounds must not occlude the optical circuit. */
main > section[id] { background: transparent; }
@media (hover:hover) and (pointer:fine) {
  .module-card:hover, .asset-card:hover, .pricing-card:hover { background: rgba(18,30,51,.82); }
}

/* Avoid sampling the animated backdrop across large composited card surfaces. */
@media (min-width: 1920px), (min-height: 1440px), (min-width: 1280px) and (min-resolution: 2dppx) {
  .glass-panel, .module-card, .asset-card, .pricing-card, .planner-shell, .terminal {
    -webkit-backdrop-filter: none; backdrop-filter: none; background-color: #0b1423;
  }
}

@media (min-width: 1200px) {
  .planner-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .planner-inputs > * { grid-column: 1 / -1; }
  .planner-inputs > .field { grid-column: span 1; align-content: start; }
}
