/* Motion4Sim MK4 product page — look follows docs.motion4sim.com (GitBook "clean": #1d1d1d,
   Inter, rounded cards with hairline borders). Accent = Motion4Sim logo red, links = docs blue. */

/* ── tokens ─────────────────────────────────────────────────────────────────────────── */
:root {
  --bg: #1d1d1d;
  --bg-alt: #202022;
  --surface: #252527;
  --surface-2: #2c2c2f;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #feffff;
  --text-2: #bec0c5;
  --text-3: #8d9097;
  --accent: #e8000c;
  --accent-hi: #ff2a35;
  --accent-soft: rgba(232, 0, 12, .14);
  --accent-glow: rgba(255, 20, 30, .55);
  --link: #6f9dfc;
  --ok: #3ccf7a;
  --warn: #ffb020;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px -12px rgba(0,0,0,.6);
  --radius: 12px;
  --radius-lg: 18px;
  --wrap: 1200px;
  --header-h: 64px;
  --wip-h: 34px;
  --warn-bg: #3a2c05;
  --warn-fg: #ffd36b;
  --font: Inter, "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  /* drawing colours, read by dims.js */
  --dim-line: #e9eaee;
  --dim-ext: rgba(233, 234, 238, .35);
  --dim-grid: rgba(255, 255, 255, .045);
  --dim-grid-major: rgba(255, 255, 255, .09);
  --dim-person: rgba(255, 255, 255, .16);
  --dim-floor: rgba(255, 255, 255, .35);
  --stage-bg: #18181a;
  --stage-grad: radial-gradient(120% 90% at 50% 38%, #46474c 0%, #2a2b2f 48%, #1a1a1c 100%);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f2f3f5;
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .14);
  --text: #1d1d1d;
  --text-2: #4b4f56;
  --text-3: #6d7179;
  --accent: #d6000b;
  --accent-hi: #e8000c;
  --accent-soft: rgba(214, 0, 11, .08);
  --link: #346ddb;
  --warn-bg: #fff4d1;
  --warn-fg: #6b4a00;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -16px rgba(0,0,0,.18);
  --dim-line: #26282c;
  --dim-ext: rgba(38, 40, 44, .35);
  --dim-grid: rgba(0, 0, 0, .04);
  --dim-grid-major: rgba(0, 0, 0, .08);
  --dim-person: rgba(0, 0, 0, .12);
  --dim-floor: rgba(0, 0, 0, .4);
  --stage-bg: #f4f5f7;
  --stage-grad: radial-gradient(120% 90% at 50% 38%, #ffffff 0%, #eef0f3 50%, #dfe2e7 100%);
  color-scheme: light;
}

/* ── base ───────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--wip-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--font); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -.03em; }
h3 { font-size: 18px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--text-3); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 6px; }

/* ── header (GitBook style) ─────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
}
.site-header.scrolled, .site-header.open {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.site-header { height: auto; }
.wip-bar {
  height: var(--wip-h); display: flex; align-items: center; background: var(--warn-bg); color: var(--warn-fg);
  font-size: 13px; line-height: 1.35; border-bottom: 1px solid rgba(255, 190, 40, .25);
}
.wip-bar .wrap { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wip-bar b { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 5px; font-size: 11.5px; letter-spacing: .06em;
  background: var(--warn-fg); color: var(--warn-bg); }
.brand img { height: 26px; width: auto; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  color: var(--text-2); font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 8px;
  text-decoration: none; transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a.active { color: var(--text); }
.site-header:not(.scrolled):not(.open) .main-nav a { color: rgba(255,255,255,.78); }
.site-header:not(.scrolled):not(.open) .main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  height: 36px; min-width: 36px; padding: 0 8px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-header:not(.scrolled):not(.open) .icon-btn { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.2); }
:root[data-theme="dark"] .i-moon, :root[data-theme="light"] .i-sun { display: none; }
.nav-burger { display: none; }

/* ── buttons ────────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 11px; font-weight: 600; font-size: 15px;
  text-decoration: none !important; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, background .15s, box-shadow .2s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -10px var(--accent-glow); }
.btn-accent:hover { background: var(--accent-hi); box-shadow: 0 10px 30px -8px var(--accent-glow); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.cta .btn-ghost, .section .btn-ghost { color: var(--text); background: var(--surface-2); border-color: var(--line-2); }

/* ── hero ───────────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: max(640px, 100svh); display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; overflow: hidden; background: #2a2a2b;
  padding-top: calc(var(--header-h) + var(--wip-h) + 24px);
}
.hero-video, .hero::before {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::before { content: ""; background: url("../img/hero-poster-1920.webp") center / cover no-repeat; }
.hero-video { z-index: 0; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14,14,15,.55) 0%, rgba(14,14,15,0) 22%),
    linear-gradient(90deg, rgba(14,14,15,.82) 0%, rgba(14,14,15,.55) 34%, rgba(14,14,15,0) 62%),
    linear-gradient(0deg, rgba(14,14,15,.9) 0%, rgba(14,14,15,.2) 32%, rgba(14,14,15,0) 50%);
}
.hero-content { position: relative; z-index: 2; padding-bottom: 36px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 12px 6px 10px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(0,0,0,.25);
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.85); backdrop-filter: blur(8px);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-glow); } 70% { box-shadow: 0 0 0 10px rgba(255,20,30,0); } 100% { box-shadow: 0 0 0 0 rgba(255,20,30,0); } }
.wordmark { margin: 0 0 18px; display: flex; align-items: flex-end; gap: 22px; }
.wordmark-svg { width: clamp(220px, 34vw, 430px); height: auto; overflow: visible; }
.wm-mk { fill: url(#wm-metal); }
.wm-digit {
  fill: rgba(20, 20, 22, .55); stroke: var(--accent-hi); stroke-width: 2.6; stroke-linejoin: miter;
  filter: drop-shadow(0 0 6px rgba(255, 30, 40, .85)) drop-shadow(0 0 22px rgba(255, 20, 30, .45));
  stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.6s .25s cubic-bezier(.6,.1,.2,1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.wordmark-sub { font-size: 13px; letter-spacing: .5em; font-weight: 500; color: rgba(255,255,255,.7); padding-bottom: 6px; }
.hero-lead { font-size: clamp(22px, 2.6vw, 32px); font-weight: 650; letter-spacing: -.02em; line-height: 1.2; max-width: 640px; margin-bottom: 12px; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.78); max-width: 560px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; padding-bottom: 34px; gap: 16px;
}
.stat b { display: block; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: rgba(255,255,255,.66); }
.stat b span { font-size: inherit; color: inherit; }
.scroll-hint { position: absolute; z-index: 2; left: 50%; bottom: 14px; width: 22px; height: 34px; margin-left: -11px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 12px; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ── sections ───────────────────────────────────────────────────────────────────────── */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-hi); margin-bottom: 14px; }
:root[data-theme="light"] .kicker { color: var(--accent); }
.lead { font-size: 18px; color: var(--text-2); margin-top: 16px; }
.note { font-size: 13px; color: var(--text-3); margin-top: 22px; max-width: 820px; }

.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-rev { grid-template-columns: 6fr 5fr; }
.split-rev .split-text { order: 2; }
.split-text h2 { margin-bottom: 20px; }
.split-text p { color: var(--text-2); font-size: 17px; }
.split-text p.kicker { color: var(--accent-hi); font-size: 13px; }
:root[data-theme="light"] .split-text p.kicker { color: var(--accent); }
.split-media { margin: 0; }
.split-media img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
figcaption { font-size: 13px; color: var(--text-3); margin-top: 10px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff2a35' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ── cards ──────────────────────────────────────────────────────────────────────────── */
.cards { display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow); transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card h3 { margin: 18px 0 8px; }
.card p { color: var(--text-2); font-size: 15px; margin: 0; }
.card-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid rgba(255, 42, 53, .22);
}
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-hi); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ── axes ───────────────────────────────────────────────────────────────────────────── */
.axes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.axis { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.axis-media { aspect-ratio: 16 / 9; background: #2a2a2b; overflow: hidden; }
.axis-media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s; }
.axis:hover .axis-media video { transform: scale(1.07); }
.axis-body { padding: 18px 22px 22px; }
.axis-body h3 { display: flex; align-items: baseline; justify-content: space-between; }
.axis-range { font: 600 14px/1.4 var(--mono); color: var(--accent-hi); margin: 4px 0 8px; }
:root[data-theme="light"] .axis-range { color: var(--accent); }
.axis-body p:last-child { color: var(--text-2); font-size: 15px; margin: 0; }

/* ── 3D viewer ──────────────────────────────────────────────────────────────────────── */
.viewer {
  display: grid; grid-template-columns: 1fr 340px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow);
}
.viewer-stage { position: relative; min-height: 560px; height: min(72vh, 760px); background: var(--stage-grad); }
.viewer-stage canvas { width: 100%; height: 100%; touch-action: none; }
.viewer-loading {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  color: var(--text-2); font-size: 14px; background: var(--stage-grad); transition: opacity .4s;
}
.viewer-loading.done { opacity: 0; pointer-events: none; }
.load-fail { max-width: 420px; text-align: center; color: var(--text-2); padding: 0 16px; }
.load-fail small { color: var(--text-3); word-break: break-all; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent-hi); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.viewer-hud { position: absolute; left: 14px; top: 14px; pointer-events: none; }
.hud-status {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); color: var(--text-2); backdrop-filter: blur(8px);
}
.hud-status:empty { display: none; }
.hud-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hud-status.limit::before { background: var(--warn); }
.viewer-views { position: absolute; right: 14px; top: 14px; display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.viewer-views button, .seg button, .presets button {
  border: 0; background: transparent; cursor: pointer; padding: 6px 11px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--text-2);
}
.viewer-views button:hover, .seg button:hover, .presets button:hover { color: var(--text); }
.viewer-views button.on, .seg button.on { background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; }
.viewer-hint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12px; color: var(--text-3); margin: 0; pointer-events: none; }
.viewer-panel { border-left: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; max-height: min(72vh, 760px); min-height: 560px; }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.seg button { flex: 1; }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.presets button { border: 1px solid var(--line); background: var(--bg); padding: 7px 4px; font-size: 12.5px; }
.presets button:hover { border-color: var(--line-2); }
.presets button.on { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.sliders { display: grid; gap: 12px; }
.sl { display: grid; grid-template-columns: 52px 1fr 64px; align-items: center; gap: 10px; font-size: 13px; }
.sl label { color: var(--text-2); font-weight: 500; }
.sl output { font: 500 12.5px/1 var(--mono); text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.sl.hit output { color: var(--warn); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--line-2), var(--line-2)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--text); border: 3px solid var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 3px solid var(--accent); }
.strokes-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 8px; }
.stroke-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.sb { display: grid; gap: 5px; justify-items: center; font: 500 11px/1 var(--mono); color: var(--text-3); }
.sb-track { position: relative; width: 100%; height: 74px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.sb-fill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, var(--accent), var(--accent-hi)); border-radius: 4px 4px 0 0; transition: background .2s; }
.sb-mid { position: absolute; left: 0; right: 0; bottom: 50%; border-top: 1px dashed var(--line-2); }
.sb.limit .sb-fill { background: var(--warn); }
.sb b { color: var(--text-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.toggles { display: flex; flex-wrap: wrap; gap: 16px; }
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; color: var(--text-2); user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { width: 34px; height: 20px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(14px); }
.switch input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.switch em { font-style: normal; }

/* ── dimensions ─────────────────────────────────────────────────────────────────────── */
.dims { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.dims-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px; border-bottom: 1px solid var(--line); }
.dims-bar .toggles { margin-left: auto; }
.dims-stage { position: relative; aspect-ratio: 16 / 9; min-height: 380px; background: var(--stage-bg); }
.dims-stage canvas, .dims-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dims-svg { overflow: visible; pointer-events: none; font-family: var(--font); }
.dims-table { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.dims-table div { padding: 16px 18px; border-right: 1px solid var(--line); display: grid; gap: 4px; }
.dims-table div:last-child { border-right: 0; }
.dims-table span { font-size: 12.5px; color: var(--text-3); }
.dims-table b { font: 650 18px/1.3 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.dims .note { padding: 0 18px 16px; margin: 0; }

/* ── gallery ────────────────────────────────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 12px; }
.g { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #2a2a2b; aspect-ratio: 16 / 9; }
.g-wide { grid-column: span 2; grid-row: span 2; }
.g-right { grid-column: 3 / span 2; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.g:hover img { transform: scale(1.05); }
.g::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.35), transparent 40%); opacity: 0; transition: opacity .3s; }
.g:hover::after { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,8,9,.92); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lightbox img { max-height: 84vh; max-width: 100%; border-radius: 10px; }
.lightbox figcaption { color: #bec0c5; }
.lightbox button { background: none; border: 0; color: #fff; font-size: 42px; cursor: pointer; opacity: .7; line-height: 1; }
.lightbox button:hover { opacity: 1; }
.lb-close { position: absolute; right: 18px; top: 10px; }

/* ── numbers ────────────────────────────────────────────────────────────────────────── */
.numbers-band { padding: clamp(56px, 8vw, 96px) 0; background:
  radial-gradient(80% 140% at 50% 120%, rgba(232, 0, 12, .22), transparent 60%), var(--bg); }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.num { padding: 4px 4px 4px 20px; border-left: 2px solid var(--accent); }
.num b { display: block; font-size: clamp(34px, 4vw, 52px); font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.num > span { color: var(--text-2); font-size: 14.5px; }

/* ── specs ──────────────────────────────────────────────────────────────────────────── */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.spec-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 24px 12px; box-shadow: var(--shadow); }
.spec-group h3 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 16px 0 10px; }
.spec-group dl { margin: 0; }
.spec-group dl div { display: grid; grid-template-columns: 42% 1fr; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.spec-group dt { color: var(--text-2); }
.spec-group dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }

/* ── notes (below the specs) ─────────────────────────────────────────────────────── */
.notes { margin-top: 22px; border: 1px solid rgba(255, 190, 40, .28); background: color-mix(in srgb, var(--warn-bg) 55%, var(--surface));
  border-radius: var(--radius-lg); padding: 18px 24px 8px; }
.notes h3 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--warn-fg); margin-bottom: 8px; }
.notes ul { list-style: none; margin: 0; padding: 0; }
.notes li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15px; display: grid; grid-template-columns: 170px 1fr; gap: 16px; }
.notes li:first-child { border-top: 0; }
.notes li b { color: var(--text); font-weight: 600; }

/* ── real photos (masonry) ──────────────────────────────────────────────────────── */
.photos { columns: 3 300px; column-gap: 12px; }
.photo { display: block; break-inside: avoid; margin: 0 0 12px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #2a2a2b; position: relative; }
.photo img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.photo:hover img { transform: scale(1.04); }
.photos:not(.all) .more { display: none; }
.photos-more { display: flex; justify-content: center; margin-top: 6px; }
.photos-more[hidden] { display: none; }

/* ── software ───────────────────────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.chips span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--text-2); background: var(--surface); }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ── faq ────────────────────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--text-3); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--text-2); margin: 0 0 18px; }

/* ── cta + footer ───────────────────────────────────────────────────────────────────── */
.cta { text-align: center; background: radial-gradient(60% 90% at 50% 0%, rgba(232, 0, 12, .16), transparent 70%), var(--bg-alt); border-top: 1px solid var(--line); }
.cta-inner { display: grid; justify-items: center; }
.wordmark-cta { width: 180px; margin-bottom: 26px; }
:root[data-theme="light"] .wordmark-cta .wm-mk { fill: #2a2c30; }
:root[data-theme="light"] .wordmark-cta .wm-digit { fill: #fff; }
.cta .lead { max-width: 560px; margin: 16px auto 30px; }
.cta .hero-cta { justify-content: center; }
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 28px; align-items: start; }
.footer-brand img { height: 22px; width: auto; margin-bottom: 10px; }
.footer-links, .footer-social { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a, .footer-social a { color: var(--text-2); }
.footer-social { justify-content: flex-end; }
.footer-copy { margin-top: 26px; font-size: 13px; }

/* ── reveal ─────────────────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wm-digit { animation: none; stroke-dashoffset: 0; }
  .eyebrow .dot, .scroll-hint span { animation: none; }
}

/* ── responsive ─────────────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .cards-3, .axes { grid-template-columns: repeat(2, 1fr); }
  .viewer { grid-template-columns: 1fr; }
  .viewer-panel { border-left: 0; border-top: 1px solid var(--line); max-height: none; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .viewer-panel .sliders { grid-row: span 3; }
  .viewer-stage { height: 62vh; min-height: 420px; }
  .numbers { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}
@media (max-width: 900px) {
  .main-nav {
    position: fixed; top: calc(var(--header-h) + var(--wip-h)); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line); display: none;
  }
  .site-header.open .main-nav { display: flex; }
  .main-nav a, .site-header:not(.scrolled):not(.open) .main-nav a { color: var(--text-2); padding: 12px 8px; font-size: 16px; }
  .nav-burger { display: inline-flex; }
  .header-tools .btn-sm { display: none; }
  .header-inner { justify-content: space-between; }
  .header-tools { margin-left: auto; }
  .split, .split-rev { grid-template-columns: 1fr; }
  .split-rev .split-text { order: 0; }
  .specs { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .g-right { grid-column: span 2; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-social { justify-content: flex-start; }
  .dims-table { grid-template-columns: repeat(2, 1fr); }
  .dims-table div:nth-child(2) { border-right: 0; }
  .dims-table div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .dims-bar .toggles { margin-left: 0; }
  .dims-stage { aspect-ratio: 4 / 3; min-height: 300px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  :root { --wip-h: 48px; }
  .wip-bar { font-size: 12px; }
  .wip-bar .wrap { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .notes { padding: 14px 16px 6px; }
  .notes li { grid-template-columns: 1fr; gap: 2px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .hero-shade { background: linear-gradient(180deg, rgba(14,14,15,.6) 0%, rgba(14,14,15,0) 25%), linear-gradient(0deg, rgba(14,14,15,.94) 0%, rgba(14,14,15,.55) 45%, rgba(14,14,15,.1) 70%); }
  .cards-3, .axes { grid-template-columns: 1fr; }
  .viewer-panel { grid-template-columns: 1fr; }
  .viewer-panel .sliders { grid-row: auto; }
  .viewer-stage { height: 56vh; min-height: 360px; }
  .gallery { grid-template-columns: 1fr; }
  .g-wide, .g-right { grid-column: auto; grid-row: auto; }
  .spec-group { padding: 6px 16px 10px; }
  .spec-group dl div { grid-template-columns: 1fr; gap: 2px; }
  .scroll-hint { display: none; }
  .wordmark { flex-direction: column; align-items: flex-start; gap: 8px; }
  .wordmark-sub { padding: 0 0 0 4px; }
  .viewer-hud { top: auto; bottom: 12px; }
  .viewer-hint { display: none; }
  .dims-bar { gap: 10px; }
  .dims-bar .seg { width: 100%; }
}

/* ── MK3: Varianten- und Preistabellen ─────────────────────────────────────────────── */
.variants, .pricebox { display: grid; gap: 18px; }
.vtable, .ptable {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  font-size: 15px; box-shadow: var(--shadow);
}
.vtable th, .ptable th {
  text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); padding: 14px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.vtable td, .ptable td { padding: 13px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.vtable tr:first-child td, .ptable tr:first-child td { border-top: 0; }
.vtable td:first-child { color: var(--text-2); width: 26%; }
.vtable td { font-weight: 500; }
.ptable td b { display: block; font-weight: 600; }
.ptable td small { display: block; margin-top: 5px; color: var(--text-3); font-size: 13px; line-height: 1.55; }
.ptable th.num, .ptable td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; width: 22%; }
.ptable td.num { font-weight: 650; }
.ptable tr.base td { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.ptable tr.base td.num { font-size: 19px; }
.ptable tr.hl td { background: rgba(111, 157, 252, .07); }
.pricecards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pricecard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 26px 24px; box-shadow: var(--shadow);
}
.pricecard.hl { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.pc-name { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.pc-sub { color: var(--text-3); font-size: 14px; margin: 4px 0 0; }
.pc-price {
  margin: 18px 0 0; font-size: 32px; font-weight: 700; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.pc-note { margin: 6px 0 0; font-size: 13px; color: var(--text-3); }
.pc-from {
  display: inline-block; margin-right: 8px; font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
  vertical-align: 3px;
}
@media (max-width: 700px) { .pricecards { grid-template-columns: 1fr; } }
.price-cta { justify-content: flex-start; margin-top: 4px; }
@media (max-width: 760px) {
  .vtable, .ptable { font-size: 14px; display: block; overflow-x: auto; }
  .vtable td, .ptable td, .vtable th, .ptable th { padding: 11px 14px; }
  .vtable td:first-child { width: auto; }
}
