/* ══════════════════════════════════════════════════════════════════
   AR Solutions — "Blueprint & Breach"
   Design system: dark technical drawing sheet, two lenses.
   --lens: build (signal cyan) ⇄ break (hazard amber)
   ══════════════════════════════════════════════════════════════════ */

/* ─── 1. Tokens ─────────────────────────────────────────────────── */
:root {
  /* surface ramp — graphite, cool but never pure black */
  --ink:        #0A0B0D;
  --ink-2:      #0E1013;
  --surface:    #131519;
  --surface-2:  #191C21;
  --line:       #262A32;
  --line-soft:  #1B1E24;

  /* text ramp */
  --fg:         #E9EBEF;
  --fg-2:       #A9AEB9;
  --fg-3:       #737985;

  /* the two lenses */
  --build:      #2BD9E4;
  --break:      #FFC531;
  --signal:     var(--build);
  --signal-ink: #04191B;
  --signal-dim: color-mix(in srgb, var(--signal) 16%, transparent);
  --signal-hue: color-mix(in srgb, var(--signal) 40%, transparent);

  /* severity — reserved, never decorative */
  --sev-crit:   #FF3B5C;
  --sev-high:   #FF7A18;
  --sev-med:    #FFC531;
  --sev-low:    #5AA9FF;

  /* type */
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body:    'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  /* rhythm */
  --gutter:  clamp(20px, 4.4vw, 60px);
  --maxw:    1360px;
  --sec-y:   clamp(88px, 11vw, 168px);
  --r:       3px;

  --ease:    cubic-bezier(.22,.61,.36,1);
  --ease-io: cubic-bezier(.65,.05,.36,1);
}

html[data-lens="break"] {
  --signal:     var(--break);
  --signal-ink: #1C1400;
}

/* ─── 2. Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ink);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

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

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

/* Visually hidden, still announced. Used where a graphic marker carries
   information that must also reach screen readers. */
.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 12px 18px; background: var(--signal); color: var(--signal-ink);
  font: 600 13px/1 var(--mono); letter-spacing: .04em;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ─── 3. Backdrop: the drawing sheet ────────────────────────────── */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.backdrop__grid {
  position: absolute; inset: -10%;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(to right, rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px, 168px 168px, 168px 168px;
  mask-image: radial-gradient(140% 90% at 60% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(140% 90% at 60% 0%, #000 25%, transparent 78%);
}
.backdrop__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(58vw 46vw at 78% -6%, var(--signal-hue), transparent 62%),
    radial-gradient(46vw 40vw at 4% 26%, rgba(90,169,255,.09), transparent 64%);
  opacity: .5;
  transition: background .6s var(--ease);
}
/* sweep played once per lens switch */
.backdrop__scan {
  position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(to bottom,
    transparent 0%, var(--signal-dim) 46%, var(--signal) 50%, var(--signal-dim) 54%, transparent 100%);
}
html.is-switching .backdrop__scan { animation: sweep .72s var(--ease-io); }
@keyframes sweep {
  0%   { opacity: 0; transform: translateY(-100%); }
  12%  { opacity: .5; }
  100% { opacity: 0; transform: translateY(100%); }
}

/* Canvas takes over the grid on pointer-capable desktops (JS sets the flag),
   so the two layers never draw on top of each other. */
.backdrop__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
html.has-canvas .backdrop__canvas { display: block; }
html.has-canvas .backdrop__grid { display: none; }

/* ─── 3b. Reticle: pointer as measuring instrument ──────────────── */
.reticle {
  position: fixed; inset: 0; z-index: 70; pointer-events: none;
  opacity: 0; transition: opacity .35s var(--ease);
}
.reticle.is-on { opacity: 1; }
.reticle__v, .reticle__h { position: absolute; background: var(--signal); opacity: .10; transition: opacity .25s var(--ease); }
.reticle__v { top: 0; bottom: 0; width: 1px; left: 0; }
.reticle__h { left: 0; right: 0; height: 1px; top: 0; }
.reticle__dot {
  position: absolute; left: 0; top: 0;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border: 1px solid var(--signal); border-radius: 50%; opacity: .55;
  transition: width .25s var(--ease), height .25s var(--ease),
              margin .25s var(--ease), border-radius .25s var(--ease), opacity .25s;
}
.reticle.is-hot .reticle__dot {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border-radius: 2px; opacity: 1;
}
.reticle.is-hot .reticle__v, .reticle.is-hot .reticle__h { opacity: .22; }
.reticle__read {
  position: absolute; left: 0; top: 0; padding: 3px 7px;
  border: 1px solid var(--signal-hue);
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  color: var(--signal); font: 400 9.5px/1 var(--mono); letter-spacing: .12em;
  white-space: nowrap;
}

/* ─── 3c. Section rail ──────────────────────────────────────────── */
.rail { position: fixed; left: 24px; top: 50%; transform: translateY(-50%); z-index: 40; display: none; }
.rail ol { display: grid; gap: 15px; }
.rail li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fg-3);
  transition: color .35s var(--ease);
}
.rail li::before {
  content: ''; width: 16px; height: 1px; background: currentColor;
  transition: width .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.rail li.is-on { color: var(--signal); }
.rail li.is-on::before { width: 34px; background: var(--signal); box-shadow: 0 0 8px var(--signal-hue); }
@media (min-width: 1560px) { .rail { display: block; } }

/* ─── 4. Typography primitives ──────────────────────────────────── */
.eyebrow, .sec__kick, .card__tag, .chips li, .facts dt, .step__meta,
.scheme__head, .row__idx, .filter__btn, .lens, .foot__bar {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg-2); margin-bottom: 26px;
}

.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 var(--signal-hue);
  animation: pulse 2.4s var(--ease) infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--signal-hue); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ─── 5. Buttons ────────────────────────────────────────────────── */
.btn {
  --pad: 13px 20px;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad); border-radius: var(--r);
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
/* Only the magnetic controls get a promoted layer — not every button. */
.btn[data-magnet] { will-change: transform; }
.btn--lg { --pad: 17px 26px; font-size: 13px; }

.btn--solid { background: var(--signal); color: var(--signal-ink); font-weight: 600; }
.btn--solid:hover { background: color-mix(in srgb, var(--signal) 82%, #fff); }

.btn--line { border: 1px solid var(--line); color: var(--fg); }
.btn--line:hover { border-color: var(--signal); color: var(--signal); background: var(--signal-dim); }

.btn__arrow { transition: transform .28s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ─── 6. Chips ──────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips li {
  padding: 5px 10px; border: 1px solid var(--line-soft); border-radius: 2px;
  background: rgba(255,255,255,.02); color: var(--fg-3);
  font-size: 10.5px; letter-spacing: .1em;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.chips li:hover { border-color: var(--signal); color: var(--signal); }
.chips--hero { margin-top: 34px; }
.chips--wrap { margin-top: 30px; }

/* ─── 7. Header ─────────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.hdr__bar {
  display: flex; align-items: center; gap: 20px;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: 14px var(--gutter);
}

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  border: 1px solid var(--signal); border-radius: 2px;
  color: var(--signal);
  font: 600 12px/1 var(--mono); letter-spacing: .06em;
  background: var(--signal-dim);
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text b {
  font-family: var(--display);
  font-variation-settings: 'wdth' 112, 'wght' 700;
  font-size: 15px; letter-spacing: -.005em;
}
.brand__text i {
  font-style: normal; font-family: var(--mono);
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3);
}

.nav { display: flex; gap: 4px; }
.nav a {
  position: relative; padding: 9px 13px;
  font-size: 13.5px; color: var(--fg-2);
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 1px;
  background: var(--signal); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover, .nav a.is-current { color: var(--fg); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }

.hdr__side { display: flex; align-items: center; gap: 12px; }

/* Lens switch — the signature control */
.lens {
  position: relative; display: flex; align-items: center;
  padding: 3px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--ink-2);
}
.lens__thumb {
  position: absolute; top: 3px; left: 3px; bottom: 3px; width: calc(50% - 3px);
  border-radius: 2px; background: var(--signal);
  transition: transform .38s var(--ease-io), background .38s var(--ease);
}
html[data-lens="break"] .lens__thumb { transform: translateX(100%); }
.lens__btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; flex: 1 0 auto;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fg-3);
  transition: color .3s var(--ease);
}
.lens__btn.is-on { color: var(--signal-ink); font-weight: 600; }
.lens__btn:hover:not(.is-on) { color: var(--fg); }
.lens__ico { width: 8px; height: 8px; border: 1px solid currentColor; flex: none; }
.lens__btn[data-lens-set="build"] .lens__ico { border-radius: 1px; }
.lens__btn[data-lens-set="break"] .lens__ico { border-radius: 1px; transform: rotate(45deg); }

.lens__hint {
  position: fixed; bottom: 26px; right: var(--gutter); z-index: 59;
  padding: 9px 14px; max-width: 300px;
  border: 1px solid var(--signal); border-left-width: 3px;
  background: color-mix(in srgb, var(--ink) 92%, var(--signal));
  color: var(--fg); font: 400 11.5px/1.5 var(--mono);
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.lens__hint.is-on { opacity: 1; transform: none; }

.hdr__rule { height: 1px; background: var(--line-soft); position: relative; }
.hdr__progress {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: var(--signal); transition: background .3s var(--ease);
}

/* hazard tape in break lens */
html[data-lens="break"] .hdr__rule {
  background-image: repeating-linear-gradient(-45deg,
    color-mix(in srgb, var(--break) 55%, transparent) 0 6px,
    transparent 6px 12px);
}

.burger { display: none; width: 40px; height: 40px; padding: 12px 9px; }
.burger span { display: block; height: 1.5px; background: var(--fg); transition: transform .3s var(--ease), opacity .2s; }
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ─── 8. Mobile drawer ──────────────────────────────────────────── */
.drawer {
  position: fixed; inset: 62px 0 0; z-index: 55;
  padding: 32px var(--gutter) 48px;
  background: color-mix(in srgb, var(--ink) 97%, transparent);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 26px;
  overflow-y: auto;
}
.drawer[hidden] { display: none; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line-soft);
  font-family: var(--display); font-variation-settings: 'wdth' 108, 'wght' 600;
  font-size: 26px;
}
.drawer nav a em {
  font: 400 11px/1 var(--mono); font-style: normal;
  letter-spacing: .12em; color: var(--signal);
}
.drawer .btn { justify-content: center; }

/* ─── 9. Hero ───────────────────────────────────────────────────── */
.hero { position: relative; z-index: 1; padding: clamp(48px, 7vw, 92px) 0 clamp(32px, 4vw, 56px); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(36px, 5vw, 76px); align-items: center;
}

/* One word per line, so switching the lens re-weights the type in place
   instead of re-wrapping it. Archivo's width axis carries the meaning:
   the active half is wide and heavy, the inactive half narrow and quiet. */
.hero__h1 {
  font-family: var(--display);
  font-size: clamp(42px, 6.6vw, 88px);
  line-height: .95;
  letter-spacing: -.03em;
  margin-bottom: 30px;
}
.hero__h1 .line { display: block; overflow: hidden; }
/* Der Auftritt der Hauptüberschrift läuft bewusst über CSS, nicht über GSAP:
   die wichtigste Zeile der Seite darf von keinem Skript abhängen. */
.hero__h1 .word {
  display: inline-block;
  font-variation-settings: 'wdth' 118, 'wght' 800;
  transition: color .45s var(--ease), font-variation-settings .45s var(--ease);
  animation: riseIn .9s var(--ease) both;
  animation-delay: calc(.12s + var(--wi, 0) * .06s);
}
@keyframes riseIn { from { transform: translateY(108%); } to { transform: translateY(0); } }
.hero__h1 .line--alt .word { font-variation-settings: 'wdth' 84, 'wght' 400; color: var(--fg-3); }
.hero__h1 .line--alt:last-child .word { color: var(--break); }
html[data-lens="break"] .hero__h1 .line .word { font-variation-settings: 'wdth' 84, 'wght' 400; color: var(--fg-3); }
html[data-lens="break"] .hero__h1 .line--alt .word { font-variation-settings: 'wdth' 118, 'wght' 800; color: var(--fg); }
html[data-lens="break"] .hero__h1 .line--alt:last-child .word { color: var(--break); }

/* Chromatic split on lens change. It sits on .line, not .word: text-shadow
   inherits down, and the word already owns its entrance animation. */
.hero__h1.is-glitch .line { animation: fringe .26s steps(3, end) 2; }
@keyframes fringe {
  0%   { text-shadow: none; }
  33%  { text-shadow: -2px 0 var(--sev-crit), 2px 0 var(--build); }
  66%  { text-shadow: 2px 0 var(--break), -2px 0 var(--sev-low); }
  100% { text-shadow: none; }
}

/* Per-character reveal targets (JS wraps words and characters) */
.sec__h2 .wd { display: inline-block; white-space: nowrap; }
.sec__h2 .ch { display: inline-block; }

.hero__dek {
  max-width: 58ch; font-size: clamp(15.5px, 1.25vw, 17.5px);
  color: var(--fg-2); text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ─── 10. Scheme (signature diagram) ────────────────────────────── */
.scheme {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--ink-2));
  box-shadow: 0 30px 90px -50px #000, inset 0 1px 0 rgba(255,255,255,.03);
}
.scheme__head {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  color: var(--fg-3); font-size: 10.5px;
}
.scheme__id { color: var(--signal); }
.scheme__title { color: var(--fg); letter-spacing: .1em; }
.scheme__state { margin-left: auto; }

.scheme__stage { position: relative; padding: 10px 6px 0; overflow: hidden; }
.scheme__svg { width: 100%; height: auto; overflow: visible; }

/* Scan sweep across the diagram on every lens change */
.scheme__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 72px; z-index: 2;
  pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent, var(--signal-dim) 45%, var(--signal) 50%, var(--signal-dim) 55%, transparent);
}
html.is-switching .scheme__scan { animation: schemeScan .85s var(--ease-io); }
@keyframes schemeScan {
  0%   { opacity: 0; transform: translateY(-80px); }
  14%  { opacity: .85; }
  100% { opacity: 0; transform: translateY(520px); }
}

.wire { fill: none; stroke: var(--line); stroke-width: 1; }
.wire--live {
  stroke: var(--signal); stroke-width: 1.4;
  stroke-dasharray: 26 400; stroke-dashoffset: 426;
  animation: flow 3.4s linear infinite; animation-delay: var(--d, 0s);
  filter: drop-shadow(0 0 4px var(--signal-hue));
}
@keyframes flow { to { stroke-dashoffset: 0; } }

.nd { cursor: pointer; }
.nd__box {
  fill: var(--ink-2); stroke: var(--line); stroke-width: 1;
  transition: stroke .25s var(--ease), fill .25s var(--ease);
}
.nd__edge { fill: var(--line); transition: fill .3s var(--ease); }
.nd__kick {
  fill: var(--fg-3); font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .16em;
}
.nd__lbl { fill: var(--fg); font-family: var(--mono); font-size: 11.5px; }
.nd__lbl.is-break, .nd__flag { opacity: 0; transition: opacity .35s var(--ease); }
.nd__lbl.is-build { opacity: 1; transition: opacity .35s var(--ease); }
html[data-lens="break"] .nd__lbl.is-build { opacity: 0; }
html[data-lens="break"] .nd__lbl.is-break { opacity: 1; }
/* Findings land top-to-bottom, in step with the scan sweep */
html[data-lens="break"] .nd__flag { opacity: 1; transition-delay: var(--fd, 0s); }

.nd__flag rect { fill: none; stroke-width: 1; }
.nd__flag text {
  font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-anchor: middle;
}
.nd__flag[data-sev="crit"] rect { stroke: var(--sev-crit); fill: color-mix(in srgb, var(--sev-crit) 14%, transparent); }
.nd__flag[data-sev="crit"] text { fill: var(--sev-crit); }
.nd__flag[data-sev="high"] rect { stroke: var(--sev-high); fill: color-mix(in srgb, var(--sev-high) 14%, transparent); }
.nd__flag[data-sev="high"] text { fill: var(--sev-high); }
.nd__flag[data-sev="med"]  rect { stroke: var(--sev-med);  fill: color-mix(in srgb, var(--sev-med) 14%, transparent); }
.nd__flag[data-sev="med"]  text { fill: var(--sev-med); }
.nd__flag[data-sev="low"]  rect { stroke: var(--sev-low);  fill: color-mix(in srgb, var(--sev-low) 14%, transparent); }
.nd__flag[data-sev="low"]  text { fill: var(--sev-low); }

.nd:hover .nd__box, .nd:focus-visible .nd__box { stroke: var(--signal); fill: var(--surface-2); }
.nd:hover .nd__edge, .nd:focus-visible .nd__edge { fill: var(--signal); }
.nd--focus .nd__edge { fill: var(--signal); }
.nd:focus-visible { outline: none; }

.scheme__note {
  padding: 14px 16px; border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: var(--fg-3);
}

/* ─── 11. Facts strip ───────────────────────────────────────────── */
.facts {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts__i { padding: 20px 22px 20px 0; border-left: 1px solid var(--line-soft); padding-left: 22px; }
.facts__i:first-child { border-left: 0; padding-left: 0; }
.facts dt { color: var(--fg-3); margin-bottom: 7px; }
.facts dd { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--fg); }
.facts dd a { border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s; }
.facts dd a:hover { color: var(--signal); border-color: var(--signal); }

/* ─── 12. Section shell ─────────────────────────────────────────── */
.sec { position: relative; z-index: 1; padding: var(--sec-y) 0; }
.sec--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.014) 12%, rgba(255,255,255,.014) 88%, transparent); }
.sec::before {
  content: ''; position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}

.sec__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  grid-template-areas: 'kick meta' 'title lede';
  gap: 0 clamp(32px, 5vw, 72px);
  margin-bottom: clamp(44px, 5vw, 72px);
  align-items: end;
}
.sec__kick {
  grid-area: kick; color: var(--signal);
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.sec__kick::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sec__meta {
  grid-area: meta; text-align: right; align-self: start;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg-3); margin-bottom: 18px;
}
.sec__meta span { color: var(--fg); font-size: 13px; }
.sec__h2 {
  grid-area: title;
  font-family: var(--display); font-variation-settings: 'wdth' 110, 'wght' 700;
  font-size: clamp(30px, 4vw, 54px); line-height: 1.03; letter-spacing: -.025em;
}
.sec__lede { grid-area: lede; color: var(--fg-2); font-size: 15.5px; max-width: 52ch; text-wrap: pretty; }

/* ─── 13. Leistungsmatrix ───────────────────────────────────────── */
.matrix { border-top: 1px solid var(--line); counter-reset: row; }

/* Same track sizes as .row__bar so the column labels sit over the markers */
.matrix__legend {
  display: grid; align-items: center;
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, .78fr) 156px 34px;
  gap: 18px;
  padding: 10px 0; border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-3);
}
.matrix__legend-l { grid-column: 2; }
.matrix__legend-r { grid-column: 4; display: flex; }
.matrix__legend-r i { font-style: normal; width: 78px; text-align: center; }

.row { border-bottom: 1px solid var(--line-soft); counter-increment: row; }
.row__bar {
  display: grid; align-items: center; width: 100%; text-align: left;
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, .78fr) 156px 34px;
  gap: 18px; padding: 26px 0;
  transition: background .25s var(--ease);
}
.row__bar:hover { background: rgba(255,255,255,.022); }
.row__idx { color: var(--fg-3); font-size: 11px; }
.row__idx::before { content: 'L-' counter(row, decimal-leading-zero); }
.row__title {
  font-family: var(--display); font-variation-settings: 'wdth' 106, 'wght' 600;
  font-size: clamp(18px, 1.9vw, 25px); letter-spacing: -.015em; line-height: 1.15;
  transition: color .25s var(--ease);
}
.row__bar:hover .row__title { color: var(--signal); }
.row__tease { color: var(--fg-3); font-size: 13.5px; }

.row__marks { display: flex; }
.mk {
  position: relative; width: 78px; height: 22px;
  display: grid; place-items: center;
}
.mk::before {
  content: ''; width: 9px; height: 9px; border: 1px solid var(--line);
  transform: rotate(45deg); transition: all .3s var(--ease);
}
.mk--on::before { border-color: var(--fg-3); }
/* build-column marks light up in build lens, break-column in break lens */
html[data-lens="build"] .mk--on:first-child::before { border-color: var(--build); background: var(--build); box-shadow: 0 0 10px var(--signal-hue); }
html[data-lens="break"] .mk--on:last-child::before  { border-color: var(--break); background: var(--break); box-shadow: 0 0 10px var(--signal-hue); }

.row__plus { position: relative; width: 14px; height: 14px; justify-self: end; }
.row__plus::before, .row__plus::after {
  content: ''; position: absolute; inset: 50% 0 auto; height: 1px; background: var(--fg-2);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.row__plus::after { transform: rotate(90deg); }
.row__bar[aria-expanded="true"] .row__plus::after { transform: rotate(0deg); }
.row__bar[aria-expanded="true"] .row__plus::before,
.row__bar[aria-expanded="true"] .row__plus::after { background: var(--signal); }

.row__panel { overflow: hidden; }
.row__panel[hidden] { display: none; }
.row__panel > * { margin-left: 70px; max-width: 74ch; }
.row__panel p { color: var(--fg-2); font-size: 15px; padding-bottom: 16px; }
.row__panel .chips { padding-bottom: 30px; }

/* rows whose discipline matches the active lens get a left signal edge */
.row { position: relative; }
.row::before {
  content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px;
  background: var(--signal); transform: scaleY(0); transform-origin: top;
  transition: transform .4s var(--ease);
}
html[data-lens="build"] .row[data-mode="build"]::before,
html[data-lens="build"] .row[data-mode="both"]::before,
html[data-lens="break"] .row[data-mode="break"]::before,
html[data-lens="break"] .row[data-mode="both"]::before { transform: scaleY(1); }

/* ─── 14. Portfolio ─────────────────────────────────────────────── */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border: 1px solid var(--line); border-radius: var(--r);
  color: var(--fg-2); font-size: 11px;
  transition: all .22s var(--ease);
}
.filter__btn b { color: var(--fg-3); font-weight: 400; }
.filter__btn:hover { border-color: var(--fg-3); color: var(--fg); }
.filter__btn.is-on { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); font-weight: 600; }
.filter__btn.is-on b { color: inherit; opacity: .7; }

/* Hairlines come from each tile's own outline, not from a container
   background — so a half-filled last row reads as empty sheet, not as a
   stray lighter tile. */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 2.4vw, 34px);
  background: var(--ink); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-soft);
  transition: background .3s var(--ease);
}
.card--wide { grid-column: span 2; }
/* Spotlight follows the pointer inside the tile; JS only writes --mx/--my */
.card::before, .tenets li::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--signal-dim), transparent 68%);
}
.card:hover::before, .tenets li:hover::before { opacity: 1; }
.card > *, .tenets li > * { position: relative; z-index: 1; }
.tenets li { position: relative; overflow: hidden; }
.card::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 2px; z-index: 2;
  background: var(--signal); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.card:hover { background: var(--surface); }
.card:hover::after { transform: scaleX(1); }
.card.is-hidden { display: none; }

.card__top { display: flex; align-items: center; gap: 10px; }
.card__tag { color: var(--fg-3); }
.card__badge {
  margin-left: auto; padding: 3px 8px;
  border: 1px solid var(--signal); color: var(--signal);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
}
.card__h {
  font-family: var(--display); font-variation-settings: 'wdth' 104, 'wght' 600;
  font-size: clamp(19px, 1.7vw, 24px); line-height: 1.16; letter-spacing: -.015em;
  text-wrap: balance;
}
.card--wide .card__h { font-size: clamp(22px, 2.3vw, 32px); font-variation-settings: 'wdth' 110, 'wght' 700; }
.card__p { color: var(--fg-2); font-size: 14.5px; flex: 1; text-wrap: pretty; }
.card .chips { margin-top: 4px; }

/* in break lens, security work is what's foregrounded */
html[data-lens="break"] .card[data-cat="sec"] { background: color-mix(in srgb, var(--break) 4%, var(--ink)); }
html[data-lens="break"] .card[data-cat="sec"] .card__tag { color: var(--break); }

.cards__empty { padding: 48px 0; text-align: center; color: var(--fg-3); font-family: var(--mono); font-size: 13px; }

/* Closing tile: the work that can't be shown is part of the offer */
.card--note { background: transparent; justify-content: center; }
.card--note::after { display: none; }
.card--note:hover { background: rgba(255,255,255,.02); }
.card--note .card__h { font-size: clamp(17px, 1.4vw, 21px); color: var(--fg-2); }
.card__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 2px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--signal);
}
.card__link span { transition: transform .28s var(--ease); }
.card__link:hover span { transform: translateX(4px); }

/* ─── 15. Ablauf / steps ────────────────────────────────────────── */
.steps { position: relative; border-top: 1px solid var(--line); }
/* Progress line drawn by scroll; JS writes --p from 0 to 1 */
.steps::after {
  content: ''; position: absolute; left: 33px; top: 0; bottom: 0; width: 1px;
  background: var(--signal); box-shadow: 0 0 10px var(--signal-hue);
  transform: scaleY(var(--p, 0)); transform-origin: top;
}
.step.is-on .step__n {
  border-color: var(--signal); color: var(--signal);
  background: color-mix(in srgb, var(--signal) 12%, var(--ink));
}
.step {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) 130px;
  gap: clamp(20px, 3vw, 44px); align-items: start;
  padding: clamp(26px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.step::before {
  content: ''; position: absolute; left: 33px; top: 0; bottom: 0; width: 1px;
  background: var(--line-soft);
}
.step:first-child::before { top: 50%; }
.step:last-child::before { bottom: 50%; }
.step__n {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px;
  margin-left: 11px;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--ink);
  font-family: var(--mono); font-size: 12px; color: var(--fg-3);
  transition: all .35s var(--ease);
}
.step:hover .step__n { border-color: var(--signal); color: var(--signal); }
.step__body h3 {
  font-family: var(--display); font-variation-settings: 'wdth' 106, 'wght' 600;
  font-size: clamp(19px, 1.9vw, 26px); letter-spacing: -.015em; margin-bottom: 10px;
}
.step__body p { color: var(--fg-2); font-size: 15px; max-width: 62ch; text-wrap: pretty; }
.step__meta {
  justify-self: end; padding-top: 8px; color: var(--fg-3);
  font-size: 10.5px;
}
html[data-lens="break"] .step--break .step__n { border-color: var(--break); color: var(--break); background: color-mix(in srgb, var(--break) 12%, var(--ink)); }
html[data-lens="break"] .step--break .step__meta { color: var(--break); }

/* ─── 16. Studio ────────────────────────────────────────────────── */
.studio {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(36px, 5vw, 76px); align-items: start;
}
.studio__prose p { color: var(--fg-2); font-size: 15.5px; margin-bottom: 20px; text-wrap: pretty; }
.studio__prose .lead { color: var(--fg); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }

.tenets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.tenets li { padding: clamp(20px, 2vw, 28px); background: var(--ink); transition: background .3s var(--ease); }
.tenets li:hover { background: var(--surface); }
.tenets h3 {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em;
  color: var(--signal); margin-bottom: 10px; font-weight: 500;
}
.tenets p { color: var(--fg-2); font-size: 14px; }

.stack { margin-top: clamp(48px, 6vw, 84px); }
.stack__h {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-3); margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
}
.stack__h::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.stack__list { border-top: 1px solid var(--line-soft); }
.stack__list > div {
  display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 20px;
  padding: 15px 0; border-bottom: 1px solid var(--line-soft);
  transition: padding-left .3s var(--ease);
}
.stack__list > div:hover { padding-left: 10px; }
.stack__list dt { font-family: var(--mono); font-size: 12px; color: var(--signal); letter-spacing: .05em; }
.stack__list dd { color: var(--fg-2); font-size: 14.5px; }

/* ─── 16b. Technologie-Ticker ───────────────────────────────────── */
.ticker {
  position: relative; margin-top: 34px; padding: 15px 0; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker__run { display: flex; width: max-content; will-change: transform; }
.ticker__set { display: flex; align-items: center; }
.ticker__set li {
  display: flex; align-items: center; gap: 30px; padding-right: 30px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .17em;
  text-transform: uppercase; color: var(--fg-3); white-space: nowrap;
  transition: color .25s var(--ease);
}
.ticker__set li::after {
  content: ''; width: 5px; height: 5px; flex: none;
  border: 1px solid var(--signal); transform: rotate(45deg);
}
.ticker:hover .ticker__set li { color: var(--fg-2); }
/* Without JS the band simply sits still and stays readable. */
html.no-motion .ticker__run { animation: none; }

/* ─── 17. Kontakt ───────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: clamp(36px, 4vw, 64px); align-items: start; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-3);
}
.field input, .field textarea {
  width: 100%; padding: 14px 16px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--fg); font-family: var(--body); font-size: 15px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-color: var(--fg-3); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--signal); background: var(--surface);
  box-shadow: 0 0 0 3px var(--signal-dim);
}
.field__hint { font-size: 12.5px; color: var(--fg-3); }
.field__err { font-family: var(--mono); font-size: 11.5px; color: var(--sev-crit); min-height: 0; }
.field.is-bad input, .field.is-bad textarea { border-color: var(--sev-crit); }

.form__foot { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; margin-top: 4px; }
.form__note { font-size: 12.5px; color: var(--fg-3); max-width: 58ch; }
.form__note b { color: var(--fg-2); font-weight: 500; }
.form__sent {
  grid-column: 1 / -1; padding: 14px 16px;
  border: 1px solid var(--signal); border-left-width: 3px;
  background: var(--signal-dim);
  font-family: var(--mono); font-size: 12.5px; color: var(--fg);
}

.expect { border: 1px solid var(--line); background: var(--ink-2); padding: clamp(24px, 2.4vw, 34px); }
.expect h3 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-3); margin-bottom: 20px;
}
.expect ul { display: grid; gap: 16px; }
.expect li {
  position: relative; padding-left: 26px; color: var(--fg-2); font-size: 14.5px;
}
.expect li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border: 1px solid var(--signal);
  transform: rotate(45deg);
}
.expect__mail {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft);
}
.expect__mail span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.expect__mail b {
  font-family: var(--display); font-variation-settings: 'wdth' 100, 'wght' 600;
  font-size: clamp(17px, 1.6vw, 21px); color: var(--fg);
  transition: color .2s var(--ease);
}
.expect__mail:hover b { color: var(--signal); }

/* ─── 18. Footer ────────────────────────────────────────────────── */
.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: clamp(48px, 5vw, 76px) 0 28px; background: var(--ink-2); }
.foot__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 32px; align-items: start; }
.foot__claim {
  font-family: var(--display); font-variation-settings: 'wdth' 104, 'wght' 500;
  font-size: clamp(17px, 1.7vw, 22px); line-height: 1.25; letter-spacing: -.02em; color: var(--fg-2);
}
.foot__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: flex-end; }
.foot__nav a { font-size: 13.5px; color: var(--fg-2); transition: color .2s; }
.foot__nav a:hover { color: var(--signal); }
.facts--foot { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(32px, 4vw, 52px); }
.foot__bar {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  margin-top: 24px; color: var(--fg-3); font-size: 10.5px;
}
.foot__legal { display: flex; gap: 20px; }
.foot__legal a { transition: color .2s; }
.foot__legal a:hover { color: var(--signal); }

/* ─── 19. Reveal states (JS adds .is-in) ────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(18px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.no-js [data-reveal], html.no-motion [data-reveal] { opacity: 1; transform: none; }

/* ─── 20. Responsive ────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .hdr__cta { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .scheme { max-width: 620px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts__i:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--wide { grid-column: span 2; }
  .studio { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr; }
  .foot__nav { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .sec__head { grid-template-columns: 1fr; grid-template-areas: 'kick' 'title' 'lede' 'meta'; gap: 16px 0; }
  .sec__meta { text-align: left; margin: 4px 0 0; }
  .row__bar { grid-template-columns: 44px minmax(0, 1fr) 26px; gap: 14px; padding: 22px 0; }
  .row__tease, .row__marks { display: none; }
  .row__panel > * { margin-left: 58px; }
  .matrix__legend { display: none; }
  .step { grid-template-columns: 62px minmax(0, 1fr); }
  .step__meta { grid-column: 2; justify-self: start; padding-top: 12px; }
  .step::before, .steps::after { left: 21px; }
  .step__n { width: 36px; height: 36px; margin-left: 3px; font-size: 11px; }
  .facts--foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts--foot .facts__i:nth-child(odd) { border-left: 0; padding-left: 0; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 80px; }
  .hdr__bar { gap: 12px; }
  .brand { gap: 9px; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__text b { font-size: 14px; white-space: nowrap; }
  .brand__text i { display: none; }
  .lens__btn { padding: 7px 10px; font-size: 10px; }
  .lens__btn .lens__ico { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__i { border-left: 0 !important; padding-left: 0 !important; padding-right: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
  .tenets { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .stack__list > div { grid-template-columns: 1fr; gap: 4px; }
  .lens__hint { left: var(--gutter); right: var(--gutter); max-width: none; }
}

@media (max-width: 460px) {
  .facts { grid-template-columns: 1fr; }
  .btn--lg { --pad: 15px 20px; font-size: 12px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ─── 21. Motion preferences ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .wire--live { display: none; }
  .reticle, .backdrop__canvas, .backdrop__scan, .scheme__scan { display: none !important; }
  .backdrop__grid { display: block !important; }
  .sec__h2 .ch { opacity: 1 !important; transform: none !important; }
  .steps { --p: 1; }
}

@media print {
  .backdrop, .hdr, .drawer, .filter, .lens__hint { display: none !important; }
  body { background: #fff; color: #000; }
}
