/* Meridian Systems – Design-System v11 */
:root {
  color-scheme: dark;
  --bg: #070709;
  --bg-subtle: #0b0d11;
  --surface: #101318;
  --surface-elevated: #151921;
  --surface-high: #1b202b;
  --ink: #f6f4ef;
  --ink-secondary: #d7d5cf;
  --muted: #a6a9b2;
  --line: #232730;
  --line-soft: rgb(255 255 255 / 9%);
  --line-strong: rgb(255 255 255 / 17%);
  --amber: #f0be7a;
  --amber-bright: #f7cf94;
  --amber-dim: rgb(240 190 122 / 13%);
  --green: #96cfa4;
  --terracotta: #de9678;
  --red: #ff7a7c;
  --accent: var(--amber);
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(1rem, 4.75vw, 4.5rem);
  --header-offset: 6rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --card-bg: linear-gradient(160deg, var(--surface-elevated), var(--surface) 72%);
  --card-edge: inset 0 1px 0 rgb(255 255 255 / 8%);
  --card-shadow: 0 18px 40px rgb(0 0 0 / 38%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-block-start: var(--header-offset); -webkit-text-size-adjust: 100%; }
body { display: flex; min-height: 100vh; flex-direction: column; margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.6 var(--sans); overflow-x: clip; }
main { flex: 1; view-transition-name: page-main; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[id] { scroll-margin-block-start: 1rem; }

.wrap { width: min(calc(100% - 2 * var(--gutter)), 82rem); margin-inline: auto; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  inset: 1rem auto auto 1rem;
  z-index: 20;
  padding: .7rem 1rem;
  background: var(--ink);
  color: var(--bg);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line-soft);
  background: rgb(7 7 9 / 86%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  transition: box-shadow 220ms ease;
  view-transition-name: site-header;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px #0007; }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .15rem 1.25rem;
  padding-block: .6rem;
  min-height: 4.5rem;
}
.wordmark { display: inline-flex; align-items: baseline; font-size: 1.23rem; font-weight: 700; letter-spacing: -.055em; }
.wordmark span { color: var(--amber); }
.header-end { display: flex; align-items: center; gap: clamp(.75rem, 2.8vw, 2.4rem); width: 100%; min-width: 0; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 clamp(.75rem, 2.8vw, 2.2rem); }
.site-nav a { position: relative; display: flex; align-items: center; gap: .35rem; min-height: 2.75rem; color: var(--muted); font-size: .84rem; transition: color .2s; }
.site-nav a:is([aria-current="page"], [aria-current="location"], .active),
.site-nav a:focus-visible { color: var(--ink); }
.site-nav a::after, .nav-marker {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--amber);
}
.site-nav a:not([aria-current], .active)::after {
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-out);
}
.site-nav a:is([aria-current="page"], [aria-current="location"], .active):not(:has(.nav-marker))::after {
  content: "";
}
.site-nav a:not([aria-current], .active):focus-visible::after { transform: scaleX(1); }
.nav-marker { view-transition-name: site-nav-marker; }
.header-cta {
  display: none;
  min-height: 2.5rem;
  padding: .45rem .95rem;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 650;
  align-items: center;
  gap: .5rem;
  transition: border-color .2s, background-color .2s, color .2s;
}
.header-cta:hover { border-color: var(--amber); background: var(--amber-dim); color: var(--amber-bright); }
.scroll-progress {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright));
  pointer-events: none;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
}

/* Typografie-Bausteine */
.eyebrow { font: 500 .72rem/1.55 var(--mono); letter-spacing: .075em; text-transform: uppercase; }
.section-label { margin-bottom: .75rem; color: var(--amber); }
.section-label.dot { display: inline-flex; align-items: flex-start; gap: .55rem; }
.section-label.dot::before { content: ""; flex: none; width: .42rem; height: .42rem; margin-top: .36rem; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px var(--amber-dim); }
.hero-lede { max-width: 38rem; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  min-height: 3rem;
  max-width: 100%;
  padding: .7rem 1.05rem;
  border: 1px solid transparent;
  border-radius: .3rem;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.35;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.button > [aria-hidden] { flex: none; font-weight: 500; transition: transform .22s var(--ease-out); }
.button:hover > [aria-hidden] { transform: translateX(3px); }
.button-light { background: var(--ink); color: var(--bg); }
.button-light:hover { background: var(--amber); box-shadow: 0 8px 26px rgb(240 190 122 / 22%); }
.button-outline { background: rgb(255 255 255 / 2%); border-color: var(--line-strong); color: var(--ink); }
.button-outline:hover { border-color: var(--amber); background: var(--amber-dim); color: var(--ink); }
.button-sm { min-height: 2.35rem; padding: .42rem .85rem; font-size: .82rem; gap: .45rem; }

/* Hero (Startseite) */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 92% 88% at 62% 42%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 88% at 62% 42%, #000 35%, transparent 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 55% at 78% 38%, rgb(240 190 122 / 11%), transparent 70%),
    radial-gradient(ellipse 50% 60% at 8% 100%, rgb(150 207 164 / 5%), transparent 70%);
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.25rem);
  padding-block: clamp(2.6rem, 6vw, 5.5rem) clamp(2.6rem, 6vw, 5rem);
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.6rem, 7.2vw, 5.9rem);
  font-weight: 600;
  letter-spacing: -.068em;
  line-height: .97;
  text-wrap: balance;
}
.hero h1 span { display: block; margin-top: .06em; color: var(--ink-secondary); opacity: .72; }
.hero .hero-lede { margin-bottom: 1.9rem; }
.telemetry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: .4rem;
  background: rgb(255 255 255 / 2%);
  list-style: none;
}
.telemetry li { padding: .85rem 1rem; }
.telemetry li + li { border-left: 1px solid var(--line-soft); }
.telemetry strong { display: block; font: 500 clamp(1rem, 1.25vw, 1.18rem)/1.25 var(--mono); letter-spacing: -.03em; color: var(--amber-bright); }
.telemetry span { display: block; margin-top: .15rem; color: var(--muted); font-size: .76rem; line-height: 1.4; }

.hero-stage {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: .55rem;
  background: var(--surface);
  box-shadow: var(--card-edge), 0 40px 80px rgb(0 0 0 / 55%), 0 0 0 1px rgb(0 0 0 / 40%), 0 0 80px rgb(240 190 122 / 7%);
  overflow: hidden;
}
.stage-bar {
  position: relative;
  display: grid;
  min-height: 2.3rem;
  place-items: center;
  padding-inline: 3.4rem;
  border-bottom: 1px solid var(--line-soft);
  background: #0c0e12;
}
.stage-dots { position: absolute; left: .85rem; display: flex; gap: .3rem; }
.stage-dots i { width: .4rem; height: .4rem; border-radius: 50%; background: #3a3e48; }
.stage-dots i:first-child { background: var(--amber); }
.stage-path { color: var(--ink-secondary); font: 500 .7rem var(--mono); }
.stage-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line-soft); background: #0c0e12; }
.stage-tabs button {
  min-height: 2.75rem;
  padding: .45rem .5rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: 500 .74rem var(--mono);
  letter-spacing: .02em;
  transition: color .2s, border-color .2s, background-color .2s;
}
.stage-tabs button[aria-selected="true"] { border-bottom-color: var(--amber); background: var(--amber-dim); color: var(--amber-bright); }
.stage-tabs button:focus-visible { outline-offset: -4px; }
.stage-panel { margin: 0; }
.stage-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.stage-media img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.stage-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgb(7 7 9 / 78%)); pointer-events: none; }
.stage-pill {
  position: absolute;
  z-index: 1;
  left: .85rem;
  bottom: .75rem;
  padding: .26rem .62rem;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: rgb(7 7 9 / 76%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font: 500 .7rem var(--mono);
}
.stage-body {
  padding: .85rem .95rem .9rem;
  border-top: 1px solid var(--line-soft);
  background: #0c0e12;
}
.stage-body p { color: var(--ink-secondary); font-size: .85rem; line-height: 1.48; }
.stage-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem .9rem;
  margin-top: .7rem;
}
.stage-all { color: var(--amber); font-size: .8rem; font-weight: 650; }
.stage-all:focus-visible { text-decoration: underline; text-underline-offset: .22em; }

/* Seiten-Intro */
.page-intro { padding-block: clamp(2.6rem, 6.5vw, 5.2rem) clamp(2rem, 4vw, 3.2rem); }
.page-intro h1 {
  font-size: clamp(2.65rem, 7vw, 6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.07em;
  text-wrap: balance;
}
.page-intro .hero-lede { margin-top: 1rem; }

/* Sektionen */
.section { padding-block: clamp(2.6rem, 5.5vw, 5rem); border-top: 1px solid var(--line-soft); }
.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem 2rem;
  margin-bottom: clamp(1.6rem, 4vw, 3rem);
}
.section-heading h2, .contact h2 {
  font-size: clamp(2rem, 4.4vw, 3.9rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.section-heading > p { max-width: 30rem; color: var(--muted); }

/* Spotlight-Karten */
.spot {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: .5rem;
  background:
    radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgb(240 190 122 / 0%), transparent 45%),
    var(--card-bg);
  box-shadow: var(--card-edge), var(--card-shadow);
  transition: border-color .25s, translate 250ms var(--ease-out), box-shadow .25s;
}
.spot::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgb(240 190 122 / 55%), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.spot > * { position: relative; z-index: 1; }
.spot:is(:hover, :focus-within)::before { opacity: 1; }
.spot:is(:hover, :focus-within) { background:
    radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgb(240 190 122 / 8%), transparent 45%),
    var(--card-bg); }

/* Bento */
.bento { display: grid; gap: .9rem; }
.bento-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(1.2rem, 2.6vw, 2rem); overflow: hidden; }
.bento-card h3 { margin: .35rem 0 .55rem; font-size: clamp(1.3rem, 2.4vw, 1.85rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.12; text-wrap: balance; }
.bento-card > p { max-width: 44ch; color: var(--muted); font-size: .95rem; }
.bento-visual { margin-top: auto; padding-top: 1.5rem; }
.tag-mono { display: inline-block; color: var(--amber); }

.load-compare { display: grid; gap: .85rem; }
.load-row { display: grid; gap: .35rem; }
.load-row > span { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .75rem; color: var(--ink-secondary); font: 500 .74rem var(--mono); }
.load-row > span em { color: var(--muted); font-style: normal; }
.load-bar { display: flex; height: .7rem; gap: 2px; padding: 2px; border: 1px solid var(--line-soft); border-radius: 99px; background: rgb(255 255 255 / 3%); overflow: hidden; }
.load-bar i { display: block; height: 100%; border-radius: 99px; background: var(--muted); opacity: .45; }
.load-bar i.hl { background: linear-gradient(90deg, var(--amber), var(--amber-bright)); opacity: 1; }
.visual-note { margin-top: .75rem; color: var(--muted); font-size: .74rem; }

.devices { display: flex; align-items: flex-end; gap: 1rem; }
.dev-phone { width: 6.4rem; flex: none; padding: .5rem .4rem .6rem; border: 1px solid var(--line-strong); border-radius: 1rem; background: #0b0d11; }
.dev-phone::before { content: ""; display: block; width: 1.6rem; height: .22rem; margin: 0 auto .5rem; border-radius: 9px; background: var(--line-strong); }
.dev-desk { flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius: .4rem; background: #0b0d11; overflow: hidden; }
.dev-desk::before { content: ""; display: block; height: .95rem; border-bottom: 1px solid var(--line-soft); background: #0e1015; }
.dev-body { display: grid; gap: .35rem; padding: .55rem; }
.dev-line { display: block; height: .38rem; border-radius: 9px; background: rgb(255 255 255 / 9%); }
.dev-line.w60 { width: 60%; }
.dev-line.w80 { width: 80%; }
.dev-line.h { height: .7rem; background: rgb(255 255 255 / 20%); width: 70%; }
.dev-actions { display: flex; gap: .3rem; margin-top: .25rem; }
.dev-actions i { flex: 1; height: 1.1rem; border-radius: .25rem; background: rgb(255 255 255 / 8%); border: 1px solid var(--line-soft); }
.dev-actions i:first-child { background: var(--amber); border-color: var(--amber); }

.steps-ui { display: grid; gap: .85rem; }
.steps-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.steps-track span { padding-top: .45rem; border-top: 2px solid var(--line-strong); color: var(--muted); font: 500 .7rem var(--mono); }
.steps-track span.on { border-top-color: var(--amber); color: var(--amber-bright); }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-row span { padding: .32rem .7rem; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--ink-secondary); font-size: .78rem; }
.chip-row span.on { border-color: var(--amber); background: var(--amber-dim); color: var(--amber-bright); }

.ledger-ui { display: grid; gap: 0; border: 1px solid var(--line-soft); border-radius: .4rem; overflow: hidden; }
.ledger-ui div { display: flex; justify-content: space-between; gap: .75rem; padding: .6rem .85rem; font-size: .84rem; }
.ledger-ui div + div { border-top: 1px solid var(--line-soft); }
.ledger-ui dt, .ledger-ui span:first-child { color: var(--ink-secondary); }
.ledger-ui .mono { color: var(--amber-bright); font-family: var(--mono); }

/* Prozess */
.process { display: grid; gap: .9rem; counter-reset: process; margin: 0; padding: 0; list-style: none; }
.process li { display: flex; flex-direction: column; min-width: 0; padding: clamp(1.2rem, 2.4vw, 1.75rem); }
.process-num { display: block; margin-bottom: 1.4rem; color: var(--amber); font: 500 .75rem var(--mono); letter-spacing: .12em; }
.process h3 { margin-bottom: .5rem; font-size: 1.35rem; font-weight: 650; letter-spacing: -.04em; }
.process p { color: var(--muted); font-size: .93rem; }
.process .result { margin-top: auto; padding-top: 1.25rem; }
.process .result span { display: inline-block; padding: .25rem .6rem; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--ink-secondary); font: 500 .72rem var(--mono); }

/* Referenzen */
.ref-grid { display: grid; gap: .9rem; }
.ref-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.ref-card:nth-child(1) { --accent: var(--amber); }
.ref-card:nth-child(2) { --accent: var(--green); }
.ref-card:nth-child(3) { --accent: var(--red); }
.ref-card:is(:hover, :focus-visible) { border-color: var(--accent); }
.ref-bar { display: flex; align-items: center; gap: .6rem; padding: .55rem .85rem; border-bottom: 1px solid var(--line-soft); background: #0c0e12; color: var(--muted); font: 500 .68rem var(--mono); }
.ref-bar i { width: .38rem; height: .38rem; border-radius: 50%; background: var(--accent); }
.ref-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.ref-media img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 450ms var(--ease-out); }
.ref-media::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgb(7 7 9 / 70%)); pointer-events: none; }
.ref-copy { display: flex; flex: 1; flex-direction: column; padding: clamp(1.1rem, 2.2vw, 1.55rem); }
.ref-copy .eyebrow { color: var(--accent); }
.ref-copy h3 { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin: .3rem 0 .4rem; font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 650; letter-spacing: -.045em; }
.ref-copy h3 span { color: var(--accent); font-size: 1rem; transition: transform .22s var(--ease-out); }
.ref-card:hover h3 span { transform: translate(2px, -2px); }
.ref-copy > p { color: var(--muted); font-size: .93rem; }
.ref-foot { margin-top: auto; padding-top: 1.15rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .75rem; }
.demo-tag { display: inline-block; padding: .24rem .55rem; border: 1px solid var(--line-strong); border-radius: .2rem; background: rgb(255 255 255 / 3%); color: var(--ink); font: 500 .72rem/1.3 var(--mono); }
.ref-open { color: var(--accent); font-size: .84rem; font-weight: 650; }

/* Tools-Showcase (Startseite) */
.tool-tiles { display: grid; gap: .75rem; }
.tool-tile { display: flex; flex-direction: column; min-width: 0; padding: 1.15rem 1.2rem 1.2rem; }
.tool-tile .badge { align-self: flex-start; padding: .22rem .55rem; border: 1px solid rgb(240 190 122 / 35%); border-radius: 99px; background: var(--amber-dim); color: var(--amber-bright); font: 500 .72rem var(--mono); }
.tool-tile h3 { margin: .85rem 0 .35rem; font-size: 1.12rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.25; }
.tool-tile p { color: var(--muted); font-size: .88rem; }
.tool-tile .go { margin-top: auto; padding-top: 1rem; color: var(--amber); font-size: .84rem; font-weight: 650; }
.tool-tile:hover .go { color: var(--amber-bright); }

/* Produkte / Extensions */
.product-grid { display: grid; gap: .9rem; }
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.2rem, 3.2vw, 2.4rem);
  border: 1px solid var(--line-soft);
  border-radius: .5rem;
  background: var(--card-bg);
  box-shadow: var(--card-edge), var(--card-shadow);
}
.product-card:is(:hover, :focus-within) { border-color: var(--amber); }
.product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; color: var(--muted); }
.platform-tag { padding: .2rem .55rem; border: 1px solid var(--line-strong); border-radius: 2rem; background: rgb(255 255 255 / 3%); color: var(--muted); font: 500 .69rem/1.4 var(--mono); }
.live-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .55rem; border: 1px solid #31533d; border-radius: 2rem; background: #18281f; color: #a9d8b6; font: 500 .69rem/1.4 var(--mono); }
.live-badge::before { content: ""; width: .36rem; height: .36rem; flex: none; border-radius: 50%; background: currentColor; }
.product-card h2, .product-card h3 { margin-block: 1.1rem .4rem; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.06em; font-weight: 600; }
.product-card > p { max-width: 52ch; color: var(--muted); }
.product-features { display: grid; gap: .55rem; margin: 1.2rem 0 1.55rem; padding: 1rem 0 0 1.25rem; border-top: 1px solid var(--line-soft); }
.product-features li::marker { color: var(--amber); }
.product-card .button { width: 100%; margin-top: auto; }
.ext-ui { margin: 1.4rem 0 0; border: 1px solid var(--line-strong); border-radius: .45rem; background: #0b0d11; overflow: hidden; }
.ext-ui-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .85rem; border-bottom: 1px solid var(--line-soft); background: #0e1015; color: var(--muted); font: 500 .68rem var(--mono); }
.ext-ui-head b { font-weight: 500; color: var(--amber-bright); }
.ext-ui ul { margin: 0; padding: .35rem .85rem .6rem; list-style: none; }
.ext-ui li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem 0; font-size: .84rem; color: var(--ink-secondary); }
.ext-ui li + li { border-top: 1px solid var(--line-soft); }
.ext-ui li em { flex: none; padding: .12rem .5rem; border-radius: 99px; background: rgb(150 207 164 / 12%); color: #a9d8b6; font: 500 .68rem var(--mono); font-style: normal; }
.ext-ui li em.warn { background: var(--amber-dim); color: var(--amber-bright); }
.ext-trust { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.ext-trust li { padding: .38rem .75rem; border: 1px solid var(--line-soft); border-radius: 99px; background: rgb(255 255 255 / 3%); color: var(--ink-secondary); font: 500 .76rem/1.35 var(--mono); }

/* Fokus-Karten (Fallback / alt) */
.focus-grid { display: grid; gap: .9rem; }
.focus-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border: 1px solid var(--line-soft);
  border-radius: .5rem;
  background: var(--card-bg);
  box-shadow: var(--card-edge), var(--card-shadow);
}
.focus-index { margin-bottom: .55rem; color: var(--amber); font: 500 .75rem/1 var(--mono); letter-spacing: .08em; }
.focus-card h3 { margin-bottom: .35rem; font-size: 1.12rem; font-weight: 650; letter-spacing: -.025em; }
.focus-card p { color: var(--muted); font-size: .93rem; }

/* Demos-Seite (Showcase) */
[data-showcase][data-active="sorella"], #sorella { --accent: var(--green); --secondary-accent: var(--terracotta); }
[data-showcase][data-active="apex"], #apex { --accent: var(--red); }
#nexus { --accent: var(--amber); }
.stage-panels:empty { display: none; }
.chapter-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: 1.1rem; }
.chapter-nav a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.65rem;
  padding: .4rem .85rem;
  border: 1px solid var(--line-soft);
  border-radius: .35rem;
  color: var(--muted);
  font: 500 .8rem var(--mono);
  transition: color .2s, border-color .2s, background-color .2s;
}
.chapter-nav a span { opacity: .75; }
.chapter-nav a:not([aria-current]):focus-visible { border-color: var(--line-strong); color: var(--ink); }
.chapter-nav a[aria-current] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, var(--bg)); color: var(--accent); }
section[data-showcase] { border-top: 0; padding-top: .5rem; }
.chapters { min-width: 0; }
.chapter { padding-block: 1.6rem 1.85rem; border-top: 1px solid var(--line-soft); }
.chapter:first-child { border-top: 0; padding-top: .5rem; }
.chapter:last-child { border-bottom: 1px solid var(--line-soft); }
.chapter-label { color: var(--accent); }
.chapter-label span { color: var(--secondary-accent, var(--accent)); }
.chapter h2 { margin-block: .6rem .65rem; font-size: clamp(1.8rem, 3.75vw, 3.6rem); font-weight: 600; line-height: 1.05; letter-spacing: -.06em; text-wrap: balance; }
.chapter-copy > p:last-child, .chapter-copy > p:not(.eyebrow) { max-width: 36ch; color: var(--muted); }
.preview { min-width: 0; margin-top: 1.2rem; }
.browser {
  position: relative;
  margin-bottom: .7rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-top-color: var(--secondary-accent, var(--accent));
  border-radius: .45rem;
  background: #17191d;
  box-shadow: 0 1.5rem 3.5rem #0008;
}
.browser-bar { position: relative; display: grid; min-height: 2.25rem; place-items: center; padding-inline: 3.3rem; border-bottom: 1px solid #282b30; background: #0c0e12; }
.browser-dots { position: absolute; left: .75rem; display: flex; gap: .24rem; }
.browser-dots i { width: .34rem; height: .34rem; border-radius: 50%; background: #5a5c61; }
.browser-dots i:first-child { background: var(--secondary-accent, var(--accent)); }
.browser-path { color: #d0d0d0; font: .67rem var(--mono); }
.browser-viewport { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.browser-viewport img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.browser-surface { position: absolute; inset: 0; }
.browser-viewport iframe { position: absolute; inset: 0 auto auto 0; display: block; width: 1280px; height: 800px; border: 0; pointer-events: none; transform: scale(var(--preview-scale, 0)); transform-origin: top left; }
.browser-viewport iframe:not(.is-loaded) { visibility: hidden; }
.button-demo { width: 100%; min-height: 3.2rem; background: var(--accent); color: #121316; font-size: .97rem; }
.button-demo:hover { background: color-mix(in srgb, var(--accent), #fff 20%); }
.chapter-highlights { display: grid; gap: .45rem; margin: 1.1rem 0 0; padding: .9rem 0 0 1.15rem; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .88rem; }
.chapter-highlights li::marker { color: var(--accent); }

/* Tools-Katalog */
.tool-dash { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.tool-dash li { padding: .38rem .75rem; border: 1px solid var(--line-soft); border-radius: 99px; background: rgb(255 255 255 / 3%); color: var(--ink-secondary); font: 500 .74rem/1.35 var(--mono); }
.tool-dash li::before { content: ""; display: inline-block; width: .35rem; height: .35rem; margin-right: .5rem; border-radius: 50%; background: var(--amber); vertical-align: middle; }
.tool-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
  width: fit-content;
  max-width: 100%;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
  padding: .3rem;
  border: 1px solid var(--line-soft);
  border-radius: .6rem;
  background: var(--bg-subtle);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
}
.tool-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .45rem .95rem;
  border: 1px solid transparent;
  border-radius: .4rem;
  background: transparent;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 650;
  text-align: left;
  transition: background-color .18s, border-color .18s, color .18s;
}
.tool-filter-btn span { padding: .05rem .4rem; border-radius: 99px; background: rgb(255 255 255 / 6%); font: 500 .72rem var(--mono); }
.tool-filter-btn:hover { color: var(--ink); background: rgb(255 255 255 / 4%); }
.tool-filter-btn[aria-pressed="true"] { border-color: rgb(240 190 122 / 45%); background: var(--amber-dim); color: var(--amber-bright); }
.tool-filter-btn[aria-pressed="true"] span { background: rgb(240 190 122 / 20%); }
.tool-category + .tool-category { margin-top: clamp(2rem, 4.5vw, 3.2rem); padding-top: clamp(1.75rem, 4vw, 2.75rem); border-top: 1px solid var(--line-soft); }
.tool-category-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.5rem; margin-bottom: 1.15rem; }
.tool-category-head h2 { font-size: clamp(1.45rem, 2.8vw, 2.15rem); font-weight: 600; letter-spacing: -.045em; }
.tool-category-head p { color: var(--muted); font-size: .92rem; }
.tools-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .95rem; align-items: stretch; }
.tool-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line-soft);
  border-radius: .5rem;
  background: var(--card-bg);
  box-shadow: var(--card-edge), var(--card-shadow);
}
.tool-card:is(:hover, :focus-visible) { border-color: var(--amber); }
.tool-card .product-meta .eyebrow { padding: .2rem .55rem; border: 1px solid rgb(240 190 122 / 30%); border-radius: 99px; background: var(--amber-dim); color: var(--amber-bright); }
.tool-card h3 { margin-block: 1rem .5rem; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.18; letter-spacing: -.038em; font-weight: 650; text-wrap: balance; }
.tool-card > p { margin-bottom: 1.35rem; color: var(--muted); font-size: .92rem; }
.tool-card .button { width: 100%; margin-top: auto; background: var(--amber); color: var(--bg); }
.tool-card:is(:hover, :focus-visible) .button { background: var(--ink); }

/* Weitere Rechner (Rechnerseiten) */
.related-tools { max-width: 51rem; margin: clamp(2.6rem, 6vw, 4.5rem) auto 0; padding-top: 1.75rem; border-top: 1px solid var(--line-soft); }
.related-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.25rem; margin-bottom: 1rem; }
.related-head h2 { margin-bottom: 0; font-size: clamp(1.3rem, 2.5vw, 1.75rem); letter-spacing: -.04em; }
.related-all { color: var(--amber); font-size: .88rem; font-weight: 650; }
.related-all:focus-visible { text-decoration: underline; text-underline-offset: .22em; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); gap: .65rem; }
.related-card { display: flex; flex-direction: column; gap: .18rem; padding: .82rem .95rem; border: 1px solid var(--line-soft); border-radius: .35rem; background: var(--surface); transition: border-color .18s, background-color .18s; }
.related-card:is(:hover, :focus-visible) { border-color: var(--amber); background: var(--surface-elevated); }
.related-card .eyebrow { color: var(--amber); font-size: .66rem; }
.related-card strong { font-size: .9rem; color: var(--ink); line-height: 1.3; }
.related-card small { font-size: .76rem; color: var(--muted); }

/* Kontakt */
.contact { display: grid; align-items: center; gap: 1.25rem 2rem; margin-top: clamp(1.6rem, 4.8vw, 4rem); padding: clamp(1.2rem, 4.2vw, 3.4rem); border: 1px solid var(--line-soft); border-radius: .5rem; background: radial-gradient(ellipse at top right, rgb(240 190 122 / 10%), transparent 62%), var(--surface); box-shadow: var(--card-edge); }
.contact h2 { margin-bottom: .65rem; }
.contact p { max-width: 45ch; color: var(--muted); }
.contact-panel { margin-top: 0; }
.contact.contact-panel {
  grid-template-columns: minmax(0, 1fr);
  align-content: space-between;
  gap: 1.75rem;
}
.contact-panel .contact-actions { align-self: start; width: 100%; }
.contact .contact-email { color: var(--ink); font: 500 clamp(1.05rem, 2.2vw, 1.5rem)/1.3 var(--mono); letter-spacing: -.02em; overflow-wrap: anywhere; }
.contact .copy-status { margin-top: .6rem; color: var(--amber); font-size: .85rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 1rem; align-items: stretch; }
.contact-help { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.2rem, 3vw, 2.2rem); border: 1px solid var(--line-soft); border-radius: .5rem; background: var(--card-bg); box-shadow: var(--card-edge); }
.contact-help h2 { margin-bottom: .75rem; font-size: clamp(1.35rem, 2.2vw, 1.85rem); letter-spacing: -.04em; }
.contact-help ul { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .93rem; }
.contact-help li { position: relative; padding-left: 1.35rem; }
.contact-help li::before { content: ""; position: absolute; left: 0; top: .55em; width: .5rem; height: 1px; background: var(--amber); }
.contact-help li::after { content: ""; position: absolute; left: 0; top: calc(.55em - 2px); width: 5px; height: 5px; border-radius: 50%; background: var(--amber); opacity: 0; }
.contact-note { margin-top: .5rem; font-size: .84rem; color: var(--muted); }
.contact-actions { align-self: center; }
.legal-details { display: grid; gap: 1.5rem; }
.legal-details section + section { border-top: 1px solid var(--line-soft); padding-top: 1.5rem; }
.legal-details h2 { margin-bottom: .45rem; font-size: clamp(1.15rem, 2.4vw, 1.55rem); letter-spacing: -.025em; }
.legal-details p, .legal-details address { max-width: 65ch; color: var(--muted); font-style: normal; overflow-wrap: anywhere; }
.legal-details a { text-decoration: underline; text-underline-offset: .18em; }
.legal-details a:hover { color: var(--ink); }

/* CTA-Panel */
.cta-panel { position: relative; display: grid; gap: 1.5rem 2rem; align-items: center; padding: clamp(1.4rem, 4.2vw, 3.6rem); border: 1px solid var(--line-strong); border-left: 3px solid var(--amber); border-radius: .5rem; background: radial-gradient(ellipse at top right, rgb(240 190 122 / 12%), transparent 60%), var(--surface); }
.cta-panel h2 { font-size: clamp(1.9rem, 4vw, 3.3rem); font-weight: 600; line-height: 1.04; letter-spacing: -.06em; text-wrap: balance; }
.cta-panel p { max-width: 46ch; margin-top: .75rem; color: var(--muted); }

/* Meridian Recruiting-System (Featured-Produkt-Karte) */
.recruiting-card {
  position: relative;
  display: grid;
  gap: 1.5rem 2.25rem;
  align-items: center;
  min-width: 0;
  padding: clamp(1.35rem, 3.8vw, 3rem);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--amber);
  border-radius: .5rem;
  background: radial-gradient(ellipse at top right, rgb(240 190 122 / 12%), transparent 58%), var(--card-bg);
  box-shadow: var(--card-edge), var(--card-shadow);
}
.recruiting-card:is(:hover, :focus-within) { border-color: var(--amber); }
.recruiting-body { min-width: 0; }
.recruiting-card h2 { margin-block: .95rem .55rem; font-size: clamp(1.85rem, 3.6vw, 3rem); font-weight: 600; line-height: 1.05; letter-spacing: -.055em; text-wrap: balance; }
.recruiting-lede { max-width: 56ch; color: var(--muted); font-size: .98rem; }
.recruiting-list { display: grid; gap: .5rem .9rem; margin: 1.2rem 0 0; padding: 1.05rem 0 0; border-top: 1px solid var(--line-soft); list-style: none; color: var(--ink-secondary); font-size: .92rem; }
.recruiting-list li { position: relative; padding-left: 1.25rem; min-width: 0; }
.recruiting-list li::before { content: ""; position: absolute; left: 0; top: .58em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--amber); }
.recruiting-price { display: inline-block; max-width: 100%; margin: 1.2rem 0 1.25rem; padding: .45rem .8rem; border: 1px solid rgb(240 190 122 / 35%); border-radius: .35rem; background: var(--amber-dim); color: var(--amber-bright); font: 500 .8rem/1.45 var(--mono); }
.recruiting-aside { min-width: 0; }
.recruiting-aside .ext-ui { margin-top: 0; }
@media (min-width: 37rem) {
  .recruiting-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 56rem) {
  .recruiting-card { grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr); }
}

/* Kontaktformular */
.contact-form-panel {
  margin-bottom: 1.25rem;
  padding: clamp(1.25rem, 3.6vw, 2.5rem);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--amber);
  border-radius: .5rem;
  background: radial-gradient(ellipse at top right, rgb(240 190 122 / 9%), transparent 60%), var(--card-bg);
  box-shadow: var(--card-edge), var(--card-shadow);
}
.contact-form-head { margin-bottom: 1.35rem; }
.contact-form-head h2 { margin-bottom: .4rem; font-size: clamp(1.4rem, 2.6vw, 2.05rem); letter-spacing: -.04em; }
.contact-form-head p { max-width: 56ch; color: var(--muted); font-size: .94rem; }
.contact-form { display: grid; gap: 1rem; }
.form-grid { display: grid; gap: .95rem; }
.form-field { display: flex; flex-direction: column; gap: .38rem; min-width: 0; }
.form-field label { font: 500 .78rem/1.3 var(--mono); letter-spacing: .04em; color: var(--ink-secondary); text-transform: uppercase; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  padding: .75rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: .35rem;
  background: var(--bg-subtle);
  color: var(--ink);
  font: inherit;
  font-size: .96rem;
  transition: border-color .18s, box-shadow .18s;
}
.form-field textarea { min-height: 7.5rem; resize: vertical; }
.form-field :is(input, select, textarea):focus-visible { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-dim); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem 1.25rem; }
.form-fallback { color: var(--muted); font-size: .84rem; }
.form-fallback a { color: var(--amber); text-decoration: underline; text-underline-offset: .2em; }
.form-status { margin-top: .25rem; padding: .75rem .95rem; border: 1px solid var(--line-strong); border-radius: .35rem; font-size: .92rem; }
.form-status.is-ok { border-color: #31533d; background: #18281f; color: #a9d8b6; }
.form-status.is-err { border-color: rgb(255 122 124 / 45%); background: rgb(255 122 124 / 10%); color: #ffb3b4; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
@media (min-width: 44rem) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-field-full { grid-column: 1 / -1; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); padding-block: 1.6rem 1.9rem; background: var(--bg); color: var(--muted); font-size: .87rem; }
.site-footer strong { color: var(--ink); font-weight: 650; }
.footer-inner, .footer-links, .footer-links nav { display: flex; flex-wrap: wrap; gap: .4rem 1.15rem; }
.footer-inner { justify-content: space-between; align-items: flex-start; }
.footer-links a { display: inline-flex; align-items: center; min-height: 1.75rem; }
.footer-links a:is([aria-current="page"], .active), .footer-links a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--ink); }
  .site-nav a:not([aria-current], .active):hover::after { transform: scaleX(1); }
  .footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }
  .chapter-nav a:not([aria-current]):hover { border-color: var(--line-strong); color: var(--ink); }
  .stage-tabs button:not([aria-selected="true"]):hover { color: var(--ink); }
  .stage-all:hover, .related-all:hover { text-decoration: underline; text-underline-offset: .22em; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .spot:hover, .tool-card:hover { translate: 0 -3px; }
  .ref-card:hover img, .browser-viewport:hover .browser-surface { transform: scale(1.035); }
}

@media (min-width: 37rem) {
  :root { --header-offset: 4.5rem; }
  .header-inner { flex-wrap: nowrap; }
  .header-end { width: auto; }
  .site-nav a { font-size: .93rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .focus-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 48rem) {
  .contact:not(.contact-panel), .cta-panel { grid-template-columns: 1fr auto; }
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .b-7 { grid-column: span 7; }
  .b-5 { grid-column: span 5; }
}
@media (min-width: 56rem) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); }
  .tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  .contact-grid { grid-template-columns: 1fr; }
  .stage-media, .ref-media, .ref-media img, .browser-viewport, .browser-viewport img { max-height: 260px; }
}
@media (max-width: 480px) {
  :root { --gutter: .875rem; }
  .header-inner { padding-block: .45rem .35rem; min-height: 0; gap: .1rem .75rem; }
  .wordmark { font-size: 1.14rem; }
  .header-end { width: 100%; min-width: 0; }
  .site-nav { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 0 .35rem; }
  .site-nav a { min-height: 2.35rem; font-size: clamp(.74rem, 3.25vw, .82rem); gap: .2rem; white-space: nowrap; }
}
@media (max-width: 36rem) {
  .eyebrow { font-size: .66rem; letter-spacing: .055em; }
  .telemetry { grid-template-columns: 1fr; }
  .telemetry li + li { border-left: 0; border-top: 1px solid var(--line-soft); }
  .telemetry li { display: flex; align-items: baseline; gap: .85rem; }
  .telemetry strong { flex: none; min-width: 6.8rem; font-size: .95rem; }
  .telemetry span { margin-top: 0; }
  .stage-tabs button { font-size: .66rem; padding-inline: .2rem; }
  .devices { flex-direction: column; align-items: stretch; }
  .dev-phone { width: 100%; max-width: 8rem; }
  .tool-filter-bar { width: 100%; }
  .tool-filter-btn { flex: 1 1 calc(50% - .3rem); justify-content: space-between; padding: .42rem .62rem; font-size: .77rem; gap: .3rem; }
  .tool-filter-btn span { padding: .04rem .32rem; font-size: .66rem; }
}

@media (min-width: 54rem) {
  .is-ready .showcase { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.45fr); align-items: start; gap: clamp(1.9rem, 5.4vw, 6.3rem); }
  .is-ready .stage { position: sticky; top: calc(var(--header-offset) + clamp(.75rem, 5vh, 2.75rem)); grid-area: 1 / 2; width: min(100%, max(16rem, calc((100svh - var(--header-offset) - 11rem) * 1.6))); }
  .is-ready .chapters { grid-area: 1 / 1; }
  .is-ready .chapter { display: flex; min-height: max(20rem, 68svh); align-items: center; padding-block: 2.25rem; }
  :where(.is-ready) .chapter-copy { opacity: .74; transition: opacity .2s; }
  :where(.is-ready .chapter.is-active) .chapter-copy { opacity: 1; }
  .stage .preview { margin-top: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .intro-motion :is(.hero, .page-intro) :is(h1, .hero-lede, .actions) { animation: intro-enter 340ms var(--ease-out) both; }
  .intro-motion :is(.hero, .page-intro) .hero-lede { animation-delay: 35ms; }
  .intro-motion :is(.hero, .page-intro) .actions { animation-delay: 70ms; }
  .intro-motion .hero-stage { animation: intro-enter 380ms var(--ease-out) 50ms both; }

  .reveal-pending { opacity: 0; transform: translateY(18px); }
  .reveal-enter { animation: section-enter 420ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms) both; }
  :is(.reveal-pending, .reveal-enter, .intro-motion :is(.hero, .page-intro) .actions):focus-within { animation: none; opacity: 1; transform: none; }

  ::view-transition-group(root), ::view-transition-group(page-main), ::view-transition-group(site-header),
  ::view-transition-old(root), ::view-transition-new(root), ::view-transition-new(site-header) { animation: none; }
  ::view-transition-old(root), ::view-transition-old(site-header) { display: none; }
  ::view-transition-image-pair(page-main) { isolation: auto; }
  ::view-transition-old(page-main), ::view-transition-new(page-main) { animation-duration: 420ms; animation-timing-function: var(--ease-out); animation-fill-mode: both; mix-blend-mode: normal; }
  ::view-transition-old(page-main) { animation-name: page-slide-out; }
  ::view-transition-new(page-main) { animation-name: page-slide-in; }
  ::view-transition-group(site-header) { z-index: 1; }
  ::view-transition-group(site-nav-marker) { z-index: 2; animation-duration: 420ms; animation-timing-function: var(--ease-out); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  ::view-transition { display: none; }
}

@keyframes intro-enter { from { opacity: 1; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes section-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes page-slide-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-56px); } }
@keyframes page-slide-in { from { opacity: 0; transform: translateX(56px); } to { opacity: 1; transform: translateX(0); } }
