/* =========================================================================
   LCONS GmbH — Corporate Design "Variante D · Vorsprung durch Struktur"
   Anthrazit / Aluminium-Silber / Signal-Rot
   Montserrat (Display) · Inter (Body) · JetBrains Mono (Daten)
   ========================================================================= */

:root {
  /* Brand colour system */
  --anthracite: #1A1A1A;
  --ink:        #121319;
  --paper:      #FBFBFC;
  --surface:    #FFFFFF;
  --silver:     #C0C0C0;
  --silver-100: #EEF0F2;
  --silver-200: #E1E4E8;
  --silver-300: #CBD0D6;
  --signal:     #CC0033;
  --signal-700: #A2002A;

  /* Semantic */
  --bg:            var(--paper);
  --bg-elevated:   var(--surface);
  --text:          #17181C;
  --text-muted:    #565A63;
  --text-faint:    #8A8F98;
  --border:        var(--silver-200);
  --border-strong: var(--silver-300);

  --on-dark:        #ECEDEF;
  --on-dark-muted:  #9CA1AA;
  --on-dark-border: rgba(255,255,255,.14);

  /* Type */
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Rhythm */
  --wrap: 1160px;
  --wrap-narrow: 780px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(3.3rem, 7.3vw, 6rem);
  --radius: 4px;
  --radius-lg: 8px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur: .72s;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-feature-settings: "kern", "liga", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); letter-spacing: -0.015em; }
h4 { font-size: 1.0625rem; letter-spacing: 0; }

p { margin: 0 0 1.2rem; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration-color: var(--silver-300); text-underline-offset: .18em; }
strong { font-weight: 600; }
img, svg { max-width: 100%; display: block; }

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

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

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--anthracite); color: #fff;
  padding: .6rem 1rem; border-radius: var(--radius);
  z-index: 200; transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
/* narrow content column, left-aligned to the standard wrap's left edge */
.wrap--narrow > * { max-width: var(--wrap-narrow); }
.section { padding-block: var(--section-y); }
:target, [id] { scroll-margin-top: 90px; }
/* collapse the doubled gap between directly stacked sections that share a background... */
.section + .section { padding-top: 0; }
/* ...but restore full top breathing room whenever the background actually changes colour,
   so a heading never sits flush against a light/dark seam */
.section:not(.section--dark):not(.section--ink) + .section--dark,
.section:not(.section--dark):not(.section--ink) + .section--ink,
.section--dark + .section:not(.section--dark):not(.section--ink),
.section--ink + .section:not(.section--dark):not(.section--ink),
.section--dark + .section--ink,
.section--ink + .section--dark {
  padding-top: var(--section-y);
}
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.section--dark {
  background: var(--anthracite);
  color: var(--on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .kicker { color: #fff; }
.section--ink .btn { --bg: #fff; --fg: var(--anthracite); }
.section--ink .btn:hover { --bg: var(--signal); --fg: #fff; border-color: var(--signal); }
.section--ink .signature { color: #fff; }
.section--ink .lead { color: var(--on-dark-muted); }

.lead {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 46ch;
}
.section--dark .lead { color: var(--on-dark-muted); }

/* ---------- Kicker ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: .7ch;
  margin: 0 0 1.4rem;
}
.kicker::before {
  content: "";
  width: 1.8rem; height: 2px;
  background: var(--signal);
  display: inline-block;
}
.section--dark .kicker { color: #fff; }
.section--dark .kicker::before { background: var(--signal); }

/* ---------- Headline underline (from the brand banner) ---------- */
.u-underline {
  position: relative;
  display: inline;
  background-image: linear-gradient(var(--signal), var(--signal));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: var(--uw, 100%) 4px;
  padding-bottom: .12em;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--anthracite);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7ch;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .005em;
  padding: .95rem 1.6rem;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bg);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { background: var(--signal); border-color: var(--signal); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--ghost {
  --bg: transparent;
  --fg: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { --fg: #fff; background: var(--anthracite); border-color: var(--anthracite); transform: translateY(-2px); }

.section--dark .btn { --bg: #fff; --fg: var(--anthracite); }
.section--dark .btn:hover { --bg: var(--signal); --fg: #fff; }
.section--dark .btn--ghost { --bg: transparent; --fg: #fff; border-color: var(--on-dark-border); }
.section--dark .btn--ghost:hover { background: #fff; --fg: var(--anthracite); border-color:#fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}
.brand {
  display: inline-flex; align-items: center;
  text-decoration: none;
  flex: none;
}
.brand__logo { height: 46px; width: auto; display: block; }
.footer-brand .brand__logo { height: 46px; }
@media (max-width: 480px) { .brand__logo { height: 36px; } }

.nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: nowrap; }
.nav__links { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; font-size: .93rem; font-weight: 500; white-space: nowrap;
  color: var(--text-muted); padding: .3rem 0; position: relative;
  transition: color .2s var(--ease);
}
.nav__extra { display: flex; align-items: center; gap: 1rem; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--signal); transition: width .28s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }

.nav__cta { white-space: nowrap; padding: .7rem 1.15rem; font-size: .9rem; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  width: 44px; height: 44px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--anthracite);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after  { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-2px); }

@media (max-width: 1024px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--gutter) 2rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav__links a::after { display: none; }
  .nav__extra { display: flex; align-items: center; justify-content: space-between; padding-top: 1.2rem; gap: 1rem; }
  .nav__cta { flex: 1; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem) var(--section-y); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.6fr .4fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero__sub { font-size: clamp(1.15rem, 2.1vw, 1.5rem); color: var(--text-muted); line-height: 1.55; max-width: 30ch; margin-bottom: 2rem; }
.hero__tech {
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .05em;
  color: var(--text-faint); margin-bottom: 2.4rem; display: flex; flex-wrap: wrap; gap: .2rem .9rem;
}
.hero__tech .sap { color: var(--signal); font-weight: 700; }
.hero__tech .sep { color: var(--silver-300); }

/* Both sit last in the DOM (after </footer>) so they paint above ordinary page content —
   including dark sections' own opaque backgrounds — while staying below the sticky header
   (explicit z-index) and the cursor trail. Normal alpha blending (no blend-mode) so the exact
   same element/values read correctly on both: mix-blend-mode:screen was tried and rejected —
   screen can only brighten, so over the near-white paper background it did nothing at all
   (screen(white, anything) stays white), which broke the light-section look entirely. */
.hero__bg {
  position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 88% 12%, color-mix(in srgb, var(--signal) 15%, transparent), transparent 70%);
}
/* Brand watermark (.hero__mark — an oversized logo glyph) was tried and removed after two
   rounds of repositioning still didn't read as premium: a large, recognizable brand icon
   floating semi-transparently behind the page while scrolling is a fairly common template
   pattern, and no amount of grid-alignment fixed that — the concept itself was the problem,
   not its coordinates. Left with just the soft ambient gradient below, which is closer to
   "restraint" than "a shape to notice". Don't re-add a literal icon/logo shape here without
   an explicit fresh request — see [[lcons-website]] memory for the two rejected attempts. */
/* Every section's own content sits in the plain root stacking context at z-index:1, so the
   z-index:auto shared background (.hero__bg/.hero__mark above) paints above each section's own
   background but stays tucked behind its actual text/cards — visible in the empty margins around
   content, not overlapping it. */
.section > .wrap, .hero > .wrap, .site-footer > .wrap { position: relative; z-index: 1; }

/* Inline seal badge — small draw-in checkmark replacing the dash before "von Anfang an richtig" */
.seal-mini {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.625em; height: 1.625em; margin: 0 .1ch;
  position: relative; color: var(--signal); vertical-align: middle;
}
.seal-mini__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.seal-mini__ring {
  fill: none; stroke: currentColor; stroke-width: 2.4px;
  stroke-dasharray: 107; stroke-dashoffset: 107;
  transition: stroke-dashoffset .9s var(--ease-out) .5s;
}
.hero__sub.is-in .seal-mini__ring { stroke-dashoffset: 0; }
.seal-mini__check {
  fill: none; stroke: currentColor; stroke-width: 3px;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 23; stroke-dashoffset: 23;
  transition: stroke-dashoffset .35s var(--ease-out) 1.15s;
}
.hero__sub.is-in .seal-mini__check { stroke-dashoffset: 0; }
.no-anim .seal-mini__ring { stroke-dashoffset: 0 !important; }
.no-anim .seal-mini__check { stroke-dashoffset: 0 !important; }
@media (prefers-reduced-motion: reduce) {
  .seal-mini__ring circle { stroke-dashoffset: 0; }
  .seal-mini__check { transform: rotate(-45deg) scale(1); opacity: 1; }
}

@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ---------- Generic section head ---------- */
/* Width caps live on h2/p individually, each in `ch` relative to ITS OWN font-size —
   not on this container. h2's font-size is a fluid clamp() that grows with the
   viewport; a cap set on the container resolves against the container's (fixed,
   inherited) font-size instead, so the box stays a near-constant pixel width while
   the heading's own text needs more room as it grows — causing more wrapping at
   wide viewports than narrow ones. Keep the cap on the element whose font it should
   track. */
.section__head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section__head h2 { max-width: 34ch; }
.section__head.is-wide h2 { max-width: 40ch; }
.section__head p:not(.kicker) { color: var(--text-muted); font-size: 1.1rem; max-width: 70ch; }
.section__head.is-wide p:not(.kicker) { max-width: 74ch; }
.section--dark .section__head p:not(.kicker) { color: var(--on-dark-muted); }

/* ---------- Symptom / feature cards ---------- */
.cards { display: grid; gap: .55rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { border-color: var(--border-strong); box-shadow: 0 18px 40px -24px rgba(20,22,28,.25); }
.card__n {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  color: var(--signal); letter-spacing: .1em; margin-bottom: .9rem; display: block;
}
.card h3, .card h4 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p:not(.kicker) { color: var(--text-muted); font-size: .98rem; margin: 0; }
.section--dark .card { background: rgba(255,255,255,.03); border-color: var(--on-dark-border); }
.section--dark .card:hover { border-color: rgba(255,255,255,.28); box-shadow: none; }
.section--dark .card p:not(.kicker) { color: var(--on-dark-muted); }

/* ---------- Steps (stacked, numbered sequence — same box language as .card) ---------- */
.steps { display: grid; gap: .6rem; }
.step {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem; display: grid; grid-template-columns: 2.6rem 1fr; gap: 1.2rem;
  transition: border-color .3s var(--ease);
}
.step:hover { border-color: var(--border-strong); }
.step__n { font-family: var(--font-mono); font-size: .78rem; font-weight: 700; color: var(--signal); letter-spacing: .1em; padding-top: .2rem; }
.step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step p { color: var(--text-muted); font-size: .98rem; margin: 0; }
.section--dark .step { background: rgba(255,255,255,.03); border-color: var(--on-dark-border); }
.section--dark .step:hover { border-color: rgba(255,255,255,.28); }
.section--dark .step p { color: var(--on-dark-muted); }
@media (max-width: 480px) { .step { grid-template-columns: 1fr; gap: .4rem; } }

.aside-note {
  margin-top: 2rem; padding-left: 1.2rem; border-left: 2px solid var(--signal);
  color: var(--text-muted); font-size: 1.05rem; max-width: 70ch;
}
.section--dark .aside-note { color: var(--on-dark-muted); }

/* ---------- Cost comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.compare__cell { background: var(--bg-elevated); padding: 1.9rem 1.7rem; }
.compare__cell:last-child { background: var(--anthracite); color: var(--on-dark); }
.compare__tag { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: .8rem; }
.compare__cell:last-child .compare__tag { color: var(--signal); }
.compare__big { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; margin-bottom: .5rem; letter-spacing: -0.02em; }
.compare__cell p { font-size: .96rem; color: var(--text-muted); margin: 0; }
.compare__cell:last-child p { color: var(--on-dark-muted); }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Support list ---------- */
.support { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.support li {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem;
  padding: 1.35rem 0; border-bottom: 1px solid var(--border);
  align-items: start;
}
.support li::before {
  content: "▸"; color: var(--signal); font-size: 1rem; line-height: 1.6;
}
.support strong { font-weight: 600; display: block; margin-bottom: .1rem; }
.support span { color: var(--text-muted); font-size: .98rem; }
.section--dark .support, .section--dark .support li { border-color: var(--on-dark-border); }
.section--dark .support span { color: var(--on-dark-muted); }

/* ---------- Timeline (Sparring-Visualisierung) ---------- */
.timeline { margin-top: 2.5rem; }
.timeline__bar {
  background: var(--signal); color: #fff; border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.timeline__bar-kicker {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.75); margin-bottom: .6rem;
}
.timeline__bar-main {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em;
  font-size: 1.05rem; line-height: 1.35; margin-bottom: .5rem; max-width: 48ch;
}
.timeline__bar-note { font-size: .84rem; color: rgba(255,255,255,.8); }
.timeline__track { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-top: 2.2rem; }
.timeline__item { position: relative; }
.timeline__item::before {
  content: ""; position: absolute; top: -2.2rem; left: 50%; width: 2px; height: 2.2rem;
  background: var(--signal); transform: translateX(-50%);
}
.timeline__item::after {
  content: ""; position: absolute; top: -11px; left: 50%; width: 22px; height: 22px;
  background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 10.6 3.9 8l-1 1 3.6 3.6L14 5.1l-1-1z' fill='%23fff'/%3E%3C/svg%3E") center/9px no-repeat;
  border-radius: 50%; transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline__block {
  border-radius: var(--radius); padding: 1rem .9rem .9rem; min-height: 92px;
  font-size: .86rem; line-height: 1.4;
  border: 1px solid var(--border);
}
.timeline__block--main { background: var(--anthracite); color: #fff; border-color: var(--anthracite); }
.timeline__block--req  { background: var(--silver-100); color: var(--text); }
.timeline__block b { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: .3rem; }
.timeline__block--main b { color: rgba(255,255,255,.6); }
.section--dark .timeline__block { border-color: var(--on-dark-border); }
.section--dark .timeline__block--req { background: rgba(192,192,192,.16); color: var(--on-dark); }
.section--dark .timeline__block b { color: var(--on-dark-muted); }
.section--dark .timeline__item::after { box-shadow: 0 0 0 4px var(--bg); }
.timeline__axis { display: flex; align-items: center; gap: .7rem; margin-top: 2rem; }
.timeline__axis-line { flex: 1; height: 1px; background: var(--border-strong); position: relative; }
.timeline__axis-line::after {
  content: ""; position: absolute; right: -2px; top: 50%; width: 0; height: 0;
  border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid var(--border-strong);
  transform: translateY(-50%);
}
.timeline__axis-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); flex: none; }
@media (max-width: 720px) { .timeline__track { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
  .timeline__track { grid-template-columns: 1fr; gap: 1.8rem; }
  .timeline__axis { display: none; }
}

/* ---------- Stage cards (Sparring-Stufen) ---------- */
.stages { display: grid; gap: .6rem; grid-template-columns: repeat(3, 1fr); align-items: start; }
.stage {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem; display: flex; flex-direction: column; height: 100%;
}
.stage--featured { background: var(--anthracite); color: var(--on-dark); border-color: var(--anthracite); position: relative; }
.stage--featured::before {
  content: attr(data-flag); position: absolute; top: -1px; right: 1.4rem;
  background: var(--signal); color: #fff; font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: .12em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 0 0 3px 3px;
}
.stage h3 { font-size: 1.35rem; margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .01em; }
.stage__meta { font-size: .9rem; color: var(--text-muted); margin-bottom: 1.3rem; }
.stage--featured .stage__meta { color: var(--on-dark-muted); }
.stage__block { margin-bottom: 1.2rem; }
.stage__block-h { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: .6rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.stage--featured .stage__block-h { color: var(--on-dark-muted); border-color: var(--on-dark-border); }
.stage__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.stage__list li { display: grid; grid-template-columns: 2.3rem 1fr; gap: .7rem; align-items: start; }
.stage__qty {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--signal); line-height: 1.3;
}
.stage__qty--check {
  width: 18px; height: 18px; margin-top: .3rem;
  background: var(--signal); flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 10.6 3.9 8l-1 1 3.6 3.6L14 5.1l-1-1z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 10.6 3.9 8l-1 1 3.6 3.6L14 5.1l-1-1z' fill='%23000'/%3E%3C/svg%3E") center/contain no-repeat;
}
.stage__item strong { display: block; font-weight: 600; font-size: .96rem; color: var(--text); }
.stage__item small { display: block; font-weight: 400; font-size: .84rem; color: var(--text-faint); margin-top: .2rem; }
.stage--featured .stage__item strong { color: #fff; }
.stage--featured .stage__item small { color: var(--on-dark-muted); }
.stage--tier-standard { border-top: 3px solid var(--silver); }
.stage--tier-standard h3 { color: var(--text-faint); }
.stage--tier-erweitert { border-top: 3px solid var(--anthracite); }
.stage--tier-intensiv { border-top: 3px solid var(--signal); }
.stage--tier-intensiv h3 { color: var(--signal); }
.stage p.stage__foot { margin-top: auto; padding-top: .3rem; font-size: .86rem; color: var(--text-faint); }
.stage--featured p.stage__foot { color: var(--on-dark-muted); }
@media (max-width: 900px) { .stages { grid-template-columns: 1fr; } }

.fineprint { margin-top: 1.6rem; font-size: .86rem; color: var(--text-faint); max-width: 70ch; }
.fineprint p { margin-bottom: .5rem; }
.fineprint p strong { color: var(--text-muted); font-weight: 600; }
.fineprint-sig { margin-top: 2rem; text-align: center; font-style: italic; color: var(--text-faint); font-size: .95rem; }

/* ---------- Tech stack (3 sequential stages resting on one cross-cutting layer) ---------- */
.techstack { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-elevated); }
.techstack__row { display: grid; grid-template-columns: repeat(3, 1fr); }
.techstack__col { padding: 1.6rem 1.5rem; border-right: 1px solid var(--border); }
.techstack__col:last-child { border-right: 0; }
.techstack__num { font-family: var(--font-mono); font-size: .74rem; font-weight: 700; letter-spacing: .1em; color: var(--signal); display: block; margin-bottom: .6rem; }
.techstack__col h3 { font-size: 1rem; margin-bottom: .5rem; }
.techstack__col p { font-size: .88rem; line-height: 1.55; color: var(--text-muted); margin: 0; }
.techstack__base {
  border-top: 2px solid var(--signal); background: var(--anthracite); color: var(--on-dark);
  padding: 1.4rem 1.5rem; display: flex; align-items: flex-start; gap: 1rem;
}
.techstack__base-icon {
  flex: none; width: 26px; height: 26px; margin-top: .1rem; border-radius: 50%;
  background: var(--signal); color: #fff; font-size: .82rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.techstack__base h3 { color: #fff; font-size: 1rem; margin-bottom: .5rem; }
.techstack__base p { font-size: .88rem; line-height: 1.55; color: var(--on-dark-muted); margin: 0; }
@media (max-width: 680px) {
  .techstack__row { grid-template-columns: 1fr; }
  .techstack__col { border-right: 0; border-bottom: 1px solid var(--border); }
}

/* ---------- Flow (Quellen -> Modell -> Reporting) ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1rem; }
.flow__node {
  border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 1.1rem 1rem;
  text-align: center; position: relative; background: var(--bg-elevated);
}
.flow__node b { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); display: block; margin-bottom: .3rem; }
.flow__node span { font-size: .9rem; color: var(--text-muted); }
.flow__node:not(:last-child)::after {
  content: "→"; position: absolute; right: -.65rem; top: 50%; transform: translateY(-50%);
  color: var(--silver-300); font-size: 1.1rem; z-index: 1;
}
@media (max-width: 620px) {
  .flow { grid-template-columns: 1fr; }
  .flow__node:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -.7rem; transform: translateX(50%); }
}

/* ---------- Differentiation ---------- */
.diff { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.diff__col { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; background: var(--bg-elevated); }
.diff__col--us { background: var(--anthracite); color: var(--on-dark); border-color: var(--anthracite); }
.diff__col h4 { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1rem; }
.diff__col--us h4 { color: var(--signal); }
.diff__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .93rem; }
.diff__col li { padding-left: 1.1rem; position: relative; color: var(--text-muted); }
.diff__col li::before { content: "–"; position: absolute; left: 0; }
.diff__col--us li { color: var(--on-dark-muted); }
.diff__col--us li::before { content: "+"; color: var(--signal); }

/* ---------- Values ---------- */
.values { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.values > div { padding: 1.6rem 1.5rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.values h4 { margin-bottom: .4rem; }
.values p { font-size: .92rem; color: var(--text-muted); margin: 0; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.quote {
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.8rem 1.6rem;
  background: var(--bg-elevated); display: flex; flex-direction: column; min-height: 200px;
}
.quote__mark { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--signal); margin-bottom: .6rem; }
.quote__body { font-size: 1rem; color: var(--text-muted); font-style: italic; flex: 1; }
.quote__body[data-empty]::before { content: attr(data-empty); font-style: normal; color: var(--text-faint); }
.quote__by { margin-top: 1.2rem; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .06em; color: var(--text-faint); text-transform: uppercase; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { max-width: 44ch; margin-inline: auto; color: var(--on-dark-muted); margin-bottom: 2rem; }
.signature {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 2.5rem;
}
.signature--muted { color: var(--text-faint); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.3rem; max-width: 560px; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field .req { color: var(--signal); }
.field .hint { font-size: .82rem; color: var(--text-faint); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem;
  padding: .8rem .9rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--signal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 16%, transparent);
}
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: var(--signal); }
.field__error { font-size: .82rem; color: var(--signal); min-height: 1.1em; }
.form__status { font-size: .95rem; padding: .9rem 1.1rem; border-radius: var(--radius); display: none; }
.form__status[data-state="success"] { display: block; background: color-mix(in srgb, #12805c 12%, transparent); color: #0c6247; border: 1px solid color-mix(in srgb,#12805c 30%, transparent); }
.form__status[data-state="error"] { display: block; background: color-mix(in srgb, var(--signal) 10%, transparent); color: var(--signal-700); border: 1px solid color-mix(in srgb, var(--signal) 30%, transparent); }
.form button[type="submit"] { justify-self: start; }
.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;
}

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.contact-info dl { display: grid; gap: 1.1rem; margin: 0; }
.contact-info dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: .15rem; }
.contact-info dd { margin: 0; font-size: 1.02rem; }
.contact-info a { text-decoration: none; }
.contact-info a:hover { color: var(--signal); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info--solo dl { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 2rem; }
.contact-info--solo dt { font-size: .78rem; margin-bottom: .4rem; }
.contact-info--solo dd { font-size: 1.2rem; }
@media (max-width: 620px) { .contact-info--solo dl { grid-template-columns: 1fr; } }

/* ---------- Legal / prose ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2.6rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .3rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose a { color: var(--signal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-block: clamp(3.5rem, 7vw, 5rem) 2.5rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand__mark { border-color: rgba(255,255,255,.5); }
.footer-brand p { margin-top: 1rem; max-width: 32ch; font-size: .92rem; }
.footer-sig { font-family: var(--font-display); font-weight: 700; color: #fff; letter-spacing: -0.02em; margin-top: 1.4rem; font-size: 1.15rem; }
.footer-col h4 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .92rem; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--on-dark-border);
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: space-between;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; color: var(--text-faint);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }
/* headings get a subtle clip-wipe on top of the rise */
h1.reveal, h2.reveal { clip-path: inset(0 0 -0.2em 0); }
h1.reveal:not(.is-in), h2.reveal:not(.is-in) { clip-path: inset(0 0 100% 0); }
h1.reveal, h2.reveal { transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), clip-path calc(var(--dur) + .1s) var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .card, .nav__links a::after, .brand, * { transition: none !important; }
  .u-underline { background-size: 100% 4px !important; }
}
.no-anim, .no-anim * { transition: none !important; animation: none !important; }
.no-anim .reveal { opacity: 1 !important; transform: none !important; }
.no-anim .u-underline { background-size: 100% 4px !important; }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* =========================================================================
   v2 — premium refinements & handcrafted micro-interactions
   ========================================================================= */

/* ---- scroll progress: a hairline that fills as you read ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
  background: var(--signal); z-index: 200; pointer-events: none;
  transition: transform .12s linear;
}

/* ---- kicker tick draws itself on reveal ---- */
.kicker::before { transition: width .5s var(--ease-out) .1s; }
.reveal:not(.is-in) .kicker::before,
.kicker.reveal:not(.is-in)::before { width: 0; }

/* ---- hero: editorial split headline ---- */
.hero { padding-block: clamp(2.25rem, 5.5vw, 4.5rem) clamp(3rem, 7vw, 6rem); }
.hero__lead-line { display: block; }
.hero__thin {
  display: block; margin-top: .18em;
  font-weight: 600; color: var(--text-muted);
  font-size: clamp(1.4rem, 3.2vw, 2.3rem); letter-spacing: -0.015em;
}
.hero h1 { font-size: clamp(2.15rem, 5.2vw, 3.9rem); }
/* ueber.html hero h1 is a short one-liner, not the editorial split headline above —
   match it to the base h2 size so it doesn't outweigh "Projekte, bei denen es nicht egal war." right after it. */
[data-page="about"] .hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
@media (max-width: 420px) { .hero__lead-line { hyphens: auto; -webkit-hyphens: auto; } }
.hero__aud {
  font-size: .95rem; color: var(--text-faint); margin: -0.4rem 0 1.6rem;
}
.hero__grid { align-items: center; }
.hero__copy { padding-top: 0; }

/* ---- magnetic buttons ---- */
[data-magnetic], .btn { will-change: transform; }
.btn { transition: transform .35s var(--ease-out), background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .35s var(--ease-out); }
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn .arrow { display: inline-block; transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---- link with arrow (premium inline link) ---- */
.link-arrow {
  display: inline-flex; align-items: baseline; gap: .5ch;
  text-decoration: none; font-weight: 500; color: var(--text);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .4s var(--ease-out), color .3s var(--ease);
  padding-bottom: 2px;
}
.section--dark .link-arrow { color: #fff; }
.link-arrow::after { content: "→"; transition: transform .35s var(--ease-out); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---- statement block (pain / result — prose over cards) ---- */
.statement { padding-block: clamp(3rem, 6.7vw, 5.3rem); }
.statement h2 { margin-bottom: .7em; }
.statement__body {
  font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.55; color: var(--text);
  font-weight: 400;
}
.statement__accent {
  margin-top: 1.6rem; padding-left: 1.15rem; border-left: 2px solid var(--signal);
  color: var(--text-muted); font-size: 1.05rem; max-width: 44ch;
}
.section--dark .statement__body { color: var(--on-dark); }
.section--dark .statement__accent { color: var(--on-dark-muted); }

/* ---- Qualitätskette accordion ---- */
.chain { list-style: none; margin: 2.5rem 0 0; padding: 0; counter-reset: none;
  border-top: 1px solid var(--on-dark-border); }
.chain__item { border-bottom: 1px solid var(--on-dark-border); }
.chain__d { --pad: clamp(1.1rem, 2.5vw, 1.5rem); }
.chain__sum {
  list-style: none; cursor: pointer; display: grid;
  grid-template-columns: 3.2rem 1fr 1.4rem; align-items: start; gap: 1rem;
  padding: var(--pad) 0;
  transition: color .3s var(--ease);
}
.chain__sum::-webkit-details-marker { display: none; }
.chain__sum:hover .chain__t { color: #fff; }
.chain__sum:hover .chain__n { color: var(--signal); }
.chain__n {
  font-family: var(--font-mono); font-size: .82rem; font-weight: 500;
  color: var(--on-dark-muted); padding-top: .25rem; transition: color .3s var(--ease);
}
.chain__main { min-width: 0; }
.chain__t {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.3rem); letter-spacing: -0.01em; color: var(--on-dark);
  transition: color .3s var(--ease);
}
.chain__role { display: block; margin-top: .3rem; color: var(--on-dark-muted); font-size: .95rem; line-height: 1.5; }
.chain__chev {
  width: 14px; height: 14px; margin-top: .5rem; position: relative;
  transition: transform .4s var(--ease-out);
}
.chain__chev::before, .chain__chev::after {
  content: ""; position: absolute; top: 6px; width: 9px; height: 2px; background: var(--signal);
}
.chain__chev::before { left: 0; transform: rotate(45deg); }
.chain__chev::after { right: 0; transform: rotate(-45deg); }
.chain__d[open] .chain__chev { transform: rotate(180deg); }
.chain__body {
  padding: .2rem 0 var(--pad) calc(3.2rem + 1rem);
  display: grid; gap: .7rem;
}
.chain__body p { margin: 0; color: var(--on-dark-muted); font-size: .96rem; line-height: 1.6; max-width: 60ch; }
.chain__body b {
  display: block; margin-bottom: .3rem;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--signal);
}
@keyframes qk-fade { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.chain__d[open] > .chain__body { animation: qk-fade .42s var(--ease-out); }
@media (max-width: 560px) {
  .chain__sum { grid-template-columns: 2.4rem 1fr 1.2rem; gap: .7rem; }
  .chain__body { padding-left: 0; }
}
.chain__mechs { margin-top: 3.5rem; }
.chain__mechs h3 { color: #fff; font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: 1.4rem; }

/* the two cross-cutting "layers" — visually distinct from the numbered chain stages
   above (bordered cards instead of accordion rows), with a signal-red top edge so
   they read as a different kind of thing, not an 11th/12th station */
.chain__layers { margin-top: 3rem; }
.chain__layers h3 { color: #fff; font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: 1.4rem; }
.chain__layers .card { border-top: 2px solid var(--signal); }

/* ---- refined nav underline (wipe from left) ---- */
.nav__links a::after { transform-origin: 0 50%; }

/* ---- card / row cursor lift (very subtle) ---- */
.support li { transition: padding-left .35s var(--ease-out), background-color .35s var(--ease); position: relative; }
.support li > span { position: relative; z-index: 1; }
.support li::after {
  content: ""; position: absolute; inset: 0 -1.2rem;
  background: radial-gradient(16rem 8rem at var(--gx, 50%) 50%, color-mix(in srgb, var(--signal) 8%, transparent), transparent 70%);
  opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
}
.support li:hover { padding-left: .5rem; }
.support li:hover::after { opacity: 1; }
.support li:hover::before { color: var(--signal); }

/* ---- soft comet-trail that follows the pointer and collapses when it stops ---- */
.cursor-trail {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0; transition: opacity .55s var(--ease);
}
body.cursor-on .cursor-trail { opacity: 1; }
body.cursor-text .cursor-trail { opacity: .25; }
.cursor-seg {
  position: absolute; left: 0; top: 0; border-radius: 50%;
  will-change: transform; transform: translate3d(-200px,-200px,0);
  background: radial-gradient(closest-side,
     color-mix(in srgb, var(--signal) 62%, transparent), transparent 72%);
  filter: blur(1px);
}
body.cursor-invert .cursor-seg {
  background: radial-gradient(closest-side, rgba(255,255,255,.5),
     color-mix(in srgb, var(--signal) 44%, transparent) 45%, transparent 76%);
}
.cursor-seg { transition: filter .3s var(--ease); }
body.cursor-hover .cursor-seg { filter: blur(3px); }

/* ---- cursor spotlight inside dark sections (the shared .hero__bg ambient gradient already
   shows through these sections directly — this is a separate, additional pointer-reactive
   highlight layered on top of it) ----
   NOTE: no `isolation: isolate` here (deliberately removed) — isolation would wall this
   section off into its own stacking context, which stops a shared page-level fixed background
   from being able to sit *between* this section's own background and its content. Every
   section's content wrap is instead lifted to z-index:1 in the plain root stacking context
   (see the `.section > .wrap` rule near .hero__bg), so a shared background element left at
   z-index:auto naturally paints above every section's own background but below every
   section's own content, without needing a separate copy per section. */
.section--dark, .section--ink { position: relative; }
.section--dark::after, .section--ink::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .22; transition: opacity .5s var(--ease);
  background: radial-gradient(28rem 28rem at var(--mx, 50%) var(--my, 50%),
              color-mix(in srgb, var(--signal) 32%, transparent), transparent 62%);
}
.section--dark[data-lit]::after, .section--ink[data-lit]::after { opacity: .85; }

/* ---- cursor-reactive tilt + inner glow on cards ---- */
[data-tilt] {
  position: relative;
  transform: perspective(900px) translateY(var(--ty, 0)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out), border-color .3s var(--ease), box-shadow .35s var(--ease-out);
}
[data-tilt]:hover { --ty: -3px; }
[data-tilt].is-tilting { transition: transform .1s linear, border-color .3s var(--ease); }
[data-tilt]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(12rem 12rem at var(--gx, 50%) var(--gy, 50%),
              color-mix(in srgb, var(--signal) 14%, transparent), transparent 60%);
  opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; z-index: 2;
}
[data-tilt]:hover::after { opacity: 1; }
.section--dark [data-tilt]::after { background: radial-gradient(12rem 12rem at var(--gx,50%) var(--gy,50%), rgba(255,255,255,.09), transparent 60%); }

/* ---- reduced-motion & no-anim additions ---- */
@media (max-width: 900px), (hover: none), (pointer: coarse) {
  .cursor-trail { display: none; }
  [data-tilt] { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-trail { display: none; }
  [data-tilt] { transform: none !important; transition: none !important; }
  .section--dark::after, .section--ink::after { display: none; }
  .support li::after { display: none; }
}
.no-anim .cursor-trail { display: none; }
.no-anim [data-tilt] { transform: none !important; }
.no-anim .section--dark::after, .no-anim .section--ink::after { display: none; }

/* ---- reduced-motion & no-anim additions ---- */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  h1.reveal, h2.reveal { clip-path: none !important; }
  .chain__body { transition: none !important; }
}
.no-anim h1.reveal, .no-anim h2.reveal { clip-path: none !important; }
.no-anim .scroll-progress { display: none; }
.no-anim .chain__d[open] > .chain__body { animation: none !important; }
