/* ==========================================================================
   Brain Industries — design system v2 ("control room")
   Dark, software-style interface built on the Brain Industries wine/rose mark.
   Tokens → base → layout → components → pages → utilities
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root, .theme-light {
  color-scheme: light;

  /* Brand */
  --wine-900: #3f021c;
  --wine-700: #6e0334;
  --wine-600: #8a0b40;
  --wine-500: #a81540;
  --rose-500: #d81f4f;
  --rose-400: #f0325a;
  --rose-300: #ff6b88;
  --grad: linear-gradient(135deg, #ff4d73 0%, #d81f4f 38%, #8a0b40 100%);
  --grad-text: linear-gradient(100deg, #ff7a94 0%, #f0325a 45%, #c0164a 100%);

  /* Surfaces */
  --bg: #ffffff;
  --bg-2: #f5f4f1;
  --surface: #ffffff;
  --surface-2: #f7f5f2;
  --surface-3: #ece9e4;
  --line: rgb(20 18 16 / 0.09);
  --line-2: rgb(20 18 16 / 0.15);
  --line-3: rgb(20 18 16 / 0.26);

  /* Text */
  --text: #15161a;
  --strong: #111214;
  --accent-text: #8a0b40;
  --icon-on-tint: #8a0b40;
  --tint: 20 18 16;
  --bg-rgb: 255 255 255;
  --glow-op: 0.22;
  --text-2: #3b3d43;
  --muted: #5c5f67;
  --faint: #6c6f77;

  /* Signals */
  --ex: #f5c518;
  --ok: #0f8a5f;
  --warn: #a8650a;
  --bad: #c0262d;
  --focus: #1f6feb;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Archivo", "Inter", system-ui, sans-serif;
  --font-display: "Archivo", "Inter", system-ui, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.1875rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.75rem, 1.3rem + 1.5vw, 2.625rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 2.8vw, 3.75rem);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgb(17 18 20 / 0.05), 0 18px 40px -22px rgb(17 18 20 / 0.28);
  --glow: 0 0 0 1px rgb(240 50 90 / 0.35), 0 8px 32px -8px rgb(240 50 90 / 0.45);

  --container: 1240px;
  --gutter: clamp(1rem, 0.6rem + 1.8vw, 2rem);
  --section: clamp(4rem, 2.75rem + 5vw, 7.5rem);
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Dark brand bands — InspectX, call to action, footer and device mock-ups */
.theme-dark, .site-footer, .cta-inner, .device, .float-card, .lightbox {
  color-scheme: dark;
  --bg: #181b22; --bg-2: #1e222b; --surface: #242934; --surface-2: #2b303c; --surface-3: #343a48;
  --line: rgb(var(--tint) / 0.08); --line-2: rgb(var(--tint) / 0.13); --line-3: rgb(var(--tint) / 0.22);
  --text: #f3f4f6; --strong: #fff; --text-2: #d0d3da; --muted: #aeb2bc; --faint: #9a9ea8;
  --accent-text: #ff8aa2; --icon-on-tint: #fff; --tint: 255 255 255; --bg-rgb: 24 27 34; --glow-op: 0.55;
  --ok: #34d399; --warn: #fbbf24; --bad: #f87171; --focus: #7cc4ff;
  --shadow: 0 1px 0 rgb(var(--tint) / 0.04) inset, 0 20px 40px -24px rgb(0 0 0 / 0.8);
  color: var(--text-2);
}
.theme-dark { background: var(--bg); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
}
@media (min-width: 64em) { body { font-size: 1.0625rem; } }
img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 88%;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.02em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--accent-text); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--strong); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
address { font-style: normal; }
strong { color: var(--text); font-weight: 600; }
::selection { background: var(--rose-500); color: var(--strong); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.mono { font-family: var(--font-mono); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: #fff; color: #000; padding: 0.6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; color: #000; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }

.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); }
.section-line { border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-2); }

/* Background textures */
.bg-grid { position: relative; isolation: isolate; }
.bg-grid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(var(--tint) / 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(var(--tint) / 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 0%, transparent 75%);
}
.bg-dots { position: relative; isolation: isolate; }
.bg-dots::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgb(var(--tint) / 0.1) 1px, transparent 1.3px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse 60% 60% at 80% 30%, #000 0%, transparent 70%);
}
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(80px); opacity: var(--glow-op); z-index: -1; }
.glow-a { width: 520px; height: 520px; top: -180px; left: -120px; background: radial-gradient(circle, rgb(216 31 79 / 0.55), transparent 65%); }
.glow-b { width: 600px; height: 600px; top: 10%; right: -220px; background: radial-gradient(circle, rgb(138 11 64 / 0.6), transparent 65%); }

.section-head { display: grid; gap: 1rem 3rem; margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem); }
@media (min-width: 56em) { .section-head.split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; } }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 58ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1.1rem;
  font: 500 var(--fs-xs)/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow .num { color: var(--faint); }
.eyebrow .num::after { content: " //"; color: var(--line-3); }

.chip {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.8rem 0.4rem 0.6rem;
  font: 500 var(--fs-xs)/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2);
  background: rgb(var(--tint) / 0.04); border: 1px solid var(--line-2); border-radius: 999px;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgb(52 211 153 / 0.18); }
.chip .icon { width: 1em; height: 1em; color: var(--rose-400); }

.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--text-2); max-width: 60ch; }
.muted { color: var(--muted); }
.prose { max-width: 68ch; }
.prose p { color: var(--text-2); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.7rem 1.25rem;
  font: 500 0.9375rem/1.2 var(--font-sans); letter-spacing: -0.005em;
  color: var(--strong); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn .icon { width: 1.05em; height: 1.05em; transition: transform 0.2s var(--ease); }
.btn:hover { color: var(--strong); border-color: var(--line-3); background: var(--surface-3); }
.btn:hover .icon-arrow-right, .btn:hover .lucide-arrow-right { transform: translateX(2px); }
.btn-primary { background: var(--grad); border-color: rgb(255 120 150 / 0.35); box-shadow: 0 1px 0 rgb(255 255 255 / 0.25) inset, 0 10px 30px -10px rgb(240 50 90 / 0.6); }
.btn-primary:hover { background: var(--grad); border-color: rgb(255 140 165 / 0.6); box-shadow: 0 1px 0 rgb(255 255 255 / 0.3) inset, 0 14px 38px -10px rgb(240 50 90 / 0.8); transform: translateY(-1px); }
.btn-secondary, .btn-ghost-light { background: rgb(var(--tint) / 0.03); }
.btn-light { background: #fff; color: #0a0b0e; border-color: var(--strong); }
.btn-light:hover { background: #e9eaee; color: #0a0b0e; border-color: #e9eaee; }
.btn-sm { min-height: 38px; padding: 0.45rem 0.9rem; font-size: 0.875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.kbd { font: 500 0.6875rem var(--font-mono); padding: 0.1rem 0.35rem; border: 1px solid var(--line-2); border-radius: 4px; color: var(--muted); }

.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; font-size: 0.9375rem; text-decoration: none; color: var(--accent-text); }
.link-arrow .icon { width: 1em; height: 1em; transition: transform 0.2s var(--ease); }
.link-arrow:hover { color: var(--strong); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(var(--bg-rgb) / 0.82); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgb(var(--bg-rgb) / 0.6); backdrop-filter: saturate(1.6) blur(14px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--text); flex: none; }
.brand-mark { width: auto; height: 38px; filter: drop-shadow(0 0 12px rgb(240 50 90 / 0.35)) brightness(1.25) saturate(1.1); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; color: var(--strong); }
.brand-sub { font: 500 0.625rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-top: 0.35rem; }
.brand:hover { color: var(--strong); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-list { list-style: none; display: flex; gap: 0.15rem; padding: 0.25rem; border: 1px solid var(--line); border-radius: 999px; background: rgb(var(--tint) / 0.02); }
.nav-link { position: relative; display: block; padding: 0.45rem 0.95rem; font-size: 0.875rem; font-weight: 500; color: var(--muted); text-decoration: none; border-radius: 999px; transition: color 0.2s, background-color 0.2s; }
.nav-link:hover { color: var(--strong); background: rgb(var(--tint) / 0.05); }
.nav-link[aria-current] { color: var(--strong); background: rgb(var(--tint) / 0.08); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav-actions { display: flex; align-items: center; gap: 0.9rem; }
.nav-doc { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav-doc .icon { width: 1.05em; height: 1.05em; color: var(--rose-400); }
.nav-doc:hover { color: var(--strong); }

.nav-toggle { display: none; align-items: center; gap: 0.5rem; min-height: 42px; padding: 0.4rem 0.8rem; font: 500 0.875rem var(--font-sans); color: var(--strong); background: rgb(var(--tint) / 0.04); border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 72em) { .nav-doc span { display: none; } }
@media (max-width: 62em) {
  :root { --header-h: 62px; }
  .brand-mark { height: 32px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    display: none; flex-direction: column; align-items: stretch; gap: 1.5rem;
    overflow-y: auto; padding: 1.25rem var(--gutter) 2rem; background: rgb(var(--bg-rgb) / 0.97);
  }
  @supports (backdrop-filter: blur(8px)) { .site-nav { background: rgb(var(--bg-rgb) / 0.9); backdrop-filter: blur(18px); } }
  .site-nav.is-open { display: flex; animation: fade-in 0.2s var(--ease); }
  .nav-list { flex-direction: column; gap: 0; padding: 0; border: 0; background: none; border-radius: 0; }
  .nav-link { display: flex; justify-content: space-between; padding: 1rem 0.25rem; font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; color: var(--text); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link::after { content: "→"; color: var(--faint); font-family: var(--font-mono); font-size: 1rem; }
  .nav-link:hover, .nav-link[aria-current] { background: none; box-shadow: none; }
  .nav-link[aria-current] { color: var(--accent-text); }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .nav-doc { justify-content: center; min-height: 48px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
  .nav-doc span { display: inline; }
  .nav-actions .btn { min-height: 52px; font-size: 1rem; }
  body.nav-open { overflow: hidden; }
}
@keyframes fade-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { position: relative; display: grid; gap: 3rem; padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3rem, 2rem + 4vw, 5.5rem); align-items: center; }
@media (min-width: 62em) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; } }
.hero .chip { margin-bottom: 1.75rem; }
.hero h1 { max-width: 15ch; margin-bottom: 1.5rem; }
.hero .lead { margin-bottom: 2.25rem; }
.readouts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.75rem; border-top: 1px solid var(--line); max-width: 560px; }
.readouts li { padding: 1rem 1rem 0 0; }
.readouts li + li { padding-left: 1rem; border-left: 1px solid var(--line); }
.readouts strong { display: block; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; letter-spacing: -0.04em; color: var(--strong); line-height: 1.1; font-variant-numeric: tabular-nums; }
.readouts span { display: block; margin-top: 0.35rem; font: 500 0.6875rem/1.35 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }

/* Viewport frame with HUD corners */
.viewport { position: relative; border-radius: var(--radius-lg); padding: 10px; background: linear-gradient(180deg, rgb(var(--tint) / 0.06), rgb(var(--tint) / 0.015)); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.viewport-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.15rem 0.35rem 0.6rem; font: 500 0.6875rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.viewport-bar .lights { display: flex; gap: 6px; }
.viewport-bar .lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-2); }
.viewport-bar .lights i:first-child { background: var(--rose-400); border-color: transparent; }
.viewport-media { position: relative; overflow: hidden; border-radius: 10px; }
.viewport-media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
@media (max-width: 61.99em) { .viewport-media img { aspect-ratio: 16 / 11; } }
.viewport-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(var(--bg-rgb) / 0.75)); }
.hud-corner { position: absolute; width: 22px; height: 22px; border: 2px solid rgb(255 255 255 / 0.85); z-index: 2; }
.hud-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.hud-corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.hud-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.hud-label { position: absolute; left: 1.25rem; bottom: 1.1rem; z-index: 2; font: 500 0.6875rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgb(255 255 255 / 0.85); }
.scan-line { position: absolute; left: 0; right: 0; height: 2px; top: 20%; z-index: 2; background: linear-gradient(90deg, transparent, rgb(255 77 115 / 0.9), transparent); box-shadow: 0 0 18px 2px rgb(240 50 90 / 0.55); }
@media (prefers-reduced-motion: no-preference) { .scan-line { animation: scan 5.5s ease-in-out infinite; } }
@keyframes scan { 0%, 100% { top: 14%; opacity: 0; } 10% { opacity: 1; } 50% { top: 82%; opacity: 1; } 60% { opacity: 0; } }

.float-card {
  position: absolute; z-index: 3; right: -1.25rem; bottom: 3.25rem; width: min(260px, 70%);
  padding: 0.9rem 1rem; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgb(var(--bg-rgb) / 0.82); box-shadow: 0 24px 48px -16px rgb(0 0 0 / 0.8);
}
@supports (backdrop-filter: blur(8px)) { .float-card { background: rgb(var(--bg-rgb) / 0.65); backdrop-filter: blur(14px); } }
@media (max-width: 61.99em) { .float-card { right: 0.75rem; bottom: 2.75rem; } }
.float-card .fc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; font: 500 0.625rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.float-card .fc-row { display: flex; align-items: center; gap: 0.7rem; }
.float-card .fc-qr { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: #fff; color: #0a0b0e; }
.float-card .fc-qr .icon { width: 22px; height: 22px; }
.float-card .fc-title { font-size: 0.875rem; font-weight: 600; color: var(--strong); line-height: 1.2; }
.float-card .fc-sub { font: 400 0.6875rem var(--font-mono); color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.5rem; border-radius: 999px; font: 600 0.625rem/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.pill-ok { color: var(--ok); background: rgb(52 211 153 / 0.12); box-shadow: inset 0 0 0 1px rgb(52 211 153 / 0.3); }
.pill-warn { color: var(--warn); background: rgb(251 191 36 / 0.12); box-shadow: inset 0 0 0 1px rgb(251 191 36 / 0.3); }
.pill-bad { color: var(--bad); background: rgb(248 113 113 / 0.12); box-shadow: inset 0 0 0 1px rgb(248 113 113 / 0.3); }
.pill-ex { color: var(--ex); background: rgb(245 197 24 / 0.1); box-shadow: inset 0 0 0 1px rgb(245 197 24 / 0.3); }
.pill-dim { color: var(--muted); background: rgb(var(--tint) / 0.04); box-shadow: inset 0 0 0 1px var(--line-2); }

/* Ticker */
.ticker { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; }
.ticker-list { list-style: none; display: flex; flex: none; }
.ticker-list li { display: flex; align-items: center; gap: 1.25rem; padding: 1.1rem 1.25rem; white-space: nowrap; font: 500 0.8125rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ticker-list li::after { content: "◆"; font-size: 0.5rem; color: var(--rose-500); }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 48s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Cards (spotlight) ---------- */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity 0.3s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(240 50 90 / 0.13), transparent 45%);
}
.spot:hover::before { opacity: 1; }
.gborder::after {
  /* gradient hairline on hover */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgb(255 107 136 / 0.9), rgb(138 11 64 / 0.2) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.gborder:hover::after, .gborder:focus-within::after { opacity: 1; }

.group-label { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1rem; font: 500 var(--fs-xs)/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.group-label + .bento { margin-bottom: 3rem; }

.bento { list-style: none; display: grid; gap: 0.75rem; }
@media (min-width: 40em) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 66em) { .bento { grid-template-columns: repeat(4, 1fr); } .bento .feature { grid-column: span 2; grid-row: span 2; } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 0.7rem; min-height: 100%;
  padding: 1.5rem; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.card-icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  color: var(--strong); border-radius: 10px;
  background: linear-gradient(180deg, rgb(240 50 90 / 0.22), rgb(138 11 64 / 0.12));
  box-shadow: inset 0 0 0 1px rgb(255 107 136 / 0.3), 0 8px 20px -8px rgb(240 50 90 / 0.5);
}
.card-icon .icon { width: 21px; height: 21px; }
.card-index { font: 500 var(--fs-xs) var(--font-mono); letter-spacing: 0.06em; color: var(--faint); }
.card h3 { margin: 0; font-size: 1.125rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card p { margin: 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }
.card .link-arrow { margin-top: auto; padding-top: 0.75rem; font-size: var(--fs-sm); }
.card:hover .link-arrow .icon { transform: translateX(3px); }
.card.feature { padding: 1.75rem; }
.card.feature h3 { font-size: 1.5rem; }
.card.feature p { font-size: 0.9375rem; max-width: 46ch; }
.card .zone-art { margin: 0.5rem 0 0.5rem; }
@media (max-width: 39.99em) {
  .card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0.35rem 1rem; padding: 1.15rem; }
  .card-top { grid-row: span 2; margin: 0; }
  .card .card-index, .card .link-arrow, .card .zone-art { display: none; }
  .card.feature h3 { font-size: 1.125rem; }
}

/* Zone schematic (decorative) */
.zone-art { width: 100%; max-width: 440px; height: auto; }
.zone-art text { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; fill: var(--muted); }

/* ---------- Ex quick reference (interactive) ---------- */
.exref { display: grid; gap: 1rem; }
@media (min-width: 62em) { .exref { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.panel { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface), var(--bg-2)); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--line); font: 500 var(--fs-xs)/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.panel-body { padding: 1.25rem; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); }
.seg button { min-height: 32px; padding: 0.3rem 0.75rem; font: 500 0.75rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { color: var(--strong); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.zone-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 1.25rem; }
.zone-tab {
  display: grid; gap: 0.25rem; padding: 0.9rem 1rem; text-align: left; cursor: pointer;
  color: var(--text-2); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s, background-color 0.2s;
}
.zone-tab:hover { border-color: var(--line-2); }
.zone-tab b { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.03em; color: var(--strong); }
.zone-tab small { font: 500 0.625rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.zone-tab[aria-selected="true"] { border-color: rgb(255 107 136 / 0.6); background: linear-gradient(180deg, rgb(240 50 90 / 0.14), rgb(240 50 90 / 0.03)); box-shadow: var(--glow); }
.zone-detail h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.zone-detail p { color: var(--text-2); margin-bottom: 1rem; }
.zone-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.zone-meta div { padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.zone-meta dt { font: 500 0.625rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.25rem; }
.zone-meta dd { margin: 0; color: var(--strong); font-weight: 500; font-size: 0.9375rem; }
.likelihood { display: flex; gap: 4px; margin-top: 0.4rem; }
.likelihood i { flex: 1; height: 6px; border-radius: 2px; background: var(--surface-3); }
.likelihood i.on { background: var(--grad); }

.tclass { list-style: none; display: grid; gap: 0.45rem; }
.tclass li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 4.2rem; align-items: center; gap: 0.75rem; font: 500 0.8125rem var(--font-mono); color: var(--text-2); }
.tclass .bar { height: 8px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.tclass .bar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #8a0b40, #f0325a 70%, #ff9a5a); }
.tclass .tv { text-align: right; color: var(--strong); }
.gas-groups { list-style: none; display: grid; gap: 0.5rem; margin-top: 1.25rem; }
.gas-groups li { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: var(--fs-sm); }
.gas-groups b { min-width: 3rem; font: 600 0.8125rem var(--font-mono); color: var(--ex); }
.ref-note { margin: 1rem 0 0; font: 400 0.6875rem/1.5 var(--font-mono); color: var(--faint); letter-spacing: 0.02em; }

/* ---------- Lifecycle pipeline ---------- */
.pipeline { list-style: none; display: grid; gap: 0.75rem; counter-reset: step; }
@media (min-width: 56em) { .pipeline { grid-template-columns: repeat(5, 1fr); gap: 0; } }
.pipeline li { position: relative; padding: 1.5rem 1.25rem 1.5rem; border: 1px solid var(--line); background: var(--surface); }
@media (max-width: 55.99em) { .pipeline li { border-radius: var(--radius); } }
@media (min-width: 56em) {
  .pipeline li { border-right-width: 0; }
  .pipeline li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
  .pipeline li:last-child { border-right-width: 1px; border-radius: 0 var(--radius) var(--radius) 0; }
}
.pipeline li::before { counter-increment: step; content: "STEP " counter(step, decimal-leading-zero); display: block; font: 500 0.6875rem var(--font-mono); letter-spacing: 0.08em; color: var(--accent-text); margin-bottom: 1.5rem; }
.pipeline .node { position: absolute; top: 1.5rem; right: 1.25rem; width: 10px; height: 10px; border-radius: 50%; background: var(--rose-400); box-shadow: 0 0 0 4px rgb(240 50 90 / 0.18), 0 0 16px rgb(240 50 90 / 0.8); }
.pipeline .is-digital .node { background: var(--ok); box-shadow: 0 0 0 4px rgb(52 211 153 / 0.15), 0 0 16px rgb(52 211 153 / 0.7); }
.pipeline .is-digital::before { color: var(--ok); }
.pipeline h3 { font-size: 1.125rem; margin-bottom: 0.4rem; }
.pipeline p { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 0.75rem; }
.pipeline a { font: 500 0.75rem var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); text-decoration: none; }
.pipeline a:hover { color: var(--strong); text-decoration: underline; }
.pipeline li:hover { background: var(--surface-2); }

/* ---------- InspectX device demo ---------- */
.ix-demo { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 62em) { .ix-demo { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4rem; } }
.ix-steps { list-style: none; display: grid; gap: 0.5rem; }
.ix-step {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.25rem 0.9rem; width: 100%; padding: 1rem 1.1rem; text-align: left; cursor: pointer;
  font: inherit; color: var(--text-2); background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  transition: background-color 0.2s, border-color 0.2s;
}
.ix-step:hover { border-color: var(--line-2); background: rgb(var(--tint) / 0.02); }
.ix-step .n { grid-row: span 2; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 8px; font: 600 0.8125rem var(--font-mono); color: var(--muted); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.ix-step b { color: var(--strong); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.ix-step span:last-child { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.ix-step[aria-selected="true"] { border-color: rgb(255 107 136 / 0.5); background: linear-gradient(90deg, rgb(240 50 90 / 0.12), transparent 70%); }
.ix-step[aria-selected="true"] .n { color: var(--strong); background: var(--grad); box-shadow: 0 6px 18px -6px rgb(240 50 90 / 0.7); }
.ix-progress { height: 2px; margin-top: 0.6rem; background: var(--line); border-radius: 2px; overflow: hidden; grid-column: 2; }
.ix-progress i { display: block; height: 100%; width: 0; background: var(--grad); }
.ix-step[aria-selected="true"] .ix-progress i.run { animation: ix-progress var(--ix-dur, 5s) linear forwards; }
@keyframes ix-progress { to { width: 100%; } }

.device-wrap { position: relative; display: grid; place-items: center; padding: 1rem 0; }
.device-wrap::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(240 50 90 / 0.35), transparent 65%); filter: blur(40px); z-index: 0; }
.device {
  position: relative; z-index: 1; width: min(300px, 82vw); aspect-ratio: 9 / 18.5; padding: 10px;
  border-radius: 42px; background: linear-gradient(160deg, #2a2e38, #121419 40%, #0b0c10); box-shadow: inset 0 0 0 1px rgb(var(--tint) / 0.12), 0 40px 80px -30px rgb(0 0 0 / 0.9), 0 0 0 1px #000;
}
.device-screen { position: relative; height: 100%; overflow: hidden; border-radius: 33px; background: #0e1015; }
.device-notch { position: absolute; top: 9px; left: 50%; width: 86px; height: 24px; margin-left: -43px; border-radius: 20px; background: #000; z-index: 5; }
.app-bar { display: flex; align-items: center; justify-content: space-between; padding: 44px 18px 12px; font: 600 0.75rem var(--font-mono); letter-spacing: 0.08em; color: var(--strong); border-bottom: 1px solid var(--line); }
.app-bar img { height: 16px; width: auto; }
.app-bar .pill { font-size: 0.5625rem; }
.screen { position: absolute; inset: 82px 0 0 0; padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(10px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); pointer-events: none; }
.screen.is-active { opacity: 1; transform: none; }
.no-js .screen:first-child, .screen:only-child { opacity: 1; transform: none; }
.s-label { font: 500 0.5625rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.s-title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; color: var(--strong); line-height: 1.2; }
.s-field { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.75rem; color: var(--text-2); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.s-field.sel { border-color: rgb(255 107 136 / 0.6); background: rgb(240 50 90 / 0.1); color: var(--strong); }
.s-btn { margin-top: auto; padding: 11px; border-radius: 10px; text-align: center; font-size: 0.75rem; font-weight: 600; color: var(--strong); background: var(--grad); }
.s-row { display: flex; gap: 8px; }
.s-row > * { flex: 1; }
.qr-frame { position: relative; margin: 6px auto; width: 150px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px; background: #fff; }
.qr-frame svg { width: 108px; height: 108px; color: #0a0b0e; }
.qr-frame::before, .qr-frame::after { content: ""; position: absolute; inset: -10px; border: 2px solid var(--rose-400); border-radius: 18px; clip-path: polygon(0 0, 30% 0, 30% 4%, 4% 4%, 4% 30%, 0 30%, 0 70%, 4% 70%, 4% 96%, 30% 96%, 30% 100%, 70% 100%, 70% 96%, 96% 96%, 96% 70%, 100% 70%, 100% 30%, 96% 30%, 96% 4%, 70% 4%, 70% 0, 100% 0, 100% 100%, 0 100%); }
.qr-frame::after { display: none; }
.photo-box { height: 120px; border-radius: 12px; overflow: hidden; position: relative; background: #222; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; }
.photo-box .pill { position: absolute; left: 8px; bottom: 8px; background: rgb(0 0 0 / 0.6); }
.q { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.6875rem; color: var(--text-2); }
.q .yn { display: flex; gap: 6px; margin-top: 8px; }
.q .yn span { flex: 1; text-align: center; padding: 5px; border-radius: 6px; font: 600 0.625rem var(--font-mono); background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.q .yn .y { color: var(--ok); border-color: rgb(52 211 153 / 0.4); background: rgb(52 211 153 / 0.08); }
.q .yn .n { color: var(--bad); border-color: rgb(248 113 113 / 0.4); background: rgb(248 113 113 / 0.08); }
.q .note { margin-top: 8px; padding: 6px 8px; border-radius: 6px; border: 1px dashed rgb(248 113 113 / 0.4); color: var(--muted); font-size: 0.625rem; }
.outcome-big { display: grid; place-items: center; gap: 8px; padding: 18px 10px; border-radius: 14px; background: rgb(52 211 153 / 0.08); border: 1px solid rgb(52 211 153 / 0.3); text-align: center; }
.outcome-big .icon { width: 40px; height: 40px; color: var(--ok); }
.outcome-big b { font: 600 1rem var(--font-mono); letter-spacing: 0.12em; color: var(--ok); }
.sync { display: flex; align-items: center; gap: 8px; font: 500 0.625rem var(--font-mono); color: var(--muted); }
.sync .icon { width: 14px; height: 14px; color: var(--ok); }
.illustrative { margin-top: 0.9rem; text-align: center; font: 500 0.625rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

/* Manager dashboard mock */
.dash { border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.dash-top { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); background: var(--bg-2); font: 500 0.6875rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.dash-top .lights { display: flex; gap: 6px; }
.dash-top .lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.dash-top .lights i:first-child { background: var(--rose-400); }
.dash-top .url { flex: 1; padding: 0.3rem 0.6rem; border-radius: 6px; background: var(--surface-2); text-transform: none; letter-spacing: 0; }
.dash-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 320px; }
@media (max-width: 40em) { .dash-body { grid-template-columns: minmax(0, 1fr); } .dash-side { display: none; } }
.dash-side { padding: 1rem 0.75rem; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 0.25rem; }
.dash-side span { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.6rem; border-radius: 6px; font-size: 0.75rem; color: var(--muted); }
.dash-side span.on { color: var(--strong); background: var(--surface-3); }
.dash-side .icon { width: 14px; height: 14px; }
.dash-main { padding: 1rem; display: grid; gap: 0.75rem; align-content: start; }
.dash-sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
@media (min-width: 48em) { .dash-sites { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dash-site { padding: 0.75rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); }
.dash-site .s-label { display: block; margin-bottom: 0.5rem; }
.stack-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 2px; }
.stack-bar i { display: block; }
.stack-bar .p { background: var(--ok); } .stack-bar .r { background: var(--warn); } .stack-bar .d { background: var(--bad); }
.dash-legend { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.dash-table th { text-align: left; font: 500 0.625rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
.dash-table td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.dash-table td:first-child { font-family: var(--font-mono); color: var(--strong); }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }

/* ---------- Split / media ---------- */
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 62em) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } .split.wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .split.center { align-items: center; } }
.media-frame { position: relative; margin: 0; }
.media-frame img { width: 100%; border-radius: var(--radius); }
.media-frame.cover img { aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line); }
.media-frame.contain { padding: 1.5rem; border-radius: var(--radius-lg); background: radial-gradient(circle at 50% 40%, #fff, #e9eaee); }
.media-frame.contain img { aspect-ratio: 4 / 3; object-fit: contain; }

.check-list { list-style: none; display: grid; gap: 0.5rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-2); }
.check-list .icon { width: 1.1rem; height: 1.1rem; color: var(--ok); margin-top: 0.2rem; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { font: 500 0.75rem var(--font-mono); letter-spacing: 0.04em; padding: 0.45rem 0.8rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); background: rgb(var(--tint) / 0.02); }

.spec { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0; margin: 0; font-size: var(--fs-sm); }
.spec dt, .spec dd { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.spec dt:first-of-type, .spec dd:first-of-type { border-top: 0; padding-top: 0; }
.spec dt { font: 500 0.6875rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); padding-top: 0.85rem; }
.spec dt:first-of-type { padding-top: 0.15rem; }
.spec dd { margin: 0; color: var(--strong); font-weight: 500; }

/* ---------- Page header (inner pages) ---------- */
.page-head { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head .container { position: relative; padding-block: clamp(2.75rem, 2rem + 4vw, 5.5rem); }
.page-head h1 { max-width: 20ch; margin-bottom: 1.1rem; }
.page-head .lead { margin: 0; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.75rem; font: 500 0.75rem var(--font-mono); letter-spacing: 0.04em; color: var(--faint); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line-3); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--strong); }
.breadcrumb [aria-current] { color: var(--text-2); }
.page-head-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.5rem; color: var(--strong); border-radius: 14px; background: var(--grad); box-shadow: 0 12px 32px -10px rgb(240 50 90 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.3); }
.page-head-icon .icon { width: 26px; height: 26px; }
.page-head-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.page-head-row .eyebrow { margin: 0; }

/* ---------- Service detail ---------- */
.detail-grid { display: grid; gap: 3rem; }
@media (min-width: 62em) { .detail-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 4.5rem; } }
.detail-grid h2 { font-size: 1.5rem; margin-top: 3rem; display: flex; align-items: center; gap: 0.75rem; }
.detail-grid h2 .num { font: 500 0.75rem var(--font-mono); color: var(--accent-text); letter-spacing: 0.06em; }
.detail-grid .prose .lead { color: var(--text); }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1rem; align-self: start; }
.cta-card { position: relative; overflow: hidden; padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid rgb(255 107 136 / 0.3); background: radial-gradient(120% 80% at 100% 0%, rgb(240 50 90 / 0.25), transparent 60%), var(--surface); }
.cta-card h2 { color: var(--strong); font-size: 1.25rem; margin: 0 0 0.5rem !important; display: block !important; }
.cta-card p { font-size: var(--fs-sm); color: var(--text-2); }
.cta-card .btn { width: 100%; }
.contact-lines { list-style: none; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: 0.6rem; font-size: var(--fs-sm); }
.contact-lines a { color: var(--strong); text-decoration: none; display: inline-flex; gap: 0.55rem; align-items: center; }
.contact-lines a:hover { color: var(--accent-text); }
.contact-lines .icon { width: 1em; height: 1em; color: var(--rose-400); }
.related-list { list-style: none; }
.related-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 1.25rem; border-top: 1px solid var(--line); color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); }
.related-list li:first-child a { border-top: 0; }
.related-list a:hover { background: rgb(var(--tint) / 0.03); color: var(--strong); }
.related-list .icon { width: 1rem; height: 1rem; color: var(--faint); }

.pager { display: grid; gap: 0.75rem; }
@media (min-width: 40em) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { position: relative; display: block; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--strong); transition: border-color 0.2s; }
.pager a:hover { border-color: var(--line-3); }
.pager small { display: block; font: 500 0.6875rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.35rem; }
.pager span { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; }
.pager .next { text-align: right; }

/* Service index rows */
.service-rows { list-style: none; display: grid; gap: 0.6rem; }
.service-row { position: relative; display: grid; gap: 0.75rem 2rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 0.2s, background-color 0.2s; }
@media (min-width: 52em) { .service-row { grid-template-columns: 44px 3.5rem minmax(0, 4fr) minmax(0, 5fr) auto; align-items: center; } }
.service-row .idx { font: 500 0.75rem var(--font-mono); color: var(--faint); }
@media (max-width: 51.99em) { .service-row .idx { position: absolute; top: 1.6rem; right: 1.5rem; } }
.service-row h3 { margin: 0; font-size: 1.1875rem; }
.service-row h3 a { color: var(--strong); text-decoration: none; }
.service-row h3 a::after { content: ""; position: absolute; inset: 0; }
.service-row p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.service-row .link-arrow { white-space: nowrap; }
.service-row:hover { border-color: var(--line-3); background: var(--surface-2); }
.service-row:hover .link-arrow .icon { transform: translateX(3px); }

/* ---------- InspectX page ---------- */
.ix-hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 62em) { .ix-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; } }
.ix-logo { width: auto; height: 52px; margin-bottom: 1.75rem; }
.ix-hero-logo { width: 100%; max-width: 320px; height: auto; margin-inline: auto; filter: drop-shadow(0 0 40px rgb(240 50 90 / 0.35)); }

.feature-grid { list-style: none; display: grid; gap: 0.75rem; }
@media (min-width: 40em) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-grid li { position: relative; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.feature-grid .card-icon { margin-bottom: 1.1rem; }
.feature-grid h3 { font-size: 1.0625rem; margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.feature-grid p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

.disciplines { list-style: none; display: grid; gap: 0.5rem; }
@media (min-width: 36em) { .disciplines { grid-template-columns: 1fr 1fr; } }
.disciplines li { display: flex; gap: 0.75rem; align-items: center; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-weight: 500; font-size: 0.9375rem; color: var(--strong); }
.disciplines .icon { width: 1.1rem; height: 1.1rem; color: var(--rose-400); }
.disciplines small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }

.outcomes { list-style: none; display: grid; gap: 0.75rem; }
@media (min-width: 48em) { .outcomes { grid-template-columns: repeat(3, 1fr); } }
.outcome { position: relative; overflow: hidden; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.outcome::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; }
.outcome h3 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; font: 600 1rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.outcome p { margin: 0; font-size: var(--fs-sm); color: var(--text-2); }
.outcome.pass::before { background: var(--ok); box-shadow: 0 0 20px var(--ok); } .outcome.pass h3 { color: var(--ok); }
.outcome.repaired::before { background: var(--warn); box-shadow: 0 0 20px var(--warn); } .outcome.repaired h3 { color: var(--warn); }
.outcome.defect::before { background: var(--bad); box-shadow: 0 0 20px var(--bad); } .outcome.defect h3 { color: var(--bad); }

.portal-list { list-style: none; display: grid; gap: 0.75rem; }
@media (min-width: 48em) { .portal-list { grid-template-columns: 1fr 1fr; } }
.portal-list li { padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.portal-list h3 { font-size: 1.0625rem; display: flex; gap: 0.6rem; align-items: center; margin-bottom: 0.45rem; }
.portal-list .icon { color: var(--rose-400); }
.portal-list p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

.quote-block { position: relative; margin: 0; padding: 1.5rem 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(100% 120% at 0% 0%, rgb(240 50 90 / 0.18), transparent 60%), var(--surface); }
.quote-block p { margin: 0; font-size: 1.125rem; letter-spacing: -0.01em; color: var(--strong); }
.quote-block cite { display: block; margin-top: 0.75rem; font: 500 0.6875rem var(--font-mono); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.badge { display: inline-block; padding: 0.15rem 0.45rem; font: 600 0.625rem/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn); background: rgb(251 191 36 / 0.1); border-radius: 4px; box-shadow: inset 0 0 0 1px rgb(251 191 36 / 0.3); }

/* ---------- Downloads ---------- */
.doc-list { list-style: none; display: grid; gap: 0.6rem; }
.doc-link { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--strong); transition: border-color 0.2s, background-color 0.2s; }
.doc-link:hover { border-color: rgb(255 107 136 / 0.5); color: var(--strong); background: var(--surface-2); }
.doc-link .icon { width: 1.4rem; height: 1.4rem; color: var(--rose-400); }
.doc-link strong { display: block; font-weight: 600; font-size: 0.9375rem; }
.doc-link small { display: block; color: var(--muted); font: 400 0.6875rem var(--font-mono); letter-spacing: 0.02em; margin-top: 0.15rem; }
.doc-link .arrow { margin-left: auto; width: 1.1rem; height: 1.1rem; color: var(--faint); }

/* ---------- Gallery ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.filter-btn { min-height: 40px; padding: 0.45rem 1rem; font: 500 0.75rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; }
.filter-btn:hover { color: var(--strong); border-color: var(--line-3); }
.filter-btn[aria-pressed="true"] { color: var(--strong); background: var(--grad); border-color: transparent; box-shadow: 0 8px 24px -10px rgb(240 50 90 / 0.7); }
.filter-btn .count { margin-left: 0.45rem; opacity: 0.6; }
.gallery { list-style: none; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48em) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 72em) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery li[hidden] { display: none; }
.gallery figure { margin: 0; }
.gallery a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.5s var(--ease), filter 0.3s; filter: saturate(0.92); }
.gallery a:hover img { transform: scale(1.04); filter: saturate(1.05); }
.gallery a::after { content: "+"; position: absolute; right: 0.6rem; top: 0.6rem; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font: 500 1rem var(--font-mono); color: var(--strong); background: rgb(var(--bg-rgb) / 0.6); opacity: 0; transition: opacity 0.2s; }
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; }
.gallery figcaption { padding: 0.6rem 0.1rem 0; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.35; }
.gallery-preview { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48em) { .gallery-preview { grid-template-columns: repeat(4, 1fr); } }

.lightbox { width: min(1100px, 100vw - 2rem); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--bg); color: var(--strong); overflow: hidden; }
.lightbox::backdrop { background: rgb(4 4 6 / 0.88); backdrop-filter: blur(6px); }
.lightbox-inner { display: grid; grid-template-rows: minmax(0, 1fr) auto; max-height: calc(100dvh - 2rem); }
.lightbox img { width: 100%; height: 100%; max-height: calc(100dvh - 7rem); object-fit: contain; background: #000; }
.lightbox-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; font: 500 0.75rem var(--font-mono); letter-spacing: 0.04em; border-top: 1px solid var(--line); }
.lightbox-bar p { margin: 0 auto 0 0; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; color: var(--strong); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; }
.icon-btn:hover { background: var(--surface-3); }
[data-prev] .icon { transform: rotate(180deg); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 62em) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; } }
.contact-cards { list-style: none; display: grid; gap: 0.6rem; }
.contact-cards > li { padding: 1.2rem 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-cards h3 { font: 500 0.6875rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.6rem; }
.contact-cards .name { font-weight: 600; color: var(--strong); margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.contact-line { display: flex; align-items: center; gap: 0.6rem; padding: 0.2rem 0; color: var(--text-2); text-decoration: none; font-size: 0.9375rem; overflow-wrap: anywhere; }
.contact-line .icon { width: 1rem; height: 1rem; color: var(--rose-400); }
a.contact-line:hover { color: var(--strong); }

.form { position: relative; display: grid; gap: 1.15rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: radial-gradient(90% 60% at 100% 0%, rgb(240 50 90 / 0.12), transparent 60%), var(--surface); box-shadow: var(--shadow); }
.form-row { display: grid; gap: 1.15rem; }
@media (min-width: 40em) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field label { font: 500 0.75rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.field .opt { color: var(--faint); text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem;
  font: inherit; font-size: 1rem; color: var(--strong); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239599a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 1.05rem; }
.field select option, .field select optgroup { background: var(--surface); color: var(--strong); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rose-400); box-shadow: 0 0 0 3px rgb(240 50 90 / 0.22); }
.field [aria-invalid="true"] { border-color: var(--bad); }
.field-error { font-size: var(--fs-sm); color: var(--bad); }
.field-error:empty { display: none; }
.checkbox { display: flex; gap: 0.75rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-2); }
.field .checkbox { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); }
.checkbox input { width: 20px; height: 20px; min-height: 0; margin: 0.15rem 0 0; flex: none; accent-color: var(--rose-400); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 0.9rem 1rem; border-radius: var(--radius-sm); font-size: 0.9375rem; }
.form-status[hidden] { display: none; }
.form-status.is-success { background: rgb(52 211 153 / 0.1); color: #a7f3d0; border: 1px solid rgb(52 211 153 / 0.35); }
.form-status.is-error { background: rgb(248 113 113 / 0.1); color: #fecaca; border: 1px solid rgb(248 113 113 / 0.35); }
.form-status.is-info { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line-2); }
.form-status a { color: var(--strong); }
.form-foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.form-foot p { margin: 0; font-size: var(--fs-xs); color: var(--muted); max-width: 46ch; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--line); }
.cta-band .container { position: relative; padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.cta-inner { position: relative; display: grid; gap: 2rem; align-items: center; padding: clamp(1.75rem, 1.25rem + 2.5vw, 3.5rem); border-radius: 24px; border: 1px solid rgb(255 107 136 / 0.3); overflow: hidden;
  background: radial-gradient(70% 120% at 100% 0%, rgb(240 50 90 / 0.45), transparent 60%), radial-gradient(60% 120% at 0% 100%, rgb(110 3 52 / 0.6), transparent 60%), var(--surface); }
.cta-inner::before { content: ""; position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(to right, rgb(var(--tint) / 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgb(var(--tint) / 0.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000 70%); }
.cta-inner > * { position: relative; }
@media (min-width: 56em) { .cta-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; } }
.cta-band h2 { margin: 0 0 0.6rem; }
.cta-band p { margin: 0; max-width: 56ch; color: var(--text-2); }
.cta-band a:not(.btn) { color: var(--strong); }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 2.5rem + 2vw, 4.5rem) 2.5rem; }
@media (min-width: 40em) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3fr); gap: 3rem; } }
.footer-about { margin: 1.25rem 0 1.5rem; max-width: 38ch; line-height: 1.6; }
.footer-title { font: 500 0.6875rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }
.site-footer a:not(.btn):not(.brand) { color: var(--text-2); text-decoration: none; }
.site-footer a:not(.btn):not(.brand):hover { color: var(--strong); }
.site-footer .muted { color: var(--faint); }
.footer-contact li { line-height: 1.5; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; padding-block: 1.5rem; border-top: 1px solid var(--line); font: 400 0.6875rem var(--font-mono); letter-spacing: 0.02em; color: var(--faint); }
.footer-legal p { margin: 0; }
.footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-word { padding-inline: var(--gutter); margin: 0 auto -0.18em; max-width: calc(var(--container) + 2 * var(--gutter)); font-weight: 700; font-size: clamp(2.5rem, 10vw, 9.5rem); letter-spacing: -0.06em; line-height: 0.8; white-space: nowrap; text-align: center;
  background: linear-gradient(180deg, rgb(var(--tint) / 0.09), rgb(var(--tint) / 0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 47.99em) {
  .mobile-bar {
    position: fixed; left: 0.75rem; right: 0.75rem; bottom: max(0.75rem, env(safe-area-inset-bottom)); z-index: 40;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.5rem; padding: 0.5rem; border-radius: 14px;
    background: rgb(var(--bg-rgb) / 0.9); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.9);
    transform: translateY(150%); transition: transform 0.35s var(--ease);
  }
  @supports (backdrop-filter: blur(8px)) { .mobile-bar { background: rgb(var(--bg-rgb) / 0.7); backdrop-filter: blur(16px); } }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { min-height: 46px; padding-inline: 0.75rem; }
  body.nav-open .mobile-bar { display: none; }
  .site-footer { padding-bottom: 5rem; }
}

/* ---------- Misc ---------- */
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin: 2rem 0 0; }
.mt-3 { margin-top: 3rem; }
.notice { padding: 1rem 1.15rem; border: 1px solid rgb(245 197 24 / 0.3); background: rgb(245 197 24 / 0.06); border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--text-2); }
.legal-doc { max-width: 72ch; }
.legal-doc h2 { font-size: 1.375rem; margin-top: 2.5rem; }
.error-code { font: 600 clamp(5rem, 3rem + 10vw, 9rem)/1 var(--font-mono); letter-spacing: -0.06em; margin-bottom: 1rem; }

/* Reveal on scroll — progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .cta-band, .nav-toggle, .mobile-bar, .ticker { display: none !important; }
}
.stack .viewport-media img { aspect-ratio: 16 / 9; }
@media (max-width: 30em) {
  .zone-tab { padding: 0.7rem 0.75rem; }
  .zone-tab b { font-size: 1.05rem; }
  .zone-meta { grid-template-columns: 1fr; }
  .readouts strong { font-size: 1.35rem; }
}

/* ==========================================================================
   Light-theme refinements & industry components
   ========================================================================== */
.btn-primary, .btn-primary:hover, .page-head-icon, .filter-btn[aria-pressed="true"],
.ix-step[aria-selected="true"] .n, .s-btn, .gallery a::after { color: #fff; }
.card-icon { color: var(--icon-on-tint); }
.eyebrow { font-weight: 600; font-stretch: 100%; letter-spacing: 0.12em; }
.chip, .group-label, .card-index, .panel-head, .breadcrumb, .spec dt, .field label, .pill, .filter-btn,
.readouts span, .footer-title, .footer-legal, .pipeline li::before, .pipeline a, .s-label, .zone-tab small, .zone-meta dt { font-stretch: 100%; }
.readouts strong, .zone-tab b, .pager span, .error-code { font-family: var(--font-display); font-stretch: 88%; }
.site-header { background: rgb(var(--bg-rgb) / 0.85); }
.brand-mark { filter: none; }
.site-footer .brand-mark, .theme-dark .brand-mark { filter: brightness(1.35) saturate(1.1); }
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.viewport { background: #fff; }
.theme-dark .viewport { background: var(--surface); }
.section-alt { background: var(--bg-2); }
.theme-light { background: var(--bg); color: var(--text-2); }
main.theme-dark { background: var(--bg); }

/* Brand watermark — the Brain Industries mark used as a large background graphic */
.brand-watermark { position: absolute; z-index: -1; pointer-events: none; width: auto; opacity: 0.07; }
.hero .brand-watermark { height: 130%; right: -6%; top: -15%; }
.theme-dark .brand-watermark { opacity: 0.12; height: 120%; right: -4%; top: -10%; }
.cta-inner .brand-watermark { opacity: 0.18; height: 160%; right: 2%; top: -30%; z-index: 0; }

/* Wine ticker band */
.ticker { background: var(--wine-700); border-color: var(--wine-700); }
.ticker-list li { color: rgb(255 255 255 / 0.85); font-stretch: 100%; font-weight: 600; letter-spacing: 0.1em; }
.ticker-list li::after { color: rgb(255 255 255 / 0.5); }

/* Where hazardous areas occur */
.env-grid { list-style: none; display: grid; gap: 0.75rem; }
@media (min-width: 40em) { .env-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .env-grid { grid-template-columns: repeat(3, 1fr); } }
.env { position: relative; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.env::before { content: ""; position: absolute; left: 0; top: 1.4rem; bottom: 1.4rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.env h3 { font-size: 1.125rem; margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.6rem; }
.env h3 .icon { color: var(--wine-600); }
.env p { margin: 0 0 0.75rem; font-size: var(--fs-sm); color: var(--muted); }
.env .tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* Standards framework */
.std-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.std-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.std-wrap .std-table { border: 0; min-width: 640px; }
.std-table th { text-align: left; padding: 0.85rem 1.1rem; background: var(--bg-2); font: 600 0.6875rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.std-table td { padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.std-table tr:last-child td { border-bottom: 0; }
.std-table td:first-child { font-family: var(--font-display); font-stretch: 88%; font-weight: 650; font-size: 1rem; color: var(--strong); white-space: nowrap; }
.std-table a { white-space: nowrap; }
/* backdrop-filter on the header would trap the fixed mobile menu — disable it while open */
body.nav-open .site-header { backdrop-filter: none; background: rgb(var(--bg-rgb)); }
@media (max-width: 62em) { .site-nav, .site-nav.is-open { background: rgb(var(--bg-rgb)); backdrop-filter: none; } }

/* Clean dark hero */
.hero.theme-dark { background: radial-gradient(70% 90% at 92% 10%, rgb(138 11 64 / 0.35), transparent 60%), linear-gradient(180deg, #0b0c10, #111218); border-bottom: 0; }
.hero.theme-dark .viewport { padding: 0; border: 0; background: none; box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.9); }
.hero.theme-dark .viewport-media { border-radius: var(--radius-lg); }
.hero.theme-dark .viewport-media::after { background: linear-gradient(180deg, transparent 65%, rgb(0 0 0 / 0.35)); }
.hero .fc-qr { background: var(--grad); color: #fff; }
.hero .float-card { bottom: 2rem; }
.theme-dark .readouts { border-color: var(--line-2); }
.theme-dark .eyebrow .num::after { color: var(--line-3); }
.section-tight { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
@media (min-width: 64em) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-grid li { background: var(--surface); }

/* ==========================================================================
   v4 — light hero with animated Ex mark, service explorer, motion
   ========================================================================== */
.hero.theme-light { background: radial-gradient(60% 70% at 78% 45%, rgb(245 197 24 / 0.16), transparent 65%), linear-gradient(180deg, #fff, var(--bg)); border-bottom: 0; }
.hero.theme-light .hero-grid { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.section-ix { background: radial-gradient(60% 80% at 100% 0%, rgb(168 21 64 / 0.4), transparent 60%), var(--bg); }

/* Ex stage */
.ex-stage { position: relative; aspect-ratio: 1; width: min(100%, 520px); margin-inline: auto; display: grid; place-items: center; }
.ex-core { position: relative; z-index: 2; width: 52%; filter: drop-shadow(0 30px 40px rgb(17 18 20 / 0.25)); }
.ex-mark { width: 100%; height: auto; overflow: visible; }
.ex-ring { position: absolute; inset: 0; margin: auto; width: 72%; height: auto; overflow: visible; }
.ex-ring polygon { fill: none; stroke: var(--wine-600); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ex-ring.r1 { width: 72%; opacity: 0.55; }
.ex-ring.r2 { width: 90%; opacity: 0.3; }
.ex-ring.r2 polygon { stroke-dasharray: 6 8; }
.ex-ring.r3 { width: 108%; opacity: 0.15; }
.ex-tag {
  position: absolute; z-index: 3; display: inline-flex; align-items: baseline; gap: 0.45rem; padding: 0.55rem 0.85rem;
  font: 500 0.75rem var(--font-sans); color: var(--muted); white-space: nowrap;
  background: rgb(255 255 255 / 0.9); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 30px -12px rgb(17 18 20 / 0.25);
}
.ex-tag b { font: 650 0.8125rem var(--font-display); font-stretch: 88%; color: var(--strong); }
.ex-tag.t1 { top: 12%; left: -2%; } .ex-tag.t2 { top: 22%; right: -4%; } .ex-tag.t3 { bottom: 18%; left: 0; } .ex-tag.t4 { bottom: 8%; right: 2%; }
@media (max-width: 61.99em) { .ex-stage { width: min(100%, 420px); } .ex-tag { font-size: 0.6875rem; } .ex-tag.t1 { left: 0; } .ex-tag.t2 { right: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .ex-ring.r1 { animation: spin 40s linear infinite; }
  .ex-ring.r2 { animation: spin 60s linear infinite reverse; }
  .ex-ring.r3 { animation: pulse-ring 6s ease-in-out infinite; }
  .ex-core { animation: float 6s ease-in-out infinite; }
  .ex-tag { animation: float 7s ease-in-out infinite; }
  .ex-tag.t2 { animation-delay: -2s; } .ex-tag.t3 { animation-delay: -4s; } .ex-tag.t4 { animation-delay: -5.5s; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse-ring { 0%, 100% { transform: scale(0.96); opacity: 0.08; } 50% { transform: scale(1.03); opacity: 0.22; } }

/* Service explorer */
.sx { display: grid; gap: 1rem; }
@media (min-width: 64em) { .sx { grid-template-columns: 320px minmax(0, 1fr); gap: 1.25rem; } }
.sx-tabs { display: flex; gap: 0.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.25rem; scrollbar-width: none; }
.sx-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 64em) { .sx-tabs { flex-direction: column; overflow: visible; } }
.sx-tab {
  position: relative; flex: none; scroll-snap-align: start; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 0.75rem;
  min-width: 260px; padding: 0.8rem 0.9rem; text-align: left; cursor: pointer; overflow: hidden;
  font: inherit; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
@media (min-width: 64em) { .sx-tab { min-width: 0; } }
.sx-tab:hover { border-color: var(--line-3); transform: translateX(2px); }
.sx-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--muted); background: var(--surface-2); transition: all 0.25s var(--ease); }
.sx-ic .icon { width: 18px; height: 18px; }
.sx-name { font-weight: 600; font-size: 0.9375rem; color: var(--text); line-height: 1.25; }
.sx-code { font: 600 0.6875rem var(--font-mono); letter-spacing: 0.08em; color: var(--faint); }
.sx-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.sx-bar i { display: block; height: 100%; width: 0; background: var(--grad); }
.sx-tab[aria-selected="true"] { border-color: rgb(255 107 136 / 0.5); background: linear-gradient(90deg, rgb(240 50 90 / 0.14), var(--surface) 70%); }
.sx-tab[aria-selected="true"] .sx-ic { color: #fff; background: var(--grad); box-shadow: 0 8px 20px -8px rgb(240 50 90 / 0.8); }
.sx-tab[aria-selected="true"] .sx-bar i.run { animation: ix-progress var(--sx-dur, 7s) linear forwards; }
.sx-stage { position: relative; min-height: 460px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: radial-gradient(80% 100% at 100% 0%, rgb(138 11 64 / 0.28), transparent 60%), var(--surface); overflow: hidden; }
.sx-panel { display: grid; gap: 1.5rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); height: 100%; }
@media (min-width: 52em) { .sx-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 2.5rem; } }
.sx-panel h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin-bottom: 0.75rem; }
.sx-lead { color: var(--text-2); font-size: 1.0625rem; }
.sx-points { list-style: none; display: grid; gap: 0.55rem; margin: 1.25rem 0 1.75rem; }
.sx-points li { display: flex; gap: 0.6rem; font-size: var(--fs-sm); color: var(--text-2); }
.sx-points .icon { width: 1.05rem; height: 1.05rem; color: var(--ok); margin-top: 0.15rem; }
.sx-media { position: relative; border-radius: var(--radius); overflow: hidden; }
.sx-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); }
.sx-media.contain { background: radial-gradient(circle at 50% 40%, #fff, #e6e4e0); }
.sx-media.contain img { object-fit: contain; padding: 1.25rem; }
.sx-art { display: grid; place-items: center; aspect-ratio: 4 / 3.4; border-radius: var(--radius); background: radial-gradient(circle at 50% 50%, rgb(240 50 90 / 0.18), transparent 65%), var(--bg-2); border: 1px solid var(--line); }
.sx-art .zone-art { width: 92%; }
.sx-art-icon .icon { width: 38%; height: auto; color: var(--rose-400); stroke-width: 1; filter: drop-shadow(0 0 30px rgb(240 50 90 / 0.5)); }
@media (prefers-reduced-motion: no-preference) {
  .sx-panel.is-active .sx-copy > * { animation: rise 0.6s var(--ease) both; }
  .sx-panel.is-active .sx-copy > :nth-child(2) { animation-delay: 0.05s; }
  .sx-panel.is-active .sx-copy > :nth-child(3) { animation-delay: 0.1s; }
  .sx-panel.is-active .sx-copy > :nth-child(4) { animation-delay: 0.15s; }
  .sx-panel.is-active .sx-copy > :nth-child(5) { animation-delay: 0.2s; }
  .sx-panel.is-active .sx-media { animation: zoom-in 0.8s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

/* Staggered reveal */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { transition-delay: var(--d, 0ms); }
  .card, .env, .feature-grid li, .portal-list li, .pipeline li { transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
  .env:hover, .feature-grid li:hover, .portal-list li:hover { transform: translateY(-3px); border-color: var(--line-3); box-shadow: 0 18px 40px -24px rgb(0 0 0 / 0.6); }
}
.readouts strong span { display: inline; margin: 0; font: inherit; letter-spacing: inherit; text-transform: none; color: inherit; }

/* ==========================================================================
   v5 — honeycomb service selector with bespoke symbols
   ========================================================================== */
.sym { width: 1.5em; height: 1.5em; flex: none; }
.page-head-icon .sym { width: 30px; height: 30px; }
.sx { grid-template-columns: 1fr; align-items: center; }
@media (min-width: 64em) { .sx { grid-template-columns: auto minmax(0, 1fr); gap: 3rem; } }
.hive-wrap { --hw: clamp(76px, 22vw, 136px); --hh: calc(var(--hw) * 0.866); --gap: 6px; display: grid; justify-items: center; gap: 1.25rem; }
.hive { display: flex; padding-bottom: calc(var(--hh) / 2); }
.hive-col { display: flex; flex-direction: column; gap: var(--gap); }
.hive-col + .hive-col { margin-left: calc(var(--hw) * -0.25 + var(--gap)); }
.hive-col:nth-child(even) { transform: translateY(calc(var(--hh) / 2 + var(--gap) / 2)); }
.hx {
  --edge: var(--line-2); --fill: var(--surface); --ink: var(--muted);
  position: relative; width: var(--hw); height: var(--hh); padding: 0; border: 0; cursor: pointer; background: var(--edge);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease), filter 0.3s var(--ease);
}
.hx-in {
  position: absolute; inset: 1.5px; display: grid; place-items: center; align-content: center; gap: 0.35rem; padding: 0 18%;
  background: var(--fill); color: var(--ink); clip-path: inherit; transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.hx-sym { width: 38%; height: auto; transition: transform 0.4s var(--ease); }
.hx-label { font: 600 0.6875rem/1.15 var(--font-display); font-stretch: 92%; letter-spacing: 0.01em; text-align: center; color: var(--text-2); }
@media (max-width: 40em) { .hx-label { display: none; } .hx-sym { width: 44%; } }
.hx-product { --ink: var(--ex); }
.hx-service { --ink: var(--rose-400); }
.hx:hover { --edge: var(--line-3); transform: scale(1.04); z-index: 2; }
.hx:hover .hx-sym { transform: scale(1.1); }
.hx:focus-visible { outline: none; --edge: var(--focus); }
.hx[aria-selected="true"] { --edge: var(--rose-400); filter: drop-shadow(0 10px 24px rgb(240 50 90 / 0.45)); z-index: 3; }
.hx-service[aria-selected="true"] .hx-in { background: var(--grad); color: #fff; }
.hx-product[aria-selected="true"] { --edge: var(--ex); filter: drop-shadow(0 10px 24px rgb(245 197 24 / 0.35)); }
.hx-product[aria-selected="true"] .hx-in { background: linear-gradient(135deg, #ffd84a, #f5c518 55%, #d9a800); color: #111214; }
.hx[aria-selected="true"] .hx-label { color: inherit; }
.hive-legend { display: flex; align-items: center; gap: 0.5rem; margin: 0; font: 600 0.6875rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.lg { width: 12px; height: 10px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.lg-service { background: var(--rose-400); } .lg-product { background: var(--ex); margin-left: 0.75rem; }
@media (prefers-reduced-motion: no-preference) {
  .hx[aria-selected="true"] .hx-sym { animation: sym-pop 0.5s var(--ease); }
}
@keyframes sym-pop { 0% { transform: scale(0.7) rotate(-8deg); } 60% { transform: scale(1.12); } 100% { transform: none; } }

.sx-stage { min-height: 440px; }
.sx-panel { position: relative; }
.sx-panel .sx-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--line); }
.sx-panel .sx-bar i { display: block; height: 100%; width: 0; background: var(--grad); }
.sx-panel .sx-bar i.run { animation: ix-progress var(--sx-dur, 7s) linear forwards; }
.sx-kicker { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1rem; font: 600 0.75rem var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sx-badge { display: grid; place-items: center; width: 46px; height: 40px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.sx-badge .sym { width: 22px; height: 22px; }
.sx-badge-service { background: var(--grad); color: #fff; }
.sx-badge-product { background: var(--ex); color: #111214; }
.sx-art-icon .sym { width: 42%; height: auto; color: var(--rose-400); stroke-width: 1.6; filter: drop-shadow(0 0 30px rgb(240 50 90 / 0.5)); }
/* Phones: no yellow glow behind the hero */
@media (max-width: 61.99em) { .hero.theme-light { background: linear-gradient(180deg, #fff, var(--bg)); } }
/* Light sections inside the dark body */
.theme-light.section-alt { background: var(--bg-2); }
.theme-light .env, .theme-light .feature-grid li, .theme-light .pipeline li { box-shadow: 0 1px 2px rgb(17 18 20 / 0.04); }
/* InspectX page: rugged handheld device mock-up */
.ix-device { width: min(100%, 300px); height: auto; margin-inline: auto; filter: drop-shadow(0 40px 50px rgb(0 0 0 / 0.55)) drop-shadow(0 0 60px rgb(240 50 90 / 0.18)); }
@media (prefers-reduced-motion: no-preference) { .ix-device { animation: float 7s ease-in-out infinite; } }
@media (max-width: 61.99em) { .ix-device { width: min(70%, 240px); } }

/* ==========================================================================
   v6 — taller header, back-to-top, InspectX brand scope
   ========================================================================== */
:root { --header-h: 84px; }
.brand-mark { height: 50px; }
.brand-name { font-size: 1.25rem; }
.brand-sub { font-size: 0.6875rem; }
.nav-link { padding: 0.55rem 1.05rem; font-size: 0.9375rem; }
.site-header { box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgb(17 18 20 / 0.35); }
@media (max-width: 62em) { :root { --header-h: 72px; } .brand-mark { height: 42px; } .brand-name { font-size: 1.125rem; } }

.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 45; display: grid; place-items: center; width: 48px; height: 48px;
  color: #fff; background: var(--grad); border-radius: 50%; text-decoration: none;
  box-shadow: 0 12px 28px -10px rgb(110 3 52 / 0.7); opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.to-top .icon { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: #fff; transform: translateY(-2px); }
@media (max-width: 47.99em) { .to-top { right: 1rem; bottom: 5.5rem; width: 44px; height: 44px; } }
body.nav-open .to-top { display: none; }

/* InspectX brand (amber) — InspectX page body and the homepage InspectX section */
.page-inspectx main, .section-ix {
  --ix-amber: #f7a100; --ix-amber-2: #ffc23d;
  --grad: linear-gradient(135deg, #ffd25e 0%, #f7a100 50%, #d98200 100%);
  --grad-text: linear-gradient(100deg, #ffd25e 0%, #f7a100 60%, #e08a00 100%);
  --rose-300: #ffc23d; --rose-400: #f7a100; --rose-500: #e08a00;
  --accent-text: #ffc23d;
}
.page-inspectx main .theme-light, .page-inspectx main .page-head.theme-light { --accent-text: #9a5c00; --icon-on-tint: #9a5c00; }
.page-inspectx main .btn-primary, .section-ix .btn-primary { color: #15161a; border-color: rgb(255 210 94 / 0.5); box-shadow: 0 1px 0 rgb(255 255 255 / 0.35) inset, 0 10px 30px -10px rgb(247 161 0 / 0.6); }
.page-inspectx main .btn-primary:hover, .section-ix .btn-primary:hover { color: #15161a; box-shadow: 0 1px 0 rgb(255 255 255 / 0.4) inset, 0 14px 38px -10px rgb(247 161 0 / 0.8); }
.page-inspectx main .card-icon, .section-ix .card-icon { background: linear-gradient(180deg, rgb(247 161 0 / 0.22), rgb(247 161 0 / 0.08)); box-shadow: inset 0 0 0 1px rgb(255 194 61 / 0.35), 0 8px 20px -8px rgb(247 161 0 / 0.5); }
.page-inspectx main .ix-step[aria-selected="true"], .section-ix .ix-step[aria-selected="true"] { border-color: rgb(255 194 61 / 0.55); background: linear-gradient(90deg, rgb(247 161 0 / 0.14), transparent 70%); }
.page-inspectx main .ix-step[aria-selected="true"] .n, .section-ix .ix-step[aria-selected="true"] .n { color: #15161a; box-shadow: 0 6px 18px -6px rgb(247 161 0 / 0.7); }
.page-inspectx main .s-btn, .section-ix .s-btn { color: #15161a; }
.page-inspectx main .s-field.sel, .section-ix .s-field.sel { border-color: rgb(255 194 61 / 0.6); background: rgb(247 161 0 / 0.1); }
.page-inspectx main .qr-frame::before, .section-ix .qr-frame::before { border-color: #f7a100; }
.page-inspectx main .device-wrap::before, .section-ix .device-wrap::before { background: radial-gradient(circle, rgb(247 161 0 / 0.3), transparent 65%); }
.page-inspectx main .quote-block { background: radial-gradient(100% 120% at 0% 0%, rgb(247 161 0 / 0.16), transparent 60%), var(--surface); }
.page-inspectx main .chip .icon { color: #f7a100; }
.section-ix { background: radial-gradient(60% 80% at 100% 0%, rgb(247 161 0 / 0.16), transparent 60%), var(--bg) !important; }
.page-inspectx main .page-head.theme-dark { background: radial-gradient(60% 90% at 85% 40%, rgb(247 161 0 / 0.16), transparent 60%), var(--bg); }
.page-inspectx main .page-head .glow-a { background: radial-gradient(circle, rgb(247 161 0 / 0.35), transparent 65%); }

/* InspectX device mock-up: smaller */
.ix-device { width: min(100%, 230px); filter: drop-shadow(0 34px 44px rgb(0 0 0 / 0.55)) drop-shadow(0 0 50px rgb(247 161 0 / 0.2)); }
@media (max-width: 61.99em) { .ix-device { width: min(60%, 200px); } }

/* ==========================================================================
   v7 — solid white header, spacing & rhythm pass, modern mobile action bar
   ========================================================================== */
/* Header: solid white everywhere */
.site-header, body.nav-open .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid #ebe8e3; box-shadow: 0 6px 24px -20px rgb(17 18 20 / 0.45); }
.nav-list { background: #f6f5f2; border-color: #ebe8e3; }
.nav-link:hover { background: #fff; }
.nav-link[aria-current] { background: #fff; box-shadow: 0 1px 3px rgb(17 18 20 / 0.08), inset 0 0 0 1px #e6e2dc; }
@media (max-width: 62em) { .site-nav, .site-nav.is-open { background: #fff; } .nav-list { background: none; } }

/* Spacing & rhythm */
:root { --section: clamp(4.5rem, 3rem + 5.5vw, 8.5rem); }
.section-tight { padding-block: clamp(4rem, 2.75rem + 4vw, 6.5rem); }
.section-head { margin-bottom: clamp(2.75rem, 2rem + 3vw, 4.5rem); gap: 1.25rem 4rem; }
.section-head h2 { max-width: 20ch; }
.eyebrow { margin-bottom: 1.25rem; }
h2 { line-height: 1.1; }
.lead { line-height: 1.65; }
.prose p { margin-bottom: 1.25em; }
.btn-row { gap: 0.875rem 1rem; }
.btn { padding-inline: 1.4rem; }
.hero .lead { margin-bottom: 2.5rem; }
.hero h1 { margin-bottom: 1.75rem; }
.readouts { margin-top: 3.25rem; }
.page-head .container { padding-block: clamp(3.5rem, 2.5rem + 4.5vw, 6.5rem); }
.page-head h1 { margin-bottom: 1.4rem; }
.breadcrumb { margin-bottom: 2rem; }
.card, .feature-grid li, .env, .portal-list li { padding: 1.75rem; }
.bento, .feature-grid, .env-grid, .portal-list, .outcomes { gap: 1rem; }
.feature-grid .card-icon { margin-bottom: 1.35rem; }
.feature-grid h3, .env h3 { margin-bottom: 0.5rem; }
.pipeline li { padding: 1.75rem 1.5rem; }
.sx { gap: 1.5rem; }
@media (min-width: 64em) { .sx { gap: 3.5rem; } }
.sx-panel { padding: clamp(1.75rem, 1.25rem + 2.5vw, 3rem); }
.sx-points { gap: 0.7rem; margin: 1.5rem 0 2rem; }
.detail-grid h2 { margin-top: 3.5rem; margin-bottom: 1.25rem; }
.check-list { gap: 0.65rem; }
.contact-grid, .split { row-gap: 3rem; }
.form { gap: 1.4rem; }
.form-row { gap: 1.4rem; }
.cta-band .container { padding-block: clamp(4.5rem, 3rem + 5vw, 7.5rem); }
.cta-inner { gap: 2.25rem; }
.footer-grid { padding-block: clamp(3.5rem, 3rem + 2.5vw, 5.5rem) 3rem; gap: 3rem; }
.footer-col ul { gap: 0.7rem; }
@media (max-width: 47.99em) {
  .section-head { margin-bottom: 2.5rem; }
  .card, .feature-grid li, .env, .portal-list li { padding: 1.4rem; }
  .btn-row .btn { flex: 1 1 auto; }
}

/* Modern mobile action bar — floating white pill */
@media (max-width: 47.99em) {
  .mobile-bar {
    left: 50%; right: auto; width: min(calc(100% - 1.5rem), 420px); transform: translate(-50%, 160%);
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem; border-radius: 999px;
    background: rgb(255 255 255 / 0.96); border: 1px solid rgb(17 18 20 / 0.08);
    box-shadow: 0 1px 2px rgb(17 18 20 / 0.06), 0 18px 40px -14px rgb(17 18 20 / 0.45);
  }
  @supports (backdrop-filter: blur(8px)) { .mobile-bar { background: rgb(255 255 255 / 0.82); backdrop-filter: saturate(1.6) blur(16px); } }
  .mobile-bar.is-visible { transform: translate(-50%, 0); }
  .mobile-bar .btn { min-height: 48px; border-radius: 999px; font-size: 0.9375rem; }
  .mobile-bar .mb-call { flex: 0 0 auto; padding: 0 1.1rem 0 0.5rem; gap: 0.55rem; background: transparent; border-color: transparent; color: var(--strong); font-weight: 600; }
  .mobile-bar .mb-call .mb-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--wine-600); background: var(--wine-050, #f8eef1); }
  .mobile-bar .mb-call .icon { width: 17px; height: 17px; }
  .mobile-bar .btn-primary { flex: 1 1 auto; }
  .to-top { bottom: 5.75rem; }
}
main > section, .cta-band { overflow-x: clip; }
.sx-panel .btn { padding-inline: 1.1rem; } @media (min-width: 64em) { .sx-panel .btn-row { flex-wrap: nowrap; } }
