/* ==========================================================================
   Dr.-Ing. Waheed Aslam Ghumman — "dark command centre"
   Control-room schematic: blue-black ground, hairline steel panels, one luminous
   brand blue for live links, amber only for manual gaps and pending status.
   Dark is the default; [data-theme="light"] is the toggle fallback.
   ========================================================================== */

@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(/assets/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2192, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(/assets/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+21C4, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(/assets/fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2192, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens: dark (default) ---------- */
:root {
  --bg: #060b14;
  --bg-alt: #09111e;
  --surface: #0c1626;
  --surface-2: #111d31;
  --ink: #e9eff7;
  --ink-2: #b6c4d6;
  --ink-3: #8fa1b8;
  --line: #1e2c41;
  --line-soft: #142033;
  --signal: #8ec5f2;
  --signal-strong: #5aaaf0;
  --signal-ink: #04101d;
  --link: #9fcff6;
  --glow: rgba(110, 182, 245, 0.32);
  --amber: #f0b04a;
  --amber-line: #d9952c;
  --grid: rgba(142, 197, 242, 0.05);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 24px 48px -28px rgba(0, 0, 0, 0.85);
  --focus: #8ec5f2;
  --code-k: #9fcff6;
  --code-s: #e3c48f;
  --code-c: #7e90a8;

  --font: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --r: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f7fb;
  --bg-alt: #e9eff6;
  --surface: #ffffff;
  --surface-2: #f6f9fc;
  --ink: #0c1a2c;
  --ink-2: #2f435a;
  --ink-3: #4f6278;
  --line: #c7d3e0;
  --line-soft: #dce5ee;
  --signal: #1f5e9c;
  --signal-strong: #2e75b6;
  --signal-ink: #ffffff;
  --link: #1f5e9c;
  --glow: rgba(46, 117, 182, 0.16);
  --amber: #8f5300;
  --amber-line: #c7811d;
  --grid: rgba(31, 56, 100, 0.06);
  --shadow: 0 1px 2px rgba(12, 26, 44, 0.05), 0 18px 40px -28px rgba(12, 26, 44, 0.35);
  --focus: #1f5e9c;
  --code-k: #9fcff6;
  --code-s: #e3c48f;
  --code-c: #7e90a8;
  color-scheme: light;
}
/* the local-AI band stays a night-time control room in both themes */
.section-ink {
  --bg: #04080f; --bg-alt: #070d18; --surface: #0b1424; --surface-2: #0f1a2d;
  --ink: #e9eff7; --ink-2: #b6c4d6; --ink-3: #8fa1b8; --line: #1d2b40; --line-soft: #132034;
  --signal: #8ec5f2; --signal-strong: #5aaaf0; --signal-ink: #04101d; --link: #9fcff6;
  --glow: rgba(110, 182, 245, 0.32); --amber: #f0b04a; --amber-line: #d9952c; --focus: #8ec5f2;
  --grid: rgba(142, 197, 242, 0.05);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 24px 48px -28px rgba(0, 0, 0, 0.85);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.62;
  font-kerning: normal; text-rendering: optimizeLegibility; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}
:lang(de) { hyphens: auto; -webkit-hyphens: auto; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.6em; font-weight: 640; letter-spacing: -0.018em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.2rem + 4.6vw, 4.9rem); letter-spacing: -0.036em; font-weight: 600; line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 1.15rem + 2.3vw, 2.9rem); letter-spacing: -0.028em; font-weight: 620; }
h3 { font-size: 1.15rem; }
.h3-lg { font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.65rem); letter-spacing: -0.02em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong, b { font-weight: 650; }
ul, ol { padding: 0; margin: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--surface); color: var(--ink); padding: 0.5rem 0.9rem; z-index: 30; border: 1px solid var(--line); border-radius: var(--r); }
.skip:focus { top: 0.75rem; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(48rem + 2 * var(--gutter)); }
.narrow-left { max-width: 48rem; }
.section { padding-block: clamp(4rem, 2.6rem + 6vw, 8rem); position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.section-ink {
  background-color: var(--bg); color: var(--ink);
  background-image: radial-gradient(var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  border-block: 1px solid var(--line);
}
.lead { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem); color: var(--ink-2); line-height: 1.55; }
.lead-sm { color: var(--ink-2); font-size: 1.075rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark rect { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.brand-mark path { fill: none; stroke: var(--signal); stroke-width: 2.2; }
.brand-mark circle { fill: var(--signal); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-weight: 650; font-size: 1rem; white-space: nowrap; }
.brand-sub { font-size: 0.75rem; color: var(--ink-3); white-space: nowrap; letter-spacing: 0.01em; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 0.25rem; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 0.94rem; padding: 0.45rem 0.7rem; border-radius: 6px; transition: color 0.2s, background-color 0.2s; }
.site-nav a:hover { color: var(--ink); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.header-tools { display: flex; gap: 0.5rem; align-items: center; }
.theme-toggle, .lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; padding: 0 0.6rem;
  border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink);
  font: 600 0.8rem var(--mono); text-decoration: none; cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.theme-toggle:hover, .lang:hover { border-color: var(--signal); background: var(--surface); }
.theme-toggle .ico { width: 18px; height: 18px; }
.ico-moon { display: none; }
:root[data-theme="light"] .ico-sun { display: none; }
:root[data-theme="light"] .ico-moon { display: block; }
@media (max-width: 64rem) { .site-nav { display: none; } .header-tools { margin-left: auto; } }
@media (max-width: 26rem) { .brand-sub { display: none; } .brand-name { font-size: 0.95rem; } }

/* ---------- buttons, tags, links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.7rem 1.35rem; border-radius: 10px;
  font-weight: 620; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
  border: 1px solid transparent; position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--signal); color: var(--signal-ink); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.45); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.55); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-ghost:hover { border-color: var(--signal); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tags li { font: 500 0.78rem/1.3 var(--mono); color: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.22rem 0.5rem; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.more { font-weight: 600; text-decoration: none; color: var(--link); display: inline-flex; gap: 0.4rem; align-items: center; padding-block: 0.3rem; }
.more:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.75rem, 1.5rem + 5vw, 6rem) clamp(3.5rem, 2rem + 5vw, 6.5rem); position: relative; overflow: hidden; }
.hero::before { /* the network's light: sits behind the diagram */
  content: ""; position: absolute; inset: -10% -20% auto auto; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%); opacity: 0.35; pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 68rem) { .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }
.hero h1 { margin-bottom: 0.5em; }
.hero-sub { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); color: var(--ink-2); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 1.5rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.4rem; }
.hero-chips li { font: 500 0.78rem/1 var(--mono); color: var(--ink-2); padding: 0.45rem 0.6rem; border: 1px solid var(--line); border-radius: 999px; }
.hero-avail { font-size: 0.92rem; color: var(--ink-3); display: flex; gap: 0.65rem; align-items: baseline; max-width: 38rem; margin: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex: none; transform: translateY(-1px); }

.hero-figure { margin: 0; }
.hero-diagram {
  position: relative; border-radius: 18px; padding: clamp(0.5rem, 1.6vw, 1.1rem);
  background-color: color-mix(in srgb, var(--surface) 55%, var(--bg));
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero-figure figcaption { font-size: 0.86rem; color: var(--ink-3); margin-top: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; justify-content: space-between; }
.hint { color: var(--ink-3); }
@media (hover: none) { .hint { display: none; } }
.replay { font: 500 0.8rem var(--mono); color: var(--link); background: none; border: 0; padding: 0.4rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; min-height: 32px; }

.hd { display: block; width: 100%; height: auto; overflow: visible; }
.hd-compact, .la-compact { display: none; }

.hd text, .la text { font-family: var(--mono); }
.hd-boundary { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 6; }
.hd-boundary-notch { fill: color-mix(in srgb, var(--surface) 55%, var(--bg)); }
.hd-boundary-label { font-size: 11px; fill: var(--ink-3); letter-spacing: 0.02em; }
.hd-box { fill: var(--surface); stroke: var(--line); stroke-width: 1; transition: stroke 0.25s, fill 0.25s; }
.hd-panel { cursor: default; }
.hd-panel.is-hot .hd-box { stroke: var(--signal); fill: var(--surface-2); }
.hd-rule { stroke: var(--line-soft); }
.hd .hd-name { font-family: var(--font); font-weight: 650; font-size: 15px; fill: var(--ink); }
.hd-compact .hd-name { font-size: 16px; }
.hd-tool { font-size: 11px; fill: var(--ink-3); }
.hd-compact .hd-tool { font-size: 12.5px; }
.hd-row { font-size: 11.5px; fill: var(--ink-2); }
.hd-gap { fill: none; stroke: var(--amber-line); stroke-width: 1; stroke-dasharray: 2 5; opacity: 0.25; }
.hd-manual { opacity: 0; }
.hd-manual-line { fill: none; stroke: var(--amber-line); stroke-width: 1.5; stroke-dasharray: 5 5; }
.hd-manual-box { fill: var(--bg); stroke: var(--amber-line); stroke-width: 1.5; stroke-dasharray: 5 4; }
.hd-manual-text { font-size: 13px; fill: var(--amber); font-weight: 600; }
.hd-manual-label { font-size: 11px; fill: var(--amber); }
.hd-thread { fill: none; stroke: var(--signal); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 5px var(--glow)); transition: opacity 0.25s, stroke-width 0.25s; }
.hd-port { fill: var(--signal); }
.hd-ch { font-size: 11px; font-weight: 600; fill: var(--signal); }
.hd-spoke { fill: none; stroke: var(--signal); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.55; transition: opacity 0.25s; }
.hd-agent-box { fill: var(--surface-2); stroke: var(--signal); stroke-width: 1.4; }
.hd-agent-core { fill: var(--signal); filter: drop-shadow(0 0 6px var(--glow)); }
.hd .hd-agent-name { font-family: var(--font); font-size: 14px; font-weight: 650; fill: var(--ink); }
.hd-agent-sub { font-size: 11px; fill: var(--ink-2); }
.hd-compact .hd-agent-name { font-size: 14.5px; }
.hd-compact .hd-agent-sub { font-size: 11.5px; }
.hd-cycle-box { fill: var(--bg); stroke: var(--line); }
.hd-cycle-a, .hd-cycle-b { font-size: 11px; }
.hd-cycle-a { fill: var(--amber); }
.hd-cycle-b { fill: var(--signal); opacity: 0; }
.hd-packet { fill: var(--signal); filter: drop-shadow(0 0 4px var(--signal-strong)); }
.hd-packet-in { fill: var(--ink); }
.hd-packets { opacity: 0; }
/* hover: trace one system's links */
.hd.has-focus .hd-thread:not(.hot), .hd.has-focus .hd-spoke:not(.hot) { opacity: 0.18; }
.hd.has-focus .hd-thread.hot { stroke-width: 4; }
.hd.has-focus .hd-spoke.hot { opacity: 1; stroke-dasharray: none; }

/* the authored moment: hand-carried data -> one thread -> local agent with sign-off */
.is-playing .hd-panel { animation: fade-in 0.6s var(--ease) both; animation-delay: calc(var(--i) * 0.09s); }
.is-playing .hd-manual { animation: hd-manual 2.6s ease-in-out 0.35s both; }
.is-playing .hd-thread { animation: hd-draw 0.5s var(--ease) both; animation-delay: calc(2.45s + var(--i) * 0.28s); }
.is-playing .hd-port, .is-playing .hd-ch { animation: fade-in 0.35s ease-out both; animation-delay: calc(2.6s + var(--i) * 0.28s); }
.is-playing .hd-agent { animation: agent-in 0.7s var(--ease) 3.6s both; }
.is-playing .hd-packets { animation: fade-in 0.6s ease 4.2s both; }
.hd-cycle-a { animation: cycle-a 7s ease-in-out 4.4s infinite both; }
.hd-cycle-b { animation: cycle-b 7s ease-in-out 4.4s infinite both; }
.hd-cycle-box { transition: stroke 0.4s; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes agent-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.hd-agent { transform-box: fill-box; transform-origin: center; }
@keyframes hd-manual { 0% { opacity: 0; } 15% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hd-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes cycle-a { 0%, 42% { opacity: 1; } 50%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes cycle-b { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
.is-playing .hd-packets, .hd-packets { will-change: opacity; }
.hero-diagram:not(.is-playing) .hd-packets { opacity: 1; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 2.5rem; border-top: 1px solid var(--line); }
@media (min-width: 60rem) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pillar { position: relative; padding: 2rem 0 2.2rem; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.9rem; }
@media (min-width: 60rem) {
  .pillar { padding: 2.2rem 2rem 2.4rem; border-bottom: 0; }
  .pillar:first-child { padding-left: 0; }
  .pillar + .pillar { border-left: 1px solid var(--line); }
}
.pillar::before { /* live-link line that lights on hover */
  content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 3rem; background: var(--signal);
  transform-origin: left; transition: transform 0.5s var(--ease);
}
@media (min-width: 60rem) { .pillar + .pillar::before { left: 2rem; } }
.pillar:hover::before { transform: scaleX(2.2); }
.pillar h3 { font-size: 1.35rem; margin: 0; letter-spacing: -0.02em; }
.pillar p { color: var(--ink-2); margin: 0; }
.pillar .more { margin-top: auto; }

/* ---------- problems: chain of failures ---------- */
.chain { position: relative; margin: 2.5rem 0 2rem; }
.chain li { position: relative; padding: 0 0 1.9rem 2.4rem; }
.chain li::before { content: ""; position: absolute; left: 0; top: 0.42rem; width: 13px; height: 13px; border: 2px solid var(--amber-line); background: var(--bg-alt); transform: rotate(45deg); }
.chain li::after { content: ""; position: absolute; left: 6px; top: 1.45rem; bottom: 0.15rem; border-left: 2px dashed color-mix(in srgb, var(--amber-line) 60%, transparent); }
.chain li:last-child { padding-bottom: 0; }
.chain li:last-child::after { display: none; }
.chain-tag { display: block; font: 500 0.78rem var(--mono); color: var(--amber); margin-bottom: 0.15rem; }
.chain p { margin: 0; font-size: 1.15rem; line-height: 1.5; }
.chain-outro { border-top: 1px solid var(--line); padding-top: 1.5rem; color: var(--ink-2); }

/* ---------- systems map ---------- */
.sysmap { margin-top: 2.5rem; }
.sysmap-domains { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); gap: 1rem; }
.domain { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.15rem 1.15rem; box-shadow: var(--shadow); }
.domain::before { content: ""; position: absolute; top: -1px; left: 1.15rem; width: 2.5rem; height: 2px; background: var(--signal); }
.domain::after { content: ""; position: absolute; left: 1.15rem; bottom: -1.05rem; height: 1rem; border-left: 1px solid var(--signal); opacity: 0.6; }
.domain h3 { font-size: 1rem; margin-bottom: 0.65rem; hyphens: manual; }
.domain li { font-size: 0.95rem; padding: 0.32rem 0; border-top: 1px solid var(--line-soft); }
.domain li.is-assess { color: var(--ink-2); }
.mark { font-family: var(--mono); color: var(--amber); margin-left: 0.25rem; font-weight: 600; }
.sysmap-bus {
  margin-top: 1rem; border: 1px solid color-mix(in srgb, var(--signal) 55%, var(--line)); border-radius: var(--r);
  background: color-mix(in srgb, var(--signal) 8%, var(--surface));
  padding: 0.9rem 1.15rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; align-items: baseline;
}
.sysmap-bus h3 { font-size: 0.9rem; margin: 0; color: var(--ink-2); font-weight: 600; }
.sysmap-bus ul { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; }
.sysmap-bus li { font: 600 0.95rem var(--mono); }
.sysmap-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 1.1rem 0 0; font-size: 0.875rem; color: var(--ink-2); }
.sysmap-legend div { display: flex; gap: 0.55rem; align-items: baseline; }
.sysmap-legend dd { margin: 0; }
.key-prod { display: inline-block; width: 14px; height: 2px; background: var(--signal); transform: translateY(-3px); }
.key-star { font-family: var(--mono); color: var(--amber); font-weight: 600; }
.sysmap-note { margin-top: 2rem; color: var(--ink-2); }

/* ---------- services (home) ---------- */
.offers { display: grid; margin-top: 2rem; border-top: 1px solid var(--line); }
.offer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.4rem 2.5rem; padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .offer { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); } }
.offer h3 { font-size: 1.25rem; margin-bottom: 0.2rem; }
.offer-meta { font: 500 0.8rem var(--mono); color: var(--ink-3); margin: 0; }
.offer > p { margin: 0; color: var(--ink-2); max-width: 42rem; }
.offer-first > p { color: var(--ink); font-size: 1.1rem; }
.badge { display: inline-block; margin: 0.6rem 0 0; font-size: 0.8rem; font-weight: 600; color: var(--signal-ink); background: var(--signal); padding: 0.18rem 0.6rem; border-radius: 999px; }
.pricing { margin-top: 1.2rem; font-weight: 600; }

.process { margin-top: clamp(3rem, 2rem + 4vw, 5rem); }
.process > p { color: var(--ink-2); max-width: 46rem; }
.gantt { margin-top: 1.8rem; counter-reset: phase; }
.gantt li { counter-increment: phase; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem 2rem; padding: 0.9rem 0; border-top: 1px solid var(--line-soft); align-items: center; }
@media (min-width: 48rem) { .gantt li { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); } }
.gantt-label { display: grid; grid-template-columns: 2rem minmax(0, 1fr); }
.gantt-label::before { content: counter(phase); grid-row: span 2; font: 600 0.95rem/1.6 var(--mono); color: var(--signal); }
.gantt-name { font-weight: 640; }
.gantt-desc { font-size: 0.9rem; color: var(--ink-3); line-height: 1.45; }
.gantt-track { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem; align-items: center; }
.gantt-bars { display: flex; align-items: center; height: 26px; background-image: repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px calc(100% / 15)); border-left: 1px solid var(--line); }
.gantt-min { height: 12px; background: var(--signal); border-radius: 3px 0 0 3px; }
.gantt-max { height: 12px; border: 1px solid var(--signal); border-left: 0; border-radius: 0 3px 3px 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--signal) 35%, transparent) 0 2px, transparent 2px 6px); }
.gantt-days { font: 500 0.8rem var(--mono); color: var(--ink-2); padding-left: 0.6rem; white-space: nowrap; }
.gantt-scale { display: none; }
@media (min-width: 48rem) {
  .gantt-scale { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); column-gap: 2rem; font: 0.75rem var(--mono); color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 0.4rem; }
  .gantt-axis { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem; }
  .gantt-ticks { position: relative; height: 1.2em; }
  .gantt-ticks i { font-style: normal; position: absolute; top: 0; transform: translateX(-50%); }
  .gantt-ticks i:nth-child(1) { left: 0; transform: none; }
  .gantt-ticks i:nth-child(2) { left: 33.333%; }
  .gantt-ticks i:nth-child(3) { left: 66.666%; }
  .gantt-ticks i:nth-child(4) { left: 100%; }
  .gantt-unit { padding-left: 0.9rem; white-space: nowrap; }
}
.gantt-total { margin-top: 1.2rem; font-size: 1.05rem; }

/* ---------- deadlines ---------- */
.tl { margin: 3rem 0 1rem; padding-block: 4rem 3.2rem; display: none; }
@media (min-width: 52rem) { .tl { display: block; } }
.tl-track { position: relative; height: 2px; background: linear-gradient(90deg, var(--line), var(--line)); }
.tl-year { position: absolute; top: 0; transform: translateX(-50%); font: 600 0.78rem var(--mono); color: var(--ink-3); padding-top: 0.7rem; }
.tl-year::before { content: ""; position: absolute; top: -5px; left: 50%; width: 1px; height: 10px; background: var(--ink-3); }
.tl-mark { position: absolute; top: -6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--bg); border: 2px solid var(--signal); text-decoration: none; }
.tl-mark span { position: absolute; left: 50%; transform: translateX(-50%); font: 600 0.75rem var(--mono); color: var(--ink); white-space: nowrap; }
.tl-mark.is-above span { bottom: 1.4rem; }
.tl-mark.is-below span { top: 2.3rem; }
.tl-today { position: absolute; top: -52px; height: 58px; width: 0; border-left: 1px dashed var(--amber-line); }
.tl-today span { position: absolute; bottom: 100%; left: 0; transform: translateX(-50%); padding-bottom: 0.2rem; font: 600 0.72rem var(--mono); color: var(--amber); }
.dl-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.dl-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.3rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
@media (min-width: 52rem) { .dl-list li { grid-template-columns: 7.5rem minmax(0, 1fr) 15rem; } }
.dl-list time { font: 600 0.9rem var(--mono); color: var(--signal); }
.dl-list h3 { font-size: 1.08rem; margin: 0 0 0.2rem; }
.dl-list p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.dl-list .more { font-size: 0.95rem; }
.dl-foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; margin-top: 2rem; }
.dl-foot p { margin: 0; color: var(--ink-2); max-width: 40rem; }

/* ---------- local AI ---------- */
.la-figure { margin: 2.75rem 0 2.5rem; padding: clamp(0.75rem, 2vw, 1.5rem); border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--surface) 50%, transparent); box-shadow: var(--shadow); }
.la { width: 100%; height: auto; }
.la-wide { display: block; }
.la-boundary { fill: none; stroke: var(--signal); stroke-opacity: 0.45; stroke-width: 1; stroke-dasharray: 5 6; }
.la-notch { fill: color-mix(in srgb, var(--surface) 50%, var(--bg)); }
.la-boundary-t { font-size: 12px; fill: var(--signal); font-weight: 600; }
.la-node rect { fill: var(--surface); stroke: var(--line); }
.la-node.is-human rect { fill: var(--ink); stroke: var(--ink); }
.la-node.is-human .la-n { fill: var(--bg); }
.la-node.is-human .la-s { fill: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.la .la-n { font-family: var(--font); font-size: 15px; font-weight: 650; fill: var(--ink); }
.la-s { font-size: 11px; fill: var(--ink-2); }
.la-flow-seg { fill: none; stroke: var(--signal); stroke-width: 1.6; opacity: 0.85; }
.la-ah { fill: var(--signal); }
.la-out { fill: none; stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 3 4; }
.la-cut { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; }
.la-cut-t { font-size: 11px; fill: var(--amber); }
.la-cloud { fill: none; stroke: var(--ink-3); stroke-dasharray: 3 4; }
.la-cloud-t { font-size: 11.5px; fill: var(--ink-3); }
.la-packet { fill: var(--signal); filter: drop-shadow(0 0 5px var(--signal-strong)); }
.la-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem 3.5rem; align-items: start; }
@media (min-width: 62rem) { .la-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.la-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.6rem 2rem; margin: 0; }
.la-points div { border-top: 1px solid var(--line); padding-top: 1rem; }
.la-points dt { font-weight: 650; font-size: 1.05rem; margin-bottom: 0.3rem; }
.la-points dd { margin: 0; color: var(--ink-2); font-size: 0.975rem; }
.la-points.four { margin-block: 2.25rem 3.5rem; }
.la-cta { margin: 2.5rem 0 0; }

.code { margin: 0; border: 1px solid var(--line); border-radius: 12px; background: #050a13; overflow: hidden; box-shadow: var(--shadow); }
.code figcaption { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; justify-content: space-between; padding: 0.7rem 1rem; border-bottom: 1px solid #1a2639; font-size: 0.8rem; color: #93a5bb; }
.code-file { font-family: var(--mono); color: #e9eff7; }
.code pre { margin: 0; padding: 1rem 1.1rem 1.2rem; overflow-x: auto; font: 0.82rem/1.65 var(--mono); color: #d7e2ef; tab-size: 2; }
.code .k { color: var(--code-k); }
.code .s { color: var(--code-s); }
.code .c { color: var(--code-c); font-style: italic; }
.code .b { color: #f0b04a; }

/* ---------- delivery pipeline ---------- */
.pipeline { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 2.5rem; counter-reset: step; }
@media (min-width: 56rem) { .pipeline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pipeline li { counter-increment: step; position: relative; padding: 1.3rem 1.25rem 1.4rem 3.2rem; border: 1px solid var(--line); background: var(--surface); }
.pipeline li + li { border-top: 0; }
@media (min-width: 56rem) {
  .pipeline li { padding: 1.4rem 1.4rem 1.6rem; }
  .pipeline li + li { border-top: 1px solid var(--line); border-left: 0; }
  .pipeline li:first-child { border-radius: var(--r) 0 0 var(--r); }
  .pipeline li:last-child { border-radius: 0 var(--r) var(--r) 0; }
}
.pipeline li::before { content: counter(step); position: absolute; left: 1.25rem; top: 1.3rem; font: 600 0.85rem var(--mono); color: var(--signal); }
@media (min-width: 56rem) { .pipeline li::before { position: static; display: block; margin-bottom: 0.6rem; } }
.pipeline li::after { /* the signal travelling through the pipeline */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--signal);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease);
}
.pipeline:hover li::after { transform: scaleX(1); }
.pipeline li:nth-child(2)::after { transition-delay: 0.12s; }
.pipeline li:nth-child(3)::after { transition-delay: 0.24s; }
.pipeline li:nth-child(4)::after { transition-delay: 0.36s; }
.pl-a { display: block; font-weight: 650; font-size: 1.1rem; }
.pl-b { display: block; color: var(--ink-2); font-size: 0.95rem; }

/* ---------- synapse ---------- */
.synapse-head { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; }
.synapse-head h2 { margin-bottom: 0.4em; max-width: 40rem; }
.status { font: 500 0.8rem var(--mono); color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); padding: 0.25rem 0.65rem; border-radius: 999px; display: inline-flex; gap: 0.5rem; align-items: center; margin: 0; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem 2rem; margin: 2.25rem 0 3rem; }
.features div { border-top: 1px solid var(--line); padding-top: 0.9rem; }
.features dt { font-weight: 650; margin-bottom: 0.25rem; }
.features dd { margin: 0; color: var(--ink-2); font-size: 0.975rem; }
.govern { display: grid; grid-template-columns: minmax(0, 1fr); margin: 1.5rem 0 2.75rem; counter-reset: step; }
.govern li { counter-increment: step; display: flex; gap: 0.9rem; align-items: baseline; padding: 0.9rem 1rem; border: 1px solid var(--line); background: var(--surface); }
.govern li + li { border-top: 0; }
.govern li::before { content: counter(step); font: 0.8rem var(--mono); color: var(--ink-3); }
.govern-who { font-weight: 650; min-width: 6.5rem; }
.govern-verb { font: 0.9rem var(--mono); color: var(--ink-2); }
.govern li.is-human { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.govern li.is-human::before, .govern li.is-human .govern-verb { color: color-mix(in srgb, var(--bg) 75%, var(--ink)); }
@media (min-width: 56rem) {
  .govern { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .govern li { flex-direction: column; gap: 0.35rem; padding: 1.15rem 1.15rem 1.25rem; }
  .govern li + li { border-top: 1px solid var(--line); border-left: 0; }
  .govern li:first-child { border-radius: var(--r) 0 0 var(--r); }
  .govern li:last-child { border-radius: 0 var(--r) var(--r) 0; }
}
.synapse-foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 3rem; align-items: start; border-top: 1px solid var(--line); padding-top: 2rem; }
@media (min-width: 56rem) { .synapse-foot { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.onprem { font-size: 1.2rem; line-height: 1.5; margin: 0; }
.status-line { font: 0.85rem var(--mono); color: var(--ink-2); }

/* ---------- business case ---------- */
.split { margin: 2.25rem 0 0; }
.split-bar { display: flex; height: 3.25rem; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.split-bar span { display: flex; align-items: center; padding-inline: 0.8rem; font: 0.95rem var(--mono); }
.split-a { color: var(--ink-2); border-right: 2px solid var(--bg); background: repeating-linear-gradient(135deg, var(--line-soft) 0 2px, transparent 2px 7px), var(--surface); }
.split-b { background: var(--signal); color: var(--signal-ink); }
.split-legend { display: flex; gap: 1.25rem; margin-top: 0.9rem; }
.split-item { min-width: 0; }
.split-item p { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.split-item .split-k { font: 600 0.82rem var(--mono); color: var(--ink); margin-bottom: 0.25rem; }
@media (max-width: 34rem) { .split-legend { flex-direction: column; } .split-item { flex-basis: auto !important; } }
.split-caption { margin-top: 1.5rem; padding: 0.8rem 1rem; border: 1px dashed var(--line); border-radius: var(--r); font-size: 0.9rem; color: var(--ink-2); }

/* ---------- industries + Saxony ---------- */
.regimes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 0 2.5rem; margin: 2.25rem 0 0; }
.regimes div { border-top: 1px solid var(--line); padding: 1.15rem 0 1.4rem; }
.regimes dt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1rem; margin-bottom: 0.45rem; }
.regime-n { font-weight: 650; font-size: 1.05rem; }
.regime-r { font: 0.8rem var(--mono); color: var(--link); align-self: center; }
.regimes dd { margin: 0; color: var(--ink-2); font-size: 0.975rem; }
.saxony { margin-top: 3.5rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.saxony > p { color: var(--ink-2); }
.regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem 2rem; margin-top: 1.25rem; }
.regions li { display: flex; flex-direction: column; gap: 0.2rem; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.rg-n { font-weight: 650; font-size: 1.05rem; }
.rg-w { font-size: 0.92rem; color: var(--ink-3); }
.rg-a { font-size: 0.95rem; color: var(--ink-2); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (min-width: 52rem) { .about-grid { grid-template-columns: minmax(0, 17rem) minmax(0, 46rem); gap: 4rem; } }
.portrait img { width: 100%; height: auto; border-radius: 14px; display: block; }
.portrait-ph { aspect-ratio: 4 / 5; max-width: 17rem; border: 1px dashed var(--line); border-radius: 14px; display: grid; place-items: center; text-align: center; padding: 1rem; font: 0.8rem var(--mono); color: var(--ink-3); background: var(--surface); }
.about-text > p { color: var(--ink-2); }
.facts { margin: 1.75rem 0 0; }
.facts div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.15rem 1.5rem; border-top: 1px solid var(--line-soft); padding: 0.8rem 0; }
@media (min-width: 40rem) { .facts div { grid-template-columns: 8rem minmax(0, 1fr); } }
.facts dt { font-size: 0.85rem; color: var(--ink-3); padding-top: 0.15rem; }
.facts dd { margin: 0; font-size: 0.975rem; }
.values-h { margin-top: 2rem; font-size: 1rem; }
.values li { font-size: 1.15rem; font-weight: 560; padding: 0.35rem 0 0.35rem 1.4rem; position: relative; }
.values li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 0.7rem; height: 2px; background: var(--signal); }

/* ---------- faq ---------- */
.faq { margin-top: 1.75rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 600; font-size: 1.075rem; list-style: none; position: relative; transition: color 0.2s; }
.faq summary:hover { color: var(--link); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.4rem; top: 50%; width: 10px; height: 10px; border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-2); margin: -0.2rem 0 1.2rem; max-width: 44rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem 4rem; align-items: start; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.contact-after { font-size: 1.1rem; max-width: 34rem; }
.contact-list { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.contact-list li { display: flex; gap: 1rem; padding: 1.05rem 1.25rem; border-top: 1px solid var(--line-soft); align-items: flex-start; }
.contact-list li:first-child { border-top: 0; }
.contact-list li > .ico { width: 22px; height: 22px; color: var(--signal); margin-top: 0.15rem; }
.contact-list li > div { display: flex; flex-direction: column; min-width: 0; }
.cl-k { font-size: 0.8rem; color: var(--ink-3); }
.cl-v { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
a.cl-v { color: var(--link); }
.cl-note { font-size: 0.85rem; color: var(--ink-3); margin-top: 0.2rem; }
a.cl-note { color: var(--link); }
.mail-rev { unicode-bidi: bidi-override; direction: rtl; }

/* ---------- services page ---------- */
.page-hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2rem, 1.5rem + 3vw, 4rem); position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.page-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; background: radial-gradient(closest-side, var(--glow), transparent 70%); opacity: 0.45; pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.2rem, 1.2rem + 4vw, 4.4rem); }
.page-hero .hero-sub { max-width: 46rem; }
.start { margin-top: 2.5rem; }
.start-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1rem; }
@media (min-width: 52rem) { .start-list { grid-template-columns: 1fr 1fr; } }
.start-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 1rem; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.st-n { font-weight: 650; font-size: 1.1rem; }
.st-d { font: 600 0.85rem var(--mono); color: var(--signal); align-self: center; }
.st-x { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.97rem; }
.sv-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 4rem; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
@media (min-width: 64rem) { .sv-layout { grid-template-columns: 16rem minmax(0, 1fr); } }
.sv-index { align-self: start; }
@media (min-width: 64rem) { .sv-index { position: sticky; top: 6rem; } }
.sv-index ol { border-left: 1px solid var(--line); }
.sv-index a { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.5rem 0 0.5rem 1rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: 0.92rem; line-height: 1.35; transition: color 0.2s, border-color 0.2s; }
.sv-index a:hover { color: var(--ink); border-left-color: var(--signal); }
.ix-t { font: 0.75rem var(--mono); color: var(--ink-3); }
.sv-group + .sv-group { margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.sv-group > .lead { max-width: 46rem; }
.spec { margin-top: 2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 6rem; }
.spec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1.5rem; padding: 1.4rem 1.5rem 1.1rem; border-bottom: 1px solid var(--line-soft); position: relative; }
.spec-head::before { content: ""; position: absolute; top: -1px; left: 1.5rem; width: 3rem; height: 2px; background: var(--signal); }
.spec-head h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); margin: 0; letter-spacing: -0.02em; }
.spec-time { margin: 0; font: 600 0.88rem var(--mono); color: var(--signal); border: 1px solid color-mix(in srgb, var(--signal) 45%, var(--line)); border-radius: 999px; padding: 0.25rem 0.75rem; white-space: nowrap; }
.spec-driver { margin: 0; padding: 1rem 1.5rem; background: color-mix(in srgb, var(--amber) 7%, var(--surface)); border-bottom: 1px solid var(--line-soft); color: var(--ink); font-size: 0.98rem; }
.spec-driver .spec-k { color: var(--amber); }
.spec-k { display: block; font-size: 0.8rem; font-weight: 650; color: var(--ink-3); margin: 0 0 0.35rem; letter-spacing: 0.01em; }
.spec-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 2.5rem; padding: 1.4rem 1.5rem; }
@media (min-width: 52rem) { .spec-body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.spec-body p { color: var(--ink-2); font-size: 0.97rem; }
.spec-side .tags { margin-bottom: 1rem; }
.spec-list { margin-bottom: 1.25rem; }
.spec-list li { position: relative; padding: 0.35rem 0 0.35rem 1.4rem; font-size: 0.98rem; }
.spec-list li::before { content: ""; position: absolute; left: 0.1rem; top: 0.95rem; width: 7px; height: 7px; border-radius: 2px; background: var(--signal); }
.spec-cta { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin: 0; padding: 1.1rem 1.5rem 1.4rem; border-top: 1px solid var(--line-soft); }
.stack { display: grid; gap: 0; margin-top: 1.25rem; border-top: 1px solid var(--line); }
.stack div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem 2rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); align-items: center; }
@media (min-width: 44rem) { .stack div { grid-template-columns: 9rem minmax(0, 1fr); } }
.stack dt { font-weight: 650; }
.stack dd { margin: 0; }
.sv-cta .hero-actions { margin-bottom: 0; }

/* ---------- legal ---------- */
.legal h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); }
.legal h2 { font-size: 1.2rem; margin-top: 2.2rem; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1em; }
.legal-note { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 0.8rem 1rem; color: var(--ink) !important; }
.legal-meta { margin-top: 2.5rem; font: 0.8rem var(--mono); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; font-size: 0.92rem; color: var(--ink-3); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: flex-start; }
.footer-inner p { margin: 0; }
.footer-inner strong { color: var(--ink); font-weight: 600; }
.footer-addr { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.6rem !important; }
.footer-contact, .footer-links { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-contact a, .footer-links a { color: var(--ink-2); display: inline-flex; gap: 0.55rem; align-items: center; padding-block: 0.3rem; text-decoration: none; }
.footer-contact a:hover, .footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-contact .ico { color: var(--signal); }

/* ---------- mobile quick-contact bar ---------- */
.contact-bar { display: none; }
@media (max-width: 48rem) {
  .contact-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; z-index: 25; left: 0.6rem; right: 0.6rem;
    bottom: calc(0.6rem + env(safe-area-inset-bottom)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  }
  .contact-bar a { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 0.6rem 0.25rem; min-height: 56px; justify-content: center; color: var(--ink); text-decoration: none; font-size: 0.78rem; font-weight: 600; }
  .contact-bar a + a { border-left: 1px solid var(--line-soft); }
  .contact-bar .ico { width: 20px; height: 20px; color: var(--signal); }
  body { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

/* ---------- motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .hd-packets, .la-packets, .replay { display: none !important; }
  .hd-cycle-a { opacity: 0 !important; }
  .hd-cycle-b { opacity: 1 !important; }
}

@media print {
  .site-header, .hero-figure, .replay, .skip, .contact-bar, .la-figure { display: none !important; }
  body { background: #fff; color: #000; }
}

/* variant switch (kept last so it wins) */
@media (max-width: 36rem) { .hd-wide, .la-wide { display: none; } .hd-compact, .la-compact { display: block; } }
@media (max-width: 24rem) { .brand-mark { display: none; } .header-inner { gap: 0.75rem; } .brand-name { font-size: 0.9rem; } .theme-toggle, .lang { min-width: 38px; min-height: 38px; } }
@media (max-width: 52rem) { .portrait { max-width: 14rem; } }
