/* VEYDU STUDIO – Onepager, Fassung 3
   Feste Bühne: Scrollen blättert nicht, sondern öffnet das V zur nächsten Szene.
   Farben und Regeln aus dem Design-System „Veydu Studio“. Abweichungen auf Wunsch:
   Lichtbogen und Blitz dürfen leuchten, Violet darf in Verläufe mit Volt. */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("fonts/space-mono-latin.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}

:root {
  --ink: #0e0f12;
  --volt: #c8ff2e;
  --violet: #723bfa;
  --paper: #f4f4f0;
  --volt-hot: #f1ffc9;
  --raised: #1a1b20;
  --muted: #a2a3a5;
  --line: #2c2d32;
  --line-strong: #6e6f73;
  --blend: linear-gradient(90deg, var(--violet), var(--volt));

  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 2.8vw, 40px);
  --gap: clamp(14px, 1.6vw, 24px);
  --bar-h: 60px;
  --wg: 700;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line) var(--ink); }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--body); font-size: 1rem; line-height: 1.5;
  hyphens: auto; hyphenate-limit-chars: 10 4 4;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--volt); color: var(--ink); }
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; }

/* ---------- Bausteine ---------- */

.meta, .tag {
  font-family: var(--mono); font-size: 0.75rem; line-height: 1rem;
  letter-spacing: 0.08em; text-transform: uppercase; hyphens: manual;
}
.meta { color: var(--muted); }
.tag { display: inline-block; padding: 5px 10px; background: var(--violet); color: #fff; }

.kin {
  font-family: var(--display); font-weight: var(--wg);
  font-size: min(9.4vw, 17vh); line-height: 0.86; letter-spacing: -0.045em; hyphens: manual;
}
.kin span { display: block; }

.skip {
  position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 18px;
  background: var(--volt); color: var(--ink); font-weight: 600; text-decoration: none; transform: translateY(-300%);
}
.skip:focus { transform: none; }

/* ---------- Leiste ---------- */

.bar {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--bar-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter); background: var(--ink); border-bottom: 1px solid var(--line);
}
.bar__logo { justify-self: start; display: flex; align-items: center; min-height: 44px; }
.bar__logo img { height: 34px; width: auto; }
.bar__nav { display: flex; }
.bar__nav a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 14px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); transition: color 200ms ease, background-color 200ms ease;
}
.bar__nav a[aria-current="true"] { background: var(--volt); color: var(--ink); }
.bar__actions { justify-self: end; display: flex; gap: 8px; }
.bar__bolt, .motion-toggle {
  height: 44px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line-strong); background: var(--ink); color: var(--paper); cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 200ms ease;
}
.bar__legal { display: flex; align-items: center; }
.bar__legal a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 8px; white-space: nowrap; hyphens: manual;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); transition: color 200ms ease;
}
.bar__legal a:hover { color: var(--paper); }
.end__legal { display: flex; gap: 20px; }
.bar__bolt { width: 44px; }
.bar__bolt img { width: 24px; height: 24px; }
.motion-toggle { display: none; min-width: 76px; padding: 0 12px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.js .motion-toggle { display: grid; }
.bar__bolt:active, .motion-toggle:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .bar__nav a:not([aria-current="true"]):hover { color: var(--paper); }
  .bar__bolt:hover, .motion-toggle:hover { border-color: var(--volt); }
}
.paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }

/* ---------- Ebenen über der Bühne ---------- */

.sparks { position: fixed; z-index: 40; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; overflow: visible; }

.rail { display: none; }
.stage-on .rail {
  position: fixed; z-index: 45; right: 10px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px;
}
.rail li { display: flex; align-items: center; justify-content: flex-end; height: 14px; font-size: 0; }
.rail li::after { content: ""; width: 14px; height: 2px; background: var(--line-strong); transition: width 300ms var(--ease-out), background-color 200ms ease; }
.rail li.is-cur::after { width: 28px; background: var(--volt); }

/* ---------- Ladebild ---------- */

.loader { display: none; }
.fx .loader {
  position: fixed; z-index: 90; inset: 0; display: grid; place-items: center;
  background: var(--ink); transition: opacity 500ms ease 500ms, visibility 0s linear 1000ms;
}
.loader__v { width: min(22vw, 180px); overflow: visible; }
.loader__half { fill: var(--volt); stroke: var(--volt); stroke-width: 2; transition: transform 900ms var(--ease-out); }
.loader__count {
  position: absolute; left: var(--gutter); bottom: 20px;
  font-family: var(--display); font-weight: 700; font-size: min(14vw, 11rem); line-height: 0.8; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.loaded .loader { opacity: 0; visibility: hidden; pointer-events: none; }
.loaded .loader__half:first-child { transform: translate(-60px, -104px); }
.loaded .loader__half:last-child { transform: translate(60px, 104px); }

/* ---------- Bühne und Szenen ---------- */

.scn { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--ink); }

.stage-on .stage { position: fixed; inset: 0; z-index: 1; }
.stage-on .scn { position: absolute; inset: 0; min-height: 0; visibility: hidden; }
.stage-on .scn.is-cur { visibility: visible; z-index: 1; }
.stage-on .scn.is-next { visibility: visible; z-index: 2; }
/* Jede Szene als eigene Ebene: Verschieben und Skalieren laufen auf der Grafikkarte */
.stage-on .scn { contain: layout paint style; }
.stage-on .scn.is-cur, .stage-on .scn.is-next { will-change: transform, clip-path; }
.arc { will-change: opacity; }
.track { display: none; }
.stage-on .track { display: block; }
.stage-on .track > i { display: block; height: 100vh; scroll-snap-align: start; scroll-snap-stop: always; }
.stage-on { scroll-snap-type: y mandatory; }

/* Wischmodus (Touch): Die Seite scrollt nicht, Gesten spielen die Übergänge ab */
.swipe, .swipe body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.swipe { scroll-snap-type: none; }
.swipe .track { display: none; }
.swipe .stage { touch-action: none; }

/* Kante der V-Öffnung */
.scn__v { position: absolute; z-index: 20; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; pointer-events: none; }
.scn__v path { fill: none; stroke-linejoin: miter; stroke-linecap: round; }
.scn__v .v-glow { stroke: url(#vgrad); stroke-width: 12; opacity: 0.35; }
.scn__v .v-core { stroke: url(#vgrad); stroke-width: 3.5; }
.scn__v .v-hot { stroke: #fff; stroke-width: 1.2; }
/* Abdunklung der alten Szene, während das V aufgeht */
.stage__dim { position: absolute; z-index: 2; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.stage-on .scn.is-next { z-index: 3; }
.stage-on .scn.is-cur { transform-origin: 50% 50%; }

.scn:not(.scn--hero) {
  display: grid; grid-template-rows: auto minmax(0, 1fr); row-gap: clamp(14px, 2.2vh, 28px);
  padding: calc(var(--bar-h) + 18px) calc(var(--gutter) + 26px) clamp(18px, 3vh, 32px) var(--gutter);
}
.scn__head {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.scn__bg { position: absolute; z-index: 0; inset: 0; }
.scn__bg video { width: 100%; height: 100%; object-fit: cover; }
.scn__bg::after { content: ""; position: absolute; inset: 0; background: rgba(14, 15, 18, var(--veil, 0.66)); }

/* Seedance-Videos (1080p, 720p am Handy): langsame Kamerafahrt per CSS, Parallaxe zur Maus per JS */
.scn__bg--still { overflow: hidden; transform: translate(calc(var(--px, 0) * -18px), calc(var(--py, 0) * -12px)); }
.scn__bg--still img, .scn__bg--still video { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; }
.fx .scn__bg--still :is(img, video) { animation: glide 26s ease-in-out infinite alternate; }
.fx .scn__bg--push :is(img, video) { animation: push 22s ease-in-out infinite alternate; }
.scn--web { --veil: 0.6; }
.scn--studio { --veil: 0.62; }

/* Start: Gewitter hinter Bogen und Wortmarke, die Mitte bleibt dunkler */
.scn__bg--hero { overflow: hidden; }
.scn__bg--hero::after { background: linear-gradient(to bottom, transparent 52%, rgba(14, 15, 18, 0.8) 80%), radial-gradient(ellipse 60% 55% at 50% 58%, rgba(14, 15, 18, 0.62), rgba(14, 15, 18, 0.3) 70%, rgba(14, 15, 18, 0.5)); }

/* Ende: Der Lichtspalt des Videos liegt genau hinter der Fuge des V (--vx misst script.js) */
.scn__bg--end { overflow: hidden; --veil: 0.25; }
.scn__bg--end video { position: absolute; top: 0; left: calc(var(--vx, 79%) - 80%); width: 160%; height: 100%; max-width: none; object-fit: cover; }
@keyframes glide { from { transform: translateX(-3%) scale(1.02); } to { transform: translateX(3%) scale(1.06); } }
@keyframes push { from { transform: scale(1); } to { transform: scale(1.12) translate(1.5%, -1%); } }

/* Fadenkreuze in den Ecken jeder Szene */
.scn::before, .scn::after {
  content: ""; position: absolute; z-index: 3; width: 14px; height: 14px; pointer-events: none;
  border: 0 solid var(--line-strong);
}
.scn::before { left: calc(var(--gutter) - 7px); bottom: 10px; border-width: 0 0 1px 1px; }
.scn::after { right: calc(var(--gutter) + 19px); bottom: 10px; border-width: 0 1px 1px 0; }

/* ---------- 0 Start ---------- */

.scn--hero { display: grid; grid-template-rows: minmax(0, 1fr) auto; isolation: isolate; }
.hero__inner {
  position: relative; z-index: 2; display: grid; grid-template-rows: 1fr auto; justify-items: center;
  padding: calc(var(--bar-h) + 24px) var(--gutter) clamp(20px, 3.5vh, 40px); text-align: center;
}
.hero__stage { position: relative; align-self: end; width: min(86vw, max(58vw, 560px), 860px, 88vh); margin-bottom: clamp(28px, 6vh, 80px); }
.hero__title { position: relative; z-index: 1; }
.hero__title img { width: 100%; }
.hero__title-flash { position: absolute; inset: 0; opacity: 0; }
.hero__arc { position: absolute; z-index: 0; left: 50%; bottom: 40%; width: 0; height: 0; pointer-events: none; }
.arc, .arc-run {
  position: absolute; left: 50%; bottom: calc(var(--b) / -2);
  width: calc(104vw + var(--b)); height: calc(150vh + var(--b)); transform: translateX(-50%);
}
.arc { border: var(--b) solid var(--volt); border-radius: 50%; }
.arc--haze { --b: clamp(70px, 10vw, 170px); opacity: 0.3; filter: blur(clamp(36px, 5vw, 84px)); }
.arc--band {
  --b: clamp(26px, 3.6vw, 60px); filter: blur(clamp(10px, 1.3vw, 22px));
  -webkit-mask-image: radial-gradient(ellipse 52% 26% at 50% 100%, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.36) 50%, #000 100%);
  mask-image: radial-gradient(ellipse 52% 26% at 50% 100%, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.36) 50%, #000 100%);
}
.arc--core {
  --b: clamp(8px, 1.1vw, 18px); border-color: var(--volt-hot); filter: blur(clamp(3px, 0.4vw, 7px));
  -webkit-mask-image: radial-gradient(ellipse 60% 34% at 50% 100%, transparent 0%, transparent 46%, #000 100%);
  mask-image: radial-gradient(ellipse 60% 34% at 50% 100%, transparent 0%, transparent 46%, #000 100%);
}
.arc--flash { --b: clamp(26px, 3.6vw, 60px); border-color: var(--volt-hot); filter: blur(clamp(10px, 1.3vw, 22px)); opacity: 0; }
.arc-run { --b: 0px; max-width: none; overflow: visible; }
.arc-run ellipse { fill: none; stroke-linecap: round; stroke-dasharray: 2.4 22.6; }
.arc-run .run--glow { stroke: var(--volt); stroke-width: 9; opacity: 0.55; }
.arc-run .run--hot { stroke: #fff; stroke-width: 3; }
.hero__bolts { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; overflow: visible; }
.hero__copy { display: grid; justify-items: center; }
.hero__lead { font-family: var(--display); font-weight: 700; font-size: clamp(1.375rem, 2.3vw, 2.125rem); line-height: 1.1; letter-spacing: -0.02em; hyphens: manual; text-wrap: balance; }
.hero__text { max-width: 36rem; margin-top: 12px; color: var(--muted); hyphens: manual; text-wrap: balance; }
.hero__cue { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 22px; }
.hero__cue span:first-child { color: var(--volt); }
.hero__cue span:first-child::after { content: " ↓"; display: inline-block; animation: nudge 1.6s var(--ease-out) infinite; }
.band { position: relative; z-index: 2; overflow: hidden; border-top: 1px solid var(--line); background: var(--ink); }
.band__run { display: flex; width: max-content; }
.band__run span { flex: none; padding: 13px 0; margin-right: 56px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.band__run span::after { content: "/"; margin-left: 56px; color: var(--violet); }

/* ---------- 1 Webdesign ---------- */

.web { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); min-height: 0; }
.web__left { grid-column: 1 / 6; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 0; }
.facts { border-top: 1px solid var(--line-strong); }
.facts div { display: grid; grid-template-columns: 7rem 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--volt); }
.facts dd { font-size: 0.9375rem; }

.demo { grid-column: 6 / 13; display: flex; align-items: center; min-height: 0; }
.demo__frame {
  position: relative; width: var(--dw, 100%); min-width: 300px; max-width: 100%; height: 100%; max-height: 64vh;
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-strong);
}
.demo__chrome { flex: none; height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: var(--raised); }
.demo__chrome > i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.demo__url { margin-left: 16px; padding: 3px 12px; background: var(--ink); font-family: var(--mono); font-size: 0.6875rem; color: var(--muted); }
.demo__px { margin-left: auto; color: var(--volt); font-variant-numeric: tabular-nums; }
.demo__handle {
  position: absolute; z-index: 2; top: 50%; right: -15px; width: 30px; height: 72px; padding: 0;
  display: grid; place-items: center; transform: translateY(-50%);
  background: var(--volt); border: 0; cursor: ew-resize; touch-action: none;
}
.demo__handle svg { width: 12px; height: 40px; }
.demo__handle path { stroke: var(--ink); stroke-width: 2; }

/* Die Probe-Website reagiert auf die Breite ihres Rahmens, nicht des Fensters */
.mini { flex: 1; min-height: 0; overflow: hidden; container-type: inline-size; display: flex; flex-direction: column; color: var(--ink); background: var(--paper); }
.mini__nav { display: flex; align-items: center; gap: 4cqi; padding: 3cqi 4cqi; font-size: clamp(11px, 1.6cqi, 15px); }
.mini__nav b { margin-right: auto; font-family: var(--display); font-weight: 700; font-size: clamp(13px, 2.2cqi, 20px); }
.mini__nav em { font-style: normal; padding: 1cqi 2cqi; background: var(--ink); color: var(--paper); }
.mini__hero { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4cqi; padding: 0 4cqi 3cqi; }
.mini__copy { display: flex; flex-direction: column; justify-content: center; gap: 2.4cqi; }
.mini__copy strong { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 6.4cqi, 64px); line-height: 0.95; letter-spacing: -0.03em; }
.mini__copy p { font-size: clamp(12px, 1.7cqi, 16px); color: #4f5053; }
.mini__btns { display: flex; flex-wrap: wrap; gap: 1.6cqi; font-size: clamp(11px, 1.5cqi, 14px); }
.mini__btns em, .mini__btns i { font-style: normal; padding: 1.4cqi 2.4cqi; }
.mini__btns em { background: var(--ink); color: var(--paper); }
.mini__btns i { border: 1px solid #8a8b8d; }
.mini__pic { min-height: 0; background: var(--ink); overflow: hidden; }
.mini__pic svg { width: 100%; height: 100%; }
.mini__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqi; padding: 0 4cqi 4cqi; }
.mini__cards span { display: flex; gap: 1.5cqi; align-items: baseline; padding: 2cqi; background: #fff; font-size: clamp(11px, 1.6cqi, 15px); }
.mini__cards b { font-family: var(--mono); font-weight: 400; color: var(--violet); }
@container (max-width: 620px) {
  .mini__nav span { display: none; }
  .mini__hero { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding-top: 2cqi; }
  .mini__copy strong { font-size: clamp(22px, 10cqi, 44px); }
  .mini__copy p { font-size: clamp(12px, 3.6cqi, 15px); }
  .mini__btns { font-size: 12px; }
  .mini__cards { grid-template-columns: 1fr; }
  .mini__cards span:nth-child(n+2) { display: none; }
}

/* ---------- 2 Motion ---------- */

.scn--motion { background: #060607; }
.mo { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); min-height: 0; }
.mo__left { grid-column: 1 / 5; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 0; }
.ease { flex: 1; display: flex; flex-direction: column; max-height: 46vh; border-top: 1px solid var(--line-strong); }
.ease__row { flex: 1; display: grid; grid-template-columns: 5.5rem 1fr; align-items: center; gap: 10px; min-height: 40px; border-bottom: 1px solid var(--line); }
.ease__track { position: relative; height: 100%; container-type: inline-size; overflow: hidden; }
.ease__v { position: absolute; top: 50%; left: 0; width: clamp(30px, 6vh, 64px); height: auto; overflow: visible; translate: 0 -50%; animation: travel 2.6s var(--e) infinite alternate; }
.ease__l { fill: var(--volt); animation: shiftL 2.6s var(--e) infinite alternate; }
.ease__r { fill: var(--violet); animation: shiftR 2.6s var(--e) infinite alternate; }
@keyframes travel { from { transform: translateX(0); } to { transform: translateX(calc(100cqw - 100%)); } }
@keyframes shiftL { from { transform: translate(0, 0); } to { transform: translate(-18px, -31px); } }
@keyframes shiftR { from { transform: translate(0, 0); } to { transform: translate(18px, 31px); } }

.mo__right { grid-column: 5 / 13; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; min-height: 0; }
.mo__screen { position: relative; min-height: 0; background: #000; }
.mo__screen video { width: 100%; height: 100%; object-fit: cover; }
.mo__tc { position: absolute; left: 14px; bottom: 12px; color: var(--paper); font-variant-numeric: tabular-nums; }
.corner { position: absolute; width: 18px; height: 18px; border: 0 solid var(--volt); }
.corner--tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.corner--tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.corner--bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; opacity: 0; }
.corner--br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.tl { display: grid; grid-template-columns: minmax(0, 1fr) clamp(150px, 15vw, 220px); gap: 14px; height: clamp(120px, 22vh, 200px); }
.tl__tracks { position: relative; display: grid; grid-template-rows: repeat(4, 1fr); border: 1px solid var(--line); background: #0b0c0f; container-type: inline-size; }
.tl__row { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.tl__row:last-of-type { border-bottom: 0; }
.tl__row > .meta { padding-left: 10px; font-size: 0.625rem; }
.tl__lane { position: relative; height: 100%; border-left: 1px solid var(--line); }
.tl__lane i { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: var(--volt); transform: rotate(45deg); }
.tl__lane b { position: absolute; top: 30%; height: 40%; background: var(--blend); opacity: 0.85; border-right: 2px solid var(--ink); }
.tl__head {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--paper);
  transform: translateX(calc(6.5rem + (100cqw - 6.5rem) * var(--t, 0)));
}
.tl__head::before { content: ""; position: absolute; top: -1px; left: -5px; border: 6px solid transparent; border-top: 8px solid var(--paper); }
.curve { display: grid; grid-template-rows: 1fr auto; gap: 6px; padding: 10px; border: 1px solid var(--line); background: #0b0c0f; min-height: 0; }
.curve svg { width: 100%; height: 100%; min-height: 0; overflow: visible; }
.curve__grid { fill: none; stroke: var(--line); stroke-width: 0.6; }
.curve__arm { fill: none; stroke: var(--violet); stroke-width: 0.8; }
.curve__line { fill: none; stroke: var(--volt); stroke-width: 2; vector-effect: non-scaling-stroke; }
.curve__dot { fill: var(--paper); }
.curve .meta { font-size: 0.625rem; }

/* ---------- 3 Logo ---------- */

.scn--logo { --line: #d6d6d2; --line-strong: #8a8b8d; --muted: #4f5053; background: var(--paper); color: var(--ink); }
.scn--logo::before, .scn--logo::after { border-color: var(--line-strong); }
.lg { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); min-height: 0; }
.build { grid-column: 1 / 7; min-height: 0; display: grid; place-items: center; }
.build svg { width: 100%; height: 100%; overflow: visible; }
.build__grid path { fill: none; stroke: var(--violet); stroke-width: 0.5; opacity: 0.45; }
.build__clear { fill: none; stroke: var(--line-strong); stroke-width: 0.6; stroke-dasharray: 3 3; }
.build__half { fill: var(--ink); stroke: var(--ink); stroke-width: 0.6; transition: transform 500ms var(--ease-out), fill 300ms ease; cursor: crosshair; }
@media (hover: hover) and (pointer: fine) {
  .build__half--l:hover { transform: translate(-8px, -13.86px); fill: var(--violet); }
  .build__half--r:hover { transform: translate(8px, 13.86px); fill: var(--violet); }
}
.build__dim path { fill: none; stroke: var(--violet); stroke-width: 0.8; }
.build__dim text { font-family: var(--mono); font-size: 8px; letter-spacing: 0.06em; fill: var(--violet); }

.lg__right { grid-column: 7 / 13; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(12px, 2vh, 20px); min-height: 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; min-height: 0; }
.tile { position: relative; margin: 0; min-height: 0; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; padding: 14px; }
.tile img { align-self: center; justify-self: center; max-height: 100%; width: auto; }
.tile--white { background: #fff; }
.tile--white img { width: 78%; height: auto; }
.tile--ink { background: var(--ink); }
.tile--ink img { height: 82%; }
.tile--ink figcaption, .tile--strike .meta { color: #a2a3a5; }
.tile--volt { background: var(--volt); }
.tile--volt figcaption { color: var(--ink); }
.sizes { align-self: center; display: flex; align-items: flex-end; justify-content: center; gap: 18px; }
.sizes img { flex: none; width: auto; }
.tile--strike { border: 0; background: var(--ink); cursor: pointer; font: inherit; text-align: left; transition: transform 160ms var(--ease-out); }
.tile--strike svg { position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.tile--strike .meta { position: relative; z-index: 1; }
/* Das Video zeigt das Zeichen; die SVG-Hälften bleiben nur für den Blitz und als Ersatz ohne Video */
.strike__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tile--strike:has(.strike__vid) .strike__half { opacity: 0; }
.tile--strike:active { transform: scale(0.985); }
.tile--strike:focus-visible { outline-color: var(--ink); }
.swatches { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 2fr; gap: 6px; }
.swatches div { display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(64px, 10vh, 96px); padding: 10px; }
.swatches dt { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.swatches dd { font-family: var(--mono); font-size: 0.6875rem; }
.sw--ink { background: var(--ink); color: var(--paper); }
.sw--volt { background: var(--volt); color: var(--ink); }
.sw--violet { background: var(--violet); color: #fff; }
.sw--paper { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.sw--blend { background: var(--blend); color: var(--ink); }
.sw--blend dt, .sw--blend dd { color: #fff; }
.kin--dark { color: var(--ink); }

/* ---------- 4 Studio ---------- */

.scn--studio { grid-template-rows: auto minmax(0, 1fr) auto; }
.split {
  position: relative; z-index: 2; align-self: center;
  font-family: var(--display); font-weight: var(--wg);
  font-size: min(11vw, 19vh); line-height: 0.86; letter-spacing: -0.045em; hyphens: manual;
}
.split span { display: block; transition: transform 600ms var(--ease-out); }
.split__a { transform: translate(calc(var(--sx, 0) * -0.5 * 60px), calc(var(--sx, 0) * -0.866 * 60px)); }
.split__b { padding-left: 18vw; color: var(--volt); transform: translate(calc(var(--sx, 0) * 0.5 * 60px), calc(var(--sx, 0) * 0.866 * 60px)); }
.duo { --slant: calc(min(32vh, 290px) * 0.57735); position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 0; height: min(32vh, 290px); }
.duo figure { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; padding: 14px 18px; min-height: 0; }
.duo__draw { background: rgba(14, 15, 18, 0.82); border: 1px solid var(--line-strong); clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }
.duo__code { margin-left: calc(var(--slant) * -1 + 14px); padding-left: calc(var(--slant) + 10px) !important; background: var(--paper); color: var(--ink); clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%); }
.duo__code .meta { color: #4f5053; }
.duo__draw svg { width: 100%; height: 100%; }
.duo__draw svg * { fill: none; stroke: var(--paper); stroke-width: 1; }
.duo__draw .duo__accent { fill: var(--volt); stroke: var(--volt); }
.duo__code pre { min-height: 0; overflow: hidden; font-family: var(--mono); font-size: clamp(10px, 0.82vw, 13px); line-height: 1.55; white-space: pre; }
.duo__code code::after { content: ""; display: inline-block; width: 0.6em; height: 1.1em; margin-left: 1px; vertical-align: -0.2em; background: var(--violet); animation: blink 1s steps(1, end) infinite; }

/* ---------- 5 Anfrage ---------- */

/* Dunkle Fläche mit Konstruktionslinien im 60°-Winkel, wie beim Bau des Zeichens */
.scn--ask {
  background:
    radial-gradient(ellipse 70% 80% at 72% 55%, rgba(114, 59, 250, 0.14), transparent 70%),
    repeating-linear-gradient(60deg, transparent 0 119px, rgba(114, 59, 250, 0.11) 119px 120px),
    repeating-linear-gradient(-60deg, transparent 0 119px, rgba(200, 255, 46, 0.05) 119px 120px),
    #0b0c0f;
}
.ask { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); min-height: 0; }
.ask__left { grid-column: 1 / 6; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 0; }

/* Die Karte: helles Papier, eine Frage im Bild */
.q {
  grid-column: 7 / 13; align-self: center; position: relative;
  display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(18px, 3vh, 32px);
  min-height: min(480px, 62vh); max-height: 100%; padding: clamp(20px, 2.4vw, 36px);
  background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong);
  --line: #d6d6d2; --muted: #4f5053;
}
.q [hidden] { display: none !important; }
.q :focus-visible { outline-color: var(--violet); }
.q__top { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 16px; min-height: 44px; }
.q__back { grid-column: 1; height: 32px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.q__count { grid-column: 2; justify-self: end; font-variant-numeric: tabular-nums; }
.q__bar { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.q__bar li { height: 4px; background: var(--line); transition: background-color 300ms ease; }
.q__bar li.is-done { background: var(--ink); }
.q__bar li.is-cur { background: var(--violet); }
.q[data-at="4"] .q__bar li { background: var(--ink); }

.q__steps { display: grid; min-height: 0; }
.q__step { grid-area: 1 / 1; display: none; min-width: 0; margin: 0; padding: 0; border: 0; }
.q__step.is-cur { display: block; }
.q__step:focus { outline: none; }
.q__ask {
  float: left; width: 100%; padding: 0;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 3.1vw, 3.25rem);
  line-height: 0.98; letter-spacing: -0.035em; hyphens: manual; text-wrap: balance;
}
.q__hint { clear: both; padding-top: 10px; }

.q__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: clamp(18px, 3vh, 30px); }
.q__opt {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px;
  border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; text-align: left;
  font: 500 1rem/1.2 var(--body);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.q__opt b {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px;
  border: 1px solid currentColor; font: 400 0.75rem/1 var(--mono);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.q__opt:active { transform: scale(0.97); }
.q__opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.q__opt[aria-pressed="true"] b { background: var(--volt); border-color: var(--volt); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .q__opt:hover { border-color: var(--violet); }
  .q__opt:not([aria-pressed="true"]):hover b { background: var(--violet); border-color: var(--violet); color: #fff; }
  .q__back:hover, .q__restart:hover { color: var(--violet); }
}

.q__go {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: clamp(16px, 2.6vh, 26px); padding: 0 22px;
  border: 0; background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none;
  font: 600 1rem/1 var(--body); transition: background-color 200ms ease, opacity 200ms ease, transform 160ms var(--ease-out);
}
.q__go:disabled { opacity: 0.28; cursor: default; }
.q__go:not(:disabled):active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .q__go:not(:disabled):hover { background: var(--violet); color: #fff; } }

.q__field { display: grid; gap: 6px; margin-top: clamp(18px, 3vh, 30px); }
.q__field input {
  width: 100%; padding: 6px 0 10px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); outline: none;
  font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2.25rem); letter-spacing: -0.02em;
  transition: border-color 200ms ease;
}
.q__field input:focus { border-bottom-color: var(--violet); }

/* Fertig: Haken, Vorschau der Nachricht, Wege zum Senden */
.q__ok {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 3.1vw, 3.25rem); line-height: 1; letter-spacing: -0.035em;
}
.q__ok svg { flex: none; width: 0.9em; height: 0.9em; padding: 0.12em; background: var(--volt); overflow: visible; }
.q__ok path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: square; }
.fx .q__done.is-cur .q__ok path { stroke-dasharray: 24; animation: tick 520ms var(--ease-out) 200ms both; }
@keyframes tick { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.q__msg {
  margin-top: clamp(14px, 2.4vh, 24px); padding: 14px 16px 22px; background: var(--ink); color: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 35px));
}
.q__msg .meta { color: var(--volt); }
.q__msg pre { margin-top: 8px; max-height: 11em; overflow: auto; font: 0.9375rem/1.45 var(--body); white-space: pre-wrap; }
.q__send { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: clamp(14px, 2.4vh, 22px); }
.q__send .q__go { margin-top: 0; }
.q__go--wa { background: var(--volt); color: var(--ink); }
.q__alt {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 18px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none;
  font: 500 1rem/1 var(--body); transition: border-color 160ms ease, color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .q__alt:hover { border-color: var(--violet); color: var(--violet); } }
.q__restart { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }

/* ---------- 6 Ende ---------- */

/* Links Text und Wortmarke, rechts bleibt Platz für den Wirbel der Splitter */
.scn--end { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr) auto auto; column-gap: var(--gap); background: var(--raised); }
.scn--end .scn__head, .end__row { grid-column: 1 / -1; }
.end__line {
  position: relative; z-index: 2; grid-column: 1 / 8; align-self: end; margin-bottom: 3vh;
  font-family: var(--display); font-weight: var(--wg); font-size: min(5.4vw, 10vh); line-height: 0.92; letter-spacing: -0.03em; text-wrap: balance;
}
.end__mark { position: relative; z-index: 2; grid-column: 1 / 8; width: 100%; margin-bottom: 3vh; }
.end__v { position: relative; z-index: 2; grid-column: 8 / -1; grid-row: 2 / 4; display: grid; place-items: center; min-height: 0; }
.end__v svg { width: 100%; height: 100%; max-height: 62vh; overflow: visible; }
.end__half { fill: var(--volt); transition: transform 700ms var(--ease-out); }
.end__half--l { transform: translate(calc(var(--split, 0) * -26px), calc(var(--split, 0) * -45px)); }
.end__half--r { transform: translate(calc(var(--split, 0) * 26px), calc(var(--split, 0) * 45px)); }
.end__row { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.end__row a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); text-decoration: none; }

/* ---------- Schmale Fenster ---------- */

@media (max-width: 899px), (hover: none) {
  .arc-run, .arc--haze { display: none; }
  .scn__v .v-glow { display: none; }
  .fx .arc--core { animation: none; }
}

@media (max-width: 899px) {
  :root { --bar-h: 56px; --gutter: 16px; }
  .bar { grid-template-columns: 1fr auto; }
  .bar__nav { display: none; }
  .bar__legal-dsk { display: none !important; }
  .bar__legal a { padding: 0 6px; }
  .bar__logo img { height: 30px; }
  .stage-on .rail { display: none; }
}

/* Im Hochformat liegt der Bogen breit und flach wie am Computer, statt als schmales U */
@media (orientation: portrait) {
  .arc, .arc-run { width: calc(135vw + var(--b)); height: calc(200vw + var(--b)); }
  .arc--haze { --b: clamp(50px, 16vw, 120px); }
  .arc--band { --b: clamp(20px, 6vw, 44px); }
  .arc--core { --b: clamp(6px, 1.8vw, 14px); }
}

/* ---------- Ohne Bühne (Querformat am Handy, reduzierte Bewegung): Szenen untereinander ---------- */

html:not(.stage-on) .scn:not(.scn--hero) { padding-right: var(--gutter); row-gap: 24px; }
html:not(.stage-on) .scn--hero { min-height: 100svh; }
@media (max-width: 899px), (max-height: 559px) {
  html:not(.stage-on) .web, html:not(.stage-on) .mo, html:not(.stage-on) .lg { display: flex; flex-direction: column; gap: 24px; }
  html:not(.stage-on) .kin { font-size: min(22vw, 7rem); }
  html:not(.stage-on) .demo__frame { height: 70svh; max-height: none; }
  html:not(.stage-on) .demo__handle { right: -8px; }
  html:not(.stage-on) .mo__screen { aspect-ratio: 16 / 9; }
  html:not(.stage-on) .tl { grid-template-columns: 1fr; height: auto; }
  html:not(.stage-on) .tl__tracks { height: 150px; }
  html:not(.stage-on) .curve { height: 160px; }
  html:not(.stage-on) .build { aspect-ratio: 1; }
  html:not(.stage-on) .tiles { height: 360px; }
  html:not(.stage-on) .swatches { grid-template-columns: 1fr 1fr; }
  html:not(.stage-on) .split { font-size: min(18vw, 6rem); }
  html:not(.stage-on) .split__b { padding-left: 10vw; }
  html:not(.stage-on) .duo { grid-template-columns: 1fr; height: auto; gap: 12px; }
  html:not(.stage-on) .duo figure { clip-path: none !important; margin: 0 !important; padding: 14px !important; }
  html:not(.stage-on) .duo__draw svg { height: 200px; }
  html:not(.stage-on) .duo__code pre { max-height: 260px; }
  html:not(.stage-on) .ask { display: flex; flex-direction: column; gap: 24px; }
  html:not(.stage-on) .q { min-height: 0; }
  html:not(.stage-on) .q__opts { grid-template-columns: 1fr; }
  html:not(.stage-on) .scn--end { min-height: 70svh; display: flex; flex-direction: column; justify-content: space-between; }
  html:not(.stage-on) .end__v svg { max-height: 40vh; }
}

/* ---------- Handy mit Bühne: jede Szene als eigenes Hochformat-Bild ---------- */

@media (max-width: 899px) {
  .stage-on .scn:not(.scn--hero) { padding: calc(var(--bar-h) + 12px) 16px 16px; row-gap: 12px; }
  .stage-on .scn::before, .stage-on .scn::after { display: none; }
  .stage-on .scn__head { padding-bottom: 10px; }
  .stage-on .scn__head .meta { display: none; }
  .stage-on .kin { font-size: min(15vw, 8.5vh); line-height: 0.9; }
  .stage-on .kin span { display: inline; }

  /* Webdesign: Titel, darunter die Probe-Website über die volle Höhe */
  .stage-on .web { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
  .stage-on .web__left { flex: none; }
  .stage-on .facts { display: none; }
  .stage-on .demo { flex: 1; min-height: 0; align-items: stretch; }
  .stage-on .demo__frame { height: 100%; max-height: none; min-width: 230px; }
  .stage-on .demo__handle { right: -10px; width: 26px; height: 60px; }

  /* Motion: Titel, Video, Zeitleiste, Easing-Studie */
  .stage-on .mo { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
  .stage-on .mo__left, .stage-on .mo__right { display: contents; }
  .stage-on .mo .kin { order: 1; }
  .stage-on .mo__screen { order: 2; flex: none; aspect-ratio: 16 / 9; }
  .stage-on .tl { order: 3; grid-template-columns: 1fr; height: clamp(84px, 13vh, 120px); }
  .stage-on .tl__row { grid-template-columns: 5.2rem 1fr; }
  .stage-on .tl__row > .meta { white-space: nowrap; font-size: 0.5625rem; padding-left: 6px; }
  .stage-on .tl__head { transform: translateX(calc(5.2rem + (100cqw - 5.2rem) * var(--t, 0))); }
  .stage-on .curve { display: none; }
  .stage-on .ease { order: 4; flex: 1; min-height: 0; max-height: none; }
  .stage-on .ease__row { min-height: 0; grid-template-columns: 4.6rem 1fr; }
  .stage-on .ease__v { width: clamp(24px, 5vh, 44px); }

  /* Logo: Titel, Konstruktion groß, Fassungen als Reihe, Farben */
  .stage-on .lg { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
  .stage-on .lg__right { display: contents; }
  .stage-on .lg .kin { order: 1; }
  .stage-on .build { order: 2; flex: 1; min-height: 0; }
  .stage-on .tiles { order: 3; flex: none; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr; height: clamp(64px, 10vh, 92px); gap: 6px; }
  .stage-on .tile { padding: 6px; gap: 0; grid-template-rows: minmax(0, 1fr); }
  .stage-on .tile figcaption, .stage-on .tile--strike .meta { display: none; }
  .stage-on .tile--white img { width: 92%; }
  .stage-on .sizes img:nth-child(n+2) { display: none; }
  .stage-on .sizes img { height: 70%; width: auto; }
  .stage-on .swatches { order: 4; grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .stage-on .swatches div { min-height: clamp(44px, 7vh, 64px); padding: 6px; }
  .stage-on .swatches dt { font-size: 0.75rem; }
  .stage-on .swatches dd { display: none; }

  /* Studio: Schlagzeile, Entwurf, Code */
  .stage-on .scn--studio { grid-template-rows: auto auto minmax(0, 1fr); }
  .stage-on .split { font-size: min(15vw, 8vh); }
  .stage-on .split__b { padding-left: 8vw; }
  .stage-on .split { margin: 4px 0; }
  .stage-on .split__a { transform: translate(calc(var(--sx, 0) * -0.5 * 16px), calc(var(--sx, 0) * -0.866 * 16px)); }
  .stage-on .split__b { transform: translate(calc(var(--sx, 0) * 0.5 * 16px), calc(var(--sx, 0) * 0.866 * 16px)); }
  .stage-on .duo { grid-template-columns: 1fr; grid-template-rows: clamp(90px, 15vh, 130px) minmax(0, 1fr); height: auto; min-height: 0; gap: 8px; }
  .stage-on .duo figure { clip-path: none; margin: 0; padding: 10px 12px; }
  .stage-on .duo__code { margin-left: 0; padding-left: 12px !important; }
  .stage-on .duo__code pre { font-size: 10px; white-space: pre-wrap; word-break: break-all; }

  /* Anfrage: Titel und Vorher/Jetzt oben, die Karte unten im Daumenbereich */
  .stage-on .ask { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
  .stage-on .ask__left { flex: none; gap: 12px; }
  .stage-on .ask .facts { display: block; }
  .stage-on .ask .facts div { grid-template-columns: 4.5rem 1fr; padding: 7px 0; }
  .stage-on .ask .facts dd { font-size: 0.8125rem; line-height: 1.35; }
  .stage-on .q { flex: none; align-self: stretch; margin-top: auto; min-height: 0; max-height: none; padding: 16px; gap: 14px; }
  .stage-on .q__ask, .stage-on .q__ok { font-size: min(8.5vw, 4.6vh); }
  .stage-on .q__opts { grid-template-columns: 1fr; gap: 6px; margin-top: 14px; }
  .stage-on .q__opt { min-height: 48px; }
  .stage-on .q__msg pre { max-height: 11em; font-size: 0.875rem; }
  .stage-on .q__go, .stage-on .q__alt { min-height: 46px; }
  .stage-on .ask:has(.q[data-at="4"]) .facts { display: none; }
  @media (max-height: 760px) { .stage-on .ask .facts { display: none; } }

  /* Ende: Satz, Zeichen, Wortmarke */
  .stage-on .scn--end { grid-template-columns: 1fr; grid-template-rows: auto auto minmax(0, 1fr) auto auto; }
  .stage-on .end__line { grid-column: 1; margin: 2vh 0 0; font-size: min(9vw, 5vh); }
  .stage-on .end__v { grid-column: 1; grid-row: auto; min-height: 0; }
  .stage-on .end__v svg { max-height: 100%; }
  .stage-on .end__mark { grid-column: 1; margin-bottom: 2vh; }
}

/* ---------- Bewegung ---------- */

.fx [data-in] { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms + 120ms); }
.fx .is-on [data-in] { opacity: 1; transform: none; }
.fx .build__grid path, .fx .build__dim path { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1600ms var(--ease-out) 200ms; }
.fx .is-on .build__grid path, .fx .is-on .build__dim path { stroke-dashoffset: 0; }
.fx .duo__draw svg * { stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2200ms var(--ease-out) 300ms; }
.fx .is-on .duo__draw svg * { stroke-dashoffset: 0; }

.fx .hero__title, .fx .hero__copy > * { animation: rise 900ms var(--ease-out) both; }
.fx .hero__title { animation-delay: 120ms; }
.fx .hero__copy > :nth-child(1) { animation-delay: 260ms; }
.fx .hero__copy > :nth-child(2) { animation-delay: 330ms; }
.fx .hero__copy > :nth-child(3) { animation-delay: 400ms; }
.fx .hero__arc { animation: fade 1400ms ease-out both; }
.fx .arc--band { animation: breathe 5s ease-in-out infinite alternate; }
.fx .arc--core { animation: flicker 7s steps(1, end) infinite; }
.fx .arc-run ellipse { animation: run 7s linear infinite; }
.fx .band__run { animation: band 40s linear infinite; }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes breathe { from { opacity: 0.72; } to { opacity: 1; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 41% { opacity: 0.55; } 42% { opacity: 1; } 43% { opacity: 0.7; } 44% { opacity: 1; } 78% { opacity: 0.6; } 79% { opacity: 1; } }
@keyframes run { to { stroke-dashoffset: -100; } }
@keyframes band { to { transform: translateX(-50%); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .ease__v, .ease__l, .ease__r, .duo__code code::after, .hero__cue span::after { animation: none !important; }
}
