/* Modelwright landing — site.css
   Palette follows the demo's clay scene (stone / off-white), one accent (burnt orange). */

:root {
  --bg: #f4f3f0;
  --bg-alt: #ecebe7;
  --stage: #e9e7e3;
  --paper: #fbfaf8;
  --ink: #1d2024;
  --ink-2: #4c5157;
  --ink-3: #5b6168;   /* small text, 5.6:1 on --bg */
  --ink-4: #8b9097;   /* decorative only */
  --line: #dcd9d3;
  --line-2: #c9c5bd;
  --accent: #a8481c;  /* burnt orange, 5.2:1 on --bg */
  --accent-soft: #e9d7cc;
  --dark: #1b1e22;
  --dark-2: #25292e;
  --dark-line: #3a3f45;
  --dark-ink: #eceae6;
  --dark-ink-2: #a9adb2;
  --focus: #a8481c;

  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1360px;
  --header-h: 64px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
em { font-style: italic; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.muted { color: var(--ink-3); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

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

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- type helpers */
.eyebrow {
  font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
}
.eyebrow .idx { color: var(--accent); }
.eyebrow .idx::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--line-2); vertical-align: middle; margin-left: 12px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 15px/1 var(--font); letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  padding: 15px 22px; border-radius: var(--radius); border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { padding: 10px 14px; font-size: 14px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #33383e; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #8f3d17; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row-center { justify-content: center; margin-top: 40px; }

.link-arrow { font: 500 14px/1.3 var(--font); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; white-space: nowrap; }
.link-arrow:hover { border-color: var(--ink); }

.tag {
  display: inline-block; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 7px 4px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--ink-2); vertical-align: middle;
}
.tag-accent { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(244, 243, 240, .97); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; margin: 0; }
.brand-mark { width: 26px; height: 26px; color: var(--ink); flex: none; }
.brand-mark .accent-stroke { color: var(--accent); stroke: var(--accent); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14.5px; color: var(--ink-2); padding: 6px 0; }
.nav a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; padding: clamp(36px, 5vw, 72px) 0 clamp(56px, 7vw, 96px);
  background-image:
    linear-gradient(to right, rgba(29,32,36,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(29,32,36,.045) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero-copy { padding-bottom: 40px; }
.hero h1 { font-size: clamp(40px, 3.7vw, 58px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 500; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 span:last-child { color: var(--ink-3); }
.lede { font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.5; color: var(--ink-2); margin: 26px 0 34px; max-width: 34em; }
.spec-list { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line-2); }
.spec-list li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec-list span { font: 500 11px/1.9 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.hero-figure { margin: 0; position: relative; min-width: 0; }

/* dimension line motif */
.dimline { position: relative; height: 22px; margin: 0 0 10px; }
.dimline::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink-4); }
.dimline::after { content: ""; position: absolute; inset: 4px 0; border-left: 1px solid var(--ink-4); border-right: 1px solid var(--ink-4); }
.dimline span {
  position: relative; z-index: 1; display: table; margin: 0 auto; background: var(--bg); padding: 0 10px;
  font: 500 11.5px/22px var(--mono); letter-spacing: .06em; color: var(--ink-2); font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- stage (3D slot) */
.stage { position: relative; background: var(--stage); overflow: hidden; border-radius: 2px; isolation: isolate; }
.stage-hero { aspect-ratio: 16 / 10.5; max-height: min(74vh, 720px); width: 100%; }
.stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease; z-index: 0; }
.stage.is-live .poster { opacity: 0; pointer-events: none; }
.viewer { position: absolute; inset: 0; z-index: 1; }
/* let the page keep scrolling vertically over the model on touch screens; horizontal drag still orbits */
.viewer.cfg3d { touch-action: pan-y; }
.viewer canvas { touch-action: pan-y !important; }
.viewer:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; }

.corner { position: absolute; z-index: 3; width: 14px; height: 14px; pointer-events: none; border: 0 solid var(--ink); opacity: .55; }
.c-tl { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.c-tr { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.c-bl { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.c-br { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }
.stage.night .corner { border-color: #e6e3de; }

.stage-status {
  position: absolute; z-index: 3; left: 24px; top: 22px; display: inline-flex; align-items: center; gap: 8px;
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  background: rgba(251,250,248,.86); padding: 7px 10px; border-radius: 2px; transition: opacity .4s;
}
.stage-status .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.stage-status.live .pulse { animation: none; background: #3d8a5a; }
.stage-status.fail .pulse { animation: none; background: var(--ink-4); }
@keyframes pulse { 50% { opacity: .2; } }
.stage.night .stage-status { background: rgba(27,30,34,.8); color: var(--dark-ink); }

.stage-hint {
  position: absolute; z-index: 3; right: 34px; bottom: 20px; pointer-events: none;
  font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
  opacity: 0; transition: opacity .4s;
}
.stage.is-live .stage-hint { opacity: 1; }
.stage-hint .h-touch { display: none; }
@media (pointer: coarse) { .stage-hint .h-fine { display: none; } .stage-hint .h-touch { display: inline; } }
.stage.night .stage-hint { color: #b9bdc2; }

.stage-tools { position: absolute; z-index: 3; right: 20px; top: 18px; display: flex; gap: 0; }
.stage-tools .tool { border-radius: 0; margin-left: -1px; }
.stage-tools .tool:first-child { border-radius: 4px 0 0 4px; margin-left: 0; }
.stage-tools .tool:last-child { border-radius: 0 4px 4px 0; }
.stage-tools .tool:hover, .stage-tools .tool:focus-visible { position: relative; z-index: 1; }
.tool {
  appearance: none; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 2px; cursor: pointer;
  border: 1px solid rgba(29,32,36,.12); background: rgba(251,250,248,.9); color: var(--ink);
  font: 500 15px/1 var(--font);
}
.tool-text { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.tool:hover { background: #fff; border-color: var(--ink); }
.stage.night .tool { background: rgba(27,30,34,.82); color: var(--dark-ink); border-color: rgba(255,255,255,.14); }

/* hero chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.chip-seg { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 2px; background: var(--paper); padding: 3px; gap: 2px; }
.chip-label { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 0 8px 0 7px; }
.chip-seg label { position: relative; }
.chip-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip-seg label span { display: block; padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); border-radius: 1px; transition: background .2s, color .2s; }
.chip-seg input:checked + span { background: var(--ink); color: #fff; }
.chip-seg label:hover span { color: var(--ink); }
.chip-seg input:checked:hover + span { color: #fff; }
.chip-seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.chip {
  appearance: none; display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 11px 14px; border: 1px solid var(--line-2); background: var(--paper); border-radius: 2px;
  font: 500 14px/1 var(--font); color: var(--ink-2); transition: border-color .2s, color .2s, background .2s;
}
.chip i { width: 8px; height: 8px; border: 1px solid var(--ink-4); border-radius: 50%; transition: background .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.chip[aria-pressed="true"] i { background: var(--accent); border-color: var(--accent); }

.fig-caption {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--line-2); font: 500 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(80px, 10vw, 148px) 0; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head h2, .contact h2 { font-size: clamp(32px, 3.6vw, 54px); line-height: 1.06; letter-spacing: -0.035em; }
.section-sub { margin-top: 20px; font-size: 18px; color: var(--ink-2); max-width: 40em; }

.section-ink { background: var(--dark); color: var(--dark-ink); border-bottom-color: var(--dark); }
.section-ink .eyebrow { color: var(--dark-ink-2); }
.section-ink .eyebrow .idx { color: #e08a5f; }
.section-ink .eyebrow .idx::after { background: var(--dark-line); }
.section-ink .section-sub { color: var(--dark-ink-2); }
.section-ink :focus-visible { outline-color: #e08a5f; }

/* ---------------------------------------------------------------- demo */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.stage-demo { height: min(76vh, 720px); min-height: 460px; }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.demo-label { font-size: 14.5px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 4px 22px 18px;
  max-height: min(76vh, 720px); overflow: auto; min-height: 460px;
}
.panel-loading { padding: 20px 0; color: var(--ink-3); font-size: 14px; }
.panel fieldset { border: 0; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.panel fieldset:last-of-type { border-bottom: 0; }
.panel legend {
  float: left; width: 100%; padding: 0; margin-bottom: 14px;
  font: 500 10.5px/1.2 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
}
.panel legend + * { clear: both; }
.panel legend small { text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: 12px; }

.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 15px; }
.field-head label { font-weight: 500; }
.field-head output { font: 500 13px/1 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.scale { display: flex; justify-content: space-between; font: 400 11px/1 var(--mono); color: var(--ink-3); margin-top: 4px; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; margin: 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--ink) 0 var(--p, 50%), var(--line-2) var(--p, 50%) 100%); }
input[type=range]::-moz-range-track { height: 2px; background: var(--line-2); }
input[type=range]::-moz-range-progress { height: 2px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--focus); }
input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--focus); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line-2); border-radius: 2px; padding: 3px; gap: 2px; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 8px 4px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); border-radius: 1px; transition: background .2s, color .2s; user-select: none; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.seg label:hover input:not(:checked) + span { color: var(--ink); background: var(--bg); }

.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch i { display: block; height: 36px; border-radius: 2px; border: 1px solid rgba(0,0,0,.12); transition: box-shadow .2s; }
.swatch input:checked + i { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.swatch input:focus-visible + i { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--focus); }
.swatch b { display: block; font-weight: 500; font-size: 12.5px; margin-top: 8px; line-height: 1.2; }
.swatch small { display: block; font: 400 10.5px/1.4 var(--mono); color: var(--ink-3); }

.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toggle { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 2px; cursor: pointer; font-weight: 500; font-size: 13.5px; user-select: none; transition: border-color .2s; }
.toggle:hover { border-color: var(--ink); }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .sw { position: relative; flex: none; width: 28px; height: 16px; border-radius: 999px; background: var(--line-2); transition: background .2s; }
.toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked ~ .sw { background: var(--accent); }
.toggle input:checked ~ .sw::after { transform: translateX(12px); }
.toggle:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

dl.summary { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; font-size: 13px; }
dl.summary dt, dl.summary dd { padding: 7px 0; border-bottom: 1px dashed var(--line); }
dl.summary dt { color: var(--ink-3); padding-right: 14px; }
dl.summary dd { margin: 0; text-align: right; font: 500 12px/1.5 var(--mono); font-variant-numeric: tabular-nums; }
.panel .note { color: var(--ink-3); font-size: 12.5px; margin-top: 12px; line-height: 1.45; }

/* ---------------------------------------------------------------- problem */
.problem-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--ink); counter-reset: p; }
.problem-list li { grid-column: span 2; padding: 26px 28px 34px 0; border-bottom: 1px solid var(--line-2); counter-increment: p; }
.problem-list li:nth-child(4), .problem-list li:nth-child(5) { grid-column: span 3; }
.problem-list li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.problem-list li:nth-child(4) { padding-left: 0; border-left: 0; }
.problem-list li::before { content: "P." counter(p, decimal-leading-zero); display: block; font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--accent); margin-bottom: 26px; }
.problem-list h3 { font-size: 22px; line-height: 1.2; margin-bottom: 10px; }
.problem-list p { color: var(--ink-2); font-size: 16px; }
.num { font-weight: 600; color: var(--ink); white-space: nowrap; }
sup a { font: 500 11px/1 var(--mono); color: var(--accent); text-decoration: none; padding: 0 2px; }
.footnote { margin-top: 18px; font: 400 12px/1.5 var(--mono); color: var(--ink-3); }
.footnote a { color: var(--accent); text-decoration: none; margin-right: 6px; }

/* ---------------------------------------------------------------- solution */
.solution-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.solution-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--dark-line); }
.solution-list li { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 8px 32px; padding: 18px 0; border-bottom: 1px solid var(--dark-line); }
.solution-list h3 { font-size: 17px; letter-spacing: -0.01em; }
.solution-list p { color: var(--dark-ink-2); font-size: 15.5px; }
.code-card { margin: 0; border: 1px solid var(--dark-line); background: #15171a; border-radius: 2px; overflow: hidden; min-width: 0; }
.code-card figcaption { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--dark-line); font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dark-ink-2); }
.code-card .muted { color: #8a8f95; }
.code-card pre { margin: 0; padding: 22px 20px 26px; overflow-x: auto; font: 400 13px/1.7 var(--mono); color: #d9d6d0; tab-size: 2; }
.code-card .c { color: #8a8f95; }
.code-card .k { color: #e8a37f; }
.code-card .a { color: #b8c4cf; }
.code-card .s { color: #c9d1a3; }
.code-card .n { color: #e3c08d; }

/* ---------------------------------------------------------------- capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cap { border: 1px solid var(--line-2); border-radius: 2px; padding: 26px 26px 28px; background: var(--paper); }
.cap h3 { display: flex; align-items: center; gap: 10px; font: 500 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.cap h3 small { font-size: 10.5px; color: var(--ink-3); margin-left: auto; letter-spacing: .06em; }
.cap ul { list-style: none; margin: 0; padding: 0; }
.cap li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; display: flex; gap: 12px; align-items: baseline; }
.cap li:last-child { border-bottom: 0; }
.cap li::before { content: ""; flex: none; width: 10px; height: 1px; background: var(--ink-4); transform: translateY(-4px); }
.status { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.s-now { background: var(--ink); }
.cap-now { border-color: var(--ink); }
.cap-now li::before { background: var(--ink); }
.s-project { border: 1.5px solid var(--ink); }
.s-road { border: 1.5px dashed var(--ink-4); }
.cap-road { background: transparent; border-style: dashed; }
.cap-road li { color: var(--ink-3); }

/* ---------------------------------------------------------------- how */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.steps li { position: relative; padding: 28px 28px 36px 0; border-bottom: 1px solid var(--line-2); }
.steps li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line-2); }
.step-n { display: inline-block; font: 500 12px/1 var(--mono); color: var(--accent); letter-spacing: .06em; margin-bottom: 30px; }
.step-n::after { content: ""; display: inline-block; width: 40px; height: 1px; background: var(--accent); vertical-align: middle; margin-left: 10px; opacity: .6; }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 15.5px; max-width: 26em; }
.timeline-note { display: flex; align-items: center; gap: 20px; margin-top: 36px; font-size: 15.5px; color: var(--ink-2); max-width: 820px; }
.timeline-note strong { color: var(--ink); font-weight: 600; }
.dimline-inline { flex: none; width: 80px; margin: 0; height: 16px; }

/* ---------------------------------------------------------------- industries */
.ind-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.ind-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.ind-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ind-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.ind-n { font: 500 12px/1.9 var(--mono); color: var(--accent); }
.ind-list h3 { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ind-list p { color: var(--ink-2); font-size: 15.5px; margin-top: 6px; }
.ind-groups .ind-list + .ind-group { margin-top: 48px; }
.ind-group { font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ind-note { margin-top: 20px; font-size: 14px; line-height: 1.55; color: var(--ink-2); max-width: 42ch; }
.ind-note a { color: var(--accent); }

/* ---------------------------------------------------------------- comparison */
.cmp-wrap { border-top: 1px solid var(--ink); }
.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15.5px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.cmp thead th { font: 500 11px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); padding-top: 22px; padding-bottom: 22px; }
.cmp thead td { width: 26%; }
.cmp tbody th { font-weight: 500; color: var(--ink); padding-left: 0; }
.cmp td { color: var(--ink-2); }
.cmp .us { background: var(--paper); color: var(--ink); font-weight: 500; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }
.cmp thead .us { color: var(--ink); border-top: 2px solid var(--accent); }
.cmp thead .us span { display: block; color: var(--accent); margin-top: 4px; }

/* ---------------------------------------------------------------- pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-2); background: var(--paper); }
.plan { padding: 34px 32px 38px; display: flex; flex-direction: column; }
.plan + .plan { border-left: 1px solid var(--line-2); }
.plan-mid { box-shadow: inset 0 3px 0 var(--ink); }
.plan h3 { font-size: 24px; }
.plan-for { font: 500 11px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.price { font-size: clamp(34px, 3.2vw, 46px); letter-spacing: -0.035em; font-weight: 500; margin-top: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.price .from { font: 400 13px/1 var(--mono); letter-spacing: 0; color: var(--ink-3); vertical-align: middle; margin-right: 4px; }
.price-care { margin-top: 10px; font: 500 13px/1.4 var(--mono); color: var(--ink-2); padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.plan ul { list-style: none; margin: 18px 0 0; padding: 0; }
.plan li { padding: 8px 0 8px 22px; position: relative; font-size: 15px; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 1px; background: var(--accent); }
.price-note { margin-top: 18px; font: 400 12.5px/1.5 var(--mono); color: var(--ink-3); text-align: center; }

/* ---------------------------------------------------------------- faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; background:
  linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
  linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 48px 22px 0; color: var(--ink-2); font-size: 16px; max-width: 40em; }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact h2 { max-width: 13em; }
.contact-points { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--dark-line); }
.contact-points li { padding: 13px 0 13px 26px; border-bottom: 1px solid var(--dark-line); position: relative; color: var(--dark-ink); font-size: 15.5px; }
.contact-points li::before { content: ""; position: absolute; left: 0; top: 24px; width: 12px; height: 1px; background: #e08a5f; }
.contact-form { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 2px; padding: clamp(22px, 3vw, 36px); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; min-width: 0; }
.f label { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dark-ink-2); }
.f .opt { text-transform: none; letter-spacing: 0; color: #8a8f95; margin-left: 4px; }
.f input, .f select, .f textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--dark-ink); background: #1b1e22;
  border: 1px solid var(--dark-line); border-radius: 2px; padding: 12px 13px; transition: border-color .2s;
}
.f textarea { resize: vertical; min-height: 110px; }
.f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dark-ink-2) 50%), linear-gradient(135deg, var(--dark-ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.f input::placeholder, .f textarea::placeholder { color: #737880; }
.f input:hover, .f select:hover, .f textarea:hover { border-color: #5a6067; }
.f input:focus-visible, .f select:focus-visible, .f textarea:focus-visible { outline: 2px solid #e08a5f; outline-offset: 1px; border-color: transparent; }
.f input[aria-invalid="true"] { border-color: #e0865f; }
.f-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-note { font: 400 13px/1.45 var(--mono); color: var(--dark-ink-2); }
.form-note.is-shown { color: #f0c2a8; }
.form-note a, .contact-direct a, .form-privacy a { color: #f0c2a8; }
.contact-direct { margin: 22px 0 0; color: var(--dark-ink); font-size: 15.5px; }
.form-privacy { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--dark-ink-2); }

/* ---------------------------------------------------------------- footer */
.site-footer { padding: 36px 0 44px; background: var(--dark); color: var(--dark-ink-2); border-top: 1px solid var(--dark-line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; }
.brand-small { color: var(--dark-ink); font-size: 15px; }
.brand-small .brand-mark { color: var(--dark-ink); width: 22px; height: 22px; }
.brand-small .muted { color: var(--dark-ink-2); font-weight: 400; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { text-decoration: none; font-size: 14px; color: var(--dark-ink-2); }
.footer-nav a:hover { color: var(--dark-ink); }
.footer-meta { margin-left: auto; font: 400 12px/1.5 var(--mono); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 0; max-width: 760px; }
  .hero h1 span { display: inline; white-space: normal; }
  .spec-list { display: none; }
  .stage-hero { max-height: none; }
  .demo-grid { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .header-row { justify-content: space-between; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .stage-demo { height: 62vh; min-height: 340px; max-height: 560px; }
  .panel { max-height: none; min-height: 0; }
  .problem-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .problem-list li, .problem-list li:nth-child(4), .problem-list li:nth-child(5) { grid-column: auto; padding: 24px 22px 30px 0; border-left: 0; }
  .problem-list li:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
  .problem-list li:nth-child(5) { grid-column: 1 / -1; }
  .solution-grid, .ind-grid, .faq-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .ind-grid .section-head, .faq-grid .section-head { position: static; margin-bottom: 8px; }
  .cap-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .steps li, .steps li:not(:nth-child(3n+1)) { padding: 24px 22px 30px 0; border-left: 0; }
  .steps li:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line-2); }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line-2); }
  .footer-meta { margin-left: 0; width: 100%; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 58px; }
  body { font-size: 16px; }
  .btn-sm { padding: 9px 12px; font-size: 13.5px; }
  .hero { padding-top: 28px; background-size: 48px 48px; }
  .eyebrow { font-size: 11px; gap: 10px; letter-spacing: .06em; }
  .eyebrow .idx::after { width: 14px; margin-left: 10px; }
  .hero h1 { font-size: clamp(36px, 10.4vw, 46px); }
  .lede { margin: 18px 0 26px; }
  .cta-row .btn { flex: 1 1 auto; }
  .stage-hero { aspect-ratio: 4 / 4.2; }
  .stage-status { left: 16px; top: 16px; }
  .stage-hint { right: 30px; bottom: 15px; font-size: 10px; }
  .fig-caption { gap: 4px 16px; }
  .chips { gap: 6px; }
  .chip-seg { width: 100%; }
  .chip-seg label { flex: 1; }
  .chip-seg label span { text-align: center; padding: 9px 6px; }
  .chip { flex: 1 1 0; justify-content: center; padding: 11px 8px; font-size: 13.5px; gap: 7px; }
  .fig-caption { font-size: 10.5px; }
  .section-sub { font-size: 16.5px; }
  .stage-demo { height: 58vh; min-height: 320px; }
  .stage-tools { right: 12px; top: 12px; }
  .stage-tools .tool-text[data-action="save"] { display: none; }
  .panel { padding: 2px 16px 14px; }
  .problem-list, .steps { grid-template-columns: minmax(0, 1fr); }
  .problem-list li, .problem-list li:nth-child(even), .steps li, .steps li:nth-child(even) { padding: 22px 0 26px; border-left: 0; }
  .problem-list li::before, .step-n { margin-bottom: 16px; }
  .solution-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .code-card pre { font-size: 12px; padding: 18px 14px; }
  .ind-list li { grid-template-columns: 32px minmax(0, 1fr); }
  .timeline-note { flex-direction: column; align-items: flex-start; gap: 12px; }
  /* comparison: one block per row */
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp thead { display: none; }
  .cmp tbody tr { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
  .cmp tbody th { padding: 0 0 10px; border: 0; font-size: 16.5px; }
  .cmp td { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; padding: 7px 0; border: 0; font-size: 15px; }
  .cmp td::before { content: attr(data-col); font: 500 10.5px/1.6 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
  .cmp td.us { background: var(--paper); border: 0; border-left: 2px solid var(--accent); padding: 8px 10px; margin-top: 4px; grid-template-columns: calc(9.5em - 12px) minmax(0, 1fr); }
  .cmp td.us::before { color: var(--accent); }
  .plan { padding: 28px 22px 30px; }
  .faq summary { font-size: 16.5px; padding: 18px 0; }
  .faq details p { padding-right: 0; }
  .f-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .f-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Case study teaser (home) */
.case-teaser { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.case-shot { margin: 0; }
.case-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); border-radius: 4px; box-shadow: 0 18px 40px -24px rgba(29,32,36,.35); }
.case-shot figcaption { font: 500 11px/1.4 var(--mono); letter-spacing: .04em; color: var(--ink-2); margin-top: 10px; }
.case-copy .section-sub { margin: 16px 0 24px; }
.case-facts { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid var(--line-2); }
.case-facts li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.case-facts b { font-size: clamp(26px, 2.4vw, 34px); line-height: 1; letter-spacing: -0.02em; font-weight: 600; font-variant-numeric: tabular-nums; }
.case-facts span { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 900px) { .case-teaser { grid-template-columns: minmax(0, 1fr); } }
.case-links { display: flex; flex-wrap: wrap; gap: 14px 28px; }

/* language switch (EN | DE) */
.lang-switch { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line-2); padding: 7px 8px; border-radius: 2px; margin-left: 4px; }
.lang-switch:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 900px) { .lang-switch { margin-left: auto; margin-right: 8px; } }
