/*
 * Spatial edition — first-party presentation layer.
 * The semantic document and every control remain usable without this file.
 */
:root {
  --void: #07090d;
  --void-soft: #0d1118;
  --void-panel: rgba(15, 19, 27, 0.84);
  --bone: #f2efe8;
  --bone-deep: #ded8cd;
  --spatial-ink: #11151c;
  --spatial-muted: #aab1be;
  --spatial-rule: rgba(232, 236, 244, 0.2);
  --electric: #315dff;
  --electric-bright: #7692ff;
  --human: #ffb04a;
  --danger: #ff765f;
  --spatial-serif: Iowan Old Style, Baskerville, Georgia, "Times New Roman", serif;
  --spatial-sans: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --spatial-mono: "SFMono-Regular", Menlo, Consolas, monospace;
  --header: 4.65rem;
  --content: 1500px;
  --gutter: clamp(1rem, 4vw, 4.75rem);
  --focus: 0 0 0 3px var(--void), 0 0 0 6px var(--human);
}

.no-js-status {
  color: #b9c1ce;
}

html {
  background: var(--void);
  color: var(--bone);
  scroll-behavior: auto;
  scrollbar-color: var(--electric) var(--void);
}

body {
  overflow-x: clip;
  background: var(--void);
  color: var(--bone);
  font-family: var(--spatial-sans);
}

.spatial-world {
  width: 100vw;
  height: 100vh;
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 700ms ease;
}

.spatial-ready .spatial-world {
  opacity: 1;
}

.spatial-noise {
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 84%);
  mask-image: linear-gradient(to bottom, #000, transparent 84%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  display: inline-flex;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  color: var(--bone);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 9, 13, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);
}

.nav-row {
  min-height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--spatial-serif);
  font-size: clamp(0.88rem, 1.05vw, 1.08rem);
  letter-spacing: -0.035em;
}

.brand img {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

.brand-name strong,
.footer-brand strong {
  font-weight: 650;
}

.desktop-nav {
  gap: clamp(0.8rem, 1.65vw, 1.7rem);
  font-family: var(--spatial-mono);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
}

.desktop-nav a {
  position: relative;
  opacity: 0.76;
  border: 0;
}

.desktop-nav a::after {
  width: 100%;
  height: 1px;
  position: absolute;
  bottom: 0.55rem;
  left: 0;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav a:is(:hover, :focus-visible, [aria-current="location"]) {
  opacity: 1;
}

.desktop-nav a:is(:hover, :focus-visible, [aria-current="location"])::after {
  transform: scaleX(1);
}

.desktop-nav .price-link {
  min-width: 4.15rem;
  justify-content: center;
  padding-inline: 0.85rem;
  color: #fff;
  background: var(--electric);
  opacity: 1;
}

.desktop-nav .price-link::after {
  display: none;
}

.page-progress {
  z-index: 90;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.page-progress span {
  background: linear-gradient(90deg, var(--electric), var(--human));
}

.hero-scroll {
  --hero-progress: 0;
  --copy-opacity: 1;
  --copy-exit: 0;
  --panel-takeover: 0;
  min-height: calc(1500svh - var(--header));
  border: 0;
  background:
    radial-gradient(circle at 73% 39%, rgba(49, 93, 255, 0.11), transparent 32rem),
    linear-gradient(180deg, rgba(7, 9, 13, 0.38), rgba(7, 9, 13, 0.94) 92%);
}

.hero-sticky {
  overflow: hidden;
  isolation: isolate;
  perspective: 1500px;
}

.pipeline-environment {
  position: absolute;
  z-index: 0;
  inset: 0 -2% 0 28%;
  opacity: calc(.13 + var(--hero-progress) * .35);
  transform: translate3d(calc((.5 - var(--hero-progress)) * 10vw), calc((.5 - var(--hero-progress)) * 3.5vh), 0) scale(calc(1.015 + var(--hero-progress) * .05));
  transform-origin: 68% 54%;
  will-change: transform, opacity;
}

.pipeline-environment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #07090d 0%, rgba(7,9,13,.86) 20%, rgba(7,9,13,.14) 67%, rgba(7,9,13,.48) 100%);
}

.pipeline-environment img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 66% center;
}

.hero-grid {
  position: relative;
  z-index: 2;
}

@media (min-width: 960px) {
  .hero-sticky.shell {
    width: 100%;
    max-width: none;
    padding-block: 0;
    padding-inline: clamp(1rem, 1.65vw, 1.5rem);
  }

  .stack-panel {
    width: 100%;
    justify-self: stretch;
  }
}

.hero-grid {
  grid-template-columns: minmax(27rem, 0.92fr) minmax(34rem, 1.08fr);
  gap: clamp(1rem, 3.2vw, 4.5rem);
}

.hero-copy {
  padding-block: 1rem;
  opacity: var(--copy-opacity);
  transform: translate3d(calc(var(--copy-exit) * -18vw), calc(var(--copy-exit) * -3vh), calc(var(--hero-progress) * 32px));
  will-change: transform, opacity;
}

.hero-copy:focus-within {
  opacity: 1;
  transform: none;
}

.hero-eyebrow,
.section-kicker {
  color: var(--electric-bright);
  font-family: var(--spatial-mono);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
}

h1,
h2,
.display {
  font-family: var(--spatial-serif);
  font-weight: 600;
}

h1 {
  max-width: 8.75ch;
  font-size: clamp(4.45rem, 7.3vw, 7.7rem);
  line-height: 0.81;
  letter-spacing: -0.068em;
}

.motion-ready .hero-title-line {
  overflow: visible;
}

.hero-title-line:nth-child(2) {
  color: #fff;
}

.hero-title-line:nth-child(3) {
  color: var(--electric-bright);
}

.hero-lead {
  max-width: 34rem;
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.hero-skill {
  max-width: 43rem;
  color: var(--human);
  font-weight: 700;
}

.hero-body {
  max-width: 40rem;
  color: #c6ccd6;
  font-size: clamp(0.95rem, 1.08vw, 1.08rem);
}

.button {
  min-height: 3.25rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: var(--bone);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--spatial-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button-primary {
  color: #fff;
  border-color: var(--electric);
  background: var(--electric);
  box-shadow: 0 1rem 3rem rgba(49, 93, 255, 0.23);
}

.button-secondary {
  color: var(--bone);
}

.button:is(:hover, :focus-visible) {
  transform: translateY(-2px);
}

.button-primary:is(:hover, :focus-visible) {
  background: #214de6;
}

.hero-status {
  color: #aab2c0;
  border-color: rgba(255, 255, 255, 0.17);
  font-family: var(--spatial-mono);
  font-size: 0.63rem;
  letter-spacing: 0.045em;
}

.hero-status li::before {
  color: var(--human);
}

.stack-panel {
  padding: clamp(0.35rem, 0.65vw, 0.65rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.7rem;
  background: rgba(8, 11, 17, 0.24);
  box-shadow: 0 3rem 7rem rgba(0, 0, 0, 0.36);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translate3d(calc((.5 - var(--hero-progress)) * 3vw + var(--panel-takeover) * -12vw), calc((.5 - var(--hero-progress)) * 2vh), calc(var(--hero-progress) * 76px));
  transform-style: preserve-3d;
  will-change: transform;
}

.js.motion-ready .stack-panel {
  animation-name: spatial-panel-enter;
}

@keyframes spatial-panel-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.stack-stage {
  border-radius: 1.15rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 40%),
    rgba(10, 13, 19, 0.7);
}

.stack-stage::before {
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(118, 146, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 146, 255, 0.16) 1px, transparent 1px);
  background-size: 48px 48px;
}

.stack-stage .boundary-line {
  stroke: rgba(84, 126, 112, 0.92);
}

.stack-stage .process-line,
.stack-stage .process-tail {
  stroke: var(--electric-bright);
}

.stack-stage .checkpoint {
  fill: var(--void);
  stroke: var(--electric-bright);
}

.stack-layer picture {
  filter: none;
}

.hero-scroll[data-motion="scroll"] .motion-enabled .stack-layer {
  transition: none;
  backface-visibility: hidden;
}

.hero-scroll[data-motion="replay"] .motion-enabled .stack-layer {
  transition: transform 620ms cubic-bezier(0.22, 0.8, 0.22, 1);
}

.motion-enabled .layer-label {
  color: var(--bone);
  border-color: rgba(118, 146, 255, 0.58);
  background: rgba(7, 9, 13, 0.84);
}

.stack-layer {
  width: 96%;
}

.dynamic-stack {
  display: block;
  perspective: 1100px;
  transform-style: preserve-3d;
}

.static-stack {
  display: none;
}

.stack-layer {
  --layer-depth: 0px;
  width: 86%;
  height: clamp(150px, 31%, 220px);
  transform: translate(-50%, -50%) translate3d(var(--layer-x), var(--layer-y), var(--layer-depth)) rotateX(62deg) rotateZ(-1.8deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 22px 16px rgba(0,0,0,.34));
}

.stack-layer[data-layer="brief"] { --layer-depth: 85px; }
.stack-layer[data-layer="images"] { --layer-depth: 46px; }
.stack-layer[data-layer="voice"] { --layer-depth: 8px; }
.stack-layer[data-layer="edit"] { --layer-depth: -30px; }
.stack-layer[data-layer="approval"] { --layer-depth: -68px; }

.precision-surface {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(242,239,232,.58);
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), transparent 32%),
    linear-gradient(180deg, rgba(35,41,52,.96), rgba(11,14,20,.98));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), inset 0 -18px 38px rgba(0,0,0,.32);
}

.precision-surface::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  border-top: 1px solid rgba(118,151,255,.52);
  background: #080a0f;
  transform: translateY(100%) rotateX(-90deg);
  transform-origin: top;
}

.surface-index,
.precision-surface b {
  position: absolute;
  z-index: 3;
  color: #f2efe8;
  font-family: var(--spatial-mono);
  font-size: .68rem;
  letter-spacing: .13em;
}

.surface-index { top: 14%; left: 7%; color: #7697ff; }
.precision-surface b { right: 7%; bottom: 12%; font-weight: 700; }

.surface-brief i {
  position: absolute;
  left: 17%;
  right: 16%;
  height: 1px;
  background: rgba(242,239,232,.56);
}
.surface-brief i:nth-of-type(1) { top: 31%; }
.surface-brief i:nth-of-type(2) { top: 46%; right: 29%; }
.surface-brief i:nth-of-type(3) { top: 61%; right: 43%; }

.surface-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3%;
  padding: 18% 14% 15%;
}
.surface-images i { border: 1px solid rgba(242,239,232,.3); background: linear-gradient(145deg, rgba(118,151,255,.38), rgba(222,160,113,.12)); }

.surface-voice svg { position: absolute; inset: 24% 12% 22%; width: 76%; height: 54%; }
.surface-voice path { fill: none; stroke: #7697ff; stroke-width: 1.2; vector-effect: non-scaling-stroke; }

.surface-edit i {
  position: absolute;
  left: 13%;
  height: 11%;
  border-left: 2px solid #7697ff;
  background: rgba(242,239,232,.12);
}
.surface-edit i:nth-of-type(1) { top: 25%; width: 31%; }
.surface-edit i:nth-of-type(2) { top: 25%; left: 47%; width: 39%; background: rgba(118,151,255,.28); }
.surface-edit i:nth-of-type(3) { top: 43%; width: 47%; }
.surface-edit i:nth-of-type(4) { top: 43%; left: 63%; width: 23%; background: rgba(222,160,113,.26); border-color: #dea071; }
.surface-edit i:nth-of-type(5) { top: 61%; width: 73%; }

.surface-approval { border-color: rgba(222,160,113,.72); background: linear-gradient(155deg, rgba(242,239,232,.12), transparent 34%), #10141b; }
.approval-gate-line { position: absolute; top: 16%; bottom: 16%; left: 64%; width: 4px; background: #f2efe8; box-shadow: 14px 0 0 rgba(242,239,232,.16); }
.approval-result { position: absolute; top: 47%; left: 76%; width: 15px; height: 15px; background: #dea071; }
.surface-approval::before { content: ""; position: absolute; top: 52%; left: 18%; width: 45%; height: 3px; background: #7697ff; }

.stack-stage {
  --scene-scale: 1;
  --scene-y: 0px;
  --camera-x: 0px;
  --camera-yaw: 0deg;
  --camera-pitch: 0deg;
  transform: translate3d(calc(var(--shift-x) + var(--camera-x)), var(--scene-y), 0) rotateX(calc(var(--tilt-x) + var(--camera-pitch))) rotateY(calc(var(--tilt-y) + var(--camera-yaw))) scale(var(--scene-scale));
}

.boundary-svg {
  transform: scale(1.1, 1.035);
  transform-origin: center;
}

.process-line,
.process-tail {
  stroke-width: 3.5;
}

.checkpoint {
  stroke-width: 2.7;
}

.layer-label[data-label="brief"] { top: 20%; }
.layer-label[data-label="images"] { top: 35%; }
.layer-label[data-label="voice"] { top: 50%; }
.layer-label[data-label="edit"] { top: 65%; }
.layer-label[data-label="approval"] { top: 78%; }

.stack-layer img {
  filter: none;
  mix-blend-mode: normal;
}

.state-tag,
.fault-tag,
.lock-tag,
.output-tag,
.static-local-tag {
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--bone);
  background: rgba(8, 10, 15, 0.9);
  box-shadow: none;
  font-family: var(--spatial-mono);
}

.fault-tag {
  color: var(--danger);
  border-color: var(--danger);
}

.lock-tag,
.static-local-tag {
  color: var(--human);
  border-color: var(--human);
}

.scene-meta {
  color: #aab2c0;
  border-top-color: rgba(255, 255, 255, 0.14);
}

.scene-progress {
  font-family: var(--spatial-mono);
}

.static-state-note {
  color: #aab1be;
}

.chapter-rail {
  display: none !important;
}

.section {
  min-height: min(100svh, 68rem);
  display: grid;
  align-items: center;
  position: relative;
  padding-block: clamp(6.5rem, 11vw, 11rem);
  border: 0;
  background: rgba(7, 9, 13, 0.9);
}

.section::selection,
.section *::selection {
  color: #fff;
  background: var(--electric);
}

.section h2 {
  max-width: 13ch;
  color: #fff;
  font-size: clamp(3.25rem, 6.6vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.section .section-intro {
  max-width: 48rem;
  color: #c1c7d1;
  font-size: clamp(1.15rem, 1.65vw, 1.55rem);
  line-height: 1.38;
}

.section[data-chapter]::before {
  top: 1.5rem;
  right: 2vw;
  color: rgba(255, 255, 255, 0.055);
  font-family: var(--spatial-serif);
  font-size: clamp(8rem, 18vw, 19rem);
  font-weight: 400;
}

.section[data-chapter]::after {
  height: 1px;
  top: auto;
  right: var(--gutter);
  bottom: 0;
  left: var(--gutter);
  background: linear-gradient(90deg, var(--electric), transparent 42%);
  transform: scaleX(var(--chapter-local-progress, 0));
  transform-origin: left;
}

#eu-ai-act,
#layers,
#inside-book,
#faq {
  color: var(--spatial-ink);
  background: var(--bone);
}

#eu-ai-act h2,
#layers h2,
#inside-book h2,
#faq h2 {
  color: var(--spatial-ink);
}

#eu-ai-act .section-intro,
#layers .section-intro,
#inside-book .section-intro,
#faq .section-intro {
  color: #444b56;
}

#eu-ai-act .section-kicker,
#layers .section-kicker,
#inside-book .section-kicker,
#faq .section-kicker {
  color: #244cd6;
}

#eu-ai-act[data-chapter]::before,
#layers[data-chapter]::before,
#inside-book[data-chapter]::before,
#faq[data-chapter]::before {
  color: rgba(17, 21, 28, 0.055);
}

.intro-eu {
  gap: clamp(3rem, 7vw, 8rem);
}

.book-object {
  max-width: 16rem;
  transform: perspective(1000px) rotateY(8deg) rotateX(2deg);
  filter: drop-shadow(1.2rem 1.8rem 1.8rem rgba(17, 21, 28, 0.2));
}

.book-object img {
  border-radius: 0.2rem 0.75rem 0.75rem 0.2rem;
}

.book-object figcaption,
.late-bound,
.cost-foot,
.schematic-note {
  font-family: var(--spatial-mono);
  font-size: 0.7rem;
  line-height: 1.55;
}

.reading-sample {
  padding: clamp(1.5rem, 4vw, 4.5rem);
  border: 1px solid rgba(17, 21, 28, 0.28);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 1.2rem 1.2rem 0 rgba(49, 93, 255, 0.11);
}

.legal-status {
  border-color: rgba(17, 21, 28, 0.25);
  font-family: var(--spatial-mono);
}

.decision-path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 2rem 0 0;
  padding: 1px;
  list-style: none;
  background: rgba(17, 21, 28, 0.22);
}

.decision-path li {
  min-height: 11rem;
  display: grid;
  align-content: space-between;
  padding: 1rem;
  background: var(--bone);
}

.decision-path li:last-child {
  color: #fff;
  background: var(--spatial-ink);
}

.decision-path span,
.decision-path small {
  font-family: var(--spatial-mono);
  font-size: 0.65rem;
}

.decision-path span {
  color: var(--electric);
  text-transform: uppercase;
}

.decision-path li:last-child span {
  color: var(--human);
}

.cost-grid,
.layer-index,
.run-layout,
.failure-layout,
.tools-layout,
.structure-layout,
.fit-layout,
.offer-layout {
  gap: clamp(3rem, 8vw, 9rem);
}

.layer-list,
.run-steps,
.tool-lines,
.chapter-journey,
.fit-columns,
.faq-list {
  position: relative;
  z-index: 2;
}

.tool-line,
.run-steps li,
.failure-node,
.chapter-journey > div,
.fit-column,
.faq-list details {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(16, 20, 29, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

#first-run .run-steps span,
#recovery .failure-node span,
#local-tools .cost-foot,
#pipeline-notes time,
#pipeline-notes .note-meta,
#pipeline-notes .note-row p,
#pipeline-notes .approval-lab p,
#pipeline-notes .source-dossier,
#pipeline-notes .source-dossier p {
  color: #aab1be;
}

#local-tools .tool-line strong {
  color: var(--electric-bright);
}

.layer-list {
  counter-reset: layer;
}

.layer-list li {
  min-height: 6rem;
  align-items: center;
  border-color: rgba(17, 21, 28, 0.23);
  background: transparent;
  transition: padding 220ms ease, background 220ms ease;
}

.layer-list li:is(:hover, :focus-within) {
  padding-inline: 1rem;
  background: rgba(49, 93, 255, 0.08);
}

.roles,
#first-run,
#recovery,
#local-tools,
#telegram,
#fit,
#pipeline-notes,
#offer {
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.97) 0 42%, rgba(7, 9, 13, 0.64) 72%, rgba(7, 9, 13, 0.82)),
    transparent;
}

.role-column,
.approval-lab,
.checkout-gate {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(14, 18, 26, 0.82);
  box-shadow: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.role-column:first-child {
  border-top: 3px solid var(--human);
}

.role-column:nth-child(2) {
  border-top: 3px solid var(--electric-bright);
}

.role-boundary {
  color: var(--human);
  border-color: var(--human);
  background: transparent;
  font-family: var(--spatial-mono);
}

.local-result {
  border-color: rgba(255, 255, 255, 0.23);
  background: rgba(7, 9, 13, 0.72);
}

.local-result span:last-child {
  color: var(--human);
}

.run-steps {
  counter-reset: run;
}

.run-steps li {
  border-left: 2px solid var(--electric);
}

.run-steps em {
  color: var(--human);
  font-family: var(--spatial-mono);
}

.failure-rail::before,
.failure-rail::after {
  background: var(--electric);
}

.failure-node.problem {
  border-color: var(--danger);
  color: var(--bone);
  background: rgba(255, 118, 95, 0.13);
}

.tool-line small {
  color: var(--electric-bright);
  font-family: var(--spatial-mono);
}

#telegram {
  min-height: 132svh;
}

#telegram > .shell > h2 {
  max-width: 17ch;
  margin-bottom: 1rem;
  font-size: clamp(3.8rem, 6.4vw, 6.7rem);
}

.telegram-grid {
  gap: clamp(2rem, 5vw, 5rem);
}

@media (min-width: 960px) {
  #telegram {
    min-height: 126svh;
    padding-top: clamp(3.2rem, 7vh, 5.4rem);
  }

  #telegram > .shell {
    min-height: calc(100svh - var(--header));
    position: relative;
    padding-top: clamp(1.5rem, 3.5vh, 3rem);
  }

  #telegram > .shell > h2 {
    width: min(9.5ch, 43vw);
    max-width: none;
    margin-bottom: 1.2rem;
    font-size: clamp(4.2rem, 5.45vw, 5.75rem);
    line-height: 0.88;
  }

  #telegram > .shell > .section-intro {
    max-width: min(38rem, 43vw);
    color: #bdc5d1;
    font-size: clamp(0.9rem, 1vw, 1.02rem);
  }

  .telegram-grid {
    width: min(51vw, 750px);
    display: grid;
    grid-template-columns: minmax(13rem, 0.85fr) minmax(14rem, 0.8fr);
    gap: 0.85rem 1rem;
    position: absolute;
    top: clamp(1rem, 2.5vh, 2rem);
    right: var(--gutter);
    align-items: start;
    margin: 0;
  }

  .telegram-grid .local-mini-stack {
    width: 100%;
    min-height: 16.5rem;
    grid-column: 1;
    grid-row: 1;
    justify-self: stretch;
  }

  .telegram-grid .local-mini-stack img {
    width: 88%;
  }

  .telegram-grid .phone {
    width: min(100%, 17.4rem);
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: center;
    margin: 0;
    padding: 0.5rem;
    border-width: 2px;
    border-radius: 1.75rem;
  }

  .telegram-grid .phone::before {
    width: 3.2rem;
    height: 0.32rem;
    margin-bottom: 0.45rem;
  }

  .telegram-grid .phone-screen {
    border-radius: 1.35rem;
  }

  .telegram-grid .phone-label {
    padding: 0.48rem 0.6rem;
    font-size: 0.56rem;
  }

  .telegram-grid .private-preview {
    min-height: 5.25rem;
    padding: 0.65rem;
  }

  .telegram-grid .qa-plain {
    padding: 0.55rem 0.65rem;
    font-size: 0.68rem;
  }

  .telegram-grid .phone-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
    padding: 0.55rem;
  }

  .telegram-grid .phone-actions button {
    min-height: 2.6rem;
    padding: 0.4rem 0.5rem;
    font-size: 0.69rem;
  }

  .telegram-grid .phone-status {
    min-height: 2.9rem;
    padding: 0.55rem 0.65rem;
    font-size: 0.65rem;
  }

  .telegram-grid > div:last-child {
    grid-column: 1;
    grid-row: 2;
  }

  .telegram-grid .trust-path {
    gap: 0.32rem;
  }

  .telegram-grid .trust-path::before {
    top: 1.45rem;
    bottom: 4.8rem;
    left: 1.45rem;
  }

  .telegram-grid .trust-node {
    min-height: 2.7rem;
    grid-template-columns: 2.05rem 1fr;
    gap: 0.55rem;
    padding: 0.42rem 0.5rem;
  }

  .telegram-grid .trust-node b {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.58rem;
  }

  .telegram-grid .trust-node strong {
    font-size: 0.75rem;
  }

  .telegram-grid .trust-node span {
    font-size: 0.64rem;
  }

  .telegram-grid .trust-arrow {
    height: 0.45rem;
    margin-left: 1.42rem;
  }

  .telegram-grid .shim-boundary {
    padding: 0.5rem;
    font-size: 0.65rem;
  }

  .telegram-grid .schematic-note {
    margin-top: 0.45rem;
    font-size: 0.62rem;
  }
}

.local-mini-stack {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.5rem;
  background: rgba(13, 17, 24, 0.75);
}

.mini-stack-plates {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.mini-stack-plates picture {
  width: 92%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mini-stack-plates picture:nth-child(1) { transform: translate(-50%, calc(-50% - 4.2rem)); }
.mini-stack-plates picture:nth-child(2) { transform: translate(-50%, calc(-50% - 2.1rem)); }
.mini-stack-plates picture:nth-child(3) { transform: translate(-50%, -50%); }
.mini-stack-plates picture:nth-child(4) { transform: translate(-50%, calc(-50% + 2.1rem)); }
.mini-stack-plates picture:nth-child(5) { transform: translate(-50%, calc(-50% + 4.2rem)); }

.mini-stack-plates img {
  width: 100%;
  display: block;
}

.phone {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 2.2rem;
  background: #030407;
  box-shadow: 0 2.5rem 6rem rgba(0, 0, 0, 0.45), 0 0 0 0.45rem rgba(255, 255, 255, 0.045);
}

.phone-screen {
  border-radius: 1.65rem;
  background: linear-gradient(160deg, #121722, #080b10 78%);
}

.phone-label,
.phone-status,
.trust-node span,
.shim-boundary,
.schematic-note {
  color: #aeb6c4;
}

.private-preview {
  border-color: rgba(118, 146, 255, 0.35);
  background: rgba(49, 93, 255, 0.12);
}

.private-preview strong {
  color: #dfe6ff;
}

.private-preview span,
.qa-plain {
  color: #d7dce5;
}

.qa-plain li::before {
  color: #7fc4ad;
}

.phone-actions button {
  min-height: 3rem;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--bone);
  background: rgba(255, 255, 255, 0.035);
}

.phone-actions button[data-phone-action="release"] {
  color: var(--human);
  border-color: rgba(255, 176, 74, 0.5);
}

.trust-node {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(13, 17, 24, 0.88);
}

.trust-node > b {
  color: #fff;
  background: var(--electric);
}

.trust-arrow {
  background: var(--electric-bright);
}

.shim-boundary {
  border-color: var(--human);
  background: rgba(255, 176, 74, 0.08);
}

.chapter-journey > div,
.chapter-highlight,
#faq details {
  color: var(--spatial-ink);
  border-color: rgba(17, 21, 28, 0.24);
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.chapter-highlight {
  color: #fff;
  background: var(--spatial-ink);
  box-shadow: 1rem 1rem 0 rgba(49, 93, 255, 0.2);
}

.notes-home {
  padding-bottom: clamp(7rem, 12vw, 13rem);
}

.notes-intro {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.notes-intro a,
.note-row a,
.source-list a,
.source-dossier a {
  text-decoration-color: var(--electric-bright);
}

.note-row {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(13, 17, 24, 0.55);
}

.draft-label {
  color: var(--human);
  border-color: var(--human);
  background: transparent;
}

.workflow {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.workflow-line {
  border-top-color: var(--electric);
}

.workflow-line li::before {
  border-color: var(--electric);
  background: var(--void);
}

.approval-proof {
  margin-top: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 11, 16, 0.68);
}

.approval-proof > summary {
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  color: var(--bone);
  font-family: var(--spatial-mono);
  font-weight: 700;
  list-style: none;
}

.approval-proof > summary::-webkit-details-marker {
  display: none;
}

.approval-proof > summary::after {
  content: "+";
  color: var(--human);
  font-size: 1.3rem;
}

.approval-proof[open] > summary::after {
  content: "−";
}

.approval-lab {
  margin-top: 0;
  border-width: 1px 0 0;
  background: rgba(14, 18, 26, 0.92);
}

.approval-lab textarea,
.source-dossier {
  color: var(--bone);
  border-color: rgba(255, 255, 255, 0.2);
  background: #080a0f;
}

.hash-output {
  color: var(--electric-bright);
  background: #080a0f;
}

.button[aria-disabled="true"],
[data-publish-gate][aria-disabled="true"] {
  color: var(--human);
  border-color: var(--human);
}

.faq-list details {
  border-bottom: 1px solid rgba(17, 21, 28, 0.25);
}

.faq-list summary {
  color: var(--spatial-ink);
}

.offer {
  min-height: 88svh;
  background:
    radial-gradient(circle at 76% 50%, rgba(49, 93, 255, 0.22), transparent 26rem),
    rgba(7, 9, 13, 0.92);
}

.offer-price {
  color: var(--human);
  font-family: var(--spatial-mono);
}

.offer-value {
  max-width: 39rem;
  color: #c9ced8;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.offer-rules {
  color: #aeb6c4;
}

.checkout-gate {
  border-top: 3px solid var(--human);
}

.site-footer {
  color: #9fa7b5;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #05070a;
}

.footer-brand {
  color: var(--bone);
  font-family: var(--spatial-serif);
}

.footer-brand img {
  width: 32px;
  height: 32px;
}

.chapter-rail {
  z-index: 60;
  color: var(--bone);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(7, 9, 13, 0.76);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.chapter-rail-track {
  background: rgba(255, 255, 255, 0.14);
}

.chapter-rail-track i {
  background: var(--electric);
}

@media (hover: hover) and (pointer: fine) {
  .note-row,
  .role-column,
  .run-steps li,
  .trust-node {
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
  }

  .note-row:hover,
  .role-column:hover,
  .run-steps li:hover,
  .trust-node:hover {
    border-color: rgba(118, 146, 255, 0.55);
    transform: translateY(-4px);
  }
}

@media (min-width: 1181px) {
  .hero-grid {
    grid-template-columns: minmax(29rem, 0.65fr) minmax(40rem, 1.35fr);
    gap: clamp(0.65rem, 1vw, 1rem);
  }

  .stack-layer {
    width: 87%;
  }

  .stack-stage {
    width: 100%;
    max-width: none;
    min-height: min(74svh, 680px);
  }
}

@media (min-width: 960px) and (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(23.5rem, 0.7fr) minmax(34rem, 1.3fr);
    gap: clamp(0.55rem, 0.9vw, 0.8rem);
  }

  .stack-stage {
    width: 100%;
    max-width: none;
    min-height: min(74svh, 680px);
  }

  .decision-path {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 959px) {
  :root {
    --header: 4.15rem;
  }

  .spatial-world,
  .spatial-noise {
    display: none;
  }

  .site-header {
    background: rgba(7, 9, 13, 0.94);
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu summary {
    color: var(--bone);
    border-color: rgba(255, 255, 255, 0.35);
    background: transparent;
  }

  .mobile-menu nav {
    color: var(--bone);
    border-color: rgba(255, 255, 255, 0.22);
    background: #0c1017;
    box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.45);
  }

  .mobile-menu nav a {
    border-color: rgba(255, 255, 255, 0.16);
  }

  .hero-scroll {
    min-height: auto;
  }

  .hero-sticky {
    min-height: auto;
    position: relative;
    top: auto;
    padding-block: 2.4rem 5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-copy::before,
  .hero-copy::after {
    display: none;
  }

  h1 {
    max-width: 8.75ch;
    font-size: clamp(3.25rem, 15.5vw, 6rem);
  }

  .hero-body {
    max-width: 38rem;
  }

  .stack-panel {
    margin-top: 1.25rem;
  }

  .stack-stage {
    min-height: min(110vw, 500px);
  }

  .dynamic-stack {
    display: block !important;
  }

  .static-stack {
    display: none !important;
  }

  .stack-layer {
    width: 96%;
    transition: none !important;
  }

  .stack-layer[data-layer="brief"] { --layer-y: -112px; }
  .stack-layer[data-layer="images"] { --layer-y: -56px; }
  .stack-layer[data-layer="voice"] { --layer-y: 0px; }
  .stack-layer[data-layer="edit"] { --layer-y: 56px; }
  .stack-layer[data-layer="approval"] { --layer-y: 102px; }

  .layer-label {
    opacity: 1;
  }

  .section {
    min-height: 0;
    padding-block: clamp(5.25rem, 18vw, 8rem);
  }

  .section h2,
  #telegram > .shell > h2 {
    font-size: clamp(3rem, 13vw, 5.2rem);
  }

  .roles,
  #first-run,
  #recovery,
  #local-tools,
  #telegram,
  #fit,
  #pipeline-notes,
  #offer {
    background: rgba(7, 9, 13, 0.98);
  }

  #telegram {
    min-height: 0;
  }

  .phone {
    justify-self: center;
    margin-right: 0;
  }

  .book-object {
    transform: none;
  }
}

/* Final five-stage surfaces and the destination beyond human approval. */
.brief-fields {
  position: absolute;
  inset: 24% 13% 28%;
}

.surface-brief .brief-fields i {
  width: auto;
  height: 1px;
  position: absolute;
  right: 0;
  left: 0;
  background: linear-gradient(90deg, rgba(242,239,232,.78) 0 22%, rgba(242,239,232,.2) 22% 100%);
}

.surface-brief .brief-fields i::after {
  width: 6px;
  height: 6px;
  position: absolute;
  top: -3px;
  right: 0;
  border: 1px solid rgba(118,151,255,.78);
  content: "";
}

.surface-brief .brief-fields i:nth-child(1) { top: 4%; }
.surface-brief .brief-fields i:nth-child(2) { top: 25%; right: 10%; }
.surface-brief .brief-fields i:nth-child(3) { top: 46%; }
.surface-brief .brief-fields i:nth-child(4) { top: 67%; right: 17%; }
.surface-brief .brief-fields i:nth-child(5) { top: 88%; }

.voice-lines {
  position: absolute;
  inset: 23% 10% 26%;
}

.surface-voice .voice-lines i {
  height: 10%;
  position: absolute;
  right: 0;
  left: 0;
  border-top: 1px solid rgba(242,239,232,.18);
  border-bottom: 1px solid rgba(118,151,255,.24);
  background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(242,239,232,.3) 3px 4px, transparent 4px 7px);
}

.surface-voice .voice-lines i:nth-child(1) { top: 0; }
.surface-voice .voice-lines i:nth-child(2) { top: 45%; opacity: .72; }
.surface-voice .voice-lines i:nth-child(3) { top: 90%; opacity: .48; }

.surface-voice svg {
  z-index: 2;
}

.edit-playhead {
  width: 1px;
  position: absolute;
  z-index: 3;
  top: 20%;
  bottom: 25%;
  left: 51%;
  background: #f2efe8;
  box-shadow: 0 -5px 0 2px #7697ff;
}

.edit-audio {
  height: 7%;
  position: absolute;
  right: 14%;
  bottom: 27%;
  left: 15%;
  border-top: 1px solid rgba(118,151,255,.4);
  border-bottom: 1px solid rgba(118,151,255,.2);
  background: repeating-linear-gradient(90deg, rgba(118,151,255,.22) 0 2px, transparent 2px 5px);
}

.approval-checks {
  position: absolute;
  top: 25%;
  right: 38%;
  left: 12%;
}

.surface-approval .approval-checks i {
  height: 1px;
  position: absolute;
  right: 0;
  left: 0;
  background: rgba(242,239,232,.42);
}

.surface-approval .approval-checks i::after {
  width: 7px;
  height: 7px;
  position: absolute;
  top: -4px;
  right: 0;
  border: 1px solid #7fc4ad;
  color: #7fc4ad;
  content: "✓";
  font: 7px/7px var(--spatial-mono);
  text-align: center;
}

.surface-approval .approval-checks i:nth-child(1) { top: 0; }
.surface-approval .approval-checks i:nth-child(2) { top: 26px; }
.surface-approval .approval-checks i:nth-child(3) { top: 52px; }

.publishing-wall {
  width: 25%;
  height: 50%;
  position: absolute;
  z-index: 2;
  top: 21%;
  right: -9%;
  border: 1px solid rgba(242,239,232,.26);
  background: linear-gradient(145deg, rgba(25,30,39,.94), rgba(5,7,11,.98));
  box-shadow: inset 10px 0 28px rgba(255,255,255,.025), 0 26px 44px rgba(0,0,0,.5);
  opacity: var(--release-display, 0);
  transform: translate3d(calc((1 - var(--release-display, 0)) * 48px), 0, -270px) rotateY(-8deg);
  transform-origin: left center;
  transform-style: preserve-3d;
}

.publishing-display {
  position: absolute;
  inset: 16% 10% 22%;
  border: 1px solid rgba(118,151,255,.5);
  background: #070a0f;
  box-shadow: inset 0 0 0 1px rgba(242,239,232,.04);
}

.publishing-format {
  position: absolute;
  top: 25%;
  border: 1px solid rgba(242,239,232,.54);
  background: linear-gradient(155deg, #1c2635, #0a0e15 72%);
}

.publishing-format i {
  position: absolute;
  right: 12%;
  bottom: 14%;
  left: 12%;
  border-top: 1px solid rgba(118,151,255,.55);
  content: "";
}

.publishing-format-wide { width: 34%; height: 31%; left: 8%; }
.publishing-format-wide::after {
  position: absolute;
  top: 34%;
  left: 42%;
  color: #f2efe8;
  content: "▶";
  font-size: clamp(.44rem, .65vw, .68rem);
}
.publishing-format-vertical { width: 19%; height: 43%; left: 48%; top: 19%; }
.publishing-format-square { width: 23%; height: 31%; right: 6%; }

.publishing-ready {
  position: absolute;
  right: 6%;
  bottom: 12%;
  left: 8%;
  color: #f2efe8;
  font: 700 clamp(.42rem, .5vw, .56rem)/1.25 var(--spatial-mono);
  letter-spacing: .08em;
  text-align: center;
}

.publishing-ready::before {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: .45rem;
  border-radius: 50%;
  background: #dea071;
  content: "";
}

.publishing-result {
  width: 14px;
  height: 24px;
  position: absolute;
  right: 12%;
  bottom: 7%;
  background: linear-gradient(90deg, #8e4d22, #f1a261 52%, #7b3515);
  box-shadow: 0 0 0 1px rgba(255,184,114,.3), 0 7px 16px rgba(0,0,0,.65);
}

/* Telegram becomes a second spatial journey: local stack → review surface → guarded handoff. */
#telegram {
  --telegram-origin-x: 78%;
  --telegram-camera-x: 92px;
  --telegram-camera-y: 22px;
  --telegram-camera-z: -150px;
  --telegram-camera-yaw: -11deg;
  --telegram-stack-shift: 24px;
  --telegram-phone-z: -50px;
  --telegram-trust-shift: 46px;
  --telegram-trust-opacity: .32;
}

@media (min-width: 960px) {
  #telegram {
    min-height: 250svh;
    display: block;
    overflow: visible;
    padding: 0;
  }

  #telegram > .shell {
    min-height: calc(100svh - var(--header));
    position: sticky;
    top: var(--header);
    overflow: clip;
    padding-top: clamp(2rem, 5vh, 4rem);
    perspective: 1180px;
    perspective-origin: var(--telegram-origin-x) 51%;
    transform-style: preserve-3d;
  }

  #telegram > .shell::before,
  #telegram > .shell::after {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    content: "";
  }

  #telegram > .shell::before {
    width: 52%;
    inset: 4% -7% 2% auto;
    border: 1px solid rgba(242,239,232,.12);
    background: linear-gradient(145deg, rgba(24,30,40,.42), rgba(4,6,10,.1));
    transform: translateZ(-260px) rotateY(-9deg);
    transform-origin: left center;
  }

  #telegram > .shell::after {
    height: 32%;
    inset: auto -12% -8% 38%;
    border-top: 1px solid rgba(118,151,255,.24);
    background: linear-gradient(180deg, rgba(19,24,33,.08), rgba(3,5,9,.8));
    transform: translateZ(-90px) rotateX(72deg);
    transform-origin: center top;
  }

  .telegram-grid {
    transform: translate3d(var(--telegram-camera-x), var(--telegram-camera-y), var(--telegram-camera-z)) rotateY(var(--telegram-camera-yaw));
    transform-origin: 52% 48%;
    transform-style: preserve-3d;
    will-change: transform;
  }

  .telegram-grid .local-mini-stack {
    transform: translate3d(var(--telegram-stack-shift), 0, -90px) rotateY(7deg);
    transform-style: preserve-3d;
    will-change: transform;
  }

  .telegram-grid .phone {
    transform: translate3d(0, 0, var(--telegram-phone-z)) rotateY(-3deg);
    transform-style: preserve-3d;
    will-change: transform;
  }

  .telegram-grid > div:last-child {
    opacity: var(--telegram-trust-opacity);
    transform: translate3d(var(--telegram-trust-shift), 0, 24px) rotateY(-3deg);
    transform-style: preserve-3d;
    will-change: transform, opacity;
  }
}

html:not(.js) .dynamic-stack,
.reduced-motion-forced .dynamic-stack {
  display: none !important;
}

html:not(.js) .static-stack,
.reduced-motion-forced .static-stack {
  display: block !important;
}

html:not(.js) .publishing-wall,
.reduced-motion-forced .publishing-wall {
  --release-display: 1;
  opacity: 1;
  transform: translate3d(0, 0, -180px) rotateY(-6deg);
}

html:not(.js) #telegram,
.reduced-motion-forced #telegram {
  min-height: auto;
}

html:not(.js) #telegram > .shell,
.reduced-motion-forced #telegram > .shell {
  min-height: auto;
  position: relative;
  top: auto;
}

html:not(.js) .telegram-grid,
html:not(.js) .telegram-grid .local-mini-stack,
html:not(.js) .telegram-grid .phone,
html:not(.js) .telegram-grid > div:last-child,
.reduced-motion-forced .telegram-grid,
.reduced-motion-forced .telegram-grid .local-mini-stack,
.reduced-motion-forced .telegram-grid .phone,
.reduced-motion-forced .telegram-grid > div:last-child {
  opacity: 1;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .dynamic-stack { display: none !important; }
  .static-stack { display: block !important; }
  .publishing-wall {
    opacity: 1;
    transform: translate3d(0, 0, -180px) rotateY(-6deg);
  }
  #telegram { min-height: auto; }
  #telegram > .shell {
    min-height: auto;
    position: relative;
    top: auto;
  }
  .telegram-grid,
  .telegram-grid .local-mini-stack,
  .telegram-grid .phone,
  .telegram-grid > div:last-child {
    opacity: 1;
    transform: none !important;
  }
}

@media (max-width: 959px) {
  .publishing-wall { display: none; }
  #telegram { min-height: 0; }
  .telegram-grid,
  .telegram-grid .local-mini-stack,
  .telegram-grid .phone,
  .telegram-grid > div:last-child {
    opacity: 1;
    transform: none !important;
    will-change: auto;
  }
}

@media (min-width: 960px) and (max-height: 760px) {
  .hero-sticky {
    padding-block: 0.45rem;
  }

  h1 {
    margin-bottom: 0.55rem;
    font-size: clamp(3.25rem, 5.8vw, 5.35rem);
  }

  .hero-eyebrow,
  .hero-lead,
  .hero-skill,
  .hero-body {
    margin-bottom: 0.55rem;
  }

  .hero-lead {
    font-size: clamp(1.15rem, 1.55vw, 1.45rem);
  }

  .hero-body {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .button {
    min-height: 2.8rem;
  }

  .hero-status {
    margin-top: 0.55rem;
    font-size: 0.58rem;
  }

  .stack-stage {
    min-height: min(510px, calc(100svh - var(--header) - 4.5rem));
  }

  .stack-layer {
    width: 82%;
  }

  .static-stack {
    min-height: inherit;
  }
}

@media (max-width: 640px) {
  .hero-sticky {
    padding-top: 1.8rem;
  }

  .hero-eyebrow {
    margin-bottom: 0.8rem;
  }

  .hero-lead {
    font-size: 1.3rem;
  }

  .hero-skill {
    font-size: 0.92rem;
  }

  .cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cta-row .button {
    width: 100%;
    justify-content: space-between;
  }

  .hero-status {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .stack-panel {
    padding: 0.35rem;
    border-radius: 1.15rem;
  }

  .stack-stage {
    border-radius: 0.85rem;
  }

  .section[data-chapter]::before {
    top: 0.6rem;
    right: 0.1rem;
    font-size: 7rem;
  }

  .decision-path {
    grid-template-columns: 1fr;
  }

  .decision-path li {
    min-height: 8rem;
  }

  .approval-proof > summary {
    align-items: flex-start;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 3rem;
  }

  .hero-lead {
    font-size: 1.14rem;
  }

  .section h2,
  #telegram > .shell > h2 {
    font-size: 2.7rem;
  }
}

@media (max-width: 360px) and (max-height: 600px) {
  .hero-body {
    order: 6;
  }

  .hero-status {
    order: 5;
    margin-top: 0.35rem;
    font-size: 0.56rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spatial-world,
  .spatial-noise {
    display: none !important;
  }

  .hero-scroll {
    min-height: auto !important;
  }

  .hero-sticky {
    min-height: auto !important;
    position: relative !important;
    top: auto !important;
  }

  .button,
  .note-row,
  .role-column,
  .run-steps li,
  .trust-node {
    transition: none !important;
    transform: none !important;
  }

  .desktop-nav a::after {
    transition: none !important;
    transform: scaleX(0) !important;
  }

  .desktop-nav a[aria-current="location"]::after {
    transform: scaleX(1) !important;
  }

  .dynamic-stack {
    display: block !important;
  }

  .static-stack {
    display: none !important;
  }

  .stack-stage {
    min-height: 680px;
  }

  .stack-layer[data-layer="brief"] { --layer-y: -180px; }
  .stack-layer[data-layer="images"] { --layer-y: -90px; }
  .stack-layer[data-layer="voice"] { --layer-y: 0px; }
  .stack-layer[data-layer="edit"] { --layer-y: 90px; }
  .stack-layer[data-layer="approval"] { --layer-y: 150px; }

  .layer-label { opacity: 1 !important; }

  .local-folder,
  .output-tag,
  .lock-tag {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
  }
}

.reduced-motion-forced .spatial-world,
.reduced-motion-forced .spatial-noise {
  display: none !important;
}

.reduced-motion-forced .hero-scroll {
  min-height: auto !important;
}

.reduced-motion-forced .hero-sticky {
  min-height: auto !important;
  position: relative !important;
  top: auto !important;
}

.reduced-motion-forced .button,
.reduced-motion-forced .note-row,
.reduced-motion-forced .role-column,
.reduced-motion-forced .run-steps li,
.reduced-motion-forced .trust-node {
  transition: none !important;
  transform: none !important;
}

.reduced-motion-forced .desktop-nav a::after {
  transition: none !important;
  transform: scaleX(0) !important;
}

.reduced-motion-forced .desktop-nav a[aria-current="location"]::after {
  transform: scaleX(1) !important;
}

.reduced-motion-forced .dynamic-stack {
  display: block !important;
}

.reduced-motion-forced .static-stack {
  display: none !important;
}

.reduced-motion-forced .stack-stage {
  min-height: 680px;
}

.reduced-motion-forced .stack-layer[data-layer="brief"] { --layer-y: -180px; }
.reduced-motion-forced .stack-layer[data-layer="images"] { --layer-y: -90px; }
.reduced-motion-forced .stack-layer[data-layer="voice"] { --layer-y: 0px; }
.reduced-motion-forced .stack-layer[data-layer="edit"] { --layer-y: 90px; }
.reduced-motion-forced .stack-layer[data-layer="approval"] { --layer-y: 150px; }
.reduced-motion-forced .layer-label { opacity: 1 !important; }

.reduced-motion-forced .local-folder,
.reduced-motion-forced .output-tag,
.reduced-motion-forced .lock-tag {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Immersive camera rig: one perspective root, five code-native architectural stages. */
.hero-scroll {
  --camera-origin-x: 52%;
  --camera-x: 72px;
  --camera-y: 18px;
  --camera-z: 0px;
  --camera-yaw: -4deg;
  --camera-pitch: 4deg;
}

.hero-sticky {
  overflow: clip;
  isolation: auto;
  perspective: 1320px;
  perspective-origin: var(--camera-origin-x) 52%;
  transform-style: preserve-3d;
}

.hero-grid {
  transform-style: preserve-3d;
}

.pipeline-scene {
  min-width: 0;
  min-height: min(78svh, 720px);
  position: relative;
  z-index: 1;
  transform:
    translate3d(var(--camera-x), var(--camera-y), var(--camera-z))
    rotateX(var(--camera-pitch))
    rotateY(var(--camera-yaw));
  transform-origin: 54% 52%;
  transform-style: preserve-3d;
  will-change: transform;
}

.pipeline-scene::before,
.pipeline-scene::after {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  content: "";
}

.pipeline-scene::before {
  width: 10%;
  inset: -4% auto -2% 1%;
  border-left: 1px solid rgba(242, 239, 232, .26);
  border-right: 1px solid rgba(118, 151, 255, .18);
  background: linear-gradient(90deg, rgba(4, 6, 10, .96), rgba(24, 29, 38, .48), rgba(4, 6, 10, .08));
  transform: translateZ(250px) rotateY(8deg);
  transform-origin: left center;
}

.pipeline-scene::after {
  height: 28%;
  inset: auto -16% -8% -8%;
  border-top: 1px solid rgba(242, 239, 232, .15);
  background:
    linear-gradient(90deg, transparent 10%, rgba(49, 93, 255, .09) 55%, rgba(222, 160, 113, .08) 100%),
    linear-gradient(180deg, rgba(14, 18, 25, .1), rgba(2, 4, 8, .88));
  transform: translateZ(-40px) rotateX(69deg);
  transform-origin: center top;
}

.pipeline-environment {
  z-index: 0;
  inset: -12% -20% -10% -18%;
  opacity: calc(.34 + var(--hero-progress) * .26);
  transform: translate3d(0, 0, -380px) scale(1.42);
  transform-origin: 66% 52%;
}

.pipeline-environment::after {
  background:
    linear-gradient(90deg, rgba(7, 9, 13, .98) 0%, rgba(7, 9, 13, .66) 21%, rgba(7, 9, 13, .08) 62%, rgba(7, 9, 13, .32) 100%),
    linear-gradient(180deg, rgba(7, 9, 13, .08), rgba(7, 9, 13, .54));
}

.pipeline-environment img {
  object-position: 63% center;
}

.stack-panel {
  position: absolute;
  z-index: 3;
  inset: 4% -8% 2% -5%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: translate3d(calc(var(--panel-takeover) * -2vw), 0, 70px);
  transform-style: preserve-3d;
}

.stack-stage {
  width: 100%;
  max-width: none;
  min-height: min(70svh, 650px);
  border-radius: 0;
  background: transparent;
  transform: none;
  transform-style: preserve-3d;
}

.stack-stage::before {
  opacity: .12;
  mask-image: linear-gradient(90deg, transparent, #000 20% 86%, transparent);
}

.dynamic-stack {
  isolation: auto;
  overflow: visible;
  perspective: none;
  transform-style: preserve-3d;
}

.boundary-svg {
  opacity: .58;
  transform: translateZ(-230px) scale(.94, .98);
  transform-origin: center;
}

.process-svg {
  transform: translateZ(205px);
  transform-origin: center;
}

.process-line {
  transform: scaleX(var(--path-progress, .3));
  transform-box: fill-box;
  transform-origin: left center;
}

.process-line,
.process-tail {
  stroke-width: 3;
}

.stack-layer {
  --fault-x: 0px;
  width: 17.5%;
  height: 67%;
  top: 48%;
  left: 50%;
  transform:
    translate(-50%, -50%)
    translate3d(calc(var(--layer-x) + var(--fault-x)), 0, var(--layer-depth))
    rotateY(-6deg);
  transform-origin: center bottom;
  transform-style: preserve-3d;
  filter: drop-shadow(0 28px 24px rgba(0, 0, 0, .44));
}

.stack-layer[data-layer="brief"] { --layer-x: -236px; --layer-depth: 160px; }
.stack-layer[data-layer="images"] { --layer-x: -118px; --layer-depth: 80px; }
.stack-layer[data-layer="voice"] { --layer-x: 0px; --layer-depth: 0px; }
.stack-layer[data-layer="edit"] { --layer-x: 118px; --layer-depth: -80px; }
.stack-layer[data-layer="approval"] { --layer-x: 236px; --layer-depth: -160px; }

.precision-surface {
  border-color: rgba(242, 239, 232, .5);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .09), transparent 24%),
    linear-gradient(180deg, rgba(29, 35, 45, .98), rgba(7, 10, 15, .99));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .025),
    inset 0 -40px 70px rgba(0, 0, 0, .35),
    0 0 0 1px rgba(0, 0, 0, .35);
}

.precision-surface::after {
  height: 12px;
}

.surface-index {
  top: 7%;
  left: 9%;
}

.precision-surface b {
  right: auto;
  bottom: 7%;
  left: 9%;
  font-size: clamp(.58rem, .7vw, .72rem);
  letter-spacing: .1em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.surface-images {
  grid-template-columns: repeat(2, 1fr);
  padding: 24% 18% 32%;
}

.surface-voice svg {
  inset: 32% 10% 26%;
  width: 80%;
  height: 42%;
}

.surface-edit i {
  left: 15%;
}

.surface-edit i:nth-of-type(2),
.surface-edit i:nth-of-type(4) {
  left: 52%;
}

.approval-gate-line {
  left: 52%;
}

.approval-result {
  top: 52%;
  left: 72%;
}

.surface-approval::before {
  top: 57%;
  left: 10%;
  width: 42%;
}

.layer-names {
  display: none;
}

.role-rails {
  display: none;
}

.local-folder {
  width: 13%;
  right: -1%;
  bottom: 5%;
  transform: translate3d(0, 18px, 230px) scale(.92);
}

.stack-stage[data-state="approved"] .local-folder,
.stack-stage[data-state="approved"] .output-tag {
  transform: translate3d(0, 0, 230px) scale(1);
}

.state-tag {
  top: 10%;
  left: 14%;
  max-width: 16rem;
  transform: translateZ(270px);
}

.fault-tag {
  top: 20%;
  right: 20%;
}

.lock-tag {
  right: 5%;
  bottom: 19%;
}

.output-tag {
  right: 0;
  bottom: 0;
  left: auto;
}

.scene-meta {
  position: absolute;
  z-index: 18;
  right: 0;
  bottom: -1%;
  left: 4%;
  margin: 0;
  border-color: rgba(242, 239, 232, .14);
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(19rem, .72fr) minmax(0, 1.28fr);
    gap: clamp(.5rem, 1.4vw, 1.4rem);
  }

  .hero-copy {
    padding-left: clamp(.5rem, 1.4vw, 1.4rem);
  }

  .hero-copy h1 {
    font-size: clamp(4.45rem, 6.75vw, 7.15rem);
  }

  .hero-lead {
    max-width: 27ch;
    font-size: clamp(1.28rem, 1.75vw, 1.72rem);
  }

  .hero-skill,
  .hero-body {
    max-width: 43ch;
  }

  .hero-status {
    display: grid;
    gap: .35rem;
  }

  .hero-status li::after {
    display: none;
  }
}

html:not(.js) .hero-scroll {
  min-height: auto !important;
}

html:not(.js) .hero-sticky {
  min-height: auto !important;
  position: relative !important;
  top: auto !important;
}

html:not(.js) .scene-meta {
  display: none;
}

html:not(.js) .dynamic-stack {
  display: block !important;
}

html:not(.js) .static-stack {
  display: none !important;
}

html:not(.js) .local-folder,
html:not(.js) .output-tag,
html:not(.js) .lock-tag {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

html:not(.js) .local-folder {
  width: 10%;
  right: 4%;
  bottom: 12%;
}

html:not(.js) .lock-tag {
  right: 12%;
  bottom: 21%;
}

html:not(.js) .output-tag {
  right: 4%;
  bottom: 8%;
}

.reduced-motion-forced .local-folder {
  width: 10%;
  right: 4%;
  bottom: 12%;
}

.reduced-motion-forced .lock-tag {
  right: 12%;
  bottom: 21%;
}

.reduced-motion-forced .output-tag {
  right: 4%;
  bottom: 8%;
}

html:not(.js) .pipeline-scene,
.reduced-motion-forced .pipeline-scene {
  --camera-x: 0px;
  --camera-y: 0px;
  --camera-z: 0px;
  --camera-yaw: 0deg;
  --camera-pitch: 0deg;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-sticky {
    padding-bottom: 2.5rem;
  }

  .pipeline-scene {
    transform: none !important;
  }

  .local-folder {
    width: 10%;
    right: 4%;
    bottom: 12%;
  }

  .lock-tag {
    right: 12%;
    bottom: 21%;
  }

  .output-tag {
    right: 4%;
    bottom: 8%;
  }
}

@keyframes state-label-enter {
  from { opacity: .25; transform: translate3d(0, -6px, 270px); }
  to { opacity: 1; transform: translate3d(0, 0, 270px); }
}

@media (max-width: 959px) {
  .pipeline-scene {
    min-height: min(118vw, 620px);
    transform: none;
  }

  .pipeline-scene::before,
  .pipeline-scene::after {
    display: none;
  }

  .pipeline-environment {
    inset: -8% -22% -5%;
    opacity: .22;
    transform: translateZ(-280px) scale(1.22);
  }

  .stack-panel {
    position: relative;
    inset: auto;
    transform: none;
  }

  .stack-stage {
    min-height: min(110vw, 500px);
  }

  .stack-layer {
    --fault-x: 0px;
    width: 96%;
    height: clamp(150px, 31%, 220px);
    top: 50%;
    transform: translate(-50%, -50%) translate3d(var(--layer-x), var(--layer-y), 0) rotateX(62deg) rotateZ(-1.8deg);
  }

  .stack-layer[data-layer="brief"],
  .stack-layer[data-layer="images"],
  .stack-layer[data-layer="voice"],
  .stack-layer[data-layer="edit"],
  .stack-layer[data-layer="approval"] {
    --layer-x: 0px;
    --layer-depth: 0px;
  }

  .precision-surface b {
    right: 7%;
    bottom: 12%;
    left: auto;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .process-svg {
    display: none;
  }

  .dynamic-stack::after {
    width: 3px;
    position: absolute;
    z-index: 8;
    top: 18%;
    bottom: 18%;
    left: 50%;
    border-radius: 99px;
    background: var(--electric-bright);
    content: "";
    transform: translateX(-50%);
  }

  .local-folder {
    width: 16%;
    right: 8%;
    transform: translateY(18px) scale(.94);
  }

  .stack-stage[data-state="approved"] .local-folder,
  .stack-stage[data-state="approved"] .output-tag {
    transform: translateY(0) scale(1);
  }

  .scene-meta {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: -.45rem;
  }
}

/* Final cascade lock for the scroll-driven Telegram camera. */
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  #telegram:not(.reduced-motion-forced) > .shell > .section-kicker,
  #telegram:not(.reduced-motion-forced) > .shell > h2,
  #telegram:not(.reduced-motion-forced) > .shell > .section-intro {
    opacity: var(--telegram-copy-opacity, 1);
    transform: translate3d(var(--telegram-copy-shift, 0), 0, 0);
    transition: none;
    will-change: transform, opacity;
  }

  #telegram:not(.reduced-motion-forced) .telegram-grid {
    transform: translate3d(var(--telegram-camera-x), var(--telegram-camera-y), var(--telegram-camera-z)) rotateY(var(--telegram-camera-yaw)) !important;
    transition: none !important;
  }

  #telegram:not(.reduced-motion-forced) .telegram-grid .local-mini-stack {
    transform: translate3d(var(--telegram-stack-shift), 0, -90px) rotateY(7deg) !important;
    transition: none !important;
  }

  #telegram:not(.reduced-motion-forced) .telegram-grid .phone {
    transform: translate3d(0, 0, var(--telegram-phone-z)) rotateY(-3deg) !important;
    transition: none !important;
  }

  #telegram:not(.reduced-motion-forced) .telegram-grid > div:last-child {
    opacity: var(--telegram-trust-opacity) !important;
    transform: translate3d(var(--telegram-trust-shift), 0, 24px) rotateY(-3deg) !important;
    transition: none !important;
  }
}

.telegram-flight-route {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 9;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.telegram-flight-line {
  fill: none;
  stroke: rgba(118,151,255,.7);
  stroke-width: 1.6;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--telegram-route-progress, 0));
  vector-effect: non-scaling-stroke;
}

.telegram-signal-plane path:first-child {
  fill: #315dff;
  stroke: #f2efe8;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.telegram-signal-plane path:last-child {
  fill: none;
  stroke: #f2efe8;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

/* Final non-motion contract: labelled raster overview, full Telegram schematic, no clipped content. */
html:not(.js) .dynamic-stack,
.reduced-motion-forced .dynamic-stack {
  display: none !important;
}

html:not(.js) .static-stack,
.reduced-motion-forced .static-stack {
  display: block !important;
}

html:not(.js) .publishing-wall,
.reduced-motion-forced .publishing-wall {
  opacity: 1 !important;
  transform: translate3d(0, 0, -180px) rotateY(-6deg) !important;
}

@media (min-width: 960px) {
  html:not(.js) #telegram,
  .reduced-motion-forced #telegram {
    min-height: 64rem !important;
    padding-bottom: 4rem;
  }

  html:not(.js) #telegram > .shell,
  .reduced-motion-forced #telegram > .shell {
    min-height: 56rem !important;
    overflow: visible !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dynamic-stack { display: none !important; }
  .static-stack { display: block !important; }
  .publishing-wall {
    opacity: 1 !important;
    transform: translate3d(0, 0, -180px) rotateY(-6deg) !important;
  }
  .telegram-flight-line { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) and (min-width: 960px) {
  #telegram {
    min-height: 64rem !important;
    padding-bottom: 4rem;
  }
  #telegram > .shell {
    min-height: 56rem !important;
    overflow: visible !important;
  }
}

/* Resolution-independent static Hero: the same five DOM/SVG stages, frozen without camera motion. */
html:not(.js) .dynamic-stack,
.reduced-motion-forced .dynamic-stack {
  display: block !important;
}

html:not(.js) .static-stack,
.reduced-motion-forced .static-stack {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .dynamic-stack { display: block !important; }
  .static-stack { display: none !important; }
}

/* Production-detail motifs inside the recovery architecture. */
#recovery .failure-node {
  position: relative;
  overflow: hidden;
}

#recovery .failure-node > strong,
#recovery .failure-node > span {
  position: relative;
  z-index: 3;
}

.recovery-motif {
  height: 44%;
  position: absolute;
  z-index: 2;
  top: 11%;
  right: 9%;
  left: 9%;
}

.motif-verified i,
.motif-fault i,
.motif-resume i {
  position: absolute;
  right: 0;
  left: 0;
}

.motif-verified i {
  height: 20%;
  border: 1px solid rgba(242,239,232,.16);
  background:
    linear-gradient(90deg, rgba(118,151,255,.36) 0 12%, transparent 12% 100%),
    linear-gradient(90deg, transparent 20%, rgba(242,239,232,.22) 20% 68%, transparent 68% 100%);
}

.motif-verified i::after {
  width: 10px;
  height: 10px;
  position: absolute;
  top: calc(50% - 5px);
  right: 5%;
  border: 1px solid #7fc4ad;
  color: #7fc4ad;
  content: "✓";
  font: 9px/10px var(--spatial-mono);
  text-align: center;
}

.motif-verified i:nth-child(1) { top: 0; }
.motif-verified i:nth-child(2) { top: 38%; }
.motif-verified i:nth-child(3) { top: 76%; }

.motif-fault {
  border-top: 1px solid rgba(255,118,95,.42);
  border-bottom: 1px solid rgba(242,239,232,.12);
  background: repeating-linear-gradient(90deg, transparent 0 9%, rgba(242,239,232,.08) 9% 9.5%);
}

.motif-fault i {
  height: 16%;
  left: 3%;
  border: 1px solid rgba(242,239,232,.16);
  background: rgba(118,151,255,.18);
}

.motif-fault i:nth-child(1) { top: 13%; right: 30%; }
.motif-fault i:nth-child(2) { top: 42%; left: 22%; right: 7%; background: rgba(222,160,113,.2); }
.motif-fault i:nth-child(3) { top: 71%; right: 17%; }

.motif-fault b {
  width: 2px;
  position: absolute;
  top: -4%;
  bottom: -4%;
  left: 61%;
  background: #ff765f;
  box-shadow: 0 -3px 0 3px #ff765f;
}

.motif-resume {
  border: 1px solid rgba(127,196,173,.22);
  background:
    linear-gradient(90deg, transparent 0 71%, rgba(127,196,173,.1) 71% 100%),
    repeating-linear-gradient(0deg, transparent 0 21%, rgba(242,239,232,.08) 21% 22%);
}

.motif-resume i {
  height: 12%;
  left: 7%;
  border-left: 3px solid #7697ff;
  background: linear-gradient(90deg, rgba(118,151,255,.2), transparent 84%);
}

.motif-resume i:nth-child(1) { top: 14%; right: 27%; }
.motif-resume i:nth-child(2) { top: 43%; right: 12%; }
.motif-resume i:nth-child(3) { top: 72%; right: 35%; }

.motif-resume b {
  width: 25px;
  height: 25px;
  position: absolute;
  top: calc(50% - 13px);
  right: 8%;
  border: 1px solid #7fc4ad;
  border-radius: 50%;
}

.motif-resume b::after {
  position: absolute;
  top: 3px;
  left: 6px;
  color: #7fc4ad;
  content: "✓";
  font: 15px/1 var(--spatial-mono);
}

/* Keep the production diagrams clear of longer DE labels on short desktop viewports. */
@media (min-width: 960px) and (max-height: 760px) {
  .recovery-motif {
    height: 29%;
    top: 8%;
  }
}

@media (max-width: 959px) {
  #recovery .failure-node {
    min-height: 16rem;
    align-content: end;
    gap: .65rem;
  }
}

@media (min-width: 960px) {
  html:not(.js) #recovery,
  .reduced-motion-forced #recovery {
    min-height: 0 !important;
    display: grid !important;
    overflow: clip !important;
    padding-block: clamp(7rem, 11vw, 11rem) !important;
  }

  html:not(.js) #recovery > .shell,
  .reduced-motion-forced #recovery > .shell {
    min-height: 0 !important;
    position: relative !important;
    top: auto !important;
    overflow: visible !important;
    padding-top: 0 !important;
    perspective: none !important;
  }

  html:not(.js) #recovery > .shell::before,
  html:not(.js) #recovery > .shell::after,
  .reduced-motion-forced #recovery > .shell::before,
  .reduced-motion-forced #recovery > .shell::after {
    display: none !important;
  }

  html:not(.js) #recovery .failure-layout > div:first-child,
  .reduced-motion-forced #recovery .failure-layout > div:first-child {
    width: auto !important;
    opacity: 1 !important;
    transform: none !important;
  }

  html:not(.js) #recovery .failure-rail,
  .reduced-motion-forced #recovery .failure-rail {
    width: auto !important;
    min-height: 0 !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin: 0 !important;
    transform: none !important;
  }

  html:not(.js) #recovery .failure-node,
  .reduced-motion-forced #recovery .failure-node {
    min-height: 17rem !important;
    align-content: end !important;
    gap: .65rem !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (min-width: 960px) and (prefers-reduced-motion: reduce) {
  #recovery .failure-node {
    min-height: 17rem !important;
    align-content: end !important;
    gap: .65rem !important;
  }
}

/* Recovery chamber: verified work stays fixed while one failed stage drops, repairs and returns. */
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  #recovery:not(.reduced-motion-forced) {
    --recovery-origin-x: 74%;
    --recovery-camera-x: 110px;
    --recovery-camera-z: -170px;
    --recovery-camera-yaw: -9deg;
    --recovery-copy-opacity: 1;
    --recovery-copy-shift: 0px;
    --recovery-fault-x: 0px;
    --recovery-fault-y: 0px;
    --recovery-fault-r: 0deg;
    --recovery-fault-z: 0px;
    --recovery-resume: 0;
    --recovery-resume-opacity: .38;
    --recovery-resume-x: 38px;
    --recovery-route-scale: .45;
    --recovery-result-left: 65%;
    min-height: 220svh;
    display: block;
    overflow: visible;
    padding: 0;
  }

  #recovery:not(.reduced-motion-forced) > .shell {
    min-height: calc(100svh - var(--header));
    position: sticky;
    top: var(--header);
    overflow: clip;
    padding-top: clamp(3rem, 8vh, 6rem);
    perspective: 1180px;
    perspective-origin: var(--recovery-origin-x) 52%;
    transform-style: preserve-3d;
  }

  #recovery:not(.reduced-motion-forced) > .shell::before,
  #recovery:not(.reduced-motion-forced) > .shell::after {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    content: "";
  }

  #recovery:not(.reduced-motion-forced) > .shell::before {
    width: 62%;
    inset: 4% -5% 7% auto;
    border: 1px solid rgba(242,239,232,.13);
    background: linear-gradient(145deg, rgba(24,30,40,.52), rgba(3,5,9,.1));
    transform: translateZ(-260px) rotateY(-8deg);
    transform-origin: left center;
  }

  #recovery:not(.reduced-motion-forced) > .shell::after {
    height: 33%;
    inset: auto -12% -9% 34%;
    border-top: 1px solid rgba(118,151,255,.2);
    background: linear-gradient(180deg, rgba(15,20,29,.08), rgba(2,4,8,.88));
    transform: translateZ(-80px) rotateX(72deg);
    transform-origin: center top;
  }

  #recovery:not(.reduced-motion-forced) .failure-layout > div:first-child {
    width: min(42vw, 38rem);
    position: relative;
    z-index: 4;
    opacity: var(--recovery-copy-opacity);
    transform: translate3d(var(--recovery-copy-shift), 0, 0);
    transition: none;
    will-change: transform, opacity;
  }

  #recovery:not(.reduced-motion-forced) .failure-rail {
    width: min(61vw, 910px);
    min-height: min(58svh, 520px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: clamp(.45rem, 1vw, .9rem);
    position: absolute;
    z-index: 3;
    top: 20%;
    right: clamp(1rem, 3vw, 3.5rem);
    align-items: center;
    margin: 0;
    transform: translate3d(var(--recovery-camera-x), 0, var(--recovery-camera-z)) rotateY(var(--recovery-camera-yaw));
    transform-origin: 50% 55%;
    transform-style: preserve-3d;
    will-change: transform;
  }

  #recovery:not(.reduced-motion-forced) .failure-rail::before {
    height: 2px;
    position: absolute;
    z-index: -1;
    top: 50%;
    right: 4%;
    left: 4%;
    background: linear-gradient(90deg, #315dff 0 67%, rgba(118,151,255,.3) 67% 100%);
    content: "";
    transform: scaleX(var(--recovery-route-scale));
    transform-origin: left center;
  }

  #recovery:not(.reduced-motion-forced) .failure-rail::after {
    width: 9px;
    height: 9px;
    position: absolute;
    z-index: 5;
    top: calc(50% - 4px);
    left: var(--recovery-result-left);
    border-radius: 50%;
    background: #dea071;
    box-shadow: 0 0 0 4px rgba(222,160,113,.12);
    content: "";
  }

  #recovery:not(.reduced-motion-forced) .failure-node {
    min-width: 0;
    min-height: clamp(14rem, 34svh, 19rem);
    display: grid;
    align-content: end;
    gap: .75rem;
    padding: clamp(1rem, 1.7vw, 1.5rem);
    border: 1px solid rgba(242,239,232,.26);
    border-radius: 0;
    background: linear-gradient(165deg, rgba(31,38,49,.94), rgba(7,10,15,.98));
    box-shadow: 0 28px 48px rgba(0,0,0,.44);
    transform-style: preserve-3d;
    transition: none !important;
  }

  #recovery:not(.reduced-motion-forced) .failure-node.problem {
    border-color: rgba(255,118,95,.78);
    transform: translate3d(var(--recovery-fault-x), var(--recovery-fault-y), var(--recovery-fault-z)) rotateZ(var(--recovery-fault-r));
    will-change: transform;
  }

  #recovery:not(.reduced-motion-forced) .failure-node:last-of-type {
    opacity: var(--recovery-resume-opacity);
    transform: translate3d(var(--recovery-resume-x), 0, -55px);
  }

  #recovery:not(.reduced-motion-forced) .rail-arrow {
    position: relative;
    z-index: 4;
    color: #7697ff;
    font-family: var(--spatial-mono);
  }
}

/* Last fallback lock: never let 3D transforms or room planes leak into No-JS/reduced layouts. */
html:not(.js) .publishing-wall,
.reduced-motion-forced .publishing-wall {
  width: 20% !important;
  right: 2% !important;
}

html:not(.js) .telegram-grid,
html:not(.js) .telegram-grid .local-mini-stack,
html:not(.js) .telegram-grid .phone,
html:not(.js) .telegram-grid > div:last-child,
.reduced-motion-forced .telegram-grid,
.reduced-motion-forced .telegram-grid .local-mini-stack,
.reduced-motion-forced .telegram-grid .phone,
.reduced-motion-forced .telegram-grid > div:last-child {
  opacity: 1 !important;
  transform: none !important;
}

@media (min-width: 960px) {
  html:not(.js) #telegram > .shell,
  .reduced-motion-forced #telegram > .shell {
    overflow: clip visible !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .publishing-wall {
    width: 20% !important;
    right: 2% !important;
  }
  .telegram-grid,
  .telegram-grid .local-mini-stack,
  .telegram-grid .phone,
  .telegram-grid > div:last-child {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 960px) {
  #telegram > .shell {
    overflow: clip visible !important;
  }
}

/* Accepted Hero v3 fidelity lock: the production UI belongs to the five
   architectural thresholds, never to a second stack of floating cards. */
.chamber-overlay {
  display: none;
}

@media (min-width: 960px) {
  .pipeline-scene::before,
  .pipeline-scene::after {
    display: none;
  }

  .pipeline-environment {
    inset: -12% -20% -10% -18%;
    opacity: calc(.92 + var(--hero-progress) * .08);
    transform: translate3d(-13%, -1.5%, -380px) scale(1.52);
    transform-origin: 64% 52%;
  }

  .pipeline-environment::after {
    background:
      linear-gradient(90deg, rgba(7, 9, 13, .98) 0%, rgba(7, 9, 13, .78) 18%, rgba(7, 9, 13, .04) 54%, rgba(7, 9, 13, .12) 100%),
      linear-gradient(180deg, rgba(7, 9, 13, .02), rgba(7, 9, 13, .16));
  }

  .pipeline-environment img {
    object-position: 63% center;
  }

  .stack-panel,
  .scene-meta {
    display: none;
  }

  .chamber-overlay {
    display: block;
    position: absolute;
    z-index: 2;
    inset: -12% -20% -10% -18%;
    overflow: hidden;
    opacity: calc(.94 + var(--hero-progress) * .06);
    pointer-events: none;
    transform: translate3d(-13%, -1.5%, -378px) scale(1.52);
    transform-origin: 64% 52%;
    transform-style: preserve-3d;
  }

  .chamber-overlay-frame {
    width: auto;
    height: 100%;
    position: absolute;
    top: 0;
    left: 63%;
    aspect-ratio: 3344 / 1882;
    transform: translateX(-63%);
  }

  .chamber-stage {
    position: absolute;
    color: #f2efe8;
    font-family: var(--spatial-mono);
    text-shadow: 0 2px 7px rgba(0, 0, 0, .9);
  }

  .chamber-stage strong {
    position: absolute;
    z-index: 3;
    top: 4%;
    right: 0;
    left: 0;
    font-size: clamp(.5rem, .62vw, .7rem);
    font-weight: 650;
    letter-spacing: .12em;
    text-align: center;
  }

  .chamber-stage-brief {
    width: 8.3%;
    height: 55%;
    top: 13.1%;
    left: 38.6%;
  }

  .chamber-stage-images {
    width: 8.4%;
    height: 50.7%;
    top: 19.1%;
    left: 47.2%;
  }

  .chamber-stage-voice {
    width: 6.6%;
    height: 47%;
    top: 22.2%;
    left: 57.7%;
  }

  .chamber-stage-edit {
    width: 5.7%;
    height: 43%;
    top: 24.7%;
    left: 65%;
  }

  .chamber-stage-approval {
    width: 4.7%;
    height: 39%;
    top: 27%;
    left: 71.45%;
  }

  .chamber-brief-fields {
    display: grid;
    position: absolute;
    top: 16%;
    right: 12%;
    left: 12%;
    gap: 4.5%;
  }

  .chamber-brief-fields span,
  .chamber-brief-checks span,
  .chamber-approval-checks span {
    display: flex;
    align-items: center;
    color: rgba(242, 239, 232, .78);
    font-size: clamp(.19rem, .25vw, .3rem);
    letter-spacing: .045em;
    white-space: nowrap;
  }

  .chamber-brief-fields span::after {
    height: 1px;
    flex: 1;
    margin-left: 8%;
    background: rgba(242, 239, 232, .42);
    content: "";
  }

  .chamber-brief-checks {
    display: grid;
    position: absolute;
    right: 12%;
    bottom: 18%;
    left: 12%;
    gap: 9%;
  }

  .chamber-brief-checks span::before,
  .chamber-approval-checks span::after {
    width: .46rem;
    height: .46rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(127, 196, 173, .72);
    color: #9ad8c3;
    content: "✓";
    font-size: .34rem;
    line-height: 1;
  }

  .chamber-brief-checks span::before {
    margin-right: 8%;
  }

  .chamber-image-grid {
    display: grid;
    position: absolute;
    top: 18%;
    right: 10%;
    bottom: 15%;
    left: 10%;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 4%;
  }

  .chamber-image-grid i {
    border: 1px solid rgba(242, 239, 232, .13);
    background: linear-gradient(145deg, rgba(118, 151, 255, .08), rgba(0, 0, 0, .04));
  }

  .chamber-voice-lines {
    display: grid;
    position: absolute;
    top: 19%;
    right: 12%;
    bottom: 18%;
    left: 12%;
    align-content: space-evenly;
  }

  .chamber-voice-lines i {
    height: 16%;
    border-top: 1px solid rgba(242, 239, 232, .25);
    border-bottom: 1px solid rgba(118, 151, 255, .18);
    background:
      linear-gradient(90deg, transparent 0 3%, rgba(118, 151, 255, .8) 3% 5%, transparent 5% 8%, rgba(242, 239, 232, .65) 8% 9%, transparent 9% 13%, rgba(118, 151, 255, .9) 13% 16%, transparent 16% 20%, rgba(242, 239, 232, .5) 20% 21%, transparent 21% 26%, rgba(118, 151, 255, .7) 26% 29%, transparent 29% 100%);
    background-size: 54% 100%;
  }

  .chamber-edit-time {
    display: flex;
    position: absolute;
    top: 15%;
    right: 8%;
    left: 8%;
    justify-content: space-between;
    color: rgba(242, 239, 232, .62);
    font-size: clamp(.16rem, .21vw, .25rem);
  }

  .chamber-edit-grid {
    display: grid;
    position: absolute;
    top: 21%;
    right: 8%;
    bottom: 18%;
    left: 8%;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 3%;
  }

  .chamber-edit-grid i {
    border: 1px solid rgba(242, 239, 232, .1);
    background: rgba(118, 151, 255, .1);
  }

  .chamber-edit-grid i:nth-child(3n + 2) {
    background: rgba(222, 160, 113, .13);
  }

  .chamber-edit-playhead {
    width: 1px;
    position: absolute;
    z-index: 3;
    top: 16%;
    bottom: 15%;
    left: 52%;
    background: #f2efe8;
    box-shadow: 0 -3px 0 1px #7697ff;
  }

  .chamber-edit-audio {
    height: 4%;
    position: absolute;
    right: 9%;
    bottom: 12%;
    left: 9%;
    background: repeating-linear-gradient(90deg, rgba(118, 151, 255, .55) 0 1px, transparent 1px 3px);
  }

  .chamber-approval-checks {
    display: grid;
    position: absolute;
    top: 20%;
    right: 9%;
    left: 9%;
    gap: 8%;
  }

  .chamber-approval-checks span {
    justify-content: space-between;
  }

  .chamber-human-gate {
    position: absolute;
    right: 8%;
    bottom: 13%;
    left: 8%;
    padding-top: 8%;
    border-top: 1px solid rgba(242, 239, 232, .24);
    color: rgba(242, 239, 232, .68);
    font-size: clamp(.17rem, .22vw, .26rem);
    letter-spacing: .08em;
    white-space: nowrap;
  }

  .chamber-human-gate::after {
    float: right;
    color: #dea071;
    content: "▣";
  }

  .chamber-gate {
    display: none;
  }

  .chamber-gate span {
    display: none;
  }

  .chamber-release-display {
    width: 13.5%;
    height: 23.8%;
    position: absolute;
    top: 38%;
    left: 76.6%;
    border: 1px solid rgba(242, 239, 232, .55);
    background: rgba(5, 8, 13, .92);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .48);
    opacity: calc(.4 + var(--release-display, 0) * .6);
    transform: translateX(calc((1 - var(--release-display, 0)) * 8px));
  }

  .chamber-release-formats {
    display: flex;
    position: absolute;
    top: 21%;
    right: 8%;
    bottom: 31%;
    left: 8%;
    align-items: center;
    justify-content: space-between;
  }

  .chamber-release-formats i {
    display: block;
    border: 1px solid rgba(242, 239, 232, .6);
    background: linear-gradient(145deg, rgba(118, 151, 255, .2), rgba(7, 9, 13, .9));
  }

  .chamber-release-formats i:nth-child(1) { width: 42%; height: 56%; }
  .chamber-release-formats i:nth-child(2) { width: 20%; height: 84%; }
  .chamber-release-formats i:nth-child(3) { width: 26%; height: 56%; }

  .chamber-release-display > span {
    position: absolute;
    right: 7%;
    bottom: 11%;
    left: 7%;
    color: #f2efe8;
    font: 650 clamp(.27rem, .34vw, .4rem)/1.2 var(--spatial-mono);
    letter-spacing: .08em;
    text-align: center;
    white-space: nowrap;
  }

  .chamber-release-display > span::before {
    width: .38rem;
    height: .38rem;
    display: inline-block;
    margin-right: .4rem;
    border-radius: 50%;
    background: #dea071;
    content: "";
  }

  .chamber-result {
    width: 8%;
    height: 12%;
    position: absolute;
    top: 58%;
    left: 85.6%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(222, 160, 113, calc(var(--release-display, 0) * .22)), transparent 68%);
    opacity: var(--release-display, 0);
  }

  .site-header {
    isolation: isolate;
    contain: paint;
    background: rgba(7, 9, 13, .97);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: translateZ(0);
  }

  .hero-grid {
    grid-template-columns: minmax(24rem, .62fr) minmax(0, 1.38fr);
    gap: clamp(.35rem, .8vw, .8rem);
  }

  .hero-copy h1 {
    font-size: clamp(4.3rem, 6.35vw, 6.8rem);
  }
}

@media (min-width: 960px) and (max-height: 760px) {
  .pipeline-environment,
  .chamber-overlay {
    inset-block: -17% -13%;
  }
}

/* Body stability lock: the editorial sections stay in document flow. The
   accepted camera belongs to the Hero; it must not turn live body copy and
   review cards into clipped perspective layers. */
@media (min-width: 960px) {
  #recovery[data-recovery-story],
  #telegram[data-telegram-story] {
    min-height: auto !important;
    display: block !important;
    overflow: visible !important;
    padding-block: clamp(5rem, 10vw, 10rem) !important;
  }

  #recovery[data-recovery-story] > .shell,
  #telegram[data-telegram-story] > .shell {
    min-height: 0 !important;
    position: relative !important;
    top: auto !important;
    overflow: visible !important;
    padding-top: 0 !important;
    perspective: none !important;
    perspective-origin: initial !important;
    transform-style: flat !important;
  }

  #recovery[data-recovery-story] > .shell::before,
  #recovery[data-recovery-story] > .shell::after,
  #telegram[data-telegram-story] > .shell::before,
  #telegram[data-telegram-story] > .shell::after {
    display: none !important;
  }

  #recovery[data-recovery-story] .failure-layout > div:first-child {
    width: auto !important;
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
  }

  #recovery[data-recovery-story] .failure-rail {
    width: auto !important;
    min-height: 0 !important;
    display: grid !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin: 0 !important;
    transform: none !important;
    transform-style: flat !important;
    will-change: auto !important;
  }

  #recovery[data-recovery-story] .failure-node,
  #recovery[data-recovery-story] .failure-node.problem,
  #recovery[data-recovery-story] .failure-node:last-of-type {
    min-height: 14rem !important;
    opacity: 1 !important;
    transform: none !important;
    transform-style: flat !important;
    will-change: auto !important;
  }

  #telegram[data-telegram-story] > .shell > .section-kicker,
  #telegram[data-telegram-story] > .shell > h2,
  #telegram[data-telegram-story] > .shell > .section-intro {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
  }

  #telegram[data-telegram-story] .telegram-grid,
  #telegram[data-telegram-story] .telegram-grid .local-mini-stack,
  #telegram[data-telegram-story] .telegram-grid .phone,
  #telegram[data-telegram-story] .telegram-grid > div:last-child {
    opacity: 1 !important;
    transform: none !important;
    transform-style: flat !important;
    will-change: auto !important;
  }

  #telegram[data-telegram-story] .telegram-grid {
    width: 100% !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    grid-column: 2 !important;
    grid-row: 1 / span 3 !important;
    align-self: start !important;
    margin: 0 !important;
  }

  #telegram[data-telegram-story] > .shell {
    display: grid !important;
    grid-template-columns: minmax(18rem, 0.7fr) minmax(32rem, 1.3fr) !important;
    column-gap: clamp(2rem, 5vw, 5rem) !important;
    align-items: start !important;
  }

  #telegram[data-telegram-story] > .shell > .section-kicker,
  #telegram[data-telegram-story] > .shell > h2,
  #telegram[data-telegram-story] > .shell > .section-intro {
    grid-column: 1 !important;
  }
}

/* Match the stronger no-JS selector used by the original fallback rules so
   the static body remains compact without the removed sticky camera. */
@media (min-width: 960px) {
  html:not(.js) #telegram[data-telegram-story],
  .reduced-motion-forced #telegram[data-telegram-story] {
    min-height: auto !important;
  }

  html:not(.js) #telegram[data-telegram-story] > .shell,
  .reduced-motion-forced #telegram[data-telegram-story] > .shell {
    min-height: 0 !important;
    overflow: visible !important;
  }
}

/* Keep the bilingual copy and the review surface independent at tablet
   widths. German labels need more measure than the two-column desktop lock
   can provide between 960px and 1099px. */
@media (min-width: 960px) and (max-width: 1279px) {
  #telegram[data-telegram-story] > .shell {
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 2.5rem !important;
  }

  #telegram[data-telegram-story] > .shell > .section-kicker,
  #telegram[data-telegram-story] > .shell > h2,
  #telegram[data-telegram-story] > .shell > .section-intro,
  #telegram[data-telegram-story] .telegram-grid {
    grid-column: 1 !important;
  }

  #telegram[data-telegram-story] > .shell > h2 {
    width: auto !important;
    max-width: 12ch !important;
  }

  #telegram[data-telegram-story] .telegram-grid {
    grid-row: auto !important;
  }
}

/* Telegram content-integrity lock. Decorative routing must never cross copy,
   and every trust step must remain inside the column that owns it. */
#telegram[data-telegram-story] .telegram-flight-route {
  display: none !important;
}

#telegram[data-telegram-story] .local-mini-stack::after {
  right: auto !important;
  bottom: auto !important;
  white-space: normal;
}

@media (min-width: 801px) and (max-width: 1279px) {
  #telegram[data-telegram-story] .trust-path {
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
  }

  #telegram[data-telegram-story] .trust-path::before,
  #telegram[data-telegram-story] .trust-arrow {
    display: none !important;
  }

  #telegram[data-telegram-story] .trust-node {
    min-width: 0 !important;
    min-height: 4.25rem !important;
    padding: 0.65rem 0.7rem !important;
  }

  #telegram[data-telegram-story] .trust-node strong {
    font-size: 0.78rem !important;
    line-height: 1.25 !important;
  }

  #telegram[data-telegram-story] .trust-node span {
    font-size: 0.68rem !important;
    line-height: 1.4 !important;
  }

  #telegram[data-telegram-story] .shim-boundary {
    width: auto !important;
    grid-column: 1 / -1 !important;
  }
}

/* Composite QA lock: shallow viewports need the same editorial hierarchy at a
   smaller optical scale. A technically overflow-free page is not acceptable
   when its headline is cropped before the supporting proof can enter frame. */
@media (min-width: 641px) and (max-height: 759px) {
  .section {
    min-height: auto;
    align-items: start;
    padding-block: clamp(3.5rem, 9vh, 4.75rem);
  }

  .section h2,
  #telegram[data-telegram-story] > .shell > h2 {
    max-width: 13ch;
    font-size: clamp(2.75rem, 4.7vw, 3.75rem) !important;
    line-height: .92;
    letter-spacing: -.045em;
  }

  .section .section-intro {
    font-size: clamp(.94rem, 1.35vw, 1.1rem);
    line-height: 1.42;
  }

  .section[data-chapter]::before {
    top: .75rem;
    font-size: clamp(5rem, 12vw, 9rem);
  }

  .intro-eu,
  .cost-grid,
  .layer-index,
  .run-layout,
  .failure-layout,
  .tools-layout,
  .structure-layout,
  .fit-layout,
  .notes-intro,
  .offer-layout {
    gap: clamp(1.75rem, 4vw, 3.5rem);
  }

  .js .section .motion-reveal,
  .js .section .motion-reveal.is-revealed,
  .js .section .motion-reveal:focus-within {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (min-width: 960px) {
  #fit .fit-columns {
    height: max-content;
    align-self: start;
    align-items: start;
  }

  #fit .fit-column {
    align-self: start;
  }

  #offer .checkout-gate {
    height: max-content;
    align-self: center;
  }

  #telegram .phone-actions button[data-phone-action="release"] {
    grid-column: 1 / -1;
  }
}

/* Intrinsic German compounds must never widen a clipped section beyond the
   viewport. Let the editorial grid shrink first, then use language-aware
   wrapping for the two display headlines that contain long compounds. */
@media (max-width: 959px) {
  #pipeline-notes > .shell,
  #pipeline-notes .notes-intro,
  #pipeline-notes .notes-intro > *,
  #pipeline-notes .workflow {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #pipeline-notes .notes-intro {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #pipeline-notes h2,
  #pipeline-notes .workflow > h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}

@media (hover: hover) and (pointer: fine) {
  #first-run .run-steps li:hover,
  #local-tools .tool-line:hover,
  #pipeline-notes .note-row:hover {
    background: rgba(49, 93, 255, .1);
    border-color: rgba(118, 151, 255, .52);
  }
}

/* Keep claim and proof in one desktop composition. The former single-column
   roles chapter pushed both proof cards into the next viewport in German. */
@media (min-width: 960px) {
  #roles > .shell {
    display: grid;
    grid-template-columns: minmax(19rem, .72fr) minmax(34rem, 1.28fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: .9rem clamp(2.5rem, 6vw, 7rem);
  }

  #roles > .shell > .section-kicker {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
  }

  #roles > .shell > h2 {
    grid-column: 1;
    grid-row: 2;
    font-size: clamp(3.5rem, 5vw, 5.5rem);
  }

  #roles .role-split {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin-top: 0;
  }
}

/* The trust boundary is a rule, not a floating warning sticker. */
#telegram[data-telegram-story] .shim-boundary {
  padding: .75rem .9rem !important;
  border: 0 !important;
  border-left: 2px solid var(--human) !important;
  color: #c9ced8;
  background: linear-gradient(90deg, rgba(255, 176, 74, .11), transparent 88%) !important;
  font-weight: 620;
}

/* German display compounds must remain inside the editorial column at every
   desktop width instead of painting across the proof column. */
#pipeline-notes h2 {
  overflow-wrap: normal;
  hyphens: manual;
}

@media (min-width: 960px) and (max-width: 1180px) {
  #pipeline-notes .notes-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  #pipeline-notes h2 {
    max-width: 12ch;
    font-size: clamp(3.6rem, 7vw, 4.35rem);
    line-height: .91;
    text-wrap: balance;
  }
}

@media (min-width: 1181px) {
  #pipeline-notes h2 {
    font-size: clamp(3.6rem, 4.75vw, 4.4rem);
    line-height: .91;
  }

  #telegram > .shell > h2 {
    width: min(10.6ch, 43vw);
    font-size: clamp(4rem, 5.15vw, 5.8rem);
  }
}

/* Split-pane / tablet reflow: this width is a reading layout, not a squeezed
   desktop stage. Keep the editorial scale strong while letting complete
   thoughts, proof blocks and diagrams enter the viewport together. */
@media (min-width: 601px) and (max-width: 959px) {
  .section {
    padding-block: clamp(4.5rem, 9vw, 6rem);
  }

  .section h2,
  #telegram > .shell > h2,
  .offer h2,
  #pipeline-notes .workflow > h3 {
    max-width: 12ch;
    font-size: clamp(3.35rem, 9vw, 4.35rem);
    line-height: .91;
    text-wrap: balance;
  }

  .section-intro {
    max-width: 42rem;
  }

  .role-split,
  .run-steps,
  .telegram-grid,
  .chapter-journey,
  .fit-columns,
  .notes-intro,
  .faq-list,
  .checkout-gate {
    min-width: 0;
  }

  #roles .role-column,
  #first-run .run-steps > li,
  #telegram .local-mini-stack,
  #telegram .phone,
  #fit .fit-column {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  #pipeline-notes .workflow > h3 {
    max-width: 100%;
    font-size: clamp(2.8rem, 12.5vw, 3.5rem);
    line-height: .92;
    overflow-wrap: normal;
    hyphens: manual;
    text-wrap: balance;
  }
}

@media (max-width: 360px) {
  #pipeline-notes h2 {
    font-size: 2.5rem;
  }

  #pipeline-notes .workflow > h3 {
    font-size: 2.35rem;
  }
}

/* Text-optics QA: technical metadata belongs to the description instead of
   squeezing it into a narrow middle column. Keep the compact single-column
   mobile treatment from site.css below 801px. */
@media (min-width: 801px) {
  #local-tools .tool-line {
    grid-template-columns: minmax(5.5rem, 7rem) minmax(0, 1fr);
    align-items: start;
  }

  #local-tools .tool-line small {
    grid-column: 2;
    line-height: 1.45;
  }
}

/* The human-gate status sits on a bone surface here. A darker copper keeps
   the semantic accent while remaining readable instead of glowing away. */
#first-run .local-result span:last-child {
  color: #824700;
}
