/* ============================================================
   LOCALIZED AI — style.css (v2 "Maschinenraum")
   Machine-paper engineering aesthetic. Light exterior, dark
   sealed interior. One signal color, used like safety marking.
   ============================================================ */

/* ---------- 1. DESIGN TOKENS ----------
   Hex base for universal support (incl. older Safari);
   OKLCH + color-mix upgrade applied below via @supports. ---------- */
:root {
  /* Surfaces */
  --paper:        #f4f5f1;   /* machine paper */
  --paper-raised: #fbfcf9;
  --ink:          #161b18;   /* near-black evergreen ink */
  --ink-soft:     #2a322d;
  --panel:        #1d2420;   /* dark sealed panel */
  --panel-line:   rgba(244, 245, 241, 0.14); /* derived from --chrome */

  /* Accents */
  --signal:       #ff4f00;   /* safety-marking orange */
  --signal-soft:  rgba(255, 79, 0, 0.12);
  --steel:        #5d6b73;   /* annotation gray-blue */
  --line:         rgba(22, 27, 24, 0.16);
  --line-strong:  rgba(22, 27, 24, 0.55);

  --chrome:       #f4f5f1;   /* always-light: text on permanently dark panels */
  --volt:         #8b3dff;   /* vibrant violet accent */
  --cyber:        #19c8c8;   /* vibrant teal accent */
  --terminal-bg:  #10140f;
  --ok:           #7fd97f;
  --ok-deep:      #1c7a3d;
  --user-tint:    #7aa7c7;

  /* Reactive hero weight (JS-driven, pointer X) */
  --wght-hero: 800;

  /* Type */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;
  --fs-hero:  clamp(2.7rem, 6.4vw, 5rem);
  --fs-h2:    clamp(1.9rem, 4vw, 2.9rem);
  --fs-h3:    1.3rem;
  --fs-body:  1rem;
  --fs-small: 0.875rem;
  --fs-mono:  0.8rem;

  /* Space & shape */
  --space-section: clamp(5rem, 10vw, 8.5rem);
  --radius:    4px;          /* machined, not bubbly */
  --maxw:      1180px;

  /* The chamfer: brand signature, mirrors the logo plate */
  --chamfer: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);

  /* Motion */
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.18s;
}


/* OKLCH upgrade for modern engines (Safari 16.2+, Chrome, Firefox) */
@supports (color: color-mix(in oklch, red, blue)) {
  :root {
    --paper:        oklch(96.5% 0.005 120);
    --paper-raised: oklch(98.5% 0.004 120);
    --ink:          oklch(22% 0.012 160);
    --ink-soft:     oklch(30% 0.012 160);
    --panel:        oklch(25% 0.014 160);
    --panel-line:   color-mix(in oklch, var(--chrome) 14%, transparent);
    --signal:       oklch(66% 0.235 38);
    --signal-soft:  color-mix(in oklch, var(--signal) 12%, transparent);
    --steel:        oklch(51% 0.022 230);
    --line:         color-mix(in oklch, var(--ink) 16%, transparent);
    --line-strong:  color-mix(in oklch, var(--ink) 55%, transparent);
    --chrome:       oklch(96.5% 0.005 120);
    --volt:         oklch(58% 0.26 300);
    --cyber:        oklch(74% 0.13 195);
    --terminal-bg:  oklch(17% 0.012 150);
    --ok:           oklch(80% 0.14 150);
    --ok-deep:      oklch(50% 0.13 155);
    --user-tint:    oklch(70% 0.06 240);
  }
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h4 { font-family: var(--font-mono); }
p { color: var(--ink-soft); }
a { color: var(--ink); text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol, dl, dd { margin: 0; padding: 0; }

::selection { background: var(--signal); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Mono annotation roles */
.kicker, .eyebrow, .card-ref, .model-ref, .spec dt, .gauge dt, .gauge-val,
.step-index, .step-sub, .enclosure-tag, .popular-stamp, .price-term,
.perimeter-caption, .footer-legal, .footer-col h4, .form-field label, .form-note {
  font-family: var(--font-mono);
}

/* ---------- 3. NAV ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(244, 245, 241, 0);
  background: color-mix(in oklch, var(--paper) 0%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
.site-nav.scrolled {
  background: rgba(244, 245, 241, 0.88);
  background: color-mix(in oklch, var(--paper) 88%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; }
.brand-name {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: clamp(0.9rem, 2.2vw, 1.8rem); }
.nav-links > a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.4rem 0;
  position: relative;
  transition: color var(--t-fast) ease;
}
/* underline draws from the left on hover */
.nav-links > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--signal);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.28s var(--ease);
}
.nav-links > a:hover { color: var(--ink); }
.nav-links > a:hover::after { clip-path: inset(0 0 0 0); }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform var(--t-fast) ease, opacity var(--t-fast) ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 4. BUTTONS (chamfered, like the plate) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.7rem;
  font-family: var(--font-mono);
  font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: none;
  cursor: pointer;
  clip-path: var(--chamfer);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) ease,
              color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--signal); color: var(--paper); }

.btn--secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn--secondary:hover { box-shadow: inset 0 0 0 1.5px var(--signal); color: var(--signal); }

.btn--nav { min-height: 40px; padding: 0.55rem 1.1rem; background: var(--ink); color: var(--paper); font-size: 0.74rem; }
.btn--nav:hover { background: var(--signal); color: var(--paper); border-bottom-color: transparent; }

.btn--block { width: 100%; }

/* ---------- 5. LAYOUT PRIMITIVES ---------- */
.section {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--space-section) clamp(1rem, 4vw, 2rem) 0;
}

.section-head { max-width: 740px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section-title { font-size: var(--fs-h2); margin-top: 0.7rem; }
.section-lead { margin-top: 1rem; font-size: 1.05rem; max-width: 60ch; }

.kicker {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 0.3rem 0.7rem;
  clip-path: var(--chamfer);
}
.kicker--light { background: var(--signal); }

/* ---------- 6. CARDS ---------- */
.card {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 1.9rem);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) ease,
              box-shadow var(--t-fast) ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 28px rgba(22, 27, 24, 0.1), 0 2px 0 0 var(--signal);
  box-shadow: 0 10px 28px color-mix(in oklch, var(--ink) 10%, transparent), 0 2px 0 0 var(--signal);
}
.card h3 { font-size: var(--fs-h3); margin-bottom: 0.55rem; }
.card p { font-size: 0.95rem; }

.card-ref {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--steel);
  margin-bottom: 0.9rem;
}

.card-grid { display: grid; gap: 1.1rem; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- 7. HERO ---------- */
.hero {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(7rem, 15vh, 9.5rem) clamp(1rem, 4vw, 2rem) 0;
  display: flex; flex-direction: column;
  gap: clamp(2.6rem, 6vh, 4rem);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel);
  padding-left: 1.1rem;
  position: relative;
}
.eyebrow::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  background: var(--signal);
}

.hero-title { font-size: var(--fs-hero); margin-top: 1.1rem; }
.hero-title em {
  font-style: normal;
  color: var(--signal);
  position: relative;
  white-space: nowrap;
}

.hero-lead { margin-top: 1.3rem; max-width: 46ch; font-size: 1.1rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }

/* Perimeter diagram (the signature) */
.perimeter-figure { margin: 0; }
.perimeter-svg {
  width: 100%; height: auto;
  font-family: var(--font-mono);
  color: var(--steel);
}
.perimeter-caption {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--steel);
}

.d-perimeter {
  fill: rgba(255, 79, 0, 0.025);
  fill: color-mix(in oklch, var(--signal) 2.5%, transparent);
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-dasharray: 10 7;
}
.d-perimlabel {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em;
  fill: var(--ink);
}
.d-zone {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em;
  fill: var(--steel);
}
.d-small { font-size: 10px; letter-spacing: 0.06em; fill: var(--steel); }
.d-cloud { color: var(--steel); opacity: 0.75; }

.d-chip { fill: var(--ink); }
.d-core { fill: var(--signal); }

.d-node rect {
  fill: var(--paper-raised);
  stroke: var(--ink);
  stroke-width: 1.6;
}
.d-node text {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em;
  fill: var(--ink);
}

.d-link {
  fill: none;
  stroke: var(--steel);
  stroke-width: 1.4;
  stroke-dasharray: 3 4;
  opacity: 0.7;
}

.d-packet { fill: var(--signal); }
.d-packet--out { fill: var(--steel); }

.d-blockedline {
  stroke: var(--steel);
  stroke-width: 1.4;
  stroke-dasharray: 3 4;
  opacity: 0.55;
}
.d-gate rect {
  fill: var(--paper);
  stroke: var(--signal);
  stroke-width: 2;
}
.d-gate path { stroke: var(--signal); stroke-width: 2.4; stroke-linecap: round; }
.d-blockedlabel {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em;
  fill: var(--signal);
}

/* Spec strip — reads like a datasheet row */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.spec {
  padding: 1.2rem 1rem 1.3rem;
  border-left: 1px solid var(--line);
}
.spec:first-child { border-left: none; padding-left: 0; }
.spec dt {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel);
}
.spec dd {
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1;
}

/* ---------- 8. PROCESS RAIL ---------- */
.step-rail {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.6rem 1.5rem 1.7rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.step:hover { transform: translateY(-3px); border-top-color: var(--signal); box-shadow: 0 10px 28px color-mix(in oklch, var(--ink) 10%, transparent); }
.step-index {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--signal);
}
.step h3 { margin-top: 0.6rem; font-size: 1.45rem; }
.step-sub {
  margin: 0.25rem 0 0.8rem;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--steel);
}
.step p:last-child { font-size: 0.95rem; }

/* connecting trace between steps */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%; right: -1.1rem;
  width: 1.1rem; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px);
}

/* ---------- 9. ENCLOSURE (dark featured panel) ---------- */
.enclosure {
  position: relative;
  background: var(--panel);
  color: var(--chrome);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1.1rem;
  border: 1px solid var(--ink);
}
.enclosure h3 {
  color: var(--chrome);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 0.7rem;
}
.enclosure p { color: color-mix(in oklch, var(--chrome) 78%, transparent); }
.enclosure-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--chrome);
  background: var(--signal);
  padding: 0.28rem 0.65rem;
  clip-path: var(--chamfer);
  margin-bottom: 1rem;
}
.enclosure-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.enclosure-list {
  list-style: none;
  display: grid; gap: 0.8rem;
  border-left: 2px solid var(--signal);
  padding-left: 1.2rem;
}
.enclosure-list li {
  color: var(--chrome);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* registration crosses — technical drawing corner marks */
.reg-mark {
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
}
.reg-mark::before, .reg-mark::after {
  content: "";
  position: absolute;
  background: rgba(244, 245, 241, 0.4);
  background: color-mix(in oklch, var(--chrome) 40%, transparent);
}
.reg-mark::before { left: 50%; top: 0; width: 1px; height: 100%; }
.reg-mark::after  { top: 50%; left: 0; height: 1px; width: 100%; }
.reg-mark--tl { top: 10px; left: 10px; }
.reg-mark--tr { top: 10px; right: 10px; }
.reg-mark--bl { bottom: 10px; left: 10px; }
.reg-mark--br { bottom: 10px; right: 10px; }

/* ---------- 10. MODEL CARDS (component datasheet) ---------- */
.model-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 0.7rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.model-head h3 { margin-bottom: 0; }
.model-ref {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--steel);
  white-space: nowrap;
}

.gauges { margin-top: 1.1rem; display: grid; gap: 0.6rem; }
.gauge { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 0.7rem; }
.gauge dt {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--steel);
}
.gauge dd { display: flex; align-items: center; gap: 0.55rem; }
.gauge-bar {
  flex: 1;
  height: 8px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--paper) calc(10% - 1px) 10%),
    color-mix(in oklch, var(--ink) 10%, transparent);
  overflow: hidden;
}
.gauge-fill {
  display: block;
  height: 100%; width: 0;
  background: var(--ink);
  transition: width 1s var(--ease);
}
.model-card:hover .gauge-fill { background: var(--signal); }
.gauge-val {
  font-size: 0.7rem; font-weight: 600;
  color: var(--ink);
  min-width: 2ch;
  text-align: right;
}

/* ---------- 11. DARK BAND (security) ---------- */
.darkband {
  margin-top: var(--space-section);
  background: var(--panel);
  color: var(--chrome);
  border-top: 3px solid var(--signal);
}
.darkband-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1rem, 4vw, 2rem);
}
.darkband .section-title { color: var(--chrome); }
.darkband .section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.6rem);
  align-items: start;
}

.security-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dark-card {
  background: rgba(244, 245, 241, 0.04);
  background: color-mix(in oklch, var(--chrome) 4%, transparent);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.4rem;
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease, transform var(--t-fast) var(--ease);
}
.dark-card:hover {
  transform: translateY(-3px);
  border-color: var(--signal);
  background: rgba(244, 245, 241, 0.06);
  background: color-mix(in oklch, var(--chrome) 6%, transparent);
}
.dark-card h3 { color: var(--chrome); font-size: 1.05rem; margin-bottom: 0.45rem; }
.dark-card p { color: color-mix(in oklch, var(--chrome) 72%, transparent); font-size: 0.9rem; }

/* Audit terminal */
.terminal {
  background: var(--terminal-bg);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(22, 27, 24, 0.35);
  box-shadow: 0 20px 50px color-mix(in oklch, var(--ink) 35%, transparent);
}
.terminal-bar {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--panel-line);
  background: rgba(244, 245, 241, 0.04);
  background: color-mix(in oklch, var(--chrome) 4%, transparent);
}
.terminal-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--signal);
  flex: none;
}
.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(244, 245, 241, 0.6);
  color: color-mix(in oklch, var(--chrome) 60%, transparent);
}
.terminal-body {
  margin: 0;
  padding: 1.1rem 1.2rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.75;
  color: rgba(244, 245, 241, 0.85);
  color: color-mix(in oklch, var(--chrome) 85%, transparent);
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 280px;
}
.t-prompt { color: var(--signal); }
.t-ok { color: var(--ok); }
.t-dim { color: color-mix(in oklch, var(--chrome) 45%, transparent); }
.t-cursor {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--signal);
  vertical-align: text-bottom;
  animation: cursor-blink 1s steps(1) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }

/* ---------- 12. PRICING ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}
.price-card { display: flex; flex-direction: column; }
.price { display: flex; align-items: baseline; gap: 0.6rem; margin: 0.8rem 0 0.3rem; }
.price-amount {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: 2.3rem; font-weight: 800;
}
.price-term { font-size: 0.74rem; letter-spacing: 0.05em; color: var(--steel); }
.price-desc { font-size: 0.92rem; margin-bottom: 1.1rem; }

.spec-list {
  list-style: none;
  display: grid; gap: 0;
  margin-bottom: 1.5rem;
  flex: 1;
}
.spec-list li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 0.55rem 0 0.55rem 1.3rem;
  border-bottom: 1px dashed var(--line);
  position: relative;
}
.spec-list li::before {
  content: "";
  position: absolute; left: 0; top: 1.05em;
  width: 7px; height: 7px;
  background: var(--signal);
}
.spec-list li:last-child { border-bottom: none; }

.price-card--popular {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.price-card--popular h3, .price-card--popular .price-amount { color: var(--paper); }
.price-card--popular .price-desc, .price-card--popular .spec-list li { color: color-mix(in oklch, var(--paper) 80%, transparent); }
.price-card--popular .price-term { color: color-mix(in oklch, var(--paper) 55%, transparent); }
.price-card--popular .spec-list li { border-bottom-color: color-mix(in oklch, var(--paper) 16%, transparent); }
.price-card--popular:hover { box-shadow: 0 14px 36px color-mix(in oklch, var(--ink) 35%, transparent), 0 2px 0 0 var(--signal); }
.price-card--popular .btn--primary { background: var(--signal); }
.price-card--popular .btn--primary:hover { background: var(--paper); color: var(--ink); }

.popular-stamp {
  position: absolute;
  top: -12px; right: 18px;
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--paper);
  background: var(--signal);
  padding: 0.32rem 0.7rem;
  clip-path: var(--chamfer);
}

/* ---------- 13. TESTIMONIALS ---------- */
.quote-card blockquote p {
  font-size: 0.97rem;
  color: var(--ink);
}
.quote-card figcaption {
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: grid; gap: 0.1rem;
}
.quote-name { font-weight: 600; font-size: 0.93rem; }
.quote-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--steel);
}

/* ---------- 14. CONTACT FORM (work order) ---------- */
.contact-form {
  max-width: 780px;
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.form-field label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink);
}
.req { color: var(--signal); }
.optional { color: var(--steel); font-weight: 400; text-transform: none; letter-spacing: 0.02em; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--steel) 50%),
    linear-gradient(135deg, var(--steel) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--signal-soft), inset 0 -2px 0 0 var(--signal);
}
.form-field .invalid,
.form-field input.invalid,
.form-field select.invalid,
.form-field textarea.invalid {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
}

.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; }

.form-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; flex-wrap: wrap;
  margin-top: 0.4rem;
}
.form-note { font-size: 0.72rem; letter-spacing: 0.02em; color: var(--steel); max-width: 42ch; }

.form-status {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-height: 1.4em;
}
.form-status.success { color: var(--ok-deep); animation: status-pop 0.45s var(--ease); }
.form-status.error { color: var(--signal); animation: status-pop 0.45s var(--ease); }
@keyframes status-pop { from { opacity: 0; transform: translateY(6px); } }

/* ---------- 15. FOOTER ---------- */
.site-footer {
  margin-top: var(--space-section);
  background: var(--panel);
  color: var(--chrome);
  border-top: 3px solid var(--signal);
}
.footer-grid {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 3.5rem clamp(1rem, 4vw, 2rem) 2rem;
  display: grid;
  grid-template-columns: 1.6fr;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2.5rem;
}
.brand--footer { color: var(--chrome); }
.brand--footer .brand-mark path:first-child { fill: var(--chrome); }
.footer-tag { margin-top: 1rem; font-size: 0.9rem; color: color-mix(in oklch, var(--chrome) 70%, transparent); max-width: 34ch; }
.footer-col { display: grid; gap: 0.5rem; align-content: start; }
.footer-col h4 {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 0.4rem;
}
.footer-col a {
  color: rgba(244, 245, 241, 0.72);
  color: color-mix(in oklch, var(--chrome) 72%, transparent);
  font-size: 0.9rem;
  transition: color var(--t-fast) ease;
}
.footer-col a:hover { color: var(--chrome); }
.footer-legal {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(244, 245, 241, 0.5);
  color: color-mix(in oklch, var(--chrome) 50%, transparent);
}

/* ---------- 16. CONSOLE (chatbot) ---------- */
.console { position: fixed; bottom: 1.3rem; right: 1.3rem; z-index: 200; }

.console-toggle {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--chrome);
  border: none;
  clip-path: var(--chamfer);
  cursor: pointer;
  transition: background var(--t-fast) ease, transform var(--t-fast) var(--ease);
}
.console-toggle:hover { background: var(--signal); transform: translateY(-2px); }
.console-glyph {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  animation: glyph-blink 2.4s steps(1) infinite;
}
@keyframes glyph-blink { 50% { opacity: 0.55; } }

.console-panel {
  position: absolute;
  bottom: 72px; right: 0;
  width: min(400px, calc(100vw - 2rem));
  height: min(560px, calc(100vh - 8rem));
  display: flex; flex-direction: column;
  background: var(--terminal-bg);
  color: rgba(244, 245, 241, 0.88);
  color: color-mix(in oklch, var(--chrome) 88%, transparent);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(22, 27, 24, 0.4);
  box-shadow: 0 24px 60px color-mix(in oklch, var(--ink) 40%, transparent);
  overflow: hidden;
  animation: panel-in 0.28s var(--ease);
}
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } }
.console-panel[hidden] { display: none; }

.console-head {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--panel-line);
  background: rgba(244, 245, 241, 0.04);
  background: color-mix(in oklch, var(--chrome) 4%, transparent);
}
.console-title {
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.04em;
}
.console-sub {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: rgba(244, 245, 241, 0.45);
  color: color-mix(in oklch, var(--chrome) 45%, transparent);
  margin-left: auto;
}
.console-close {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: transparent; border: none;
  color: rgba(244, 245, 241, 0.6);
  color: color-mix(in oklch, var(--chrome) 60%, transparent);
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color var(--t-fast) ease, background var(--t-fast) ease;
}
.console-close:hover { color: var(--chrome); background: color-mix(in oklch, var(--chrome) 8%, transparent); }

.console-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex; flex-direction: column; gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.65;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 79, 0, 0.4) transparent;
  scrollbar-color: color-mix(in oklch, var(--signal) 40%, transparent) transparent;
}

.cmsg { animation: msg-in 0.25s var(--ease); }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.cmsg .cmsg-tag { color: var(--signal); }
.cmsg--user .cmsg-tag { color: var(--user-tint); }
.cmsg--user { color: color-mix(in oklch, var(--chrome) 65%, transparent); }

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; animation: msg-in 0.25s var(--ease); }
.chip {
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(244, 245, 241, 0.85);
  color: color-mix(in oklch, var(--chrome) 85%, transparent);
  background: transparent;
  border: 1px solid rgba(244, 245, 241, 0.3);
  border: 1px solid color-mix(in oklch, var(--chrome) 30%, transparent);
  cursor: pointer;
  clip-path: var(--chamfer);
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease, background var(--t-fast) ease;
}
.chip:hover { border-color: var(--signal); color: var(--signal); background: color-mix(in oklch, var(--signal) 6%, transparent); }

.typing { color: color-mix(in oklch, var(--chrome) 50%, transparent); }
.typing .dots::after {
  content: "";
  animation: dots 1.1s steps(4) infinite;
}
@keyframes dots {
  0% { content: ""; } 25% { content: "."; }
  50% { content: ".."; } 75% { content: "..."; }
}

.console-input {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  border-top: 1px solid var(--panel-line);
}
.console-prompt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--user-tint);
  flex: none;
}
.console-input input {
  flex: 1;
  min-height: 44px;
  padding: 0.5rem 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--chrome);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(244, 245, 241, 0.25);
  border-bottom: 1px solid color-mix(in oklch, var(--chrome) 25%, transparent);
  transition: border-color var(--t-fast) ease;
}
.console-input input:focus { outline: none; border-bottom-color: var(--signal); }
.console-send {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: var(--signal);
  color: var(--chrome);
  border: none;
  font-size: 1rem;
  clip-path: var(--chamfer);
  cursor: pointer;
  transition: background var(--t-fast) ease;
}
.console-send:hover { background: var(--chrome); color: var(--panel); }

/* Chatbot section highlight — a survey stake, not a glow */
.chatbot-highlight {
  border-color: var(--signal) !important;
  animation: stake-pulse 1.2s ease-in-out 3;
}
@keyframes stake-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--signal) 0%, transparent); }
  50%      { box-shadow: 0 0 0 3px color-mix(in oklch, var(--signal) 55%, transparent); }
}

/* ---------- 17. SCROLL REVEAL ---------- */
/* `translate` (not `transform`) so reveals compose with 3D tilt */
.reveal { opacity: 0; translate: 0 22px; }
.reveal.in-view {
  opacity: 1; translate: 0 0;
  transition: opacity 0.6s var(--ease), translate 0.6s var(--ease);
}
@supports (animation-timeline: view()) {
  .reveal, .reveal.in-view {
    opacity: 1; translate: 0 0; transition: none;
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
  @keyframes reveal-up {
    from { opacity: 0; translate: 0 26px; }
    to   { opacity: 1; translate: 0 0; }
  }
}

/* ---------- 18. RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .card-grid--3, .pricing-grid, .step-rail { grid-template-columns: 1fr 1fr; }
  .step:not(:last-child)::after { display: none; }
  .security-grid { grid-template-columns: 1fr; }
  .enclosure-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; grid-auto-flow: row; grid-auto-columns: auto; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 62px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-fast) ease, transform var(--t-fast) var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links > a {
    padding: 0.9rem 0.25rem;
    min-height: 44px;
    display: flex; align-items: center;
    border-bottom: 1px solid var(--line);
  }
  .nav-links > a.btn--nav { margin-top: 0.9rem; justify-content: center; border-bottom: none; }
}

@media (max-width: 640px) {
  .card-grid--3, .pricing-grid, .step-rail, .form-row,
  .security-cards, .footer-grid { grid-template-columns: 1fr; grid-auto-flow: row; }
  .spec-strip { grid-template-columns: 1fr 1fr; }
  .spec:nth-child(odd) { border-left: none; padding-left: 0; }
  .spec:nth-child(n+3) { border-top: 1px solid var(--line); }
  .price-card--popular { order: -1; }
  .hero-title em { white-space: normal; }

  /* Console goes full-screen */
  .console-panel {
    position: fixed;
    inset: 0;
    width: 100%; height: 100%;
    border-radius: 0;
    border: none;
    bottom: 0; right: 0;
  }
}

/* ---------- 19. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; translate: 0 0; }
  .d-packet { display: none; } /* SMIL packets hidden — diagram stays legible as a static schematic */
  .t-cursor { animation: none; }
}

/* ============================================================
   20. MODERN-CSS ENHANCEMENT LAYER
   Reactive type, scroll-driven detail, :has() focus logic,
   native popovers, @starting-style entries. All progressive:
   the page is complete without any of it.
   ============================================================ */

/* ---------- Reactive variable typography ---------- */
/* Hero weight follows pointer X (JS writes --wght-hero, 300..900).
   The em keeps full weight: the claim itself never thins out. */
.hero-title {
  font-variation-settings: 'wdth' 125, 'wght' var(--wght-hero);
  transition: font-variation-settings 0.18s linear;
}
.hero-title em { font-variation-settings: 'wdth' 125, 'wght' 900; }

/* Section titles gain weight as they enter the viewport */
@supports (animation-timeline: view()) {
  @keyframes weight-up {
    from { font-variation-settings: 'wdth' 125, 'wght' 450; opacity: 0.4; }
    to   { font-variation-settings: 'wdth' 125, 'wght' 800; opacity: 1; }
  }
  .section-title {
    animation: weight-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }

  /* Kickers tighten from drafting-stencil spacing to set type */
  @keyframes track-in {
    from { letter-spacing: 0.34em; }
    to   { letter-spacing: 0.16em; }
  }
  .kicker {
    animation: track-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 70%;
  }
}

/* ---------- :has() — inspecting one component dims the rest ---------- */
@supports selector(:has(*)) {
  .model-grid:has(.model-card:hover) .model-card:not(:hover) {
    opacity: 0.55;
    transition: opacity 0.25s ease;
  }
  .model-grid .model-card { transition: opacity 0.25s ease, transform var(--t-fast) var(--ease), border-color var(--t-fast) ease, box-shadow var(--t-fast) ease; }
}

/* ---------- 3D tilt (JS sets --rx/--ry; pointer: fine only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .model-card[data-tilt] {
    transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
    will-change: transform;
  }
  .model-card[data-tilt]:hover { --lift: -3px; }
}

/* ---------- Native popover: the component datasheet ---------- */
.datasheet-btn {
  margin-top: 1.1rem;
  padding: 0.45rem 0.8rem;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  clip-path: var(--chamfer);
  cursor: pointer;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease, background var(--t-fast) ease;
}
.datasheet-btn:hover { color: var(--signal); border-color: var(--signal); background: var(--signal-soft); }

.datasheet {
  /* anchored center-screen by the Popover API; styled as a pulled card file */
  width: min(420px, calc(100vw - 2.5rem));
  background: var(--paper-raised);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-top: 3px solid var(--signal);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem 1.5rem;
  box-shadow: 0 30px 80px rgba(22, 27, 24, 0.35);
  box-shadow: 0 30px 80px color-mix(in oklch, var(--ink) 35%, transparent);
}
.datasheet::backdrop {
  background: rgba(22, 27, 24, 0.45);
  background: color-mix(in oklch, var(--ink) 45%, transparent);
  backdrop-filter: blur(3px);
}
.datasheet-title {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.datasheet-title span {
  font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--steel);
}
.datasheet-rows { display: grid; }
.datasheet-rows div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.8rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
}
.datasheet-rows div:last-child { border-bottom: none; }
.datasheet-rows dt {
  font-family: var(--font-mono);
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--steel);
  padding-top: 0.15rem;
}
.datasheet-rows dd { font-size: 0.9rem; }

/* ---------- @starting-style entry transitions ---------- */
@supports (transition-behavior: allow-discrete) {
  .datasheet {
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
                overlay 0.25s allow-discrete, display 0.25s allow-discrete;
  }
  .datasheet:popover-open { opacity: 1; transform: translateY(0); }
  @starting-style {
    .datasheet:popover-open { opacity: 0; transform: translateY(14px); }
  }

  .console-panel {
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
                display 0.25s allow-discrete;
    opacity: 1; transform: translateY(0);
  }
  @starting-style {
    .console-panel { opacity: 0; transform: translateY(12px); }
  }
}

/* ---------- Micro-interaction: press compress on buttons ---------- */
.btn:active, .chip:active, .datasheet-btn:active {
  transform: translateY(0) scaleY(0.94);
  transition-duration: 0.06s;
}

/* ---------- Container query: gauges adapt to card width ---------- */
.model-card { container-type: inline-size; }
@container (max-width: 330px) {
  .gauge { grid-template-columns: 1fr; gap: 0.2rem; }
  .gauge-val { display: none; }
}

/* ---------- Enhancement layer: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-title { transition: none; font-variation-settings: 'wdth' 125, 'wght' 800; }
  .section-title, .kicker { animation: none !important; }
  .model-card[data-tilt] { transform: none !important; }
}

/* ============================================================
   21. SAFARI FALLBACKS & CURSOR-REACTIVE LAYER
   ============================================================ */

/* ---------- Popover fallback (Safari < 17): class-driven modal ---------- */
@supports not selector(:popover-open) {
  .datasheet { display: none; }
  .datasheet.ds-open {
    display: block;
    position: fixed;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    z-index: 400;
    margin: 0;
  }
  .ds-backdrop {
    position: fixed; inset: 0;
    background: rgba(22, 27, 24, 0.45);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 399;
    border: 0; padding: 0;
  }
}

.datasheet::backdrop {
  -webkit-backdrop-filter: blur(3px);
}

/* ---------- Hero particle field (canvas, behind content) ----------
   Longhand offsets (not `inset`) for older Safari; z-index 0 with
   content lifted to 1, because negative z-index canvases can vanish
   behind ancestor backgrounds in some engines. */
.hero { position: relative; }
.hero-field {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
}
.hero-inner, .spec-strip { position: relative; z-index: 1; }

/* ---------- Cursor trail (fixed canvas, ambient, under the nav) ---------- */
.trail-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 90;
}

/* ---------- Mouse parallax (JS writes --par-x/--par-y in px) ---------- */
@media (hover: hover) and (pointer: fine) {
  .perimeter-figure { translate: var(--par-x, 0px) var(--par-y, 0px); will-change: translate; }
  .hero-copy        { translate: calc(var(--par-x, 0px) * -0.35) calc(var(--par-y, 0px) * -0.35); }
}

/* ---------- Reactive rows: spec strip shifts with cursor X ---------- */
@media (hover: hover) and (pointer: fine) {
  .spec { transition: translate 0.4s var(--ease); }
  .spec:nth-child(1) { translate: calc(var(--mx, 0) *  3px) 0; }
  .spec:nth-child(2) { translate: calc(var(--mx, 0) *  6px) 0; }
  .spec:nth-child(3) { translate: calc(var(--mx, 0) *  9px) 0; }
  .spec:nth-child(4) { translate: calc(var(--mx, 0) * 12px) 0; }
}

/* ---------- Blueprint spotlight: hover reveals the hidden schematic ---------- */
.blueprint-layer {
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background:
    repeating-linear-gradient(0deg,   rgba(244, 245, 241, 0.13) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg,  rgba(244, 245, 241, 0.13) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg,   rgba(255, 79, 0, 0.20) 0 1px, transparent 1px 110px),
    repeating-linear-gradient(90deg,  rgba(255, 79, 0, 0.20) 0 1px, transparent 1px 110px);
  -webkit-mask-image: radial-gradient(circle 170px at var(--sx, 50%) var(--sy, 50%), #000 0 55%, transparent 100%);
  mask-image: radial-gradient(circle 170px at var(--sx, 50%) var(--sy, 50%), #000 0 55%, transparent 100%);
}
@media (hover: hover) and (pointer: fine) {
  .enclosure:hover .blueprint-layer { opacity: 1; }
}
.enclosure-grid { position: relative; }

/* ---------- Magnetic elements: JS drives `translate`; keep it off transforms ---------- */
[data-magnet] { will-change: translate; }

/* ---------- Reduced motion: the whole cursor layer stands down ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-field, .trail-canvas, .blueprint-layer { display: none; }
  .perimeter-figure, .hero-copy, .spec, [data-magnet] { translate: 0 0 !important; }
}

/* ============================================================
   22. DARK THEME · VIBRANT ACCENTS · THEME TOGGLE · TOUCH
   ============================================================ */

/* ---------- Dark theme: same machine-shop logic, lights off ---------- */
html { color-scheme: light; }
html[data-theme="dark"] {
  color-scheme: dark;
  --paper:        #15191b;
  --paper-raised: #1c2124;
  --ink:          #eef1ec;
  --ink-soft:     #c2c9c0;
  --panel:        #0e1213;
  --steel:        #8b9aa3;
  --line:         rgba(238, 241, 236, 0.14);
  --line-strong:  rgba(238, 241, 236, 0.45);
  --signal-soft:  rgba(255, 79, 0, 0.16);
  --terminal-bg:  #0a0e0c;
}
@supports (color: color-mix(in oklch, red, blue)) {
  html[data-theme="dark"] {
    --paper:        oklch(20% 0.012 200);
    --paper-raised: oklch(24% 0.012 200);
    --ink:          oklch(95% 0.006 130);
    --ink-soft:     oklch(82% 0.008 130);
    --panel:        oklch(15% 0.012 200);
    --steel:        oklch(67% 0.02 230);
    --line:         color-mix(in oklch, var(--ink) 14%, transparent);
    --line-strong:  color-mix(in oklch, var(--ink) 45%, transparent);
    --signal:       oklch(70% 0.24 40);   /* a notch brighter in the dark */
    --volt:         oklch(66% 0.27 300);
    --cyber:        oklch(78% 0.14 195);
  }
}
html[data-theme="dark"] .site-nav.scrolled { background: rgba(21, 25, 27, 0.88); }
html[data-theme="dark"] .nav-links { background: var(--paper); }
html[data-theme="dark"] .card:hover,
html[data-theme="dark"] .step:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 2px 0 0 var(--signal); }
html[data-theme="dark"] .d-perimeter { fill: rgba(255, 79, 0, 0.05); }

/* ---------- Theme toggle (nav) ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  clip-path: var(--chamfer);
  cursor: pointer;
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease;
}
.theme-toggle:hover { border-color: var(--volt); color: var(--volt); }
.theme-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--signal), var(--volt));
  flex: none;
}

/* ---------- Vibrancy: gradients on the brand's pressure points ---------- */
.gauge-fill { background: linear-gradient(90deg, var(--signal), var(--volt)); }
.model-card:hover .gauge-fill { background: linear-gradient(90deg, var(--signal), var(--cyber)); }

.spec dd {
  background: linear-gradient(100deg, var(--signal), var(--volt) 70%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--signal); /* fallback */
}
@supports not (background-clip: text) { .spec dd { color: var(--ink); } }

.hero-title em {
  background: linear-gradient(95deg, var(--signal) 10%, var(--volt) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.enclosure-tag, .popular-stamp, .kicker--light {
  background: linear-gradient(100deg, var(--signal), var(--volt));
}
.step:nth-child(2) .step-index { color: var(--volt); }
.step:nth-child(3) .step-index { color: var(--cyber); }
.step:nth-child(2):hover { border-top-color: var(--volt); }
.step:nth-child(3):hover { border-top-color: var(--cyber); }
.footer-col:nth-of-type(2) h4 { color: var(--volt); }
.footer-col:nth-of-type(3) h4 { color: var(--cyber); }
.dark-card:nth-child(2):hover { border-color: var(--volt); }
.dark-card:nth-child(3):hover { border-color: var(--cyber); }
.datasheet { border-top-color: var(--signal); }
.datasheet:nth-of-type(even) { border-top-color: var(--volt); }

/* ---------- Touch feedback ---------- */
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .btn:active, .chip:active, .card:active, .step:active {
    transform: scale(0.985);
    transition-duration: 0.08s;
  }
}

/* ============================================================
   23. SUBPAGES: BLOG · POST · ABOUT · KARRIERE · TECHNOLOGIE · LEGAL
   ============================================================ */
.page-main {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(7rem, 14vh, 9rem) clamp(1rem, 4vw, 2rem) 0;
}
.page-main--narrow { max-width: 820px; }
.page-title { font-size: var(--fs-h2); margin-top: 0.7rem; }
.page-lead { margin-top: 1rem; font-size: 1.07rem; max-width: 62ch; }
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--steel);
  margin-bottom: 1.1rem;
}
.breadcrumbs a { color: var(--steel); }
.breadcrumbs a:hover { color: var(--signal); }

/* ---------- Blog index ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.2rem; }
.post-card { display: flex; flex-direction: column; }
.post-card h2 { font-size: 1.12rem; line-height: 1.25; margin: 0.5rem 0 0.55rem; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--signal); }
.post-card p { font-size: 0.9rem; flex: 1; }
.post-meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
  font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--steel);
}
.post-tag {
  padding: 0.18rem 0.55rem;
  color: var(--chrome);
  background: var(--ink);
  clip-path: var(--chamfer);
}
.post-tag--robotics { background: linear-gradient(100deg, var(--volt), var(--signal)); }
.post-tag--azure    { background: linear-gradient(100deg, #0a66c2, var(--cyber)); }
.post-tag--rag      { background: linear-gradient(100deg, var(--cyber), var(--volt)); }
.post-tag--code     { background: linear-gradient(100deg, var(--signal), var(--volt)); }
.post-readmore {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--signal);
}
.blog-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }

/* ---------- Article ---------- */
.article { max-width: 780px; }
.article-head { margin-bottom: 2rem; }
.article h1 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); margin-top: 0.8rem; }
.article-body { font-size: 1.02rem; }
.article-body h2 {
  font-size: 1.45rem;
  margin: 2.4rem 0 0.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.article-body h3 { font-size: 1.12rem; margin: 1.6rem 0 0.5rem; }
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.1rem 1.2rem; color: var(--ink-soft); }
.article-body li { margin-bottom: 0.4rem; }
.article-body a { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { color: var(--ink); }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.92rem; }
.article-body th, .article-body td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); }
.article-body th { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }

.article-body pre {
  position: relative;
  background: var(--terminal-bg);
  color: var(--chrome);
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin: 1.2rem 0 1.4rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
}
.article-body code { font-family: var(--font-mono); font-size: 0.88em; }
.article-body p code, .article-body li code {
  background: var(--signal-soft);
  color: var(--ink);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
.code-lang {
  position: absolute; top: 0; right: 0;
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--chrome);
  background: linear-gradient(100deg, var(--signal), var(--volt));
  padding: 0.25rem 0.6rem;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
}

.cta-block {
  background: var(--panel);
  color: var(--chrome);
  border-radius: var(--radius);
  border-left: 3px solid var(--signal);
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
}
.cta-block strong { color: var(--chrome); }
.cta-block p { color: rgba(244, 245, 241, 0.8); margin-bottom: 0.9rem; }
.cta-block .btn--primary { background: var(--signal); color: var(--chrome); }
.cta-block .btn--primary:hover { background: var(--volt); }

.related { margin-top: 3rem; padding-top: 1.6rem; border-top: 2px solid var(--ink); }
.related h2 { font-size: 1rem; font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.related ul { list-style: none; margin-top: 0.9rem; display: grid; gap: 0.5rem; }
.related a { color: var(--ink); }
.related a:hover { color: var(--signal); }

/* ---------- Interactive humanoid ---------- */
.robot-lab {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.6rem;
  align-items: start;
  background: var(--panel);
  border-radius: var(--radius);
  border-top: 3px solid var(--volt);
  padding: clamp(1.2rem, 3vw, 2rem);
  margin: 1.6rem 0 2rem;
}
.robot-svg { width: 100%; height: auto; }
.robot-svg .r-body { fill: none; stroke: var(--chrome); stroke-width: 2.2; }
.robot-svg .r-fill { fill: rgba(244, 245, 241, 0.06); }
.robot-svg .r-joint { fill: var(--signal); }
.robot-hotspot { cursor: pointer; }
.robot-hotspot circle.halo {
  fill: transparent;
  stroke: var(--cyber);
  stroke-width: 1.5;
  opacity: 0.55;
  animation: halo 2.2s ease-in-out infinite;
}
@keyframes halo { 50% { r: 14; opacity: 0.15; } }
.robot-hotspot.active circle.halo { stroke: var(--signal); opacity: 1; animation: none; }
.robot-hotspot circle.dot { fill: var(--cyber); }
.robot-hotspot.active circle.dot { fill: var(--signal); }
.robot-info { color: var(--chrome); }
.robot-info .ri-kicker {
  font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyber);
}
.robot-info h3 { color: var(--chrome); font-size: 1.25rem; margin: 0.35rem 0 0.5rem; }
.robot-info p { color: rgba(244, 245, 241, 0.82); font-size: 0.94rem; margin-bottom: 0.7rem; }
.robot-info .ri-formula {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyber);
  background: rgba(25, 200, 200, 0.08);
  border-left: 2px solid var(--cyber);
  padding: 0.5rem 0.8rem;
  margin-top: 0.6rem;
}
.robot-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.08em;
  color: rgba(244, 245, 241, 0.5);
  margin-top: 1rem;
}

/* ---------- Training pipeline animation ---------- */
.pipeline { margin: 2rem 0; }
.pipeline-svg { width: 100%; height: auto; font-family: var(--font-mono); }
.pl-stage rect { fill: var(--paper-raised); stroke: var(--ink); stroke-width: 1.6; }
.pl-stage text { fill: var(--ink); font-size: 11px; letter-spacing: 0.04em; }
.pl-stage .pl-sub { fill: var(--steel); font-size: 9px; }
.pl-stage.lit rect { stroke: var(--signal); stroke-width: 2.4; }
.pl-flow { fill: none; stroke: var(--steel); stroke-width: 1.4; stroke-dasharray: 4 4; opacity: 0.7; }
.pl-packet { fill: var(--signal); }
.pl-packet--b { fill: var(--volt); }
.pl-packet--c { fill: var(--cyber); }
.pl-loss { fill: none; stroke: var(--volt); stroke-width: 2; stroke-dasharray: 300; stroke-dashoffset: 300; }
.pipeline.play .pl-loss { animation: loss-draw 4s var(--ease) forwards; }
@keyframes loss-draw { to { stroke-dashoffset: 0; } }
.pl-seal { fill: none; stroke: var(--signal); stroke-width: 2.5; stroke-dasharray: 9 6; }
.pipeline-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.4rem; }
.pipeline-step {
  border-top: 3px solid var(--line);
  padding-top: 0.8rem;
  transition: border-color 0.3s ease;
}
.pipeline-step.lit { border-top-color: var(--signal); }
.pipeline-step h3 { font-size: 1rem; }
.pipeline-step p { font-size: 0.88rem; }

/* ---------- Careers ---------- */
.job { margin-top: 1.1rem; }
.job summary {
  list-style: none;
  cursor: pointer;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.8rem;
  padding: 1.2rem 1.4rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
  transition: border-color var(--t-fast) ease, transform var(--t-fast) var(--ease);
}
.job summary::-webkit-details-marker { display: none; }
.job summary:hover { transform: translateY(-2px); border-left-color: var(--volt); }
.job[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.job h3 { font-size: 1.15rem; margin: 0; }
.job .job-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--steel);
  margin-left: auto;
}
.job-body {
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.3rem 1.5rem 1.5rem;
  background: var(--paper);
}
.job-body ul { margin: 0.6rem 0 1rem 1.2rem; color: var(--ink-soft); font-size: 0.93rem; }
.job-body li { margin-bottom: 0.35rem; }
.news-item { border-left: 3px solid var(--volt); padding-left: 1.2rem; margin-top: 1.6rem; }
.news-date { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--steel); text-transform: uppercase; }
.partner-badge {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--chrome);
  background: linear-gradient(100deg, var(--volt), var(--signal));
  padding: 0.4rem 0.85rem;
  clip-path: var(--chamfer);
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; margin-top: 2rem; }
.about-portrait {
  background: var(--panel);
  border-radius: var(--radius);
  border-top: 3px solid var(--signal);
  padding: 2rem;
  text-align: center;
  color: var(--chrome);
}
.about-portrait img { width: 100%; max-width: 320px; margin-inline: auto; border-radius: var(--radius); }
.about-portrait .ap-fallback {
  width: 160px; height: 160px;
  margin: 0 auto 1rem;
}

/* ---------- Legal ---------- */
.legal h2 { font-size: 1.2rem; margin: 2rem 0 0.6rem; }
.legal p, .legal li { font-size: 0.95rem; }
.legal ul { margin: 0.5rem 0 1rem 1.2rem; }
.legal .placeholder {
  background: var(--signal-soft);
  border: 1px dashed var(--signal);
  padding: 0.05rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* ---------- Subpage responsive ---------- */
@media (max-width: 1000px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .robot-lab, .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .post-grid, .pipeline-steps { grid-template-columns: 1fr; }
  .job .job-meta { margin-left: 0; width: 100%; }
}

/* pipeline: loop flow + packet polish */
.pl-flow--loop { stroke: var(--volt); opacity: 0.85; }
.pl-packet--loop { fill: var(--volt); }
.pl-packet { filter: drop-shadow(0 0 3px rgba(255, 79, 0, 0.45)); }

/* ============================================================
   24. FEATURED POST BAND (homepage)
   ============================================================ */
.featured-post {
  background: var(--panel);
  margin-top: clamp(3rem, 8vh, 5rem);
}
.fp-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.fp-robot { width: 100%; max-width: 260px; margin-inline: auto; display: block; }
.fpr-body { fill: none; stroke: var(--chrome); stroke-width: 2.2; }
.fpr-fill { fill: rgba(244, 245, 241, 0.06); }
.fpr-body path[d*="105"] { stroke: var(--chrome); }
.fpr-core { fill: var(--signal); }
.fpr-caption {
  fill: rgba(244, 245, 241, 0.45);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
}
.fp-spot .halo {
  fill: transparent;
  stroke: var(--cyber);
  stroke-width: 1.5;
  opacity: 0.55;
  animation: halo 2.2s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.fp-spot .dot { fill: var(--cyber); }
.fp-copy h2 {
  color: var(--chrome);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  margin-top: 0.8rem;
}
.fp-copy h2 em {
  font-style: normal;
  background: linear-gradient(95deg, var(--signal), var(--volt));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fp-copy p { color: rgba(244, 245, 241, 0.78); margin-top: 0.9rem; max-width: 56ch; }
.fp-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.btn--ghost-light { color: var(--chrome); border-color: rgba(244, 245, 241, 0.4); }
.btn--ghost-light:hover { border-color: var(--cyber); color: var(--cyber); }
@media (max-width: 800px) {
  .fp-inner { grid-template-columns: 1fr; text-align: left; }
  .fp-robot { max-width: 200px; }
}

/* ============================================================
   25. TOOLS (Werkzeuge)
   ============================================================ */
.tool-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-top: 2rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-top: 3px solid var(--signal);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2rem);
}
.tool-field {
  display: block;
  margin-bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.tool-field output { float: right; color: var(--signal); font-weight: 600; }
.tool-field input[type="range"] {
  width: 100%; margin-top: 0.5rem;
  appearance: none; -webkit-appearance: none;
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--signal), var(--volt));
  outline: none;
}
.tool-field input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px;
  background: var(--ink);
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line-strong);
  cursor: grab;
}
.tool-field input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--ink);
  border: 3px solid var(--paper);
  border-radius: 50%;
  cursor: grab;
}
.tool-result {
  background: var(--panel);
  color: var(--chrome);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  align-self: start;
}
.tr-bar { margin-bottom: 1rem; }
.tr-label {
  font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(244, 245, 241, 0.6);
}
.tr-track { height: 14px; background: rgba(244, 245, 241, 0.08); border-radius: 3px; margin: 0.35rem 0; overflow: hidden; }
.tr-fill { height: 100%; border-radius: 3px; transition: width 0.35s var(--ease); }
.tr-fill--cloud { background: linear-gradient(90deg, var(--steel), var(--cyber)); }
.tr-fill--onprem { background: linear-gradient(90deg, var(--signal), var(--volt)); }
.tr-bar strong { font-family: var(--font-mono); font-size: 0.95rem; }
.tr-verdict { font-weight: 600; font-size: 1.05rem; margin-top: 0.6rem; }
.tr-detail, .dc-fix { font-size: 0.85rem; color: rgba(244, 245, 241, 0.75); margin-top: 0.5rem; }

.mf-q h3 { font-size: 0.92rem; margin: 1.1rem 0 0.5rem; }
.mf-q:first-child h3 { margin-top: 0; }
.mf-opts { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.mf-chip { color: var(--ink); border-color: var(--line-strong); cursor: pointer; }
.mf-chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mf-chip.active:hover { color: var(--paper); }

.dc-item {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem; color: var(--ink-soft);
  cursor: pointer;
}
.dc-item input { margin-top: 0.25rem; width: 17px; height: 17px; accent-color: var(--signal); flex: none; }
.dc-item strong { color: var(--ink); }
.dc-score { font-family: var(--font-display); font-size: 3rem; font-weight: 800; line-height: 1; }
.dc-score .dc-of { font-size: 1.1rem; color: rgba(244, 245, 241, 0.5); font-family: var(--font-mono); margin-left: 0.3rem; }
#dc-num { background: linear-gradient(95deg, var(--signal), var(--volt)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

@media (max-width: 760px) {
  .tool-panel { grid-template-columns: 1fr; }
}
