/* =========================================================================
   Julian Neumann — SIGNAL / STORY
   A single, hand-built design system. Three moods (signal · story · grief)
   inside one identity. No frameworks, no CDN.
   ========================================================================= */

:root {
  color-scheme: dark;

  /* base / signal palette */
  --bg: #05070a;
  --bg-2: #080d13;
  --surface: #0b1219;
  --surface-2: #0f1822;
  --ink: #f3efe6;
  --ink-dim: #c3ccd2;
  --ink-soft: #8597a3;
  --line: #1d2a35;
  --line-2: rgba(143, 178, 199, 0.16);

  --steel: #7fb0cd;
  --steel-deep: #2c5167;
  --ember: #e87436;
  --ember-deep: #b8501f;
  --copper: #c8814a;
  --ok: #76b58a;
  --warn: #e0a64a;
  --danger: #e0635f;

  /* story palette (set on .theme-story) */
  --paper: #ece3d3;
  --bronze: #b4824a;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");

  --radius: 6px;
  --radius-lg: 12px;
  --max: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header: 74px;
  --ease: cubic-bezier(.22, .8, .26, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font-display: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "Cascadia Code", "Cascadia Mono", "Segoe UI Mono", Consolas, "Roboto Mono", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

[id] {
  scroll-margin-top: calc(var(--header) + 18px);
}
.anchor-target {
  display: block;
  width: 100%;
  height: 0;
  scroll-margin-top: calc(var(--header) + 18px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.55vw + 13.6px, 17px);
  line-height: 1.62;
  overflow-x: hidden;
  overflow-y: auto;
}

img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

::selection { background: rgba(232, 116, 54, .32); color: #fff; }

h1, h2, h3, h4 { margin: 0 0 .6rem; line-height: 1.04; font-weight: 740; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; color: var(--ink-dim); }
strong { color: var(--ink); }

/* ------------------------------------------------------------------ utils */
.container {
  width: min(100% - calc(var(--gutter) * 2), var(--max));
  margin-inline: auto;
}
.container-wide { width: min(100% - calc(var(--gutter) * 2), 1480px); margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 1.7rem;
  height: 1px;
  background: currentColor;
  opacity: .8;
}

.lead { font-size: clamp(1.05rem, 1.4vw, 1.32rem); color: #d9d4c7; line-height: 1.55; }
.muted { color: var(--ink-soft); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 1000;
  transform: translateY(-160%);
  background: var(--ink); color: var(--bg);
  padding: .7rem 1rem; border-radius: 5px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { transform: translateY(0); }

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

/* --------------------------------------------------------------- scrollbar */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; z-index: 120; height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--steel));
  transform: scaleX(0); transform-origin: left;
  will-change: transform;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 110;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(6, 9, 13, .72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line-2);
}
.nav-wrap {
  width: min(100% - calc(var(--gutter) * 2), 1480px);
  margin-inline: auto;
  min-height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: min-height .35s var(--ease);
}
.site-header.is-stuck .nav-wrap { min-height: 60px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
img.brand-mark {
  width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line);
  background: none; box-shadow: 0 2px 10px rgba(0,0,0,.35);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .3s;
}
.brand:hover img.brand-mark, .footer-brand:hover img.brand-mark {
  transform: translateY(-1px) rotate(-3deg); border-color: var(--ember);
  box-shadow: 0 4px 16px rgba(232,116,54,.25);
}

.site-nav { display: flex; align-items: center; gap: .15rem; }
.site-nav a {
  position: relative; min-height: 42px; display: inline-flex; align-items: center;
  padding: .5rem .8rem; color: var(--ink-dim); text-decoration: none;
  font-size: .92rem; font-weight: 550; border-radius: 5px;
  transition: color .25s var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .42rem; height: 1.5px;
  background: var(--ember); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: 8px; color: var(--ink);
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 20px; height: 2px; margin: 5px auto;
  background: currentColor; border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------------- buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.4rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(127, 176, 205, .05); color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: .96rem; letter-spacing: -0.005em;
  overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), color .25s;
}
.btn .ico { width: 1.05em; height: 1.05em; transition: transform .3s var(--ease); }
.btn:hover { border-color: rgba(243,239,230,.42); background: rgba(127,176,205,.1); }
.btn:hover .ico { transform: translateX(4px); }
.btn-primary {
  border-color: transparent;
  background: linear-gradient(180deg, var(--ember), var(--ember-deep));
  color: #1a0c05;
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-101%);
  background: linear-gradient(180deg, #ffa468, var(--ember));
  transition: transform .4s var(--ease);
}
.btn-primary:hover { color: #150a03; }
.btn-primary:hover::before { transform: translateX(0); }
.btn-ghost { background: transparent; }
.btn-lg { min-height: 58px; padding: 1rem 1.8rem; font-size: 1.05rem; }

.icon-btn {
  display: inline-grid; place-items: center; width: 50px; height: 50px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(127,176,205,.05); color: var(--ink);
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.icon-btn:hover:not(:disabled) { border-color: var(--ember); background: rgba(232,116,54,.12); transform: translateY(-1px); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.icon-btn svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------- sections */
.section { position: relative; padding: clamp(4rem, 9vh, 7.5rem) 0; }
.section-sm { padding: clamp(3rem, 6vh, 5rem) 0; }
.divider-line { border-top: 1px solid var(--line-2); }

.section-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(1rem, 4vw, 3rem); align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.section-head .col-note { color: var(--ink-soft); font-size: 1rem; padding-bottom: .35rem; }

.display { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: .98; }

/* clip / mask reveal for headings — initial hidden states only when JS is active */
.reveal-line { display: block; overflow: hidden; padding-block: 0.02em; }
.js .reveal-line > span { display: block; transform: translateY(110%); }
.js .reveal-up { opacity: 0; transform: translateY(26px); }
.js .reveal-fade { opacity: 0; }
[data-animate].in .reveal-line > span,
.reveal-line.in > span { transform: translateY(0); transition: transform 1s var(--ease-out); }
[data-animate].in .reveal-up,
.reveal-up.in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-animate].in .reveal-fade,
.reveal-fade.in { opacity: 1; transition: opacity 1s var(--ease-out); }
/* stagger */
[data-animate].in [data-delay="1"] { transition-delay: .08s; }
[data-animate].in [data-delay="2"] { transition-delay: .16s; }
[data-animate].in [data-delay="3"] { transition-delay: .24s; }
[data-animate].in [data-delay="4"] { transition-delay: .32s; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; min-height: calc(100svh - var(--header));
  display: grid; align-items: center; overflow: clip; isolation: isolate;
  padding: clamp(2rem, 6vh, 5rem) 0 clamp(3rem, 8vh, 6rem);
}
.hero-bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-grid {
  position: absolute; inset: -10%;
  background-image:
    linear-gradient(rgba(127,176,205,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,176,205,.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(120% 100% at 70% 30%, #000 35%, transparent 78%);
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform .6s var(--ease-out);
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 16% 28%, rgba(44,81,103,.5), transparent 70%),
    radial-gradient(40% 50% at 92% 78%, rgba(184,80,31,.22), transparent 72%);
  transform: translate3d(calc(var(--mx, 0) * -0.6), calc(var(--my, 0) * -0.6), 0);
  transition: transform .8s var(--ease-out);
}
.hero-scan {
  position: absolute; top: 0; bottom: 0; left: 58%; width: 1px;
  background: linear-gradient(transparent, rgba(232,116,54,.55) 35%, rgba(232,116,54,.55) 60%, transparent);
  animation: scanmove 9s var(--ease) infinite alternate;
}
@keyframes scanmove { from { transform: translateX(-40px); opacity: .4; } to { transform: translateX(120px); opacity: .9; } }
.hero-spark { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--steel); box-shadow: 0 0 8px 1px rgba(127,176,205,.7); opacity: .0; }
.hero-spark.s1 { top: 24%; left: 40%; animation: spark 6s ease-in-out infinite; }
.hero-spark.s2 { top: 66%; left: 30%; background: var(--ember); box-shadow: 0 0 8px 1px rgba(232,116,54,.7); animation: spark 7.5s ease-in-out .8s infinite; }
.hero-spark.s3 { top: 40%; left: 52%; animation: spark 8s ease-in-out 1.6s infinite; }
@keyframes spark { 0%, 100% { opacity: 0; transform: translateY(0); } 50% { opacity: .9; transform: translateY(-10px); } }
.hero-noise { position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .04; pointer-events: none; mix-blend-mode: overlay; }

.hero-inner {
  width: min(100% - calc(var(--gutter) * 2), 1380px); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-tag {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.4rem;
}
.hero-title { font-size: clamp(3.1rem, 9vw, 7rem); font-weight: 760; letter-spacing: -0.035em; margin: 0 0 1.3rem; }
.hero-roles {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 0;
  margin: 0 0 1.6rem; font-size: clamp(1.05rem, 2.4vw, 1.85rem);
  color: var(--steel); font-weight: 600; letter-spacing: -0.01em;
}
.hero-roles span { white-space: nowrap; }
.hero-roles .sep { color: var(--ember); padding: 0 .7rem; font-weight: 400; }
.hero-place {
  display: inline-flex; align-items: center; gap: 1rem; margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--ink-dim);
}
.hero-place::before {
  content: ""; width: 0; height: 2px; background: linear-gradient(90deg, var(--ember), transparent);
  animation: drawline 1.2s var(--ease-out) .8s forwards;
}
@keyframes drawline { to { width: 64px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(2rem, 4vw, 2.8rem); }

.hero-media { position: relative; align-self: stretch; min-height: clamp(22rem, 50vh, 40rem); display: grid; place-items: center; }
.portrait {
  position: relative; width: min(100%, 30rem); aspect-ratio: 820 / 1024;
  transform: translate3d(calc(var(--mx, 0) * 1.4), calc(var(--my, 0) * 1.4), 0);
  transition: transform .7s var(--ease-out);
}
.portrait::before {
  content: ""; position: absolute; inset: -6% -6% -2% -6%; z-index: -1;
  border: 1px solid var(--line); border-radius: 10px;
  background: linear-gradient(160deg, rgba(127,176,205,.08), transparent 60%);
}
.portrait::after {
  content: ""; position: absolute; right: -8%; top: 8%; bottom: 14%; width: 1px;
  background: linear-gradient(transparent, var(--ember), transparent);
  opacity: .55;
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  border-radius: 8px;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent);
  mask-image: linear-gradient(180deg, #000 80%, transparent);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.55)) contrast(1.02);
  clip-path: inset(0 0 100% 0);
  animation: portraitReveal 1.4s var(--ease-out) .25s forwards;
}
@keyframes portraitReveal { to { clip-path: inset(0 0 0 0); } }
.portrait-meta {
  position: absolute; left: -2%; bottom: 4%; font-family: var(--font-mono);
  font-size: .66rem; letter-spacing: .18em; color: var(--ink-soft);
  background: rgba(6,9,13,.7); border: 1px solid var(--line); border-radius: 4px; padding: .3rem .55rem;
  backdrop-filter: blur(4px);
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .24em; color: var(--ink-soft);
  text-transform: uppercase;
}
.scroll-cue .bar { width: 1px; height: 38px; background: linear-gradient(var(--ember), transparent); position: relative; overflow: hidden; }
.scroll-cue .bar::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* =====================================================================
   INTRO (editorial)
   ===================================================================== */
.intro { position: relative; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.intro-lead { font-size: clamp(1.5rem, 3.2vw, 2.6rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.intro-lead em { font-style: normal; color: var(--ember); }
.intro-aside { font-size: 1.05rem; color: var(--ink-dim); padding-top: .4rem; }
.intro-aside p:last-child { margin-bottom: 0; }
.intro-rule { width: 2.4rem; height: 2px; background: var(--ember); margin-bottom: 1.4rem; }

/* =====================================================================
   FIELDS — interactive four-domain navigator (no icon cards)
   ===================================================================== */
.fields { position: relative; }
.fields-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .78fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch;
}
.fields-list { display: flex; flex-direction: column; }
.field-row {
  position: relative; display: flex; align-items: baseline; gap: 1rem;
  width: 100%; text-align: left; padding: clamp(.9rem, 2.2vw, 1.5rem) 0;
  border-top: 1px solid var(--line-2); color: var(--ink-soft);
  transition: color .35s var(--ease), padding-left .35s var(--ease);
}
.field-row:last-child { border-bottom: 1px solid var(--line-2); }
.field-row .idx { font-family: var(--font-mono); font-size: .8rem; color: var(--steel-deep); width: 2.4rem; flex: none; }
.field-row .name { font-size: clamp(1.7rem, 4.4vw, 3.2rem); font-weight: 720; letter-spacing: -0.03em; line-height: 1; transition: color .35s; }
.field-row .arrow { margin-left: auto; opacity: 0; transform: translateX(-8px); transition: opacity .35s, transform .35s; color: var(--ember); }
.field-row[aria-selected="true"], .field-row:hover, .field-row:focus-visible { color: var(--ink); padding-left: clamp(.4rem, 1.5vw, 1.1rem); }
.field-row[aria-selected="true"] .name, .field-row:hover .name { color: var(--ink); }
.field-row[aria-selected="true"] .idx { color: var(--ember); }
.field-row[aria-selected="true"] .arrow, .field-row:hover .arrow { opacity: 1; transform: translateX(0); }

.fields-panel {
  position: relative; border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface); min-height: 22rem; display: flex;
}
.field-card { position: absolute; inset: 0; padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; justify-content: flex-end; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.field-card.is-active { opacity: 1; transform: none; pointer-events: auto; }
.field-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(127,176,205,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,176,205,.06) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
  mask-image: radial-gradient(120% 90% at 80% 10%, #000, transparent 75%);
}
.field-card .glow { position: absolute; inset: 0; z-index: 0; opacity: .9; transition: background .6s; }
.field-card[data-field="it"] .glow { background: radial-gradient(70% 80% at 75% 20%, rgba(44,81,103,.6), transparent 70%); }
.field-card[data-field="automation"] .glow { background: radial-gradient(70% 80% at 75% 20%, rgba(184,80,31,.34), transparent 70%); }
.field-card[data-field="ai"] .glow { background: radial-gradient(70% 80% at 75% 20%, rgba(127,176,205,.3), transparent 70%); }
.field-card[data-field="author"] .glow { background: radial-gradient(70% 80% at 75% 20%, rgba(180,130,74,.4), transparent 70%); }
.field-card .label { position: relative; z-index: 1; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ember); margin-bottom: .8rem; }
.field-card h3 { position: relative; z-index: 1; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.field-card p { position: relative; z-index: 1; margin: 0; color: var(--ink-dim); max-width: 34rem; }

/* =====================================================================
   PROJECT SLIDER
   ===================================================================== */
.slider { position: relative; }
.slider-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.6rem; }
.slider-controls { display: flex; align-items: center; gap: .6rem; }
.slider-count { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft); min-width: 3.4rem; text-align: center; }

.rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(86%, 40rem);
  gap: clamp(1rem, 2vw, 1.6rem);
  overflow-x: auto; scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain; touch-action: pan-x pan-y;
  padding: .4rem .2rem 1.4rem;
  scrollbar-width: thin; scrollbar-color: var(--steel-deep) transparent;
  cursor: grab;
}
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--steel-deep); border-radius: 4px; }
.rail > * { scroll-snap-align: center; }

.project {
  position: relative; display: grid; grid-template-rows: auto 1fr;
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden; min-height: 28rem;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s, opacity .5s;
  transform: scale(.94); opacity: .55;
}
.project.is-active { transform: scale(1); opacity: 1; border-color: var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.project-visual { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line-2); background: #070b10; }
.project-body { padding: clamp(1.2rem, 2.6vw, 1.8rem); display: flex; flex-direction: column; gap: .7rem; }
.project-kicker { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ember); }
.project-body h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0; }
.project-body p { margin: 0; color: var(--ink-dim); }
.project-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: .3rem; font-family: var(--font-mono); font-size: .76rem; color: var(--ink-soft); }
.project-meta b { color: var(--steel); font-weight: 600; }

/* in-project SVG/CSS visuals share these helpers */
.viz { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(127,176,205,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,176,205,.07) 1px, transparent 1px);
  background-size: 24px 24px; opacity: .5;
}
.viz-doc { position: absolute; inset: 12% 8%; border: 1px solid var(--line); border-radius: 6px; background: rgba(10,16,22,.85); padding: 10px 12px; font-family: var(--font-mono); font-size: 10px; color: var(--ink-soft); overflow: hidden; }
.viz-doc .ln { height: 7px; margin: 7px 0; background: linear-gradient(90deg, rgba(143,178,199,.35), transparent); border-radius: 2px; }
.viz-doc .ln.hot { background: linear-gradient(90deg, rgba(232,116,54,.6), transparent); box-shadow: 0 0 0 1px rgba(232,116,54,.4); }
.is-active .viz-scan { animation: vizscan 3.4s linear infinite; }
.viz-scan { position: absolute; left: 0; right: 0; height: 24%; top: -24%; background: linear-gradient(transparent, rgba(127,176,205,.18), transparent); }
@keyframes vizscan { to { top: 100%; } }

/* monitoring heartbeat */
.viz-heart { position: absolute; inset: 0; }
.viz-heart path { fill: none; stroke: var(--ok); stroke-width: 2; filter: drop-shadow(0 0 5px rgba(118,181,138,.5)); stroke-dasharray: 600; stroke-dashoffset: 600; }
.is-active .viz-heart path { animation: dash 4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -600; } }

/* waveform */
.viz-wave { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3px; padding: 0 8%; }
.viz-wave i { flex: 1; max-width: 5px; background: linear-gradient(var(--copper), var(--ember)); border-radius: 3px; height: 20%; opacity: .85; }
.is-active .viz-wave i { animation: wave 1.6s var(--ease) infinite alternate; }
@keyframes wave { to { height: 90%; } }

/* =====================================================================
   AUTOMATION LAB
   ===================================================================== */
.lab { position: relative; }
.lab-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1rem, 2.4vw, 1.6rem); align-items: stretch; }
.lab-panel { border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.lab-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line-2); font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.lab-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--steel-deep); }
.lab-dot.live { background: var(--ok); box-shadow: 0 0 0 0 rgba(118,181,138,.5); animation: pulse 2s infinite; }
.lab-dot.warn { background: var(--warn); }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(118,181,138,0); } 100% { box-shadow: 0 0 0 0 rgba(118,181,138,0); } }

/* document */
.lab-doc { position: relative; padding: 1.1rem 1.2rem; }
.lab-doc-paper {
  position: relative; border: 1px solid var(--line); border-radius: 6px; background: #0d141b;
  padding: 1rem 1.1rem; overflow: hidden;
  transition: transform .5s var(--ease);
}
.lab-doc-paper.zoom { transform: scale(1.015); }
.lab-doc-top { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .7rem; margin-bottom: .8rem; border-bottom: 1px dashed var(--line); font-family: var(--font-mono); font-size: .72rem; color: var(--ink-soft); }
.lab-doc-top b { color: var(--steel); }
.lab-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: .74rem; }
.lab-table th { text-align: left; padding: .35rem .5rem; color: var(--ink-soft); font-weight: 500; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lab-table td { padding: .5rem .5rem; color: var(--ink-dim); border-bottom: 1px solid rgba(29,42,53,.6); }
.lab-table td strong { color: var(--ink); }
.cell { position: relative; border-radius: 3px; transition: background .3s, box-shadow .3s; }
.cell.scan { background: rgba(127,176,205,.12); }
.cell.flag { background: rgba(224,166,74,.16); box-shadow: inset 0 0 0 1px rgba(224,166,74,.6); }
.cell.fix { background: rgba(118,181,138,.16); box-shadow: inset 0 0 0 1px rgba(118,181,138,.6); }

/* pipeline */
.pipe { list-style: none; margin: 0; padding: 1.1rem; display: grid; gap: .55rem; }
.pipe li { position: relative; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: .7rem; padding: .5rem .6rem; border: 1px solid transparent; border-radius: 6px; color: var(--ink-soft); transition: color .3s, border-color .3s, background .3s; }
.pipe li .n { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; font-family: var(--font-mono); font-size: .72rem; transition: all .3s; }
.pipe li .st { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; opacity: 0; }
.pipe li.active { color: var(--ink); border-color: rgba(232,116,54,.4); background: rgba(232,116,54,.06); }
.pipe li.active .n { border-color: var(--ember); color: var(--ember); box-shadow: 0 0 0 4px rgba(232,116,54,.1); }
.pipe li.active .st { opacity: 1; color: var(--ember); }
.pipe li.done { color: var(--ink-dim); }
.pipe li.done .n { border-color: var(--ok); color: var(--ok); }
.pipe li.done .st { opacity: 1; color: var(--ok); }

.lab-controls { display: flex; flex-wrap: wrap; gap: .7rem; padding: 0 1.1rem 1.1rem; }
.lab-controls .btn { flex: 1; min-width: 9rem; justify-content: center; }

.lab-review { padding: 0 1.1rem 1.1rem; }
.review-box { border: 1px solid var(--warn); border-radius: 8px; background: rgba(224,166,74,.07); padding: 1rem; }
.review-box .q { display: flex; align-items: flex-start; gap: .6rem; color: var(--ink); font-weight: 600; margin-bottom: .9rem; }
.review-box .q svg { flex: none; width: 20px; height: 20px; color: var(--warn); margin-top: 1px; }
.review-opts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.review-opts button { padding: .9rem; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.02); text-align: center; font-family: var(--font-mono); transition: all .25s; }
.review-opts button .big { display: block; font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.review-opts button .sub { display: block; font-size: .66rem; color: var(--ink-soft); margin-top: .2rem; }
.review-opts button:hover { border-color: var(--steel); background: rgba(127,176,205,.08); }
.review-opts button.correct { border-color: var(--ok); background: rgba(118,181,138,.12); }
.review-opts button.wrong { border-color: var(--danger); background: rgba(224,99,95,.1); }

.lab-out { padding: 0 1.1rem 1.1rem; }
.lab-json { margin: 0; padding: 1rem; border: 1px solid rgba(118,181,138,.3); border-radius: 8px; background: rgba(118,181,138,.05); font-family: var(--font-mono); font-size: .74rem; line-height: 1.7; color: #cfe0d3; overflow-x: auto; }
.lab-json .k { color: var(--steel); }
.lab-json .v { color: #e7d6b3; }
.lab-json .ok { color: var(--ok); }

.lab-log { padding: 0 1.1rem 1.2rem; }
.lab-log ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.lab-log li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; font-family: var(--font-mono); font-size: .72rem; color: var(--ink-soft); opacity: 0; transform: translateX(-6px); transition: opacity .4s, transform .4s; }
.lab-log li.show { opacity: 1; transform: none; }
.lab-log li time { color: var(--steel-deep); }
.lab-log li.ok-line { color: var(--ok); }
.lab-log li.warn-line { color: var(--warn); }

/* =====================================================================
   STORY THEME — books
   ===================================================================== */
.theme-story {
  --ink: #f4ece0; --ink-dim: #d8cdbb; --ink-soft: #a89a85;
  --line: #3a3024; --line-2: rgba(180,130,74,.2);
  --ember: #d98a44;
  background:
    radial-gradient(80% 60% at 80% 0%, rgba(120,86,46,.2), transparent 60%),
    linear-gradient(180deg, #0d0a07, #0a0805);
  color: var(--ink);
}
.theme-story .eyebrow { color: var(--bronze); }

.books { position: relative; }
.book-stage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; min-height: 32rem; }
.book-covers { position: relative; min-height: 28rem; display: grid; place-items: center; }
.book-cover {
  position: absolute; width: min(72%, 19rem); aspect-ratio: var(--ar, 0.66);
  border-radius: 6px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.6);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  opacity: 0; transform: translateY(20px) scale(.92) rotateY(8deg); transform-style: preserve-3d;
  background: #0a0805; border: 1px solid rgba(255,255,255,.06);
}
.book-cover img { width: 100%; height: 100%; object-fit: contain; background: #0a0805; }
.book-cover.is-active { opacity: 1; transform: none; z-index: 3; }
.book-cover.is-prev { opacity: .25; transform: translateX(-26%) scale(.82) rotateY(16deg); z-index: 1; }
.book-cover.is-next { opacity: .25; transform: translateX(26%) scale(.82) rotateY(-16deg); z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .book-cover.is-active:hover { transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-4px); }
}

.book-info { position: relative; min-height: 20rem; }
.book-pane { position: absolute; inset: 0; opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.book-pane.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.book-genre { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); margin-bottom: .8rem; }
.book-pane h3 { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.05; }
.book-pane .book-sub { font-family: var(--font-serif); font-style: italic; color: var(--bronze); font-size: 1.15rem; margin-bottom: 1.1rem; }
.book-pane p { color: var(--ink-dim); max-width: 38rem; }
.book-status { display: inline-flex; align-items: center; gap: .6rem; margin-top: .4rem; padding: .5rem .9rem; border: 1px solid var(--line-2); border-radius: 30px; font-family: var(--font-mono); font-size: .74rem; color: var(--ink-dim); }
.book-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.book-status .dot.dev { background: var(--warn); }
.book-facts { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.3rem; }
.book-fact b { display: block; font-family: var(--font-mono); font-size: 1.35rem; color: var(--ink); font-weight: 600; }
.book-fact span { font-size: .8rem; color: var(--ink-soft); }
.book-nav { display: flex; align-items: center; gap: 1rem; margin-top: 1.8rem; }
.book-dots { display: flex; gap: .5rem; }
.book-dots button { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-2); transition: all .3s; }
.book-dots button[aria-current="true"] { background: var(--bronze); border-color: var(--bronze); transform: scale(1.2); }

/* =====================================================================
   GRIEF THEME — Glitch & Grief
   ===================================================================== */
.theme-grief {
  --ink: #f1ece6; --ink-dim: #c8beb4; --ink-soft: #8c8076;
  --line: #2a211a; --line-2: rgba(232,116,54,.22);
  --ember: #f0721f;
  position: relative;
  background: linear-gradient(180deg, #060403, #0b0705 60%, #060403);
  color: var(--ink);
  overflow-x: hidden;
}
section.theme-grief { overflow: hidden; }
body.theme-grief { overflow-x: hidden; overflow-y: auto; }
.grief-fractures { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5; }
.grief-fractures::before, .grief-fractures::after {
  content: ""; position: absolute; background: linear-gradient(transparent, rgba(240,114,31,.5), transparent);
}
.grief-fractures::before { top: 0; bottom: 0; left: 22%; width: 1px; transform: rotate(8deg); }
.grief-fractures::after { top: 0; bottom: 0; right: 28%; width: 1px; transform: rotate(-6deg); }
.grief-ember { position: absolute; inset: 0; z-index: 0; background: radial-gradient(50% 50% at 70% 60%, rgba(240,114,31,.18), transparent 70%); }
.theme-grief .container, .theme-grief .container-wide { position: relative; z-index: 1; }

.grief-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.grief-title { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 780; letter-spacing: -0.03em; line-height: .95; }
.grief-title .amp { color: var(--ember); }
.grief-keyvisual { position: relative; }
.grief-keyvisual img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(240,114,31,.12); }
.grief-keyvisual::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); box-shadow: inset 0 0 80px rgba(0,0,0,.5); pointer-events: none; }

.disco { margin-top: clamp(2.5rem, 6vw, 4rem); }
.disco-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(70%, 16rem); gap: 1.1rem; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; touch-action: pan-x pan-y; padding: .4rem .2rem 1.2rem; scrollbar-width: thin; scrollbar-color: var(--ember-deep) transparent; cursor: grab; }
.disco-rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.disco-rail > * { scroll-snap-align: start; }
.release { position: relative; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #0a0604; transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.release-art { position: relative; aspect-ratio: 1; overflow: hidden; }
.release-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.release-body { padding: .9rem 1rem 1.1rem; }
.release-body h4 { margin: 0 0 .25rem; font-size: 1.02rem; letter-spacing: -0.01em; }
.release-meta { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-soft); display: flex; gap: .6rem; flex-wrap: wrap; }
.release-tag { display: inline-block; padding: .15rem .5rem; border-radius: 4px; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.release-tag.out { background: rgba(118,181,138,.16); color: var(--ok); }
.release-tag.soon { background: rgba(240,114,31,.16); color: var(--ember); }
@media (hover: hover) and (pointer: fine) {
  .release:hover { transform: translateY(-4px); border-color: var(--ember); box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 30px rgba(240,114,31,.18); }
  .release:hover .release-art img { transform: scale(1.06); }
}

/* =====================================================================
   TIMELINE / WORK
   ===================================================================== */
.work-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.work-portrait { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); }
.work-portrait img { width: 100%; height: 100%; object-fit: cover; }
.work-portrait figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem; font-family: var(--font-mono); font-size: .74rem; color: var(--ink-dim); background: linear-gradient(transparent, rgba(5,7,10,.85)); }
.work-copy p { font-size: 1.06rem; color: var(--ink-dim); }
.work-copy p:first-of-type { font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--ink); line-height: 1.4; }

.timeline { position: relative; margin-top: clamp(2.5rem, 6vw, 4rem); display: grid; gap: 0; }
.tl-item { position: relative; display: grid; grid-template-columns: 7rem 1fr; gap: clamp(1rem, 3vw, 2.4rem); padding: clamp(1.2rem, 3vw, 2rem) 0; border-top: 1px solid var(--line-2); }
.tl-item:last-child { border-bottom: 1px solid var(--line-2); }
.tl-when { font-family: var(--font-mono); font-size: .82rem; color: var(--ember); padding-top: .2rem; }
.tl-body h3 { font-size: clamp(1.1rem, 2vw, 1.45rem); margin-bottom: .4rem; }
.tl-body p { margin: 0; color: var(--ink-dim); max-width: 44rem; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact { position: relative; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.contact h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.contact-card {
  border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}
.contact-link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); background: rgba(127,176,205,.04);
  transition: border-color .3s, background .3s, transform .3s;
}
.contact-link:hover { border-color: var(--ember); background: rgba(232,116,54,.08); transform: translateY(-2px); }
.contact-link .cl-main { display: flex; align-items: center; gap: 1rem; }
.contact-link .cl-name { font-weight: 600; font-size: 1.1rem; }
.contact-link .cl-sub { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-soft); }
.contact-link .cl-ico { color: var(--ember); transition: transform .3s; }
.contact-link:hover .cl-ico { transform: translateX(4px); }

/* =====================================================================
   PAGE HERO (sub pages)
   ===================================================================== */
.page-hero { position: relative; padding: clamp(5rem, 12vh, 9rem) 0 clamp(2.5rem, 6vh, 4rem); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(127,176,205,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,176,205,.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(100% 80% at 20% 0%, #000, transparent 70%);
}
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 18ch; }
.page-hero .lead { max-width: 54ch; margin-top: 1.2rem; }

/* generic editorial split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); background: #070b10; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
@media (hover: hover) and (pointer: fine) { .media-frame:hover img { transform: scale(1.04); } }

/* case studies (projekte page) */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(2rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--line-2); }
.case:nth-child(even) .case-text { order: 2; }
.case-text h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.case-text .case-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.case-tag { font-family: var(--font-mono); font-size: .72rem; padding: .35rem .7rem; border: 1px solid var(--line-2); border-radius: 4px; color: var(--ink-dim); }
.case-visual { position: relative; aspect-ratio: 4/3; border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; background: #070b10; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { border-top: 1px solid var(--line-2); background: #04060a; padding: clamp(2.5rem, 6vw, 4rem) 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.footer-brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; margin-bottom: 1rem; }
.footer-roles { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; color: var(--ink-soft); }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 2rem; }
.footer-nav a { color: var(--ink-dim); text-decoration: none; padding: .35rem 0; font-size: .92rem; transition: color .25s; }
.footer-nav a:hover { color: var(--ink); }
.footer-meta { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .82rem; color: var(--ink-soft); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  .fields-stage, .intro-grid, .book-stage, .grief-hero, .work-grid, .lab-grid, .split, .contact-grid, .case { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-text { order: 0; }
  .fields-panel { min-height: 18rem; }
}
@media (max-width: 860px) {
  .site-nav {
    position: fixed; inset: var(--header) 0 auto 0; flex-direction: column; align-items: stretch;
    gap: .2rem; padding: 1rem var(--gutter) 1.5rem; background: rgba(6,9,13,.97);
    border-bottom: 1px solid var(--line); backdrop-filter: blur(16px);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a { min-height: 50px; font-size: 1.05rem; }
  .site-nav a::after { display: none; }
  .nav-toggle { display: block; }

  .hero { min-height: auto; padding-top: 2rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-copy { order: 1; }
  .hero-media { order: 2; min-height: auto; }
  .portrait { width: min(78%, 22rem); transform: none !important; }
  .portrait img { mask-image: none; -webkit-mask-image: none; }
  .scroll-cue { display: none; }

  .book-covers { min-height: 24rem; }
  .book-cover.is-prev, .book-cover.is-next { opacity: 0; }
  .lab-controls .btn { min-width: 7rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero-roles { font-size: 1.15rem; }
  .hero-roles .sep { padding: 0 .45rem; }
  .rail { grid-auto-columns: 88%; }
  .review-opts { grid-template-columns: 1fr; }
  .hero-actions .btn, .page-hero .btn { width: 100%; justify-content: center; }
  .tl-item { grid-template-columns: 1fr; gap: .4rem; }
  .field-row .name { font-size: 1.9rem; }
  .footer-nav { grid-template-columns: 1fr; }
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal-line > span { transform: none; }
  .reveal-up, .reveal-fade { opacity: 1; transform: none; }
  .portrait img { clip-path: none; }
  .project { transform: none; opacity: 1; }
  .hero-scan, .scroll-cue .bar::after, .hero-spark { display: none; }
  .field-card { transition: none; }
  .book-cover, .book-pane, .field-card { transition: opacity .15s linear; }
}

@media (prefers-contrast: more) {
  :root { --ink-dim: #e7e2d8; --ink-soft: #cdd3d3; --line: #5a7180; --line-2: #5a7180; }
}

/* =====================================================================
   PROJECT STAGE  (accessible tabs + large active panel)
   ===================================================================== */
.stage-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.stage-controls { display: flex; align-items: center; gap: .8rem; }
.stage-count { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-soft); letter-spacing: .04em; }
.stage-progress { width: 84px; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.stage-progress span { display: block; height: 100%; width: 100%; transform: scaleX(.2); transform-origin: left; background: linear-gradient(90deg, var(--ember), var(--steel)); transition: transform .5s var(--ease-out); }

.stage-tabs { display: flex; gap: .55rem; margin-bottom: 1.1rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .3rem; scroll-snap-type: x proximity; }
.stage-tabs::-webkit-scrollbar { display: none; }
.stage-tab { display: inline-flex; align-items: center; gap: .6rem; flex: none; scroll-snap-align: start; padding: .7rem 1rem; border: 1px solid var(--line-2); border-radius: 9px; background: rgba(127,176,205,.04); color: var(--ink-soft); white-space: nowrap; transition: color .25s var(--ease), border-color .25s, background .25s; }
.stage-tab .t-num { font-family: var(--font-mono); font-size: .72rem; color: var(--steel-deep); }
.stage-tab .t-name { font-weight: 600; font-size: .95rem; }
.stage-tab[aria-selected="true"] { color: var(--ink); border-color: rgba(232,116,54,.55); background: rgba(232,116,54,.08); }
.stage-tab[aria-selected="true"] .t-num { color: var(--ember); }
@media (hover: hover) and (pointer: fine) { .stage-tab:hover { color: var(--ink); border-color: var(--line); } }

.stage-screen { position: relative; border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.stage-panel { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); min-height: 27rem; }
.stage-panel[hidden] { display: none; }
.stage-visual { position: relative; overflow: hidden; background: #070b10; border-right: 1px solid var(--line-2); }
.stage-content { padding: clamp(1.4rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: .75rem; justify-content: center; }
.stage-kicker { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ember); margin: 0; }
.stage-content h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }
.stage-content p { margin: 0; color: var(--ink-dim); }
.stage-meta { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: .3rem; font-family: var(--font-mono); font-size: .76rem; color: var(--ink-soft); }
.stage-meta b { color: var(--steel); font-weight: 600; }
.stage-link { align-self: flex-start; margin-top: .6rem; }

.stage-panel.is-active .stage-visual { animation: stageVis .6s var(--ease-out); }
.stage-panel.is-active .stage-kicker,
.stage-panel.is-active .stage-content h3,
.stage-panel.is-active .stage-content p,
.stage-panel.is-active .stage-meta,
.stage-panel.is-active .stage-link { animation: stageText .55s var(--ease-out) backwards; }
.stage-panel.is-active .stage-content h3 { animation-delay: .05s; }
.stage-panel.is-active .stage-content p { animation-delay: .1s; }
.stage-panel.is-active .stage-meta { animation-delay: .15s; }
.stage-panel.is-active .stage-link { animation-delay: .2s; }
@keyframes stageVis { from { opacity: 0; clip-path: inset(0 0 0 10%); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes stageText { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.stage-panel[data-accent="doc"] .stage-visual { background: radial-gradient(80% 90% at 20% 20%, rgba(44,81,103,.4), transparent 70%), #070b10; }
.stage-panel[data-accent="mon"] .stage-visual { background: radial-gradient(80% 90% at 80% 10%, rgba(118,181,138,.18), transparent 70%), #070b10; }
.stage-panel[data-accent="audio"] .stage-visual { background: radial-gradient(80% 90% at 25% 80%, rgba(200,129,74,.22), transparent 70%), #0a0a0c; }
.stage-panel[data-accent="gg"] .stage-visual { background: radial-gradient(70% 80% at 60% 50%, rgba(240,114,31,.22), transparent 72%), #0a0604; }
.stage-panel[data-accent="edi"] .stage-visual { background: radial-gradient(80% 90% at 70% 30%, rgba(127,176,205,.16), transparent 70%), #070b10; }

/* Visual: Dokumentenautomation */
.doc-scene { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr .5fr 1fr; align-items: center; padding: clamp(1rem, 3vw, 2rem); }
.doc-card { border: 1px solid var(--line); border-radius: 8px; background: rgba(10,16,22,.9); padding: .8rem; box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.doc-card-top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .64rem; color: var(--ink-soft); margin-bottom: .5rem; }
.doc-card-top .ocrtag { color: var(--steel); border: 1px solid var(--steel-deep); border-radius: 3px; padding: 0 .3rem; }
.doc-mini { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: .66rem; }
.doc-mini th { text-align: left; color: var(--ink-soft); font-weight: 500; padding: .25rem .3rem; border-bottom: 1px solid var(--line); }
.doc-mini td { padding: .3rem .3rem; color: var(--ink-dim); border-bottom: 1px solid rgba(29,42,53,.5); }
.doc-mini .ocr { font-style: normal; padding: 0 .25rem; border-radius: 3px; outline: 1px dashed rgba(127,176,205,.5); }
.doc-mini .ocr.hot { outline: 1px solid var(--warn); background: rgba(224,166,74,.16); color: var(--ink); }
.doc-warn { display: flex; align-items: center; gap: .35rem; margin-top: .5rem; font-family: var(--font-mono); font-size: .62rem; color: var(--warn); }
.doc-warn svg { width: 13px; height: 13px; }
.doc-link { width: 100%; height: 200px; align-self: center; }
.doc-out { border: 1px solid rgba(118,181,138,.35); border-radius: 8px; background: rgba(118,181,138,.06); padding: .7rem; box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.doc-out-top { font-family: var(--font-mono); font-size: .62rem; color: var(--ok); margin-bottom: .4rem; }
.doc-out pre { margin: 0; font-family: var(--font-mono); font-size: .66rem; line-height: 1.6; color: #cfe0d3; white-space: pre-wrap; }
.doc-out pre .k { color: var(--steel); }
.doc-out pre .ok { color: var(--ok); }
.doc-audit { margin-top: .5rem; font-family: var(--font-mono); font-size: .58rem; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: .35rem; }
.stage-panel.is-active[data-accent="doc"] .viz-scan { animation: vizscan 3.6s linear infinite; }

/* Visual: Monitoring dashboard */
.mon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(92%, 30rem); border: 1px solid var(--line); border-radius: 10px; background: rgba(8,13,18,.94); padding: 1rem; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.mon-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: .7rem; color: var(--ink-soft); margin-bottom: .6rem; }
.mon-env { color: var(--steel); border: 1px solid var(--steel-deep); border-radius: 3px; padding: 0 .35rem; }
.mon-heart { width: 100%; height: 42px; }
.mon-heart path { fill: none; stroke: var(--ok); stroke-width: 2; filter: drop-shadow(0 0 4px rgba(118,181,138,.5)); stroke-dasharray: 520; stroke-dashoffset: 520; }
.mon[data-state="warn"] .mon-heart path { stroke: var(--warn); filter: drop-shadow(0 0 4px rgba(224,166,74,.5)); }
.mon[data-state="err"] .mon-heart path { stroke: var(--danger); filter: drop-shadow(0 0 4px rgba(224,99,95,.5)); }
.stage-panel.is-active .mon-heart path { animation: dash 4s linear infinite; }
.mon-rows { list-style: none; margin: .5rem 0; padding: 0; display: grid; gap: .4rem; }
.mon-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: .72rem; color: var(--ink-dim); }
.mon-row .led { width: 9px; height: 9px; border-radius: 50%; }
.led.ok { background: var(--ok); } .led.warn { background: var(--warn); } .led.err { background: var(--danger); }
.mon-stat { color: var(--ink-soft); } .mon-time { color: var(--steel-deep); }
.mon-log { font-family: var(--font-mono); font-size: .66rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 6px; padding: .45rem .6rem; margin-top: .2rem; }
.mon[data-state="warn"] .mon-log { color: var(--warn); border-color: rgba(224,166,74,.4); }
.mon[data-state="err"] .mon-log { color: var(--danger); border-color: rgba(224,99,95,.4); }
.mon-switch { display: flex; gap: .4rem; margin-top: .7rem; }
.mon-switch button { flex: 1; padding: .4rem; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.02); color: var(--ink-soft); font-family: var(--font-mono); font-size: .68rem; transition: all .2s; }
.mon-switch button[aria-pressed="true"] { color: var(--ink); border-color: var(--ember); background: rgba(232,116,54,.1); }

/* Visual: Hörbuchproduktion */
.audio-scene { position: absolute; inset: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(1rem, 3vw, 2rem); padding: clamp(1.2rem, 3vw, 2.2rem); }
.audio-cover { margin: 0; width: clamp(6rem, 14vw, 9rem); }
.audio-cover img { width: 100%; height: auto; border-radius: 5px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.audio-deck { border: 1px solid var(--line); border-radius: 10px; background: rgba(10,9,8,.85); padding: 1rem; }
.audio-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: .68rem; color: var(--ink-soft); margin-bottom: .7rem; }
.audio-qa { color: var(--ok); border: 1px solid rgba(118,181,138,.4); border-radius: 3px; padding: 0 .35rem; }
.audio-wave { position: relative; display: flex; align-items: center; gap: 2px; height: 48px; }
.audio-wave i { flex: 1; min-width: 2px; background: linear-gradient(var(--copper), var(--ember)); border-radius: 2px; height: 30%; opacity: .8; }
.audio-wave i:nth-child(3n) { height: 60%; } .audio-wave i:nth-child(4n) { height: 85%; } .audio-wave i:nth-child(5n) { height: 45%; }
.stage-panel.is-active .audio-wave i { animation: wave 1.7s var(--ease) infinite alternate; }
.audio-wave i:nth-child(odd) { animation-delay: .2s; }
.audio-playhead { position: absolute; top: -2px; bottom: -2px; left: 38%; width: 2px; background: var(--ink); box-shadow: 0 0 8px var(--ember); }
.audio-markers { display: flex; justify-content: space-between; margin-top: .35rem; }
.audio-markers span { width: 1px; height: 8px; background: var(--steel-deep); }
.audio-markers span:nth-child(5n+1) { background: var(--ember); height: 11px; }
.audio-meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .7rem; color: var(--ink-soft); margin-top: .6rem; }
.audio-formats { display: flex; gap: .4rem; margin-top: .6rem; }
.audio-formats span { font-family: var(--font-mono); font-size: .64rem; padding: .15rem .5rem; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-soft); }
.audio-formats span.on { color: var(--ink); border-color: var(--ember); background: rgba(232,116,54,.1); }

/* Visual: Glitch & Grief composition */
.gg-comp { position: absolute; inset: 0; }
.gg-comp-hero { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.gg-comp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,4,3,.2), rgba(6,4,3,.85)); }
.gg-comp-word { position: absolute; top: 1rem; left: 1.2rem; z-index: 2; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; color: var(--ember); text-shadow: 0 2px 8px #000; }
.gg-comp-covers { position: absolute; left: 1.2rem; bottom: 3.1rem; z-index: 2; display: flex; gap: .5rem; }
.gg-comp-covers img { width: clamp(3rem, 7vw, 4.6rem); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 4px; border: 1px solid rgba(240,114,31,.4); box-shadow: 0 8px 20px rgba(0,0,0,.5); }
.gg-comp-covers img:nth-child(1) { transform: translateY(-6px) rotate(-3deg); }
.gg-comp-covers img:nth-child(3) { transform: translateY(-3px) rotate(3deg); }
.gg-comp-covers img:nth-child(4) { transform: translateY(-7px) rotate(2deg); }
.gg-comp-line { position: absolute; left: 1.2rem; bottom: 1.2rem; z-index: 2; font-family: var(--font-mono); font-size: .68rem; color: var(--ink-dim); }

/* Visual: Schnittstellen & EDI */
.edi-flow { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: center; gap: .6rem; padding: clamp(1rem, 3vw, 2rem); }
.edi-node, .edi-map { border: 1px solid var(--line); border-radius: 8px; background: rgba(10,16,22,.9); padding: .7rem; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.edi-cap { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-bottom: .35rem; }
.edi-node b { font-family: var(--font-mono); font-size: .8rem; color: var(--ink); display: block; }
.edi-node small { font-family: var(--font-mono); font-size: .62rem; color: var(--ink-soft); }
.edi-node small.ok, .edi-map small.ok { color: var(--ok); }
.edi-node.tgt { border-color: rgba(118,181,138,.4); }
.edi-map ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; font-family: var(--font-mono); font-size: .66rem; color: var(--ink-dim); }
.edi-map b.ok { color: var(--ok); } .edi-map b.warn { color: var(--warn); }
.edi-fix { display: block; margin-top: .4rem; font-family: var(--font-mono); font-size: .6rem; color: var(--warn); }
.edi-lines { position: absolute; left: 6%; right: 6%; top: 50%; width: 88%; height: 14px; z-index: 0; }

/* =====================================================================
   FILM COVER (Der letzte Film — editorial VHS visual)
   ===================================================================== */
.film-cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .6rem; text-align: center; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #20120c, #0a0605 70%), #070403; border: 1px solid #2a1a12; border-radius: 6px; }
.film-cover::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px); opacity: .5; }
.film-scan { position: absolute; left: 0; right: 0; height: 40%; top: -40%; background: linear-gradient(transparent, rgba(232,116,54,.12), transparent); animation: filmroll 5s linear infinite; }
.film-tape { position: absolute; top: 1rem; right: 1rem; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .14em; color: #c45a2a; border: 1px solid #4a2616; border-radius: 3px; padding: .15rem .4rem; }
.film-title { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 820; font-size: clamp(1.6rem, 7vw, 2.6rem); line-height: .96; letter-spacing: .02em; color: #ece3d3; text-shadow: 0 0 18px rgba(232,116,54,.35), 0 2px 0 #000; }
.film-sub { position: relative; z-index: 1; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; color: #c45a2a; }
@keyframes filmroll { to { top: 140%; } }

/* =====================================================================
   GG PREVIEW RAIL (index)
   ===================================================================== */
.gg-preview-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(60%, 14rem); gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; touch-action: pan-x pan-y; padding: .4rem .2rem 1.2rem; margin-top: clamp(2rem, 5vw, 3rem); scrollbar-width: thin; scrollbar-color: var(--ember-deep) transparent; cursor: grab; }
.gg-preview-rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.gg-preview-rail > * { scroll-snap-align: start; }

/* =====================================================================
   RESPONSIVE — new components
   ===================================================================== */
@media (max-width: 900px) {
  .stage-panel { grid-template-columns: 1fr; min-height: 0; }
  .stage-visual { border-right: 0; border-bottom: 1px solid var(--line-2); aspect-ratio: 16 / 10; }
  .doc-scene { grid-template-columns: 1fr; }
  .doc-link { display: none; }
  .edi-flow { grid-template-columns: 1fr; gap: .5rem; }
  .edi-lines { display: none; }
  .mon { position: relative; transform: none; top: auto; left: auto; width: auto; margin: 1rem; }
  .audio-scene { grid-template-columns: 1fr; gap: 1rem; }
  .audio-cover { width: clamp(5rem, 22vw, 7rem); }
}
@media (max-width: 520px) {
  .stage-tab .t-name { font-size: .88rem; }
  .gg-preview-rail { grid-auto-columns: 70%; }
  .film-title { font-size: 1.9rem; }
}

/* project page case visuals */
.case-visual .viz-scan { animation: vizscan 3.6s linear infinite; }
.case-accent-doc { background: radial-gradient(80% 90% at 20% 20%, rgba(44,81,103,.35), transparent 70%), #070b10 !important; }
.case-accent-mon { background: radial-gradient(80% 90% at 80% 10%, rgba(118,181,138,.16), transparent 70%), #070b10 !important; }
.case-accent-audio { background: radial-gradient(80% 90% at 25% 80%, rgba(200,129,74,.2), transparent 70%), #0a0a0c !important; }
.case-accent-edi { background: radial-gradient(80% 90% at 70% 30%, rgba(127,176,205,.14), transparent 70%), #070b10 !important; }
.case-visual .mon { position: absolute; }

/* =====================================================================
   GLITCH & GRIEF PAGE
   ===================================================================== */
.gg-stage-hero { position: relative; min-height: clamp(28rem, 78vh, 46rem); display: grid; align-items: end; overflow: hidden; background: #060403; isolation: isolate; }
.gg-stage-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; z-index: -2; }
.gg-stage-hero-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,4,3,.45) 0%, rgba(6,4,3,.2) 35%, rgba(6,4,3,.92) 100%), radial-gradient(60% 60% at 75% 30%, rgba(240,114,31,.22), transparent 70%); }
.gg-stage-hero-copy { padding: clamp(2rem, 8vh, 6rem) 0 clamp(2.5rem, 6vh, 4rem); position: relative; }
.gg-stage-hero .grief-title { font-size: clamp(2.8rem, 9vw, 6.2rem); }
.gg-stage-hero .lead { max-width: 40ch; }

.gg-identity-media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.gg-identity-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.fr-head { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.fr-cover { margin: 0; }
.fr-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--line-2); box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 50px rgba(240,114,31,.14); }
.fr-head h2 { font-size: clamp(2rem, 5vw, 3.4rem); }

.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: clamp(1rem, 2vw, 1.4rem); }
.album-card { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #0a0604; transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.album-art { aspect-ratio: 1; overflow: hidden; position: relative; }
.album-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.era-tile { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .4rem; text-align: center; padding: 1rem;
  background: radial-gradient(120% 90% at 50% 10%, #2a160c, #0a0605 72%), #070403; overflow: hidden; }
.era-tile::before { content: ""; position: absolute; top: 0; bottom: 0; left: 38%; width: 1px; background: linear-gradient(transparent, rgba(240,114,31,.6), transparent); transform: rotate(8deg); }
.era-tile::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 5px); opacity: .5; }
.era-num { position: relative; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; color: #c45a2a; }
.era-name { position: relative; font-family: var(--font-display); font-weight: 820; font-size: clamp(1.1rem, 2.6vw, 1.5rem); line-height: 1.02; color: #ece3d3; text-shadow: 0 0 16px rgba(240,114,31,.3); }
.album-body { padding: .9rem 1rem 1.1rem; }
.album-body h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.album-date { font-family: var(--font-mono); font-size: .72rem; color: var(--ember); margin: 0 0 .5rem; }
.album-body p { font-size: .9rem; margin: 0; color: var(--ink-dim); }
.album-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .7rem; font-family: var(--font-mono); font-size: .76rem; color: var(--ember); text-decoration: none; }
.album-link:hover { text-decoration: underline; }
@media (hover: hover) and (pointer: fine) { .album-card:hover { transform: translateY(-4px); border-color: var(--ember); box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 26px rgba(240,114,31,.16); } .album-card:hover .album-art img { transform: scale(1.05); } }

.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 30rem); gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; touch-action: pan-x pan-y; padding: .4rem .2rem 1.2rem; scrollbar-width: thin; scrollbar-color: var(--ember-deep) transparent; cursor: grab; }
.gallery.dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery > * { scroll-snap-align: start; }
.gal-item { position: relative; margin: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #0a0604; }
.gal-item.gal-square { grid-row: span 1; }
.gal-item img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; display: block; }
.gal-item.gal-square img { aspect-ratio: 1; object-fit: cover; }
.gal-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .7rem; font-family: var(--font-mono); font-size: .72rem; color: var(--ink-dim); background: linear-gradient(transparent, rgba(6,4,3,.85)); }

.platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .8rem; }
.platform { display: flex; flex-direction: column; gap: .15rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line-2); border-radius: var(--radius); text-decoration: none; background: rgba(240,114,31,.03); transition: border-color .3s, background .3s, transform .3s; }
.platform b { color: var(--ink); font-size: 1.02rem; }
.platform span { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-soft); }
.platform:hover { border-color: var(--ember); background: rgba(240,114,31,.08); transform: translateY(-2px); }

@media (max-width: 760px) {
  .fr-head { grid-template-columns: 1fr; }
  .fr-cover { max-width: 18rem; }
}

/* =====================================================================
   FINAL POLISH — contrast, depth, controlled motion
   ===================================================================== */
body {
  background:
    radial-gradient(80rem 40rem at 12% -10%, rgba(44,81,103,.20), transparent 68%),
    radial-gradient(52rem 34rem at 94% 18%, rgba(232,116,54,.10), transparent 70%),
    linear-gradient(180deg, #05070a 0%, #070b10 38%, #05070a 100%);
}

.section {
  isolation: isolate;
}
.section::after {
  content: "";
  position: absolute;
  left: max(var(--gutter), calc((100% - var(--max)) / 2));
  right: max(var(--gutter), calc((100% - var(--max)) / 2));
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127,176,205,.20), rgba(232,116,54,.22), transparent);
  pointer-events: none;
}
.divider-line { border-top: 0; }
.divider-line::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 50%;
  width: min(72rem, calc(100% - var(--gutter) * 2));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(143,178,199,.22), rgba(232,116,54,.35), transparent);
}
.section-head h2,
.stage-head h2,
.contact h2,
.page-hero h1 {
  text-wrap: balance;
  text-shadow: 0 18px 45px rgba(0,0,0,.38);
}
.lead,
.section-head .col-note {
  color: #ded8cc;
}
.btn,
.icon-btn,
.stage-tab,
.contact-link,
.platform {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 10px 30px rgba(0,0,0,.18);
}
.btn:hover,
.icon-btn:hover:not(:disabled),
.contact-link:hover,
.platform:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 42px rgba(0,0,0,.32), 0 0 28px rgba(232,116,54,.10);
}

.hero {
  background:
    linear-gradient(180deg, rgba(5,7,10,.05), rgba(5,7,10,.55) 88%),
    radial-gradient(55rem 38rem at 70% 45%, rgba(127,176,205,.10), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9rem;
  background: linear-gradient(transparent, rgba(7,11,16,.96));
  pointer-events: none;
}
.hero-title {
  text-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.hero-tag {
  color: #aebec8;
}
.portrait::before {
  box-shadow: 0 0 0 1px rgba(127,176,205,.08), 0 38px 80px rgba(0,0,0,.45);
}

.intro {
  background:
    radial-gradient(50rem 24rem at 0% 20%, rgba(127,176,205,.12), transparent 68%),
    linear-gradient(180deg, #070b10, #090d12);
}
.intro-grid {
  align-items: center;
}
.intro-aside {
  position: relative;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  border-left: 1px solid rgba(232,116,54,.45);
  background: linear-gradient(140deg, rgba(127,176,205,.055), rgba(255,255,255,.015));
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.intro-rule {
  width: min(8rem, 45%);
  background: linear-gradient(90deg, var(--ember), transparent);
}

.fields {
  background:
    radial-gradient(42rem 28rem at 86% 28%, rgba(44,81,103,.24), transparent 72%),
    linear-gradient(180deg, #05070a, #081019);
}
.field-row {
  padding-inline: .4rem;
}
.field-row::before {
  content: "";
  position: absolute;
  inset: .35rem 0;
  z-index: -1;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(232,116,54,.10), rgba(127,176,205,.035), transparent);
  opacity: 0;
  transform: scaleX(.96);
  transform-origin: left;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.field-row[aria-selected="true"]::before,
.field-row:hover::before {
  opacity: 1;
  transform: scaleX(1);
}
.fields-panel,
.stage-screen,
.lab-panel,
.contact-card {
  box-shadow: 0 24px 80px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.04);
}
.fields-panel::after,
.stage-screen::after,
.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), inset 0 0 60px rgba(127,176,205,.045);
}

.stage-section {
  background:
    radial-gradient(48rem 30rem at 12% 42%, rgba(232,116,54,.11), transparent 72%),
    linear-gradient(180deg, #081019, #05070a);
}
.stage-screen {
  background:
    linear-gradient(180deg, rgba(15,24,34,.96), rgba(9,15,21,.98)),
    var(--surface);
  border-color: rgba(143,178,199,.23);
}
.stage-tab {
  background: linear-gradient(180deg, rgba(127,176,205,.075), rgba(127,176,205,.025));
}
.stage-tab[aria-selected="true"] {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 0 0 1px rgba(232,116,54,.16), 0 14px 34px rgba(232,116,54,.08);
}
.stage-panel.is-active .stage-visual {
  animation: stageVis .7s var(--ease-out);
}
.stage-panel.is-active .stage-visual > * {
  animation: polishLift .72s var(--ease-out) both;
}

.lab {
  background:
    radial-gradient(42rem 28rem at 84% 24%, rgba(118,181,138,.08), transparent 70%),
    linear-gradient(180deg, #05070a, #080d13);
}
.lab-panel {
  background: linear-gradient(180deg, rgba(15,24,34,.94), rgba(8,13,18,.98));
  border-color: rgba(143,178,199,.20);
}

.theme-story.books {
  background:
    radial-gradient(54rem 28rem at 8% 22%, rgba(180,130,74,.20), transparent 70%),
    radial-gradient(40rem 24rem at 88% 75%, rgba(232,116,54,.10), transparent 72%),
    linear-gradient(180deg, #120d08, #090705 82%);
}
.book-stage {
  position: relative;
}
.book-stage::before {
  content: "";
  position: absolute;
  inset: -1.2rem -1.4rem;
  z-index: -1;
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, rgba(255,255,255,.035), rgba(180,130,74,.06), transparent 68%);
  border: 1px solid rgba(180,130,74,.10);
}
.book-cover.is-active {
  box-shadow: 0 36px 90px rgba(0,0,0,.66), 0 0 34px rgba(180,130,74,.10);
}
.book-info {
  padding: clamp(.4rem, 1.5vw, 1rem) 0;
}
.book-status {
  background: rgba(255,255,255,.025);
}

.theme-grief {
  background:
    radial-gradient(58rem 34rem at 82% 18%, rgba(240,114,31,.18), transparent 70%),
    radial-gradient(50rem 30rem at 10% 70%, rgba(70,28,18,.32), transparent 72%),
    linear-gradient(180deg, #060403, #0d0704 60%, #050302);
}
.grief-keyvisual img,
.gg-stage-hero-img,
.gg-identity-media img {
  filter: contrast(1.06) saturate(1.02);
}
.grief-keyvisual {
  transform: translateZ(0);
}
.grief-keyvisual::before {
  content: "";
  position: absolute;
  inset: -1rem;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(240,114,31,.18), transparent 72%);
  opacity: .8;
}
.release,
.album-card,
.gal-item {
  box-shadow: 0 16px 42px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.035);
}

.work {
  background:
    radial-gradient(42rem 26rem at 16% 12%, rgba(127,176,205,.10), transparent 70%),
    linear-gradient(180deg, #070b10, #05070a);
}
.timeline {
  border-left: 1px solid rgba(143,178,199,.12);
  padding-left: clamp(1rem, 2vw, 1.4rem);
}
.tl-item {
  transition: background .3s var(--ease), padding-left .3s var(--ease), border-color .3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .tl-item:hover {
    padding-left: .6rem;
    background: linear-gradient(90deg, rgba(127,176,205,.045), transparent);
    border-top-color: rgba(232,116,54,.32);
  }
}

.contact {
  background:
    radial-gradient(42rem 26rem at 75% 50%, rgba(232,116,54,.12), transparent 70%),
    linear-gradient(180deg, #05070a, #070b10);
}
.contact-card {
  position: relative;
  display: grid;
  gap: .8rem;
  background:
    linear-gradient(145deg, rgba(15,24,34,.96), rgba(8,13,18,.98)),
    var(--surface);
}
.contact-link {
  min-height: 5.1rem;
}

.site-footer {
  position: relative;
  background:
    radial-gradient(42rem 22rem at 82% 0%, rgba(232,116,54,.08), transparent 70%),
    linear-gradient(180deg, #04060a, #020305);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127,176,205,.25), rgba(232,116,54,.30), transparent);
}
.footer-nav a {
  border-bottom: 1px solid transparent;
}
.footer-nav a:hover {
  border-bottom-color: rgba(232,116,54,.35);
}

.js .reveal-up {
  transform: translateY(34px);
  filter: blur(4px);
}
[data-animate].in .reveal-up,
.reveal-up.in {
  filter: blur(0);
}
@keyframes polishLift {
  from { opacity: .55; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .intro-aside { border-left: 0; border-top: 1px solid rgba(232,116,54,.35); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .book-stage::before { inset: -.8rem; }
}
@media (max-width: 860px) {
  .section { padding-block: clamp(3.2rem, 8vh, 5.4rem); }
  .stage-controls { width: 100%; justify-content: flex-start; }
  .stage-screen { border-radius: 10px; }
  .contact-link { min-height: 4.6rem; padding: 1rem; }
}
@media (max-width: 520px) {
  .section::after,
  .divider-line::before { left: var(--gutter); right: var(--gutter); width: auto; transform: none; }
  .intro-aside { padding: 1rem; }
  .book-nav { gap: .65rem; }
  .book-nav .btn { width: 100%; justify-content: center; margin-left: 0 !important; }
  .stage-controls .stage-progress { flex: 1; }
  .contact-link .cl-sub { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-panel.is-active .stage-visual > *,
  .js .reveal-up {
    animation: none !important;
    filter: none !important;
  }
}

/* =====================================================================
   BANNER PAGE POLISH — responsive image heroes for subpages
   ===================================================================== */
.page-hero--image {
  min-height: clamp(31rem, 64vh, 42rem);
  display: grid;
  align-items: center;
  padding: clamp(7rem, 12vh, 9rem) 0 clamp(4rem, 8vh, 5.8rem);
  isolation: isolate;
  background: #05070a;
}
.page-hero--image::before {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,7,10,.96) 0%, rgba(5,7,10,.88) 33%, rgba(5,7,10,.46) 58%, rgba(5,7,10,.76) 100%),
    linear-gradient(180deg, rgba(5,7,10,.62), rgba(5,7,10,.18) 42%, rgba(5,7,10,.96) 100%);
}
.page-hero--image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 9rem;
  background: linear-gradient(180deg, transparent, rgba(5,7,10,.98));
  pointer-events: none;
}
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #05070a;
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  transform: translate3d(calc(var(--phx, 0px) * -.35), calc(var(--phy, 0px) * -.22), 0) scale(1.015);
  filter: contrast(1.08) saturate(1.03);
  animation: bannerSettle .9s var(--ease-out) both;
}
.page-hero-sheen {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(127,176,205,.09) 0 1px, transparent 1px 100%) 0 0 / 96px 96px,
    linear-gradient(0deg, rgba(127,176,205,.06) 0 1px, transparent 1px 100%) 0 0 / 96px 96px,
    radial-gradient(42rem 24rem at 75% 44%, rgba(232,116,54,.14), transparent 72%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.18) 35%, rgba(0,0,0,.72));
}
.page-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(16rem, .72fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
}
.page-hero-copy {
  max-width: 43rem;
  padding: clamp(1rem, 2vw, 1.4rem) 0;
}
.page-hero-copy h1 {
  max-width: 13ch;
  margin-bottom: 1.15rem;
}
.page-hero-copy .lead {
  max-width: 46rem;
  color: #eee6d8;
}
.hero-title-story {
  font-family: var(--font-serif);
  font-weight: 600;
}
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: clamp(1.4rem, 3vw, 2rem);
}
.page-hero-orbit {
  justify-self: end;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
  max-width: 18rem;
  opacity: .92;
  transform: translate3d(calc(var(--phx, 0px) * .16), calc(var(--phy, 0px) * .12), 0);
}
.page-hero-orbit span {
  min-width: 4.2rem;
  padding: .55rem .72rem;
  border: 1px solid rgba(143,178,199,.18);
  border-radius: 999px;
  background: rgba(5,7,10,.48);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 34px rgba(0,0,0,.24);
}
.page-hero--projekte .page-hero-orbit span:nth-child(2),
.page-hero--kontakt .page-hero-orbit span:first-child {
  border-color: rgba(232,116,54,.34);
  color: #f2c3a7;
}
.page-hero--buecher {
  background: #0a0705;
}
.page-hero--buecher::before {
  background:
    linear-gradient(90deg, rgba(10,7,5,.97) 0%, rgba(10,7,5,.88) 35%, rgba(28,16,8,.42) 60%, rgba(10,7,5,.76) 100%),
    linear-gradient(180deg, rgba(10,7,5,.60), rgba(10,7,5,.18) 42%, rgba(10,7,5,.97) 100%);
}
.page-hero--buecher .page-hero-sheen {
  background:
    linear-gradient(90deg, rgba(180,130,74,.075) 0 1px, transparent 1px 100%) 0 0 / 104px 104px,
    linear-gradient(0deg, rgba(180,130,74,.045) 0 1px, transparent 1px 100%) 0 0 / 104px 104px,
    radial-gradient(44rem 25rem at 72% 42%, rgba(180,130,74,.20), transparent 72%);
}
.page-hero--buecher .page-hero-orbit span {
  border-color: rgba(180,130,74,.24);
  color: #d9bf91;
}
.page-hero--kontakt .page-hero-media img {
  object-position: 74% center;
}
.contact-methods {
  max-width: 54rem;
  display: grid;
  gap: 1rem;
}
.contact-link--large {
  min-height: 5.8rem;
  font-size: 1.08rem;
  background:
    linear-gradient(135deg, rgba(127,176,205,.07), rgba(232,116,54,.045)),
    rgba(12,18,25,.84);
  border-color: rgba(143,178,199,.22);
}
.contact-link--large .cl-ico:last-child {
  transition: transform .28s var(--ease), color .28s var(--ease);
}
.contact-link--large:focus-visible {
  outline: 2px solid rgba(232,116,54,.86);
  outline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .page-hero--image:hover .page-hero-media img {
    filter: contrast(1.12) saturate(1.06);
  }
  .page-hero-orbit span {
    transition: transform .28s var(--ease), border-color .28s var(--ease), color .28s var(--ease);
  }
  .page-hero-orbit span:hover {
    transform: translateY(-3px);
    border-color: rgba(232,116,54,.45);
    color: var(--ink);
  }
  .contact-link--large:hover .cl-ico:last-child {
    transform: translateX(6px);
    color: var(--ember);
  }
}
@keyframes bannerSettle {
  from { opacity: .72; transform: translate3d(calc(var(--phx, 0px) * -.35), calc(var(--phy, 0px) * -.22), 0) scale(1.045); }
  to { opacity: 1; transform: translate3d(calc(var(--phx, 0px) * -.35), calc(var(--phy, 0px) * -.22), 0) scale(1.015); }
}
@media (max-width: 1020px) {
  .page-hero--image {
    min-height: clamp(30rem, 58vh, 37rem);
  }
  .page-hero-grid {
    grid-template-columns: 1fr;
    align-items: end;
  }
  .page-hero-orbit {
    justify-self: start;
    justify-content: flex-start;
  }
}
@media (max-width: 720px) {
  .page-hero--image {
    min-height: auto;
    padding: 6.8rem 0 3.6rem;
  }
  .page-hero--image::before {
    background:
      linear-gradient(90deg, rgba(5,7,10,.96), rgba(5,7,10,.82)),
      linear-gradient(180deg, rgba(5,7,10,.42), rgba(5,7,10,.95) 82%);
  }
  .page-hero-media {
    inset: 0 0 auto;
    height: 58%;
    opacity: .78;
  }
  .page-hero-media img {
    object-position: 72% center;
    transform: none;
  }
  .page-hero--buecher .page-hero-media img {
    object-position: 70% center;
  }
  .page-hero-copy h1 {
    max-width: 11.5ch;
  }
  .page-hero-copy .lead {
    max-width: 34rem;
  }
  .page-hero-orbit {
    display: none;
  }
  .page-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .contact-methods {
    max-width: none;
  }
  .contact-link--large {
    min-height: 5rem;
    font-size: 1rem;
  }
}
@media (max-width: 380px) {
  .page-hero--image {
    padding-top: 6.2rem;
  }
  .page-hero-copy h1 {
    font-size: clamp(2.15rem, 13vw, 2.7rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero-media img,
  .page-hero-orbit {
    animation: none !important;
    transform: none !important;
  }
}

/* =====================================================================
   ANTI-AI PREMIUM FINAL — real media, tactile panels, less box-grid
   ===================================================================== */
h1, h2, h3, h4,
.hero-title,
.eyebrow,
.field-card .label,
.stage-kicker,
.book-genre,
.stage-count,
.stage-tab .t-num,
.page-hero-orbit span {
  letter-spacing: 0;
}

.hero {
  isolation: isolate;
  background: #04070b;
}
.hero-bg {
  background: #04070b;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -5;
  overflow: hidden;
}
.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
  transform: translate3d(calc(var(--mx, 0px) * -.18), calc(var(--my, 0px) * -.12), 0) scale(1.035);
  filter: contrast(1.08) saturate(1.08);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4,7,11,.95) 0%, rgba(4,7,11,.66) 46%, rgba(4,7,11,.40) 70%, rgba(4,7,11,.82) 100%),
    radial-gradient(42rem 30rem at 78% 46%, rgba(232,116,54,.14), transparent 74%),
    radial-gradient(40rem 28rem at 18% 30%, rgba(127,176,205,.14), transparent 76%);
  pointer-events: none;
}
.hero-grid {
  opacity: .42;
  mix-blend-mode: screen;
}
.hero-glow {
  opacity: .68;
}
.hero-copy {
  padding: clamp(.4rem, 2vw, 1.2rem) 0;
}
.hero-title {
  font-size: clamp(3.2rem, 8vw, 6.9rem);
  letter-spacing: 0;
}
.hero-roles {
  color: #f0eadf;
}
.hero-place {
  color: #b8c9d4;
}
.portrait {
  background:
    linear-gradient(145deg, rgba(127,176,205,.16), rgba(232,116,54,.07)),
    rgba(3,5,8,.42);
  box-shadow: 0 44px 120px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.05);
}
.portrait::before {
  inset: -.9rem;
  background: radial-gradient(60% 45% at 58% 25%, rgba(127,176,205,.22), transparent 70%);
}
.portrait::after {
  background:
    linear-gradient(180deg, transparent 42%, rgba(4,7,11,.82)),
    radial-gradient(65% 50% at 70% 16%, rgba(232,116,54,.12), transparent 72%);
}
.scroll-cue {
  color: #cbd7dd;
}

.intro {
  background:
    linear-gradient(180deg, #060a0f 0%, #081017 100%),
    radial-gradient(46rem 22rem at 72% 8%, rgba(232,116,54,.10), transparent 72%);
}
.intro-aside {
  box-shadow: 0 24px 70px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.035);
}

.fields {
  background:
    radial-gradient(58rem 32rem at 72% 18%, rgba(127,176,205,.12), transparent 72%),
    linear-gradient(180deg, #05070a 0%, #070d12 100%);
}
.fields-stage {
  grid-template-columns: minmax(16rem, .72fr) minmax(0, 1.28fr);
  align-items: stretch;
}
.fields-panel {
  position: relative;
  overflow: hidden;
  min-height: clamp(27rem, 54vw, 39rem);
  border-radius: var(--radius-lg);
  background: #05080c;
  border-color: rgba(143,178,199,.20);
}
.fields-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 30%),
    linear-gradient(90deg, rgba(5,8,12,.94) 0%, rgba(5,8,12,.68) 40%, rgba(5,8,12,.20) 74%, rgba(5,8,12,.58) 100%);
}
.fields-stage[data-active="automation"] .fields-panel::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 30%),
    linear-gradient(90deg, rgba(13,7,4,.94) 0%, rgba(13,7,4,.65) 44%, rgba(13,7,4,.28) 100%);
}
.fields-stage[data-active="author"] .fields-panel::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 30%),
    linear-gradient(90deg, rgba(13,8,4,.96) 0%, rgba(13,8,4,.70) 46%, rgba(13,8,4,.30) 100%);
}
.field-row {
  min-height: 5.2rem;
  border-radius: 10px;
}
.field-row .arrow {
  transition: transform .28s var(--ease), color .28s var(--ease);
}
.field-row[aria-selected="true"] .arrow,
.field-row:hover .arrow {
  transform: translateX(6px);
  color: var(--ember);
}
.field-card {
  display: grid;
  align-content: end;
  padding: clamp(1.35rem, 3vw, 2.4rem);
  overflow: hidden;
  min-height: 100%;
}
.field-card::before {
  z-index: 4;
}
.field-card .glow {
  z-index: 2;
  opacity: .78;
}
.field-card[data-field="it"] .glow {
  background: radial-gradient(58% 72% at 72% 30%, rgba(127,176,205,.18), transparent 72%);
}
.field-card[data-field="automation"] .glow {
  background: radial-gradient(50% 58% at 72% 40%, rgba(232,116,54,.18), transparent 72%);
}
.field-card[data-field="ai"] .glow {
  background: radial-gradient(48% 58% at 70% 38%, rgba(127,176,205,.16), transparent 72%);
}
.field-card[data-field="author"] .glow {
  background: radial-gradient(54% 62% at 72% 36%, rgba(180,130,74,.22), transparent 72%);
}
.field-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.field-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: contrast(1.08) saturate(1.04);
  transform: scale(1.01);
}
.field-image--story img {
  object-position: 72% center;
}
.field-copy {
  position: relative;
  z-index: 7;
  max-width: 34rem;
}
.field-card .label {
  color: #f1a16f;
}
.field-card h3 {
  font-size: clamp(1.7rem, 3.4vw, 2.65rem);
  text-shadow: 0 18px 40px rgba(0,0,0,.48);
}
.field-card p {
  color: #e7dfd2;
}
.field-visual {
  position: absolute;
  inset: clamp(1rem, 3vw, 2rem);
  z-index: 1;
  opacity: .92;
}
.field-visual--flow .fv-doc,
.field-visual--flow .fv-out {
  position: absolute;
  width: min(38%, 15rem);
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(143,178,199,.22);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    repeating-linear-gradient(180deg, transparent 0 18px, rgba(127,176,205,.16) 19px 20px);
  box-shadow: 0 28px 70px rgba(0,0,0,.34);
}
.field-visual--flow .fv-doc { right: 48%; top: 12%; }
.field-visual--flow .fv-out { right: 6%; bottom: 18%; border-color: rgba(232,116,54,.36); }
.field-visual--flow .fv-line {
  position: absolute;
  height: 2px;
  right: 27%;
  width: 26%;
  background: linear-gradient(90deg, rgba(127,176,205,.1), rgba(232,116,54,.8));
  transform-origin: right;
}
.field-visual--flow .l1 { top: 36%; transform: rotate(10deg); }
.field-visual--flow .l2 { top: 54%; transform: rotate(-8deg); }
.field-visual--flow .fv-node {
  position: absolute;
  right: 35%;
  width: 3.8rem;
  height: 2.2rem;
  border: 1px solid rgba(232,116,54,.36);
  border-radius: 999px;
  background: rgba(10,14,18,.62);
}
.field-visual--flow .n1 { top: 28%; }
.field-visual--flow .n2 { top: 58%; }
.field-visual--review {
  display: grid;
  align-content: center;
  justify-content: end;
  gap: .75rem;
}
.field-visual--review span {
  display: block;
  width: min(46vw, 24rem);
  height: clamp(3.6rem, 8vw, 5rem);
  border: 1px solid rgba(143,178,199,.20);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(127,176,205,.16), transparent 45%),
    rgba(6,10,14,.68);
  box-shadow: 0 20px 60px rgba(0,0,0,.30);
}
.field-visual--review span:nth-child(2) {
  transform: translateX(-2.3rem);
  border-color: rgba(232,116,54,.30);
}
.field-visual--review span:nth-child(3) {
  transform: translateX(-.6rem);
}
.field-visual--review i {
  position: absolute;
  right: 5rem;
  top: 50%;
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  border: 1px solid rgba(232,116,54,.38);
  box-shadow: 0 0 42px rgba(232,116,54,.18), inset 0 0 24px rgba(127,176,205,.08);
}

.stage-screen,
.case-visual,
.book-stage::before,
.contact-card,
.lab-panel {
  border-color: rgba(143,178,199,.22);
  box-shadow: 0 32px 90px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.045);
}
.stage-tab,
.book-dots button,
.icon-btn,
.contact-link {
  border-radius: 10px;
}
@media (hover: hover) and (pointer: fine) {
  .stage-panel.is-active .stage-visual > *,
  .book-cover.is-active,
  .contact-link {
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  }
  .stage-panel.is-active:hover .stage-visual > * {
    transform: translateY(-3px) scale(1.01);
  }
  .contact-link:hover {
    transform: translateY(-3px);
  }
}

.page-hero--about::before {
  background:
    linear-gradient(90deg, rgba(5,7,10,.97) 0%, rgba(5,7,10,.83) 38%, rgba(5,7,10,.34) 68%, rgba(5,7,10,.78) 100%),
    linear-gradient(180deg, rgba(5,7,10,.45), rgba(5,7,10,.18) 42%, rgba(5,7,10,.98) 100%);
}
.page-hero--about .page-hero-media img {
  object-position: 70% center;
}
.page-hero--about .page-hero-sheen {
  background:
    linear-gradient(90deg, rgba(127,176,205,.075) 0 1px, transparent 1px 100%) 0 0 / 100px 100px,
    linear-gradient(0deg, rgba(232,116,54,.05) 0 1px, transparent 1px 100%) 0 0 / 100px 100px,
    radial-gradient(42rem 26rem at 74% 50%, rgba(232,116,54,.13), transparent 72%);
}
.about-hero-grid {
  align-items: center;
}
.about-portrait-card {
  justify-self: end;
  width: min(18rem, 48vw);
  aspect-ratio: 820 / 1024;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(143,178,199,.20);
  background: rgba(5,8,12,.64);
  box-shadow: 0 34px 90px rgba(0,0,0,.48), 0 0 0 1px rgba(255,255,255,.035);
}
.about-portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-card--stacked {
  display: grid;
  gap: .8rem;
}

.site-footer {
  min-height: 16rem;
}
.footer-grid {
  align-items: start;
}

@media (max-width: 980px) {
  .fields-stage {
    grid-template-columns: 1fr;
  }
  .fields-panel {
    min-height: 31rem;
  }
  .field-row {
    min-height: 4.5rem;
  }
}
@media (max-width: 720px) {
  .hero-backdrop img {
    object-position: 58% center;
    transform: none;
  }
  .fields-panel {
    min-height: 28rem;
  }
  .fields-panel::before {
    background:
      linear-gradient(180deg, rgba(5,8,12,.32), rgba(5,8,12,.96) 78%),
      linear-gradient(90deg, rgba(5,8,12,.86), rgba(5,8,12,.58));
  }
  .field-card {
    padding: 1.1rem;
  }
  .field-copy {
    max-width: none;
  }
  .field-card h3 {
    font-size: clamp(1.45rem, 8vw, 2rem);
  }
  .field-visual {
    inset: .8rem;
    opacity: .70;
  }
  .field-visual--review span {
    width: 74vw;
  }
  .about-portrait-card {
    justify-self: start;
    width: min(12rem, 54vw);
  }
  .page-hero--about .page-hero-media img {
    object-position: 76% center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-backdrop img,
  .stage-panel.is-active:hover .stage-visual > *,
  .contact-link:hover {
    transform: none !important;
  }
}

/* =====================================================================
   SCROLL / MOTION / WATCHTOWER FIX
   ===================================================================== */
.btn,
.stage-tab,
.field-row,
.case,
.case-visual,
.contact-link,
.book-cover {
  will-change: transform;
}
.btn:active,
.icon-btn:active,
.contact-link:active {
  transform: translateY(1px) scale(.99);
}
.btn:focus-visible,
.icon-btn:focus-visible,
.stage-tab:focus-visible,
.field-row:focus-visible,
.watchtower-state-tabs button:focus-visible {
  outline: 2px solid rgba(232,116,54,.92);
  outline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0,0,0,.24), 0 0 0 1px rgba(255,255,255,.035) inset;
  }
  .btn-ghost:hover {
    border-color: rgba(127,176,205,.42);
    background: linear-gradient(135deg, rgba(127,176,205,.09), rgba(232,116,54,.055));
  }
  .case:hover .case-visual {
    transform: translateY(-4px);
    border-color: rgba(232,116,54,.24);
    box-shadow: 0 38px 100px rgba(0,0,0,.48), 0 0 42px rgba(127,176,205,.055);
  }
  .field-row:hover {
    background: linear-gradient(90deg, rgba(232,116,54,.055), transparent 52%);
  }
  .stage-tab:hover {
    transform: translateY(-2px);
  }
}

.watchtower-section {
  overflow: hidden;
  background:
    radial-gradient(50rem 30rem at 78% 28%, rgba(127,176,205,.13), transparent 72%),
    radial-gradient(38rem 22rem at 18% 78%, rgba(232,116,54,.09), transparent 74%),
    linear-gradient(180deg, #05080c, #071018);
}
.watchtower-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(1.6rem, 5vw, 4.5rem);
  align-items: center;
}
.watchtower-copy {
  max-width: 42rem;
  min-width: 0;
}
.watchtower-copy h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

/* ---- console: one robust, flow-based component (no absolute layout) ---- */
.watchtower-console {
  --wt-pad: clamp(.85rem, 1.6vw, 1.1rem);
  --wt-accent: var(--ok);
  --wt-accent-rgb: 118, 181, 138;
  position: relative;
  width: 100%;
  max-width: min(100%, 43rem);
  min-width: 0;
  justify-self: stretch;
  display: grid;
  gap: clamp(.85rem, 1.6vw, 1.15rem);
  padding: clamp(1.25rem, 2.4vw, 1.9rem);
  border: 1px solid rgba(143,178,199,.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(34rem 22rem at 86% 6%, rgba(var(--wt-accent-rgb), .12), transparent 70%),
    linear-gradient(180deg, rgba(9,15,21,.94), rgba(5,9,13,.96));
  box-shadow: 0 36px 100px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.watchtower-console::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(var(--wt-accent-rgb), .42), transparent 38%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .7;
}
.watchtower-console[data-state="ok"]  { --wt-accent: var(--ok);     --wt-accent-rgb: 118, 181, 138; }
.watchtower-console[data-state="warn"]{ --wt-accent: var(--warn);   --wt-accent-rgb: 224, 166, 74; }
.watchtower-console[data-state="err"] { --wt-accent: var(--danger); --wt-accent-rgb: 224, 99, 95; }
.watchtower-console > * { position: relative; min-width: 0; z-index: 1; }

/* header */
.watchtower-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: clamp(.7rem, 1.4vw, .9rem);
  border-bottom: 1px solid rgba(143,178,199,.16);
}
.watchtower-id {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.watchtower-dot {
  flex: none;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--wt-accent);
  box-shadow: 0 0 0 3px rgba(var(--wt-accent-rgb), .18), 0 0 12px rgba(var(--wt-accent-rgb), .55);
  animation: wtBeat 2.4s var(--ease) infinite;
}
.watchtower-status {
  flex: none;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--wt-accent);
  border: 1px solid rgba(var(--wt-accent-rgb), .5);
  border-radius: 999px;
  padding: .28rem .7rem;
  background: rgba(var(--wt-accent-rgb), .1);
  white-space: nowrap;
}

/* heartbeat signal */
.watchtower-signal {
  display: grid;
  gap: .55rem;
  padding: var(--wt-pad);
  border: 1px solid rgba(143,178,199,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.022);
}
.watchtower-signal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}
.watchtower-signal-head span {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.watchtower-signal-head b {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}
.watchtower-pulse {
  position: relative;
  height: 2.6rem;
  border-radius: 8px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(143,178,199,.06) 0 1px, transparent 1px 26px),
    rgba(2,5,8,.5);
}
.watchtower-pulse-line {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(var(--wt-accent-rgb), .9) 48%, rgba(var(--wt-accent-rgb), .9) 52%, transparent);
  -webkit-mask: repeating-linear-gradient(90deg,
    transparent 0 18px, #000 18px 19px, transparent 19px 21px, #000 21px 22px, transparent 22px 40px);
          mask: repeating-linear-gradient(90deg,
    transparent 0 18px, #000 18px 19px, transparent 19px 21px, #000 21px 22px, transparent 22px 40px);
  clip-path: polygon(0 50%, 16% 50%, 20% 12%, 27% 88%, 34% 38%, 40% 50%, 100% 50%, 100% 50%, 0 50%);
  opacity: .9;
}
.watchtower-pulse::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(var(--wt-accent-rgb), .22), transparent);
  animation: wtSweep 3.6s linear infinite;
}
.watchtower-console[data-state="warn"] .watchtower-pulse::after { animation-duration: 5.4s; }
.watchtower-console[data-state="err"]  .watchtower-pulse::after { animation-duration: 8s; opacity: .5; }

/* metrics */
.watchtower-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: .6rem;
}
.watchtower-metric {
  min-width: 0;
  padding: var(--wt-pad);
  border: 1px solid rgba(143,178,199,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.024);
}
.watchtower-metric b {
  display: block;
  color: var(--ink);
  font-size: clamp(.9rem, 2.4vw, 1.05rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.watchtower-metric small {
  display: block;
  margin-top: .3rem;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* process chips */
.watchtower-processes {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.watchtower-chip {
  min-width: 0;
  padding: .42rem .7rem;
  border: 1px solid rgba(143,178,199,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .66rem;
  line-height: 1.2;
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.watchtower-chip.is-done {
  color: var(--ink);
  border-color: rgba(118,181,138,.4);
  background: rgba(118,181,138,.1);
}
.watchtower-chip.is-current {
  color: var(--ink);
  border-color: rgba(var(--wt-accent-rgb), .65);
  background: rgba(var(--wt-accent-rgb), .14);
  box-shadow: 0 0 0 1px rgba(var(--wt-accent-rgb), .25), 0 0 16px rgba(var(--wt-accent-rgb), .22);
}
.watchtower-chip.is-error {
  color: #ffd9d6;
  border-color: rgba(224,99,95,.7);
  background: rgba(224,99,95,.18);
  box-shadow: 0 0 0 1px rgba(224,99,95,.3), 0 0 18px rgba(224,99,95,.28);
}

/* next action */
.watchtower-next-action {
  display: grid;
  gap: .3rem;
  padding: var(--wt-pad);
  border: 1px solid rgba(var(--wt-accent-rgb), .4);
  border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(var(--wt-accent-rgb), .12), transparent 70%),
    rgba(255,255,255,.022);
}
.watchtower-next-action span {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.watchtower-next-action b {
  color: var(--ink);
  font-size: clamp(.92rem, 2.2vw, 1.02rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* log */
.watchtower-log {
  display: grid;
  gap: .4rem;
  margin: 0;
  padding: var(--wt-pad);
  list-style: none;
  border: 1px solid rgba(143,178,199,.16);
  border-radius: 12px;
  background: rgba(1,3,5,.42);
  font-family: var(--font-mono);
  font-size: .68rem;
  line-height: 1.35;
  color: var(--ink-dim);
}
.watchtower-log li {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: .55rem;
}
.watchtower-log li::before {
  content: "";
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--ok);
  transform: translateY(.05rem);
}
.watchtower-log li.is-warn::before { background: var(--warn); }
.watchtower-log li.is-err::before  { background: var(--danger); }
.watchtower-log li.is-info::before { background: var(--accent-2, #7fb0cd); }
.watchtower-log-time {
  color: var(--ink-soft);
  font-size: .62rem;
  white-space: nowrap;
}
.watchtower-log-msg {
  min-width: 0;
  overflow-wrap: anywhere;
}
.watchtower-log li.is-err .watchtower-log-msg { color: #f3c7c4; }

/* state tabs */
.watchtower-state-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}
.watchtower-state-tabs button {
  min-width: 0;
  min-height: 2.85rem;
  padding: 0 .5rem;
  border: 1px solid rgba(143,178,199,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .72rem;
  cursor: pointer;
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease), color .22s var(--ease);
}
.watchtower-state-tabs button[aria-selected="true"] {
  color: var(--ink);
  border-color: rgba(var(--wt-accent-rgb), .6);
  background: rgba(var(--wt-accent-rgb), .14);
  box-shadow: inset 0 0 0 1px rgba(var(--wt-accent-rgb), .2);
}
.watchtower-state-tabs button:focus-visible {
  outline: 2px solid rgba(232,116,54,.92);
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .watchtower-state-tabs button:hover {
    transform: translateY(-2px);
    border-color: rgba(127,176,205,.4);
    color: var(--ink);
  }
}

@keyframes wtBeat {
  0%, 72%, 100% { transform: scale(1); }
  78% { transform: scale(1.5); }
  84% { transform: scale(1); }
  90% { transform: scale(1.32); }
}
@keyframes wtSweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(360%); }
}

/* projekte-Seite: console sits in the second case column */
.case-watchtower {
  align-self: stretch;
}

@media (max-width: 980px) {
  .watchtower-layout {
    grid-template-columns: 1fr;
  }
  .watchtower-console {
    max-width: 38rem;
    margin-inline: auto;
  }
}
@media (max-width: 720px) {
  .site-header {
    background: rgba(4,6,9,.88);
    backdrop-filter: blur(14px) saturate(1.15);
    border-bottom-color: rgba(143,178,199,.16);
  }
  .nav-wrap {
    min-height: 60px;
  }
  :root {
    --header: 60px;
  }
  .hero {
    min-height: calc(100svh - var(--header));
    padding: clamp(3.2rem, 9vh, 4.8rem) 0 2.6rem;
  }
  .hero-inner {
    gap: 1.4rem;
  }
  .hero-title {
    font-size: clamp(3rem, 17vw, 4.25rem);
  }
  .hero-media {
    min-height: 18rem;
  }
  .portrait {
    width: min(68vw, 18rem);
  }
  .page-hero--image {
    min-height: calc(100svh - var(--header));
    align-items: end;
    padding: 7.2rem 0 3rem;
    overflow: hidden;
  }
  .page-hero-media {
    inset: 0;
    height: 100%;
    opacity: 1;
  }
  .page-hero-media img {
    height: 100%;
    object-position: 66% center;
    transform: none !important;
    filter: contrast(1.08) saturate(1.04);
  }
  .page-hero--projekte .page-hero-media img { object-position: 70% center; }
  .page-hero--buecher .page-hero-media img { object-position: 62% center; }
  .page-hero--kontakt .page-hero-media img { object-position: 68% center; }
  .page-hero--about .page-hero-media img { object-position: 72% center; }
  .page-hero--image::before {
    background:
      linear-gradient(180deg, rgba(5,7,10,.20) 0%, rgba(5,7,10,.42) 34%, rgba(5,7,10,.94) 82%, rgba(5,7,10,1) 100%),
      linear-gradient(90deg, rgba(5,7,10,.86), rgba(5,7,10,.36) 58%, rgba(5,7,10,.62));
  }
  .page-hero-grid {
    min-height: calc(100svh - var(--header) - 10.2rem);
    align-content: end;
  }
  .page-hero-copy {
    max-width: 100%;
    padding-top: 42vh;
  }
  .page-hero-copy h1 {
    max-width: 12.5ch;
    font-size: clamp(2.5rem, 12vw, 3.45rem);
    text-shadow: 0 18px 46px rgba(0,0,0,.72);
  }
  .page-hero-copy .lead {
    color: #f1eadf;
    text-shadow: 0 14px 34px rgba(0,0,0,.65);
  }
  .page-hero-actions {
    gap: .7rem;
  }
  .watchtower-console {
    --wt-pad: clamp(.8rem, 3.4vw, 1.05rem);
    max-width: 100%;
    padding: clamp(1.05rem, 4.4vw, 1.5rem);
  }
  .watchtower-metrics {
    grid-template-columns: repeat(auto-fit, minmax(5.4rem, 1fr));
  }
}
@media (max-width: 390px) {
  .page-hero--image {
    padding-top: 6.6rem;
  }
  .page-hero-copy {
    padding-top: 37vh;
  }
  .page-hero-copy h1 {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }
  .watchtower-log {
    font-size: .66rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  .case,
  .case-visual,
  .stage-tab,
  .watchtower-state-tabs button {
    transform: none !important;
    will-change: auto;
  }
}
