*, *::before, *::after { box-sizing: border-box; }

html { background: var(--paper); color: var(--ink); scrollbar-width: none; }   /* Scrollleiste ausgeblendet, gescrollt wird weiter per Rad, Trackpad und Tasten */
html::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  min-height: 100svh;
  font-family: 'Stack Sans Text', system-ui, sans-serif;
  font-weight: 300;
  letter-spacing: -.02em;
  -webkit-user-select: none; user-select: none;   /* nichts markierbar, Wunsch Erron 01.11.2026 */
  -webkit-touch-callout: none;                    /* iOS: kein Kopieren/Sichern-Menü bei langem Druck */
}
img, svg { -webkit-user-drag: none; }   /* Bilder nicht herausziehbar */
/* Farbe nur am html, damit das Canvas des Grunds (z-index -1, js/fx.js) zwischen Grund und Inhalt liegt */
html.is-loading, html.is-loading body { overflow: hidden; }
html.is-loading { background: var(--green-deep); }   /* Grund des Loaders, der Druck bringt Papier und Körnung darüber (loader.js) */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header: kleines Logo erscheint erst nach dem Scrollen, die Menü-Pille steht immer */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 110;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  padding: 0 12px;
}
@media (min-width: 701px) { .site-header { padding: 0 24px; } }

.site-header__logo {
  display: block;
  width: clamp(88px, 9vw, 132px);
  aspect-ratio: 2554 / 839;
  color: var(--logo);
  --logo-dot: var(--logo);
  opacity: 0;
  pointer-events: none;
}
/* Sobald das große Logo oben angekommen ist (hero.js), übernimmt das Header-Logo ohne Übergang */
html.is-docked .site-header__logo { opacity: 1; pointer-events: auto; }
.site-header__logo svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.dot { fill: var(--logo-dot, currentColor); }
html.is-loading .site-header { opacity: 0; }
.site-header { transition: opacity .9s var(--ease-out); }

/* Schleier hinter dem Header: progressiver Blur aus drei Lagen (stark oben, nach unten schwächer) mit weich ausklingenden Masken, dazu ein Hauch Papierfarbe.
   Blendet zeitgleich mit den Fakten ein (s1 bis s3). Liegt über Foto und Zeile (102, 103).
   Die Lagen sind Geschwister, weil Opacity auf einem Elternelement den Blur der Kinder abschneiden würde. */
.header-veil {
  --veil-mask: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / .96) 12%, rgb(0 0 0 / .84) 24%, rgb(0 0 0 / .66) 38%, rgb(0 0 0 / .45) 52%, rgb(0 0 0 / .26) 66%, rgb(0 0 0 / .11) 80%, rgb(0 0 0 / .03) 92%, transparent 100%);
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--veil-h, 112px);
  z-index: 104;
  pointer-events: none;
  -webkit-backdrop-filter: blur(var(--veil-blur, 14px));
  backdrop-filter: blur(var(--veil-blur, 14px));
  -webkit-mask-image: var(--veil-mask);
  mask-image: var(--veil-mask);
  opacity: 0;
}
.header-veil--1 { background: color-mix(in srgb, var(--paper) 55%, transparent); }
.header-veil--2 { --veil-h: 80px; --veil-blur: 30px; }
.header-veil--3 { --veil-h: 50px; --veil-blur: 56px; }
html.is-docked .header-veil { opacity: 1; }   /* Fallback ohne Scroll-Timelines und bei reduzierter Bewegung */
html.is-loading .header-veil { visibility: hidden; }


/* Hero: eine feste Bühne in Bildschirmhöhe (Fakten oben, Logo auf der Unterkante). Sie scrollt nicht mit.
   Foto und Zeile liegen im normalen Fluss darunter (.intro, .statement) und fahren über die Bühne nach oben.
   Alle Scroll-Bewegungen laufen als CSS-Scroll-Animationen (Abschnitt unten), Zahlen setzt hero.js. */
.page {
  overflow-x: clip;               /* Schein der Zeile (js/fx.js) ragt seitlich über das Fenster */
  --hero-gap: 12px;               /* Innenabstand der Bühne, zugleich Abstand des Logos zu Rand und Boden */
}
@media (min-width: 701px) { .page { --hero-gap: 24px; } }

.hero {
  position: fixed;
  z-index: 101;                   /* über dem Loader, damit das Flipbook an Hero-Position läuft; unter Foto (102) und Zeile (103) */
  inset: 0 0 auto 0;
  height: 100svh;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  overflow-x: clip;               /* Logo-Box ist breiter als die Bühne */
  padding: 0 var(--hero-gap);
  pointer-events: none;
  container-type: inline-size;    /* cqi in den Fakten misst die Bühne */
}
/* Flussgegenstück der Bühne: gleiche Maße, trägt das Foto */
.intro {
  position: relative;
  height: 100svh;
  min-height: 520px;
}
.intro__stage { position: absolute; top: 0; bottom: 0; left: var(--hero-gap); right: var(--hero-gap); }

.hero__ui { flex: none; padding-top: clamp(56px, 4.6vw, 120px); }   /* Platz für Header-Zeile, auf großen Schirmen mehr Luft */
/* Spalten beginnen an der linken Kante der Buchstaben e, zweites r und n. Die Tinte (x 136,6 bis 2419,4) füllt die Breite der Bühne,
   also liegt eine Kante bei (x - 136,6) / 2282,8: zweites r (x 981,6) bei 37,02 %, n (x 1784,7) bei 72,20 %. */
/* Ein Satz groß über e bis n, Werdegang und Kontakt klein in der Spalte ab n. */
.facts {
  display: grid;
  grid-template-columns: 37.02% 35.18% 1fr;
  grid-template-rows: auto auto;
  row-gap: 1em;
  padding: 8px 0 16px;
  font-size: var(--text-body);
}
/* Breite in em, damit die Zeilen mitwachsen und jede Spalte auf jedem Schirm gleich viele Zeilen hat. Rechts bleibt Luft zur nächsten Spalte. */
.facts p { grid-column: 3; margin: 0; padding-right: 1.5em; line-height: 1.4; max-width: 22.5em; text-wrap: pretty; }
.facts p:last-child { align-self: end; }
/* Größe an der Bühnenbreite (cqi, Container ist .hero), damit der Satz auf jedem Schirm gleich umbricht */
.facts .facts__lead {
  grid-column: 1 / 3;
  grid-row: 1 / span 2;
  max-width: 17em;
  font-size: clamp(26px, 3.4cqi, 60px);
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.facts a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color .3s var(--ease-out);
}
.facts a:hover { color: var(--green-mid); }
.facts__links { display: inline-flex; gap: 1.1em; margin-top: .5em; }
@media (max-width: 700px) {
  .facts { display: block; font-size: 15px; }
  .facts p { margin-top: 12px; }
  /* Die längste Zeile („Lately I build them as well.“, 11,6em) füllt die Spalte (cqi misst sie), bis 36 px (Erron, 08.11.2026: war kleiner als nötig,
     bei 320 px fast so klein wie der Text darunter). 11,8em breit bricht der Satz wie am Desktop in drei Zeilen; vorher 17em und 5,7cqi, rechts blieb ein Drittel leer. */
  .facts .facts__lead { margin-top: 0; padding-right: 0; max-width: 11.8em; font-size: min(100cqi / 11.8, 36px); }
}

.hero__stage { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; }

.hero__logo {
  position: relative;
  /* Die Tinte des Logos (x 136,6 bis 2419,4, Unterkante y 699,5 im Raster 2554 x 839) füllt die Bühne bis auf --hero-gap,
     links, rechts und unten gleich. Die Box ist deshalb breiter als die Bühne und rückt entsprechend nach links und unten. */
  width: 111.878%;
  margin: 0 0 calc(var(--hero-gap) - 6.113%) -5.983%;
  aspect-ratio: 2554 / 839;
  transform-origin: 0 0;          /* Flug in den Header, siehe Scroll-Bewegungen */
}

.hero__photo {
  position: absolute;
  z-index: 102;
  left: 67%;                     /* Kopf zwischen o und n, nach Figma-Mockup */
  bottom: 0;
  width: 26%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 0;
  transform: translate(-50%, 33%) translate(var(--px, 0px), var(--py, 0px));   /* Kopf sitzt tief im o, Schultern ragen unter die Bühnenkante. --px/--py: Mausbewegung (hero.js) */
}
@media (max-width: 700px) { .hero__photo { width: 40%; } }

.statement {
  position: relative;
  z-index: 103;                  /* vor dem Foto (102) */
  padding: 0 var(--hero-gap);
  margin-top: calc(100lvh - 100svh);   /* iOS Safari zeigt die Seite durch die Leiste unten, dort lag sonst schon die Zeile; am Desktop 0 */
}
/* Vektor wie das Logo (Raster 3766 x 797, Tinte x 61 bis 3712): die Box ist die ganze Zeichenfläche, damit die Material-Bilder (js/fx.js)
   deckungsgleich liegen. Die Tinte ist so breit wie die Bühne. Grundlinie und Abstand darunter wie bei der früher gesetzten Schrift
   (Playfair 600 italic, Größe 0,1746 x Bühne, Zeilenhöhe 1,05): Box 0,035 Bühnenbreiten höher, Grundlinie 0,0035 tiefer. */
.statement__line {
  width: calc(100% * 3766 / 3651 * var(--mt-f, 1));
  margin: calc(1vw - 100% * .0035 * var(--mt-f, 1)) 0 calc(100% * -.035 * var(--mt-f, 1)) calc(100% * -61 / 3651 * var(--mt-f, 1));
  color: var(--logo);
}
.statement__line svg { display: block; width: 100%; height: auto; fill: currentColor; }
/* Am Handy größer in einer Zeile (Erron, 07.11.2026): Tinte --mt-f Bühnen breit, die Zeile gleitet beim Vorbeiscrollen von „making“ bis „things“ (line-drift).
   Als Scroll-Animation läuft sie auf dem Compositor im Takt des Fingers; per JS hinkte sie ein Bild hinterher. Ohne Scroll-Timelines: js/hero.js. */
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  .statement { --mt-f: 1.6; overflow-x: clip; view-timeline: --line; }
}

/* About (js/about.js), direkt nach dem Hero. Das Blatt ist dunkel, so weit die Sektion reicht (Shader, js/bg-shader.js): die Kante kommt
   mit der Oberkante herein, der Inhalt direkt dahinter. Steht die Oberkante oben, heftet der Inhalt an (--hold), dann kehrt das Papier mit der Unterkante zurück. */
.about { --hold: 100svh; --gut: 16px; position: relative; margin: 12svh 0; color: var(--paper); }
@media (min-width: 701px) { .about { --gut: 24px; } }
html:not(.fx-on) .about { background: var(--green-deep); }   /* ohne Shader (?nofx, kein WebGL) */
.about__track { height: calc(100svh + var(--hold)); }
.about__pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(48px, 10vh, 120px); padding: 64px 0 24px;
}
.about__label, .about__kicker {
  margin: 0 var(--gut); font-size: var(--text-small); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; opacity: .6;
}
/* Band: zwei gleiche Listen hintereinander, jede läuft um ihre eigene Breite, dann beginnt es nahtlos von vorn */
.band {
  --gap: clamp(48px, 7vw, 128px);
  display: flex; overflow: hidden; margin-top: clamp(16px, 2.4vw, 32px);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  opacity: 0; translate: 0 24px; transition: opacity .8s var(--ease-out), translate 1.2s var(--ease-out);
}
.about.is-in .band { opacity: 1; translate: 0 0; transition-delay: .15s; }
.band__track { display: flex; flex-shrink: 0; gap: var(--gap); margin: 0; padding: 0 var(--gap) 0 0; list-style: none; animation: band 36s linear infinite paused; }
.about.is-in .band__track { animation-play-state: running; }
@keyframes band { to { translate: -100% 0; } }
/* Logo als Maske in Papierfarbe; der Name bleibt für Screenreader */
.band li {
  flex-shrink: 0; height: clamp(44px, 5.4vw, 92px); aspect-ratio: var(--r); background: var(--paper); font-size: 0; color: transparent;
  mask-size: contain; mask-repeat: no-repeat; mask-position: center;
}
/* Desktop: links klein Label und Zahlen, rechts der Text; am Handy untereinander */
.about__inner { display: grid; gap: 24px clamp(32px, 6vw, 96px); margin: 0 var(--gut); }
.about__inner .about__kicker { margin: 0; }
@media (min-width: 901px) {
  .about__inner { grid-template-columns: minmax(200px, 1fr) minmax(0, 2.2fr); grid-template-areas: "k l" "s l"; align-items: start; }
  .about__kicker { grid-area: k; } .about__lead { grid-area: l; } .about__stats { grid-area: s; align-self: end; }
}
/* Fließtext mittelgroß; Wörter werden beim Scrollen hell (--o, js/about.js) */
.about__lead { margin: 0; max-width: 34ch; font-size: clamp(20px, 2.2vw, 38px); line-height: 1.28; letter-spacing: -.025em; }
.about__stats { display: grid; gap: 20px; margin: 0; max-width: 340px; opacity: 0; translate: 0 16px; transition: opacity .8s var(--ease-out), translate 1.2s var(--ease-out); }
@media (max-width: 900px) { .about__stats { grid-template-columns: 1fr 1fr; max-width: none; } }
.about.is-in .about__stats { opacity: 1; translate: 0 0; transition-delay: .7s; }
.about__stats div { padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); }
.about__stats dt { font-size: clamp(22px, 1.9vw, 32px); line-height: 1; letter-spacing: -.03em; }
.about__stats dd { margin: 6px 0 0; font-size: var(--text-small); line-height: 1.35; opacity: .65; }
/* Text steigt Zeile für Zeile aus einer Maske (--l Zeile, --d Start, js/about.js) */
.w { display: inline-block; overflow: clip; vertical-align: top; padding: 0 .1em .14em 0; margin: 0 -.1em -.14em 0; }
.w > span { display: inline-block; opacity: var(--o, .3); translate: 0 110%; transition: translate .5s var(--ease-out), opacity .3s linear; }
.about.is-in .w > span { translate: 0 0; transition: translate 1.1s var(--ease-out) calc(var(--d, 0ms) + var(--l, 0) * 90ms), opacity .3s linear; }
@media (prefers-reduced-motion: reduce) {
  .w > span, .band, .about__stats { translate: none !important; }
  .band__track { animation: none; }
}
/* Header über dem dunklen Grund */
.site-header__logo { transition: color .6s var(--ease-out); }
html.on-dark .site-header__logo { color: var(--paper); --logo-dot: var(--paper); }
html.on-dark .menu-btn { color: var(--paper); }
.header-veil--1 { transition: background-color .6s var(--ease-out); }
html.on-dark .header-veil--1 { background: color-mix(in srgb, var(--green-deep) 55%, transparent); }

/* Hero-Inhalt wird im Loader von loader.js eingeblendet (reveal), bis dahin versteckt */
html.is-loading .facts > p, html.is-loading .hero__photo { opacity: 0; }

/* Schriften, selbst gehostet (OFL), nur Latin */
@font-face {
  font-family: 'Stack Sans Text';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url(../assets/fonts/stack-sans-text-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(../assets/fonts/playfair-display-italic-latin.woff2) format('woff2');
}

/* Scroll-Bewegungen. Tempo: Logo 1,25 / Zeile 1,08 / Foto 1,02 (Seite 1,00). Das Logo ist am schnellsten und erreicht die Mitte zuerst.
   Phase 1 (0 bis --s1): Logo, Foto und Zeile fahren hoch, die Fakten stehen. --s1 ist erreicht,
   wenn die Oberkante des Logos die Bildschirmmitte erreicht (Logo ist dann --rise gestiegen).
   Phase 2 (--s1 bis --s2): Fakten blenden aus, das Logo fliegt in den Header. Es startet mit Seitentempo und bremst weich ab (--ease-fly),
   die Größe wechselt mit Ease-in-out. Läuft über Scroll-Timelines, Lenis (smooth scroll) liefert die weiche Scrollbewegung.
   Fallback ohne Scroll-Timelines: hero.js. */
@supports (animation-timeline: scroll()) {
  .hero__stage { animation: rise linear both; animation-timeline: scroll(root); animation-range: 0px var(--s1, 1px); }
  .hero__logo {
    animation: fly var(--ease-fly, ease-out) both, drift var(--ease-in-out) both, shrink var(--ease-in-out) both;
    animation-timeline: scroll(root), scroll(root), scroll(root);
    animation-range: var(--s1, 1px) var(--s2, 2px), var(--s1, 1px) var(--s2, 2px), var(--s1, 1px) var(--s2, 2px);
  }
  .facts { animation: fade linear both; animation-timeline: scroll(root); animation-range: var(--s1, 1px) var(--s3, 2px); }
  .hero__photo { animation: lift-photo linear both, photo-over linear; animation-timeline: scroll(root), scroll(root); animation-range: 0px var(--sl, 2px), var(--s5, 1px) var(--s4, 2px); }   /* Foto bleibt bis s4 über dem Logo, dann unter dem Schleier */
  .statement__line { animation: lift-line linear both; animation-timeline: scroll(root); animation-range: 0px var(--sl, 2px); }
  /* linksbündig, bis die Oberkante auf halber Höhe steht (dann hat die Zeile zum Foto aufgerückt, line-gap), rechtsbündig bei 5 %.
     Vorher ab 85 %: „making“ wischte schon seitwärts, während es hochkam, und war nicht lesbar (Erron). ease-in-out: setzt weich ein. */
  @media (max-width: 700px) {
    .statement__line { animation: lift-line linear both, line-drift ease-in-out both; animation-timeline: scroll(root), --line; animation-range: 0px var(--sl, 2px), cover 50vh cover 95vh; }
  }
  .statement { animation: line-over linear; animation-timeline: scroll(root); animation-range: var(--s5, 1px) var(--s4, 2px); }   /* wie das Foto: bis s4 über dem Hero, danach unter dem Schleier */
  /* iOS: der Versatz unter die Leiste (margin-top oben) schließt sich in den ersten 50svh Scroll, sonst blieb er als Lücke zum Foto (Erron, 07.11.2026).
     ease-in-out: das Tempo der Zeile steigt und fällt stetig (linear über 30svh sprang es am Anfang und am Ende, Erron: nicht smooth genug) */
  .statement {
    margin-top: 0;
    animation: line-over linear, line-gap ease-in-out both; animation-timeline: scroll(root), scroll(root);
    animation-range: var(--s5, 1px) var(--s4, 2px), 0px 50svh;
  }
}
@supports (animation-timeline: scroll()) {
  .header-veil { animation: fade-in linear both; animation-timeline: scroll(root); animation-range: var(--s1, 1px) var(--s3, 2px); }
  .hero { animation: hero-up linear both; animation-timeline: scroll(root); animation-range: var(--s5, 1px) calc(var(--s5, 1px) + 1px); }   /* Logo liegt über dem Schleier, sobald es hineinreicht (s5, hero.js) */
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes photo-over { 0%, 99% { z-index: 106; } 100% { z-index: 102; } }
@keyframes line-over { 0%, 99% { z-index: 107; } 100% { z-index: 103; } }
@keyframes hero-up { from { z-index: 101; } to { z-index: 105; } }
@media (prefers-reduced-motion: reduce) {
  .hero__stage, .hero__logo, .facts, .hero__photo, .statement__line { animation: none; }   /* kein Flug, das Header-Logo übernimmt bei --s2 */
}
@keyframes rise { to { translate: 0 calc(var(--rise) * -1); } }
@keyframes fly { to { translate: 0 var(--dy); } }
@keyframes drift { from { left: 0; } to { left: var(--dx); } }   /* x läuft im Takt des Schrumpfens, sonst driftet das große Logo erst nach rechts */
@keyframes shrink { to { scale: var(--ls); } }
@keyframes fade { to { opacity: 0; } }
@keyframes lift-photo { to { translate: 0 calc(var(--sl) * -.02); } }   /* 1,02-fach */
@keyframes lift-line { to { translate: 0 calc(var(--sl) * -.08); } }    /* 1,08-fach */
@keyframes line-gap { from { translate: 0 calc(100lvh - 100svh); } }
@keyframes line-drift { to { transform: translateX(calc(-100% * (var(--mt-f, 1) - 1) / var(--mt-f, 1) * 3651 / 3766)); } }   /* Tinte rechts an der Bühne */

/* Lenis (smooth scroll), Pflichtregeln der Bibliothek */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Sobald das große Logo oben angekommen ist (hero.js), übernimmt das Header-Logo ohne Übergang */
html.is-docked .hero__logo { visibility: hidden; }

/* Shader (js/fx.js): Grund als festes Canvas hinter allem Inhalt, Headlines zeichnet je ein Canvas im Element. Der echte Text bleibt für Screenreader und Auswahl. */
/* Im Loader zeigt sich das Papier erst mit dem Druck (is-lettering, loader.js), davor ist alles grün */
.fx-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.fx-bg.is-page { position: absolute; inset: 0 auto auto 0; }   /* Touch: liegt auf dem Blatt, Höhe und Versatz aus js/fx.js */
html.is-loading:not(.is-lettering) .fx-bg { visibility: hidden; }
.fx-head { position: absolute; pointer-events: none; }
.statement__line { position: relative; }
html.fx-on .statement__line { color: transparent; }
/* Logo: bis der Loader fertig ist (is-landed, loader.js) zeichnen die SVG-Buchstaben, danach der Shader. Opacity statt Visibility, sonst würde is-docked überstimmt. */
.hero__logo .fx-head { opacity: 0; }
html.fx-on.is-landed .hero__logo .fx-head { opacity: 1; }
html.fx-on.is-landed .hero__vector, html.fx-on.is-landed .hero__dotbox { visibility: hidden; }

/* Work (Wireframe): Die Bühne bleibt stehen (sticky), das Gerät wechselt zwischen den Kapiteln Seite, Form und Screen.
   Lage und Größe des Geräts, Scroll von Screen und Text setzt js/showcase.js. Nur Struktur, Aussehen folgt. */
.showcase { position: relative; height: 600svh; }   /* echte Höhe aus der Summe der Kapitel, showcase.js */
.showcase__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
/* Geräte (2,5D, Rückfall ohne WebGL): Gehäuse als Tinte, Metall und Schatten als Halbton-Raster.
   Maße nach iPhone 16 Pro, MacBook Pro 14 und einem flachen TV. --w, --r (Radius), --bz (Rand) setzt showcase.js. */
.device {
  --dots: radial-gradient(circle, var(--ink) 0 30%, transparent 36%) 0 0 / 4px 4px;   /* Halbton für Grau */
  position: absolute; left: 0; top: 0;
  transform-style: preserve-3d;
  transform: perspective(1800px) rotateX(3deg) rotateY(var(--ry, 0deg));
}
.device__body, .device__glass, .device__shadow, .device__base { position: absolute; }
.device__body { inset: 0; border-radius: var(--r); background: var(--ink); }
.device__glass { inset: var(--bz); border-radius: calc(var(--r) - var(--bz)); overflow: hidden; background: var(--paper); transform: translateZ(1px); }
/* Schatten am Boden: weicher Hof und dunkler Kern, die Körnung kommt vom Grund (js/fx.js) */
.device__shadow {
  left: 6%; right: 6%; top: calc(100% + var(--w) * var(--drop, .07)); height: calc(var(--w) * .07);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(33 30 26 / .32), rgb(33 30 26 / .12) 55%, transparent);
  filter: blur(calc(var(--w) * .012));
}
.device__base { display: none; }

.device[data-kind="phone"] .device__body { box-shadow: inset 0 0 0 calc(var(--w) * .008) color-mix(in srgb, var(--ink) 55%, var(--paper)); }   /* Titanrahmen */
/* iPhone: Dynamic Island, links Action-Taste und Lautstärke, rechts Seitentaste und Kamerasteuerung (Lage in Anteilen der Höhe) */
.device[data-kind="phone"] .device__glass::before {
  content: ''; position: absolute; z-index: 1; top: calc(var(--w) * .028); left: 50%; translate: -50% 0;
  width: calc(var(--w) * .3); height: calc(var(--w) * .088); border-radius: 99px; background: var(--ink);
}
.device[data-kind="phone"] .device__body::before, .device[data-kind="phone"] .device__body::after {
  content: ''; position: absolute; width: calc(var(--w) * .016); border-radius: 2px;
}
.device[data-kind="phone"] .device__body::before {
  left: calc(var(--w) * -.013); top: 16.5%; height: 26.5%;
  background: linear-gradient(var(--ink) 0 17%, transparent 17% 34%, var(--ink) 34% 62.3%, transparent 62.3% 71.7%, var(--ink) 71.7%);
}
.device[data-kind="phone"] .device__body::after {
  right: calc(var(--w) * -.013); top: 27%; height: 35%;
  background: linear-gradient(var(--ink) 0 32.9%, transparent 32.9% 82.9%, var(--ink) 82.9%);
}

/* MacBook: Deckel mit Kinn und Notch, Aluminium-Kante, davor das Unterteil mit Griffmulde */
.device[data-kind="laptop"] .device__body { box-shadow: 0 0 0 calc(var(--w) * .004) color-mix(in srgb, var(--ink) 45%, var(--paper)); }
.device[data-kind="laptop"] .device__glass { inset: var(--bz) var(--bz) calc(var(--bz) * 2.2); border-radius: calc(var(--r) - var(--bz)) calc(var(--r) - var(--bz)) 0 0; }
.device[data-kind="laptop"] .device__glass::before {
  content: ''; position: absolute; z-index: 1; top: 0; left: 50%; translate: -50% 0;
  width: calc(var(--w) * .085); height: calc(var(--w) * .022); border-radius: 0 0 calc(var(--w) * .006) calc(var(--w) * .006); background: var(--ink);
}
.device[data-kind="laptop"] .device__base {   /* Vorderkante des Unterteils, Aluminium */
  display: block; top: 100%; left: -6.5%; right: -6.5%; height: calc(var(--w) * .03);
  background: linear-gradient(color-mix(in srgb, var(--ink) 12%, var(--paper)), color-mix(in srgb, var(--ink) 34%, var(--paper)) 80%, color-mix(in srgb, var(--ink) 60%, var(--paper)));
  border-radius: 0 0 calc(var(--w) * .03) calc(var(--w) * .03) / 0 0 calc(var(--w) * .022) calc(var(--w) * .022);
}
.device[data-kind="laptop"] .device__base::before {   /* Griffmulde */
  content: ''; position: absolute; top: 0; left: 50%; translate: -50% 0; width: 13%; height: 42%;
  border-radius: 0 0 calc(var(--w) * .012) calc(var(--w) * .012);
  background: linear-gradient(color-mix(in srgb, var(--ink) 55%, var(--paper)), color-mix(in srgb, var(--ink) 30%, var(--paper)));
}
.device[data-kind="laptop"] .device__shadow { --drop: .012; left: -9%; right: -9%; height: calc(var(--w) * .05); }

/* TV: schmaler Rand, Standfuß mit Hals */
.device[data-kind="tv"] .device__base {
  display: block; top: 100%; left: 50%; translate: -50% 0; width: 30%; height: calc(var(--w) * .07);
  background: var(--ink);
  -webkit-mask: linear-gradient(#000, #000) 50% 0 / 7% 75% no-repeat, linear-gradient(#000, #000) 50% 100% / 100% 25% no-repeat;
  mask: linear-gradient(#000, #000) 50% 0 / 7% 75% no-repeat, linear-gradient(#000, #000) 50% 100% / 100% 25% no-repeat;
}
.device[data-kind="tv"] .device__shadow { --drop: .055; left: 30%; right: 30%; height: calc(var(--w) * .035); }
/* Das Gerät zeichnet WebGL (js/device3d.js), das DOM-Gerät oben ist nur Rückfall ohne WebGL.
   Gehäuse sauber gerendert wie in der Produktfotografie, der Schatten multipliziert sich mit dem Papier. */
.device3d { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.device3d--shadow { mix-blend-mode: multiply; }
html.is-3d .device { visibility: hidden; }   /* Schatten zeichnet die 3D-Szene mit */

/* Screen: so hoch wie --len Gerätehöhen, Platzhalter-Kacheln als Streifen */
.screen {
  position: absolute; inset: 0 0 auto 0;
  height: calc(var(--len, 1) * 100%);
  padding: 72px 8% 0;
  background: repeating-linear-gradient(to bottom, transparent 0 20px, color-mix(in srgb, var(--ink) 10%, transparent) 20px 110px) content-box;
}
.screen[hidden] { display: none; }
.screen__label { position: absolute; top: 44px; left: 8%; font-size: 12px; opacity: .6; }

/* Text gegenüber dem Gerät: ein Fenster mit weichen Kanten, darin rollen die Blöcke */
.chapter {
  position: absolute; top: calc(50% + 28px); translate: 0 -50%;
  width: 32%; height: 56svh; overflow: hidden; opacity: 0;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
.chapter[data-side="left"] { left: 60%; }
.chapter[data-side="right"] { left: 8%; }
.chapter__block { height: 56svh; display: flex; flex-direction: column; justify-content: center; }
.chapter__block h2 { margin: 0 0 .4em; font-size: clamp(28px, 3.2vw, 56px); font-weight: 300; line-height: 1.05; letter-spacing: -.025em; }
.chapter__block p { margin: 0; max-width: 24em; font-size: var(--text-body); line-height: 1.4; }
/* Schmal: Gerät oben mittig, Text darunter, das Gerät wechselt nur Form und Screen */
@media (max-width: 700px) {
  .chapter[data-side] { left: 12px; right: 12px; width: auto; top: auto; bottom: 2svh; translate: none; height: 34svh; }
  .chapter__block { height: 34svh; }
}
/* Touch, iOS: Knopf „Steer the light“ holt die Erlaubnis für das Kippen (js/fx.js). Steht fest über dem Logo und liegt unter den Buchstaben.
   Beim Heranfahren des Logos blendet er weich aus (Deckkraft, Unschärfe, Größe setzt js/fx.js nur in dieser Zeit).
   Alle Bewegungen nur über transform und opacity, sonst malt das Handy das Glas jedes Bild neu und der Druck ruckelt. */
/* 40 px Innenabstand: Schatten, Hand und Schein liegen im Kasten, die Maske beim Freilegen (loader.js, slideReveal) schneidet sonst alles
   außerhalb ab. Safari kennt mask-clip: no-clip nicht, der Schatten kam erst mit dem Ende der Maske (Erron, 06.11.2026). margin-top gleicht den Abstand aus. */
.tilt { position: absolute; left: 50%; translate: -50% -100%; padding: 40px; margin-top: 40px; pointer-events: none; }
.tilt.is-off .tilt__btn { pointer-events: none; }
.tilt__in { display: block; position: relative; }
html.is-loading .tilt__in { opacity: 0; }   /* der Loader legt ihn im letzten Wisch frei, schräge körnige Maske (js/loader.js, slideReveal) */
/* Während des Freilegens ohne Weichzeichnung (die Maske schaltet backdrop-filter in Safari ohnehin ab); danach blendet sie über die transition weich ein,
   vorher schaltete das Glas am Ende hart dazu (Erron, 06.11.2026). blur(0) statt none, sonst gibt es nichts zu überblenden. */
.tilt__in.is-revealing .tilt__btn { -webkit-backdrop-filter: blur(0) saturate(1); backdrop-filter: blur(0) saturate(1); }

/* Glas: heller Verlauf, starke Weichzeichnung dahinter, Lichtkante oben, weicher Schatten in Logo-Grün */
.tilt__btn {
  position: relative; display: block; overflow: hidden;
  padding: .85em 1.5em; border: 1px solid rgb(255 255 255 / .7); border-radius: 999px;
  font: inherit; font-size: var(--text-small); letter-spacing: -.01em; white-space: nowrap; color: var(--logo);
  background: linear-gradient(180deg, rgb(255 255 255 / .66), rgb(255 255 255 / .2));
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), inset 0 -1px 1px rgb(25 61 47 / .06), 0 1px 2px rgb(25 61 47 / .08), 0 12px 28px -12px rgb(25 61 47 / .4);
  pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent;
  will-change: transform;
  transition: scale .3s var(--ease-out), backdrop-filter .7s var(--ease-out), -webkit-backdrop-filter .7s var(--ease-out);
}
.tilt__btn > span { position: relative; }   /* Text über der Lichtwelle */
.tilt__btn:active { scale: .96; }

/* Puls beim Druck, zweiteilig: eine Lichtwelle läuft von der Fingerspitze durch das Glas,
   dahinter blüht ein weicher grüner Schein auf und verweht. */
.tilt__btn::before {
  content: ''; position: absolute; left: 72%; top: 60%; width: 240%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgb(255 255 255 / .95) 0%, rgb(255 255 255 / .55) 28%, rgb(255 255 255 / 0) 60%);
  opacity: 0; scale: 0; will-change: transform, opacity;
}
.tilt__in::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 999px; pointer-events: none;
  background: var(--green-mid); filter: blur(14px); opacity: 0; will-change: transform, opacity;
}

/* Hand: fliegt von rechts unten an, setzt auf und drückt weich ein, lässt los und zieht ab. Knopf und Puls laufen im selben Takt. */
.tilt__hand {
  position: absolute; right: 17%; top: 73%; width: 24px; height: 24px; pointer-events: none;   /* Fingerspitze setzt unter dem Text auf (Erron: nicht den Text berühren) */
  transform-origin: 44% 8%;   /* Fingerspitze: drückt dort, wo sie aufsetzt */
  opacity: 0; will-change: transform, opacity;
}
.tilt__glass {   /* Glas in Handform: der Text dahinter verschwimmt. Form per clip-path (js/fx.js), mask schaltet in Safari backdrop-filter ab. */
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgb(255 255 255 / .9), rgb(255 255 255 / .55));   /* Milchglas: sichtbar gefüllt, auch wo dahinter nur Papier liegt oder Safari nicht weichzeichnet */
  -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8);
  clip-path: url(#tilt-hand-clip);
}
.tilt__defs { position: absolute; }
.tilt__hand svg:not(.tilt__defs) { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--logo); }   /* Phosphor Light */
html.is-landed .tilt__hand { animation: tilt-hand 5.2s 1.4s infinite; }
html.is-landed .tilt__btn { animation: tilt-push 5.2s 1.4s infinite; }
html.is-landed .tilt__btn::before { animation: tilt-wave 5.2s 1.4s infinite; }
html.is-landed .tilt__in::before { animation: tilt-bloom 5.2s 1.4s infinite; }
/* 5,2 s: Anflug 6 bis 24 %, Eindrücken 24 bis 33 % (rund 470 ms), halten bis 36 %, Loslassen bis 46 %, Abzug bis 60 % */
@keyframes tilt-hand {
  0%, 6% { opacity: 0; translate: 36px 30px; rotate: -26deg; scale: .9; animation-timing-function: var(--ease-out); }
  24% { opacity: 1; translate: 2px 6px; rotate: -8deg; scale: 1; animation-timing-function: var(--ease-in-out); }
  33%, 36% { opacity: 1; translate: 0 1px; rotate: -6deg; scale: .9; animation-timing-function: var(--ease-out); }
  46% { opacity: 1; translate: 3px 8px; rotate: -9deg; scale: 1; animation-timing-function: var(--ease-in-out); }
  60%, 100% { opacity: 0; translate: 34px 34px; rotate: -22deg; scale: .94; }
}
@keyframes tilt-push {
  0%, 28% { scale: 1; animation-timing-function: var(--ease-in-out); }
  33%, 36% { scale: .96; animation-timing-function: cubic-bezier(.34, 1.5, .64, 1); }   /* federt beim Loslassen leicht über */
  48%, 100% { scale: 1; }
}
@keyframes tilt-wave {
  0%, 32% { opacity: 0; scale: 0; }
  34% { opacity: 1; scale: .08; animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  72%, 100% { opacity: 0; scale: 1; }
}
@keyframes tilt-bloom {
  0%, 33% { opacity: 0; scale: .85; animation-timing-function: var(--ease-out); }
  38% { opacity: .55; scale: 1.02; animation-timing-function: var(--ease-out); }
  85%, 100% { opacity: 0; scale: 1.35 2.1; }
}
@media (prefers-reduced-motion: reduce) {
  .tilt__hand { display: none; }
  html.is-landed .tilt__btn, html.is-landed .tilt__btn::before, html.is-landed .tilt__in::before { animation: none; }
}
