:root {
  --mineral: #f2efe7;
  --mineral-bright: #faf8f2;
  --mineral-deep: #e4e1d8;
  --graphite: #1a211f;
  --ink-soft: #53605a;
  --forest: #173d34;
  --forest-2: #22584b;
  --cobalt: #2457d6;
  --cobalt-dark: #1a43ae;
  --rust: #a84b36;
  --rule: #aaa79f;
  --white: #fffdf8;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --content: 1480px;
  --reading: 760px;
  --gutter: clamp(1rem, 4vw, 4.5rem);
  --header: 4.4rem;
  --focus: 0 0 0 3px var(--mineral), 0 0 0 6px var(--cobalt);
}

/* Cloudflare custom 404 — uses the same public stylesheet, no inline CSS. */
.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background:
    linear-gradient(120deg, transparent 0 48%, rgba(36, 87, 214, 0.08) 48% 48.35%, transparent 48.35%),
    var(--mineral);
}

.error-panel {
  width: min(100%, 42rem);
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid var(--rule);
  background: var(--mineral-bright);
  box-shadow: 0 1.5rem 4rem rgba(26, 33, 31, 0.12);
}

.error-panel h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(4.5rem, 18vw, 9rem);
  line-height: 0.82;
}

.error-panel p:not(.section-kicker) {
  max-width: 34rem;
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
}

/* Legal pages — editorial, quiet, and fully inside the shared brand system. */
.legal-page {
  background:
    linear-gradient(132deg, transparent 0 35%, rgba(36, 87, 214, 0.06) 35% 35.18%, transparent 35.18%),
    var(--mineral);
}

.legal-page main {
  padding-block: clamp(3.5rem, 8vw, 8rem);
}

.legal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.35fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--graphite);
}

.legal-header h1 {
  max-width: 11ch;
  margin-bottom: 0;
  font-size: clamp(3.6rem, 8vw, 8rem);
  line-height: 0.86;
}

.legal-summary {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.legal-meta {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(11rem, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(1.5rem, 5vw, 6rem);
  padding-block: clamp(2rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
}

.legal-grid h2 {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.legal-copy {
  max-width: var(--reading);
}

.legal-copy > :first-child {
  margin-top: 0;
}

.legal-copy > :last-child {
  margin-bottom: 0;
}

.legal-address {
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.42;
}

.legal-notice {
  margin-top: 2rem;
  padding: 1.15rem 1.25rem;
  border-left: 4px solid var(--cobalt);
  background: var(--mineral-bright);
  color: var(--ink-soft);
}

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

html {
  background: var(--mineral);
  color: var(--graphite);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 1.25rem);
}

body {
  margin: 0;
  background: var(--mineral);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
a,
summary,
input,
textarea {
  font: inherit;
}

html:not(.js) .scene-controls,
html:not(.js) .phone-actions,
html:not(.js) .approval-actions,
html:not(.js) [data-publish-gate] {
  display: none;
}

.no-js-status {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 3px;
  box-shadow: var(--focus);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  width: 1px !important;
  height: 1px !important;
  position: absolute !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  inset: 0 auto auto 0;
  min-height: 44px;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--graphite);
  transform: translateY(-130%);
  transition: transform 160ms ease;
}

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

.shell {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  width: min(100%, calc(var(--reading) + 2 * var(--gutter)));
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: var(--header);
  border-bottom: 1px solid rgba(26, 33, 31, 0.45);
  background: rgba(242, 239, 231, 0.94);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  backdrop-filter: saturate(120%) blur(8px);
}

.nav-row {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  margin-right: 0.65rem;
}

.brand-name {
  font-weight: 400;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 2rem);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.desktop-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.desktop-nav a:hover {
  border-bottom-color: currentColor;
}

.desktop-nav .price-link {
  padding-inline: 1rem;
  color: var(--white);
  background: var(--graphite);
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--graphite);
  background: var(--mineral);
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  width: 21px;
  height: 2px;
  display: block;
  background: currentColor;
  content: "";
}

.menu-lines {
  position: relative;
}

.menu-lines::before {
  position: absolute;
  top: -7px;
}

.menu-lines::after {
  position: absolute;
  top: 7px;
}

.mobile-menu nav {
  position: absolute;
  z-index: 60;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(84vw, 21rem);
  padding: 0.4rem;
  border: 1px solid var(--graphite);
  background: var(--mineral-bright);
  box-shadow: 8px 8px 0 rgba(26, 33, 31, 0.13);
}

.mobile-menu nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--rule);
  font-weight: 700;
  text-decoration: none;
}

.mobile-menu nav a:last-child {
  border-bottom: 0;
}

main {
  min-width: 0;
}

.hero-scroll {
  min-height: calc(245svh - var(--header));
  position: relative;
  border-bottom: 1px solid var(--rule);
}

.hero-sticky {
  position: sticky;
  top: var(--header);
  min-height: calc(100svh - var(--header));
  display: grid;
  align-items: center;
  padding-block: clamp(1.5rem, 3vh, 3rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(28rem, 0.88fr) minmax(35rem, 1.12fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 4rem);
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.hero-eyebrow {
  max-width: 60ch;
  margin-bottom: 0.7rem;
  color: var(--forest);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.display {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

h1 {
  max-width: 8ch;
  margin-bottom: 1.15rem;
  font-size: clamp(4.4rem, 7vw, 7.25rem);
  line-height: 0.85;
}

h2 {
  max-width: 16ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.7rem, 5.6vw, 5.8rem);
  line-height: 0.96;
}

h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.25;
}

.hero-lead {
  max-width: 29ch;
  margin-bottom: 0.85rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.1vw, 2.15rem);
  font-weight: 700;
  line-height: 1.13;
}

.hero-skill {
  max-width: 46ch;
  margin-bottom: 0.7rem;
  color: var(--forest);
  font-weight: 700;
}

.hero-body {
  max-width: 55ch;
  margin-bottom: 1.35rem;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.18vw, 1.12rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.15rem;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.78rem 1.2rem;
  border: 1px solid var(--graphite);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button-primary {
  border-color: var(--cobalt);
  color: var(--white);
  background: var(--cobalt);
}

.button-primary:hover {
  background: var(--cobalt-dark);
}

.button-secondary {
  border-color: transparent;
  padding-inline: 1.2rem;
}

.button-secondary:hover {
  text-decoration: underline;
}

.button-dark {
  border-color: var(--white);
  color: var(--white);
}

.button[aria-disabled="true"] {
  cursor: not-allowed;
  color: var(--rust);
  border-color: var(--rust);
  background: transparent;
}

.hero-status {
  max-width: 58ch;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.hero-status li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-status li:not(:last-child)::after {
  margin-left: 0.35rem;
  color: var(--rule);
  content: "·";
}

.stack-panel {
  min-width: 0;
  position: relative;
}

.stack-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shift-x: 0px;
  width: min(100%, 730px);
  min-height: 585px;
  margin-inline: auto;
  position: relative;
  transform: translate3d(var(--shift-x), 0, 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
}

.static-stack {
  min-height: 520px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.static-stack picture,
.static-stack img {
  width: 100%;
}

.static-stack img {
  max-height: 570px;
  object-fit: contain;
}

.static-story-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.static-story-overlay > svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: visible;
}

.static-story-overlay path {
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 0.45;
  stroke-linecap: round;
}

.static-story-overlay circle {
  fill: var(--mineral-bright);
  stroke: var(--cobalt);
  stroke-width: 0.35;
}

.static-folder {
  width: 12%;
  position: absolute;
  right: 27%;
  bottom: 10%;
}

.static-folder img {
  filter: drop-shadow(0 8px 7px rgba(26, 33, 31, 0.14));
}

.static-layer-names span,
.static-local-tag {
  position: absolute;
  padding: 0.28rem 0.4rem;
  border: 1px solid var(--forest);
  color: var(--forest);
  background: rgba(250, 248, 242, 0.94);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.static-layer-names span { left: 25%; }
.static-layer-names span:nth-child(1) { top: 27%; }
.static-layer-names span:nth-child(2) { top: 39%; }
.static-layer-names span:nth-child(3) { top: 51%; }
.static-layer-names span:nth-child(4) { top: 63%; }
.static-layer-names span:nth-child(5) { top: 73%; }

.static-local-tag {
  right: 26%;
  bottom: 5%;
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.static-state-note {
  max-width: 56ch;
  margin: -0.7rem auto 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  text-align: center;
}

.dynamic-stack {
  display: none;
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: clip;
}

.motion-enabled .dynamic-stack {
  display: block;
}

.motion-enabled .static-stack {
  display: none;
}

[data-hero-story][data-motion="scroll"] .static-state-note {
  display: none;
}

.boundary-svg,
.process-svg {
  position: absolute;
  inset: 2% 2% 5%;
  width: 96%;
  height: 93%;
  overflow: visible;
  pointer-events: none;
}

.boundary-svg {
  z-index: 1;
}

.process-svg {
  z-index: 8;
}

.boundary-line {
  fill: none;
  stroke: var(--forest);
  stroke-width: 2.1;
  vector-effect: non-scaling-stroke;
}

.boundary-dash {
  stroke-dasharray: 4 5;
}

.process-line,
.process-tail {
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.process-line {
  transform: scaleY(var(--path-progress, 0.3));
  transform-box: fill-box;
  transform-origin: center top;
  transition: transform 560ms ease;
}

.process-tail {
  opacity: 0;
  transition: opacity 320ms ease;
}

.checkpoint {
  fill: var(--mineral);
  stroke: var(--cobalt);
  stroke-width: 2.2;
  opacity: var(--checkpoint-opacity, 0);
  transition: opacity 250ms ease;
  vector-effect: non-scaling-stroke;
}

.stack-layer {
  --layer-x: 0px;
  --layer-y: 0px;
  --layer-r: 0deg;
  width: 70%;
  position: absolute;
  z-index: var(--z, 3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translate3d(var(--layer-x), var(--layer-y), 0) rotate(var(--layer-r));
  transform-origin: 50% 55%;
  transition: transform 620ms cubic-bezier(0.22, 0.8, 0.22, 1), opacity 320ms ease;
}

.motion-enabled .stack-layer {
  will-change: transform;
}

.layer-names {
  position: absolute;
  z-index: 11;
  inset: 0;
  pointer-events: none;
}

.layer-label {
  position: absolute;
  left: 21%;
  padding: 0.32rem 0.46rem;
  border: 1px solid var(--forest);
  color: var(--forest);
  background: rgba(250, 248, 242, 0.94);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 240ms ease;
}

.layer-label[data-label="brief"] { top: 27%; }
.layer-label[data-label="images"] { top: 39%; }
.layer-label[data-label="voice"] { top: 51%; }
.layer-label[data-label="edit"] { top: 63%; }
.layer-label[data-label="approval"] { top: 73%; }

.stack-layer img {
  width: 100%;
  filter: drop-shadow(0 12px 8px rgba(26, 33, 31, 0.12));
}

.stack-layer[data-layer="brief"] {
  --z: 7;
  --layer-y: -42px;
}

.stack-layer[data-layer="images"] {
  --z: 6;
  --layer-y: -18px;
}

.stack-layer[data-layer="voice"] {
  --z: 5;
  --layer-y: 3px;
}

.stack-layer[data-layer="edit"] {
  --z: 4;
  --layer-y: 24px;
}

.stack-layer[data-layer="approval"] {
  --z: 3;
  --layer-y: 48px;
}

.local-folder {
  width: 18%;
  position: absolute;
  z-index: 9;
  right: 16%;
  bottom: 4%;
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  transition: opacity 300ms ease, transform 500ms ease;
}

.local-folder img {
  width: 100%;
  filter: drop-shadow(0 12px 9px rgba(26, 33, 31, 0.15));
}

.state-tag {
  position: absolute;
  z-index: 12;
  top: 0;
  left: 1rem;
  max-width: 14rem;
  padding: 0.55rem 0.7rem;
  border-left: 3px solid var(--cobalt);
  background: rgba(250, 248, 242, 0.92);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fault-tag,
.lock-tag,
.output-tag {
  position: absolute;
  z-index: 13;
  padding: 0.52rem 0.65rem;
  border: 1px solid currentColor;
  background: var(--mineral-bright);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 220ms ease, transform 400ms ease;
}

.fault-tag {
  top: 58%;
  right: 3%;
  color: var(--rust);
  transform: translateX(12px);
}

.lock-tag {
  right: 12%;
  bottom: 27%;
  color: var(--rust);
}

.output-tag {
  right: auto;
  bottom: 1%;
  left: 3%;
  color: var(--cobalt);
  transform: translateY(10px);
}

.stack-stage[data-state="roles"] .stack-layer[data-layer="brief"] {
  --layer-y: -95px;
}

.stack-stage[data-state="roles"] .stack-layer[data-layer="images"] {
  --layer-y: -32px;
}

.stack-stage[data-state="roles"] .stack-layer[data-layer="voice"] {
  --layer-y: 2px;
}

.stack-stage[data-state="roles"] .stack-layer[data-layer="edit"] {
  --layer-y: 38px;
}

.stack-stage[data-state="roles"] .stack-layer[data-layer="approval"] {
  --layer-y: 100px;
}

.stack-stage:is([data-state="separated"], [data-state="checkpoints"], [data-state="fault"], [data-state="repaired"], [data-state="locked"], [data-state="approval-ready"], [data-state="approved"]) .stack-layer[data-layer="brief"] {
  --layer-y: -150px;
}

.stack-stage:is([data-state="separated"], [data-state="checkpoints"], [data-state="fault"], [data-state="repaired"], [data-state="locked"], [data-state="approval-ready"], [data-state="approved"]) .stack-layer[data-layer="images"] {
  --layer-y: -75px;
}

.stack-stage:is([data-state="separated"], [data-state="checkpoints"], [data-state="fault"], [data-state="repaired"], [data-state="locked"], [data-state="approval-ready"], [data-state="approved"]) .stack-layer[data-layer="voice"] {
  --layer-y: 0px;
}

.stack-stage:is([data-state="separated"], [data-state="checkpoints"], [data-state="fault"], [data-state="repaired"], [data-state="locked"], [data-state="approval-ready"], [data-state="approved"]) .stack-layer[data-layer="edit"] {
  --layer-y: 75px;
}

.stack-stage:is([data-state="separated"], [data-state="checkpoints"], [data-state="fault"], [data-state="repaired"], [data-state="locked"], [data-state="approval-ready"]) .stack-layer[data-layer="approval"] {
  --layer-y: 120px;
}

.stack-stage:is([data-state="separated"], [data-state="checkpoints"], [data-state="fault"], [data-state="repaired"], [data-state="locked"], [data-state="approval-ready"], [data-state="approved"]) .layer-label {
  opacity: 1;
}

.stack-stage:is([data-state="checkpoints"], [data-state="fault"], [data-state="repaired"], [data-state="locked"], [data-state="approval-ready"], [data-state="approved"]) {
  --checkpoint-opacity: 1;
  --path-progress: 0.74;
}

.stack-stage[data-state="fault"] .stack-layer[data-layer="edit"] {
  --layer-x: 68px;
}

.stack-stage[data-state="fault"] .fault-tag {
  opacity: 1;
  transform: translateX(0);
}

.stack-stage:is([data-state="locked"], [data-state="approval-ready"]) .lock-tag {
  opacity: 1;
}

.stack-stage[data-state="approved"] {
  --path-progress: 1;
}

.stack-stage[data-state="approved"] .process-tail {
  opacity: 1;
}

.stack-stage[data-state="approved"] .stack-layer[data-layer="approval"] {
  --layer-y: 104px;
}

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

.stack-stage[data-state="approved"] .lock-tag {
  opacity: 1;
}

.scene-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: -0.45rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
}

.scene-progress {
  color: var(--forest);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.scene-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.scene-controls .button {
  min-height: 44px;
  padding: 0.58rem 0.8rem;
  font-size: 0.7rem;
}

.section {
  padding-block: clamp(5rem, 10vw, 10rem);
  border-bottom: 1px solid rgba(170, 167, 159, 0.75);
}

.section-kicker {
  margin-bottom: 0.9rem;
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.intro-eu {
  display: grid;
  grid-template-columns: minmax(17rem, 0.72fr) minmax(32rem, 1.28fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: stretch;
}

.intro-eu > * {
  min-width: 0;
}

.book-intro {
  display: grid;
  align-content: start;
  gap: 1.4rem;
}

.book-object {
  width: min(100%, 330px);
  margin: 0;
  position: relative;
  perspective: 1100px;
}

.book-object picture {
  display: block;
  transform: rotateY(-8deg) rotateX(2deg);
  transform-origin: left center;
  filter: drop-shadow(18px 22px 14px rgba(26, 33, 31, 0.2));
}

.book-object figcaption {
  margin-top: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.reading-sample {
  padding: clamp(1.4rem, 4vw, 3.5rem);
  border: 1px solid var(--graphite);
  background: var(--mineral-bright);
  box-shadow: 11px 11px 0 var(--mineral-deep);
}

.reading-sample h2 {
  max-width: 13ch;
  font-size: clamp(2.7rem, 5.1vw, 5.3rem);
}

.legal-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-bottom: 1.35rem;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.legal-status strong {
  color: var(--forest);
}

.reading-columns {
  columns: 2 20rem;
  column-gap: clamp(1.5rem, 4vw, 3rem);
}

.reading-columns p {
  break-inside: avoid;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  margin: 1.5rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  font-size: 0.82rem;
}

.source-list a {
  color: var(--cobalt-dark);
}

.cost-grid {
  display: grid;
  grid-template-columns: minmax(22rem, 0.8fr) minmax(30rem, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 8rem);
}

.cost-lines {
  display: grid;
  gap: 1.3rem;
}

.cost-line {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  align-items: center;
  gap: 1rem;
}

.cost-line span {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.cost-line i {
  height: 2px;
  position: relative;
  background: var(--rust);
}

.cost-line i::after {
  width: 13px;
  height: 13px;
  position: absolute;
  top: 50%;
  right: -1px;
  border: 2px solid var(--forest);
  background: var(--mineral);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.cost-line b {
  color: var(--forest);
  font-size: 0.82rem;
}

.cost-foot {
  margin-top: 1.8rem;
  padding-left: 1rem;
  border-left: 3px solid var(--forest);
  color: var(--ink-soft);
}

.layer-index {
  display: grid;
  grid-template-columns: minmax(18rem, 0.65fr) minmax(32rem, 1.35fr);
  gap: clamp(2rem, 6vw, 7rem);
}

.layer-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--graphite);
  list-style: none;
  counter-reset: layer;
}

.layer-list li {
  counter-increment: layer;
  min-height: 7rem;
  display: grid;
  grid-template-columns: 3rem minmax(6rem, 0.35fr) 1fr;
  align-items: start;
  gap: 1.2rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--rule);
}

.layer-list li::before {
  color: var(--cobalt);
  font-family: var(--mono);
  font-weight: 800;
  content: "0" counter(layer);
}

.layer-list strong {
  font-family: var(--serif);
  font-size: 1.35rem;
}

.layer-list p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.roles {
  background: var(--graphite);
  color: var(--white);
}

.roles .section-kicker,
.roles .section-intro {
  color: #c6d2cd;
}

.role-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: clamp(2rem, 5vw, 4.5rem);
  border-top: 1px solid rgba(255, 253, 248, 0.5);
  border-bottom: 1px solid rgba(255, 253, 248, 0.5);
}

.role-column {
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.role-column + .role-column {
  border-left: 1px solid rgba(255, 253, 248, 0.5);
}

.role-column h3 {
  color: #9fb7ff;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.role-column ul {
  margin: 0;
  padding-left: 1.2rem;
}

.role-column li + li {
  margin-top: 0.7rem;
}

.role-boundary {
  margin: 1.5rem 0 0;
  color: #c6d2cd;
  font-weight: 700;
}

.run-layout,
.failure-layout,
.tools-layout,
.structure-layout,
.fit-layout,
.notes-intro,
.offer-layout {
  display: grid;
  grid-template-columns: minmax(20rem, 0.78fr) minmax(30rem, 1.22fr);
  gap: clamp(2rem, 6vw, 7rem);
}

.run-steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--graphite);
  list-style: none;
  counter-reset: run;
}

.run-steps li {
  counter-increment: run;
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 1rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--rule);
}

.run-steps li::before {
  color: var(--cobalt);
  font-family: var(--mono);
  font-weight: 800;
  content: counter(run);
}

.run-steps strong {
  display: block;
}

.run-steps span {
  color: var(--ink-soft);
}

.run-steps em {
  color: var(--forest);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.local-result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 1.5rem;
  border: 1px solid var(--forest);
  background: var(--forest);
}

.local-result span {
  padding: 0.8rem;
  color: var(--forest);
  background: var(--mineral-bright);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.failure-rail {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
}

.failure-node {
  min-height: 9rem;
  display: grid;
  align-content: center;
  padding: 1rem;
  border-top: 3px solid var(--forest);
  border-bottom: 1px solid var(--rule);
}

.failure-node.problem {
  border-top-color: var(--rust);
}

.failure-node strong {
  font-family: var(--serif);
  font-size: 1.25rem;
}

.failure-node span {
  color: var(--ink-soft);
}

.rail-arrow {
  color: var(--cobalt);
  font-size: 1.6rem;
}

.tool-lines {
  border-top: 1px solid var(--graphite);
}

.tool-line {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--rule);
}

.tool-line strong {
  color: var(--forest);
  font-family: var(--mono);
  text-transform: uppercase;
}

.tool-line small {
  color: var(--ink-soft);
}

.telegram {
  color: var(--white);
  background: var(--forest);
}

.telegram .section-kicker,
.telegram .section-intro {
  color: #cadad4;
}

.telegram-grid {
  display: grid;
  grid-template-columns: minmax(19rem, 0.72fr) minmax(19rem, 0.58fr) minmax(25rem, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  margin-top: clamp(2.2rem, 5vw, 4.8rem);
}

.local-mini-stack {
  min-height: 28rem;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(255, 253, 248, 0.45);
}

.local-mini-stack img {
  width: 95%;
}

.local-mini-stack::after {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.38rem 0.5rem;
  border: 1px solid rgba(202, 218, 212, 0.2);
  border-radius: 0.25rem;
  color: #cadad4;
  background: rgba(3, 6, 10, 0.9);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.25;
  letter-spacing: 0.06em;
  content: attr(data-local-label);
}

.phone {
  width: min(100%, 21rem);
  margin-inline: auto;
  padding: 0.7rem;
  border: 5px solid var(--graphite);
  border-radius: 2.3rem;
  color: var(--graphite);
  background: var(--mineral-bright);
  box-shadow: 14px 18px 0 rgba(8, 21, 18, 0.22);
}

.phone::before {
  width: 3.8rem;
  height: 0.42rem;
  display: block;
  margin: 0.05rem auto 0.75rem;
  border-radius: 99px;
  background: var(--graphite);
  content: "";
}

.phone-screen {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 1.45rem;
}

.phone-label {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.private-preview {
  min-height: 7.5rem;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--mineral-deep);
  text-align: center;
}

.private-preview strong {
  display: block;
  color: var(--forest);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.qa-plain {
  margin: 0;
  padding: 0.8rem 1rem;
  list-style: none;
  font-size: 0.78rem;
}

.qa-plain li {
  display: flex;
  gap: 0.5rem;
}

.qa-plain li + li {
  margin-top: 0.35rem;
}

.qa-plain li::before {
  color: var(--forest);
  font-weight: 900;
  content: "✓";
}

.phone-actions {
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem;
  border-top: 1px solid var(--rule);
}

.phone-actions button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--rule);
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.phone-actions button[data-locked="true"] {
  color: var(--rust);
}

.phone-status {
  min-height: 3.4rem;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-top: 1px solid var(--rule);
  color: var(--forest);
  font-size: 0.75rem;
}

.trust-path {
  display: grid;
  gap: 1rem;
}

.trust-node {
  min-height: 4.7rem;
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 253, 248, 0.5);
}

.trust-node b {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.trust-node strong {
  display: block;
}

.trust-node span {
  color: #cadad4;
  font-size: 0.78rem;
}

.trust-arrow {
  height: 1.5rem;
  position: relative;
  margin-left: 1.5rem;
  border-left: 1px solid #9fb7ff;
}

.trust-arrow::after {
  position: absolute;
  bottom: -0.1rem;
  left: -0.24rem;
  color: #9fb7ff;
  content: "↓";
}

.shim-boundary {
  padding: 1rem;
  border: 1px dashed #e7a291;
  color: #ffd6cc;
  font-size: 0.78rem;
  font-weight: 700;
}

.schematic-note {
  margin-top: 1rem;
  color: #cadad4;
  font-size: 0.75rem;
}

.chapter-journey {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--graphite);
}

.chapter-journey div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.chapter-journey strong {
  color: var(--forest);
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.chapter-highlight {
  margin-top: 1.5rem;
  padding: 1.4rem;
  border-left: 5px solid var(--cobalt);
  background: var(--mineral-bright);
}

.chapter-highlight strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--serif);
  font-size: 1.4rem;
}

.late-bound {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.fit-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.fit-column {
  border-top: 3px solid var(--forest);
}

.fit-column.not-for {
  border-top-color: var(--rust);
}

.fit-column h3 {
  padding-top: 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fit-column ul {
  padding-left: 1.15rem;
}

.notes-home {
  background: var(--mineral-bright);
}

.notes-list {
  margin-top: 3rem;
  border-top: 1px solid var(--graphite);
}

.note-row {
  display: grid;
  grid-template-columns: 8rem minmax(20rem, 1fr) minmax(13rem, 0.4fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--rule);
}

.note-row time,
.note-row .note-meta {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.note-row h3 {
  margin-bottom: 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.note-row p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.draft-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--rust);
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.workflow {
  margin-top: clamp(3rem, 6vw, 6rem);
  padding-top: 2rem;
  border-top: 1px solid var(--graphite);
}

.workflow-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.workflow-line li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.workflow-line li:not(:last-child)::after {
  color: var(--cobalt);
  content: "→";
}

.approval-lab {
  display: grid;
  grid-template-columns: minmax(22rem, 1fr) minmax(19rem, 0.72fr);
  gap: 2rem;
  margin-top: 2rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--graphite);
  background: var(--mineral);
}

.approval-lab textarea {
  width: 100%;
  min-height: 11rem;
  resize: vertical;
  padding: 0.9rem;
  border: 1px solid var(--rule);
  color: var(--graphite);
  background: var(--white);
  line-height: 1.5;
}

.source-dossier {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--rule);
  background: var(--mineral-bright);
}

.source-dossier h4 {
  margin: 0 0 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.source-dossier ul {
  margin: 0;
  padding-left: 1.15rem;
}

.source-dossier p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.hash-output {
  min-height: 3rem;
  overflow-wrap: anywhere;
  padding: 0.75rem;
  color: var(--forest);
  background: var(--mineral-bright);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.approval-actions button {
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--graphite);
  background: transparent;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.source-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1rem;
}

.source-check input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
}

.approval-status {
  margin-top: 1rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--rust);
  color: var(--ink-soft);
}

.approval-status[data-approved="true"] {
  border-left-color: var(--forest);
  color: var(--forest);
}

.faq-list {
  border-top: 1px solid var(--graphite);
}

.faq-list details {
  border-bottom: 1px solid var(--rule);
}

.faq-list summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 700;
}

.faq-list summary::after {
  color: var(--cobalt);
  font-family: var(--sans);
  content: "+";
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 70ch;
  padding: 0 0 1.2rem;
  color: var(--ink-soft);
}

.offer {
  color: var(--white);
  background: var(--graphite);
}

.offer .section-kicker,
.offer .section-intro {
  color: #c6d2cd;
}

.offer-price {
  margin: 0.3rem 0 0.8rem;
  color: #9fb7ff;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.offer-rules {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #d9e1de;
}

.offer-rules li + li {
  margin-top: 0.45rem;
}

.checkout-gate {
  padding: clamp(1.25rem, 3vw, 2.2rem);
  border: 1px solid rgba(255, 253, 248, 0.55);
}

.checkout-gate strong {
  display: block;
  margin-bottom: 0.6rem;
  color: #ffd6cc;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-gate p:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding-block: 2rem;
  color: var(--ink-soft);
  background: var(--mineral);
  font-size: 0.78rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

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

.footer-row p {
  margin-bottom: 0;
}

.note-page main {
  padding-block: clamp(3rem, 7vw, 7rem);
}

.notes-header,
.article-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--graphite);
}

.notes-header h1,
.article-header h1 {
  max-width: 13ch;
  font-size: clamp(3.2rem, 7vw, 7rem);
}

.notes-header p,
.article-header p {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.article-body {
  width: min(100%, var(--reading));
  margin-top: 3rem;
}

.article-body h2 {
  max-width: none;
  margin-top: 2.8rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.article-body h3 {
  margin-top: 2rem;
  font-family: var(--serif);
}

.article-body li + li {
  margin-top: 0.5rem;
}

.article-callout {
  margin-block: 2rem;
  padding: 1.2rem;
  border-left: 4px solid var(--cobalt);
  background: var(--mineral-bright);
}

.article-sources {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--graphite);
}

.corrections {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.corrections th,
.corrections td {
  padding: 0.7rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 0.9rem;
    font-size: 0.67rem;
  }

  .hero-grid {
    grid-template-columns: minmax(25rem, 0.9fr) minmax(31rem, 1.1fr);
  }

  h1 {
    font-size: clamp(4rem, 6.7vw, 5.7rem);
  }

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

  .telegram-grid {
    grid-template-columns: minmax(18rem, 0.75fr) minmax(18rem, 0.65fr);
  }

  .trust-path {
    grid-column: 1 / -1;
    grid-template-columns: repeat(7, auto);
    align-items: center;
  }

  .trust-arrow {
    width: 1.4rem;
    height: 0;
    margin-left: 0;
    border-top: 1px solid #9fb7ff;
    border-left: 0;
  }

  .trust-arrow::after {
    inset: -0.85rem -0.2rem auto auto;
    content: "→";
  }

  .shim-boundary {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1181px) {
  .has-chapter-rail .page-progress {
    display: none;
  }

  .scene-meta {
    padding-right: 1rem;
  }
}

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

  h1 {
    font-size: clamp(3.6rem, 6vw, 5.1rem);
  }

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

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

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

  .state-tag {
    left: 0;
    max-width: 11rem;
    font-size: 0.68rem;
  }

  .static-stack {
    min-height: 430px;
  }

  .stack-layer {
    width: 70%;
  }

  .scene-meta {
    margin-top: -1rem;
  }
}

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

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

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

  .hero-sticky {
    min-height: auto;
    position: static;
    padding-block: 2.2rem 3.5rem;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3.45rem, 15vw, 5.8rem);
  }

  .hero-lead {
    max-width: 27ch;
  }

  .stack-panel {
    order: 2;
  }

  .stack-stage {
    min-height: auto;
  }

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

  .static-stack img {
    max-height: none;
  }

  .static-state-note,
  .scene-meta {
    display: none;
  }

  .section {
    padding-block: clamp(4rem, 14vw, 7rem);
  }

  .intro-eu,
  .cost-grid,
  .layer-index,
  .run-layout,
  .failure-layout,
  .tools-layout,
  .structure-layout,
  .fit-layout,
  .notes-intro,
  .offer-layout,
  .approval-lab {
    grid-template-columns: 1fr;
  }

  .book-object {
    width: min(72vw, 310px);
  }

  .reading-columns {
    columns: 1;
  }

  .cost-grid > :first-child,
  .layer-index > :first-child {
    max-width: 44rem;
  }

  .role-split {
    grid-template-columns: 1fr;
  }

  .role-column + .role-column {
    border-top: 1px solid rgba(255, 253, 248, 0.5);
    border-left: 0;
  }

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

  .trust-path {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  .legal-header,
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .legal-header h1 {
    font-size: clamp(2.2rem, 11.5vw, 5.1rem);
  }

  .hero-copy {
    display: contents;
  }

  .hero-grid {
    gap: 1.5rem;
  }

  h1 {
    margin-bottom: 0.8rem;
    font-size: clamp(3rem, 15.5vw, 4.4rem);
  }

  .hero-lead {
    font-size: clamp(1.35rem, 6.2vw, 1.8rem);
  }

  .hero-body {
    font-size: 0.96rem;
  }

  .cta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .cta-row .button {
    width: 100%;
  }

  .button-secondary {
    justify-content: center;
    padding: 0.65rem 1.2rem;
  }

  .hero-status {
    display: grid;
    gap: 0.35rem;
    font-size: 0.72rem;
  }

  .hero-status li:not(:last-child)::after {
    display: none;
  }

  h2 {
    font-size: clamp(2.55rem, 12.5vw, 4rem);
  }

  .note-page h1 {
    font-size: clamp(2.4rem, 11vw, 3.2rem);
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .note-page h2 {
    font-size: clamp(2.15rem, 10.5vw, 3.2rem);
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .reading-sample {
    box-shadow: 7px 7px 0 var(--mineral-deep);
  }

  .cost-line {
    grid-template-columns: 6.7rem 1fr;
  }

  .cost-line b {
    grid-column: 1 / -1;
  }

  .layer-list li {
    grid-template-columns: 2.2rem 1fr;
  }

  .layer-list p {
    grid-column: 2;
  }

  .run-steps li {
    grid-template-columns: 2rem 1fr;
  }

  .run-steps em {
    grid-column: 2;
  }

  .local-result {
    grid-template-columns: 1fr;
  }

  .failure-rail {
    grid-template-columns: 1fr;
  }

  .rail-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .tool-line {
    grid-template-columns: 1fr;
  }

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

  .local-mini-stack {
    min-height: 22rem;
  }

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

  .trust-arrow {
    width: 0;
    height: 1.5rem;
    margin-left: 1.5rem;
    border-top: 0;
    border-left: 1px solid #9fb7ff;
  }

  .trust-arrow::after {
    inset: auto auto -0.1rem -0.24rem;
    content: "↓";
  }

  .chapter-journey div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

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

  .note-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .workflow-line {
    display: grid;
  }

  .workflow-line li {
    display: grid;
    grid-template-columns: 1fr 1rem;
  }

  .workflow-line li:not(:last-child)::after {
    content: "↓";
  }

  .approval-actions {
    display: grid;
  }

  .footer-row {
    flex-direction: column;
    gap: 0.6rem;
  }

  .article-meta {
    display: grid;
  }

  .corrections {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 360px) {
  :root {
    --gutter: 0.85rem;
  }

  .brand {
    max-width: 12rem;
    font-size: 0.92rem;
    white-space: normal;
  }

  .legal-header h1 {
    font-size: clamp(2rem, 10vw, 2.4rem);
  }

  h1 {
    font-size: 2.45rem;
  }

  .hero-sticky {
    padding-top: 1.25rem;
  }

  .hero-lead {
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
    line-height: 1.12;
  }

  .hero-skill {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
  }

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

  .button {
    padding-inline: 0.65rem;
    font-size: 0.7rem;
  }

  .reading-sample {
    padding: 1rem;
  }

  .phone {
    border-width: 4px;
  }
}

/* Purposeful motion: state, sequence and trust-boundary feedback. */
.page-progress {
  height: 3px;
  position: fixed;
  z-index: 90;
  inset: 0 0 auto;
  overflow: hidden;
  pointer-events: none;
}

.page-progress span {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--cobalt);
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left center;
  transition: transform 80ms linear;
}

.js.motion-ready .site-header {
  animation: header-enter 420ms ease-out both;
}

.js.motion-ready .hero-copy h1,
.js.motion-ready .hero-lead,
.js.motion-ready .hero-skill,
.js.motion-ready .hero-body,
.js.motion-ready .cta-row,
.js.motion-ready .hero-status,
.js.motion-ready .stack-panel {
  animation: hero-enter 720ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.js.motion-ready .hero-lead { animation-delay: 70ms; }
.js.motion-ready .hero-skill { animation-delay: 130ms; }
.js.motion-ready .hero-body { animation-delay: 190ms; }
.js.motion-ready .cta-row { animation-delay: 250ms; }
.js.motion-ready .hero-status { animation-delay: 310ms; }
.js.motion-ready .stack-panel { animation-delay: 170ms; }

.js .motion-reveal {
  --motion-x: 0px;
  opacity: 0;
  transform: translate3d(var(--motion-x), 28px, 0);
  transition-property: opacity, transform;
  transition-duration: 620ms, 760ms;
  transition-delay: calc(var(--motion-index, 0) * 62ms);
  transition-timing-function: ease, cubic-bezier(0.2, 0.76, 0.2, 1);
}

.js .motion-reveal.is-revealed,
.js .motion-reveal:focus-within {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

#roles .role-column:first-child,
#fit .fit-column:first-child {
  --motion-x: -24px;
}

#roles .role-column:nth-child(2),
#fit .fit-column:nth-child(2) {
  --motion-x: 24px;
}

#telegram .phone.motion-reveal {
  transform: translate3d(0, 42px, 0) scale(0.97);
}

#telegram .phone.motion-reveal.is-revealed,
#telegram .phone.motion-reveal:focus-within {
  transform: translate3d(0, 0, 0) scale(1);
}

.motion-reveal:not(.is-revealed) .cost-line i,
.cost-line.motion-reveal:not(.is-revealed) i {
  transform: scaleX(0);
}

.cost-line i {
  transform-origin: left center;
  transition: transform 760ms cubic-bezier(0.2, 0.76, 0.2, 1) 180ms;
}

.motion-reveal.is-revealed .local-result span {
  animation: result-confirm 520ms ease-out both;
}

.motion-reveal.is-revealed .local-result span:nth-child(2) { animation-delay: 110ms; }
.motion-reveal.is-revealed .local-result span:nth-child(3) { animation-delay: 220ms; }

[data-hero-story]:is([data-motion="scroll"], [data-motion="replay"]) .static-state-note {
  display: none;
}

[data-hero-story][data-motion="replay"] .stack-layer {
  transition-duration: 760ms, 360ms;
}

.state-changing .state-tag {
  animation: state-label-enter 360ms ease-out both;
}

.stack-stage[data-state="fault"] {
  --path-progress: 0.57;
}

.stack-stage[data-state="fault"] .checkpoint:nth-of-type(5) {
  opacity: 0.4;
  fill: var(--mineral-bright);
  stroke: var(--rust);
}

.stack-stage.state-changing[data-state="fault"] .fault-tag {
  animation: fault-confirm 520ms ease-out both;
}

.role-rails {
  position: absolute;
  z-index: 14;
  inset: 0;
  pointer-events: none;
}

.role-rails span {
  position: absolute;
  padding: 0.38rem 0.48rem;
  border-left: 3px solid currentColor;
  background: rgba(250, 248, 242, 0.94);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(var(--rail-shift));
  transition: opacity 260ms ease, transform 480ms ease;
}

.reader-rail {
  --rail-shift: -14px;
  top: 16%;
  left: 7%;
  color: var(--forest);
}

.assistant-rail {
  --rail-shift: 14px;
  top: 45%;
  right: 2%;
  color: var(--cobalt);
}

.stack-stage[data-state="roles"] .role-rails span {
  opacity: 1;
  transform: translateX(0);
}

.telegram-grid,
.trust-node,
.local-mini-stack,
.shim-boundary {
  position: relative;
}

.trust-node::after {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  padding: 0.18rem 0.35rem;
  color: var(--white);
  background: var(--cobalt);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  content: attr(data-request-label);
  opacity: 0;
  transform: translateY(6px);
}

.telegram-grid.is-action-active .phone {
  animation: phone-response 520ms ease-out both;
}

.telegram-grid.is-action-active .trust-node:not(.path-bypassed)::after {
  animation: request-visit 640ms ease-out both;
  animation-delay: calc(var(--path-index, 0) * 170ms);
}

.telegram-grid.is-action-active .trust-arrow:not(.path-bypassed) {
  animation: route-pass 440ms ease-out both;
  animation-delay: calc(var(--path-index, 0) * 170ms);
}

.telegram-grid[data-active-action="release"].is-action-active .shim-boundary {
  animation: guard-confirm 620ms ease-out 760ms both;
}

.telegram-grid[data-active-action="release"].is-action-active .local-mini-stack::before {
  position: absolute;
  z-index: 2;
  inset: 0.55rem;
  border: 2px solid #9fb7ff;
  content: "";
  pointer-events: none;
  animation: local-continues 900ms ease-out 820ms both;
}

@keyframes header-enter {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes state-label-enter {
  from { opacity: 0.25; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fault-confirm {
  0% { opacity: 0; transform: translateX(12px); }
  55% { opacity: 1; transform: translateX(-3px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes result-confirm {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes phone-response {
  0% { transform: translateY(0); }
  45% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

@keyframes request-visit {
  0% { opacity: 0; transform: translateY(6px); }
  25%, 68% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes route-pass {
  0% { opacity: 0.25; transform: scale(0.72); }
  55% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes guard-confirm {
  0% { opacity: 0.5; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(-4px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes local-continues {
  0% { opacity: 0; transform: scale(0.97); }
  40%, 75% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

@media (max-width: 800px) {
  #roles .role-column:first-child,
  #roles .role-column:nth-child(2),
  #fit .fit-column:first-child,
  #fit .fit-column:nth-child(2) {
    --motion-x: 0px;
  }

  .rail-arrow.motion-reveal,
  .rail-arrow.motion-reveal.is-revealed {
    transform: rotate(90deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

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

  .hero-sticky {
    min-height: auto;
    position: static;
  }

  .dynamic-stack,
  .scene-meta {
    display: none !important;
  }

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

  .page-progress {
    display: none;
  }

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

.reduced-motion-forced {
  scroll-behavior: auto;
}

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

.reduced-motion-forced .hero-sticky {
  min-height: auto;
  position: static;
}

.reduced-motion-forced .dynamic-stack,
.reduced-motion-forced .scene-meta {
  display: none !important;
}

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

.reduced-motion-forced *,
.reduced-motion-forced *::before,
.reduced-motion-forced *::after {
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
}

.reduced-motion-forced .page-progress {
  display: none;
}

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

/* Award pass — one spatial editorial system, not a layer of decoration. */
.site-header {
  transition: background-color 240ms ease, border-color 240ms ease;
}

.desktop-nav a[aria-current="location"] {
  border-bottom-color: var(--cobalt);
  color: var(--cobalt-dark);
}

.chapter-rail {
  width: 3.25rem;
  position: fixed;
  z-index: 46;
  top: calc(var(--header) + 1rem);
  right: 0;
  bottom: 1rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.55rem;
  color: var(--white);
  background: var(--forest);
  box-shadow: -8px 10px 0 rgba(26, 33, 31, 0.08);
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 420ms cubic-bezier(0.2, 0.78, 0.2, 1), background-color 260ms ease;
}

.motion-ready .chapter-rail {
  transform: translateX(0);
}

.chapter-rail-number {
  color: #a9c0ff;
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.chapter-rail-copy {
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.chapter-rail-copy strong,
.chapter-rail-copy span {
  font-size: 0.61rem;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.chapter-rail-copy span {
  color: #c6d2cd;
  font-family: var(--mono);
}

.chapter-rail-track {
  width: 1px;
  min-height: 3.2rem;
  position: relative;
  overflow: visible;
  background: rgba(255, 253, 248, 0.34);
}

.chapter-rail-track i {
  width: 7px;
  height: 7px;
  position: absolute;
  top: calc((100% - 7px) * var(--chapter-progress, 0));
  left: -3px;
  border: 1px solid var(--white);
  border-radius: 50%;
  background: var(--cobalt);
  transition: top 300ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

.hero-title-line {
  display: block;
  overflow: clip;
  white-space: nowrap;
}

.hero-title-line > span {
  display: block;
}

.js.motion-ready .hero-copy h1 {
  animation: none;
}

.js.motion-ready .hero-title-line > span {
  animation: title-line-enter 820ms cubic-bezier(0.18, 0.78, 0.18, 1) both;
}

.js.motion-ready .hero-title-line:nth-child(2) > span { animation-delay: 70ms; }
.js.motion-ready .hero-title-line:nth-child(3) > span { animation-delay: 140ms; }

.button {
  position: relative;
  overflow: hidden;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    transform: translateY(-2px);
  }

  .button:active {
    transform: translateY(0);
  }
}

[data-approve-run].is-approved {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}

.section[data-chapter] {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.section[data-chapter]::before {
  position: absolute;
  z-index: -1;
  top: clamp(1rem, 4vw, 3.5rem);
  right: clamp(1rem, 4vw, 4rem);
  color: rgba(23, 61, 52, 0.055);
  font-family: var(--serif);
  font-size: clamp(8rem, 18vw, 18rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.72;
  content: attr(data-chapter);
  pointer-events: none;
  transform: translateY(var(--chapter-number-shift, 0));
  transition: transform 90ms linear;
}

.section[data-chapter] > .shell {
  position: relative;
  z-index: 1;
}

.section[data-chapter]::after {
  width: calc(100% - var(--gutter) - var(--gutter));
  max-width: calc(var(--content) - var(--gutter) - var(--gutter));
  height: 2px;
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  background: var(--cobalt);
  content: "";
  transform: translateX(-50%) scaleX(var(--chapter-local-progress, 0));
  transform-origin: left center;
}

.roles[data-chapter]::before,
.telegram[data-chapter]::before,
.offer[data-chapter]::before {
  color: rgba(255, 253, 248, 0.055);
}

.layer-list li,
.role-column,
.failure-node,
.tool-line,
.note-row,
.chapter-journey > div {
  transition: transform 260ms cubic-bezier(0.2, 0.78, 0.2, 1), background-color 220ms ease, border-color 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .layer-list li:hover,
  .tool-line:hover,
  .note-row:hover,
  .chapter-journey > div:hover {
    background: rgba(250, 248, 242, 0.68);
    transform: translateX(0.65rem);
  }

  .role-column:hover {
    background: rgba(255, 253, 248, 0.055);
    transform: translateY(-0.45rem);
  }
}

.run-steps {
  --run-progress: 0;
  position: relative;
  border-top: 0;
}

.run-steps::before,
.run-steps::after {
  width: 2px;
  position: absolute;
  z-index: 0;
  top: 1.3rem;
  left: 1.22rem;
  content: "";
}

.run-steps::before {
  bottom: 1.3rem;
  background: var(--rule);
}

.run-steps::after {
  height: calc((100% - 2.6rem) * var(--run-progress));
  background: var(--cobalt);
  transition: height 90ms linear;
}

.run-steps li {
  min-height: 5.4rem;
  position: relative;
  z-index: 1;
  grid-template-columns: 3rem 1fr auto;
  padding: 1.2rem 0 1.2rem 0;
}

.run-steps li::before {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  align-self: start;
  border: 2px solid var(--cobalt);
  border-radius: 50%;
  background: var(--mineral);
  line-height: 1;
}

.run-steps li:nth-child(4)::before {
  color: var(--rust);
  border-color: var(--rust);
}

@media (hover: hover) and (pointer: fine) {
  .run-steps li:hover {
    background: rgba(250, 248, 242, 0.74);
    transform: translateX(0.65rem);
  }
}

.failure-rail {
  position: relative;
}

.failure-rail::before {
  height: 2px;
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 0;
  left: 0;
  background: var(--cobalt);
  content: "";
}

.failure-node {
  background: var(--mineral);
}

@media (hover: hover) and (pointer: fine) {
  .failure-node:hover {
    transform: translateY(-0.55rem);
  }
}

#telegram > .shell > h2 {
  max-width: 14ch;
  font-size: clamp(4rem, 7.1vw, 7.4rem);
  line-height: 0.9;
}

.telegram-grid {
  text-transform: none;
}

.phone {
  position: relative;
  z-index: 4;
  box-shadow: 0 2rem 3.5rem rgba(8, 21, 18, 0.38), 0 0 0 1px rgba(255, 253, 248, 0.16);
  translate: 0 var(--chapter-drift, 0);
}

.local-mini-stack {
  border-color: rgba(255, 253, 248, 0.22);
  background: rgba(8, 21, 18, 0.08);
}

.trust-path {
  position: relative;
}

.trust-path::before {
  width: 2px;
  position: absolute;
  z-index: 0;
  top: 2.3rem;
  bottom: 6.1rem;
  left: 1.97rem;
  background: var(--cobalt);
  content: "";
  opacity: 0.72;
}

.trust-node {
  z-index: 1;
  border: 0;
  border-top: 1px solid rgba(255, 253, 248, 0.34);
  background: var(--forest);
}

.trust-node b {
  background: var(--forest);
}

.trust-arrow {
  z-index: 1;
  border-left-width: 2px;
}

.shim-boundary {
  background: rgba(168, 75, 54, 0.08);
}

.notes-list {
  border-top-width: 2px;
}

.note-row h3 a {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  text-decoration: none;
  transition: background-size 320ms ease;
}

.note-row h3 a:hover,
.note-row h3 a:focus-visible {
  background-size: 100% 1px;
}

.workflow > h3 {
  max-width: 12ch;
  margin: 0 0 clamp(2rem, 5vw, 4rem);
  font-family: var(--serif);
  font-size: clamp(4.5rem, 9.8vw, 10rem);
  letter-spacing: -0.065em;
  line-height: 0.82;
}

#first-run .run-steps > li:nth-child(odd),
#inside-book .chapter-journey > div:nth-child(odd) {
  --motion-x: 1.1rem;
}

#first-run .run-steps > li:nth-child(even),
#inside-book .chapter-journey > div:nth-child(even) {
  --motion-x: -1.1rem;
}

#pipeline-notes .approval-lab.motion-reveal {
  transform: translate3d(0, 2rem, 0) scale(0.985);
}

#pipeline-notes .approval-lab.motion-reveal.is-revealed,
#pipeline-notes .approval-lab.motion-reveal:focus-within {
  transform: translate3d(0, 0, 0) scale(1);
}

.workflow-line {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  border-top: 2px solid var(--cobalt);
}

.workflow-line li {
  min-width: 0;
  position: relative;
  display: block;
  padding: 1.25rem 0.7rem 0 0;
  line-height: 1.3;
}

.workflow-line li::before {
  width: 0.68rem;
  height: 0.68rem;
  position: absolute;
  top: -0.42rem;
  left: 0;
  border: 2px solid var(--cobalt);
  border-radius: 50%;
  background: var(--mineral-bright);
  content: "";
}

.workflow-line li:not(:last-child)::after {
  position: absolute;
  top: 0.9rem;
  right: 0.45rem;
}

.workflow-line li:nth-last-child(2)::before {
  border-color: var(--rust);
  background: var(--mineral-bright);
  box-shadow: 0 0 0 4px var(--mineral-bright), 0 0 0 5px var(--rust);
}

.approval-lab {
  gap: 0;
  padding: 0;
  border-color: var(--forest);
  background: var(--mineral-bright);
  box-shadow: 0 1.6rem 3.4rem rgba(26, 33, 31, 0.13), 0.75rem 0.75rem 0 var(--mineral-deep);
}

.approval-lab > div {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.6rem);
}

.approval-lab > div + div {
  border-left: 1px solid var(--rule);
  box-shadow: inset 1.2rem 0 1.8rem -1.8rem rgba(26, 33, 31, 0.5);
}

.source-dossier {
  border: 0;
  border-left: 3px solid var(--forest);
}

.hash-output {
  border-block: 1px solid var(--rule);
}

.approval-actions button {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .approval-actions button:hover {
    color: var(--white);
    border-color: var(--forest);
    background: var(--forest);
    transform: translateY(-2px);
  }
}

.offer h2 {
  max-width: 9ch;
  font-size: clamp(4rem, 8vw, 8.6rem);
  line-height: 0.86;
}

@media (min-width: 1181px) {
  .hero-grid {
    grid-template-columns: minmax(29rem, 0.82fr) minmax(38rem, 1.18fr);
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(4.9rem, 7.25vw, 7.75rem);
  }

  .stack-stage {
    width: min(100%, 780px);
    min-height: 620px;
  }

  .telegram-grid {
    grid-template-columns: minmax(36rem, 1.2fr) minmax(25rem, 0.8fr);
    align-items: center;
  }

  .local-mini-stack,
  .phone {
    grid-column: 1;
    grid-row: 1;
  }

  .local-mini-stack {
    width: 76%;
    min-height: 34rem;
    justify-self: start;
  }

  .phone {
    justify-self: end;
    margin-right: 1rem;
  }

  .trust-path {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: 1fr;
  }

  .trust-arrow {
    width: 0;
    justify-self: start;
  }
}

@media (max-width: 1180px) {
  .chapter-rail {
    display: none;
  }

  .workflow-line {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 0;
    border-top: 0;
  }

  .workflow-line li {
    border-top: 2px solid var(--cobalt);
  }
}

@media (max-width: 800px) {
  .hero-copy {
    display: block;
    position: relative;
    padding-left: 1.65rem;
  }

  .hero-copy::before {
    width: 2px;
    position: absolute;
    top: 0.45rem;
    bottom: 0;
    left: 0.25rem;
    background: var(--cobalt);
    content: "";
  }

  .hero-copy::after {
    width: 0.72rem;
    height: 0.72rem;
    position: absolute;
    top: 0.32rem;
    left: -0.08rem;
    border: 2px solid var(--cobalt);
    border-radius: 50%;
    background: var(--mineral);
    content: "";
  }

  h1 {
    max-width: none;
    font-size: clamp(2.85rem, 14.5vw, 4.2rem);
  }

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

  .section[data-chapter]::before {
    top: 1rem;
    right: 0.5rem;
    font-size: 8rem;
  }

  .run-steps li {
    grid-template-columns: 2.8rem 1fr;
  }

  .run-steps em {
    grid-column: 2;
  }

  .failure-rail::before {
    width: 2px;
    height: auto;
    top: 0;
    bottom: 0;
    left: 50%;
  }

  #telegram > .shell > h2 {
    font-size: clamp(3.1rem, 13.5vw, 4.8rem);
  }

  .workflow > h3 {
    font-size: clamp(3.6rem, 18vw, 6rem);
  }

  .workflow-line {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-left: 0.35rem;
    padding-left: 1.4rem;
    border-left: 2px solid var(--cobalt);
  }

  .workflow-line li {
    min-height: 3.4rem;
    padding: 0 0 1.15rem 0.4rem;
    border-top: 0;
  }

  .workflow-line li::before {
    top: 0.15rem;
    left: -1.84rem;
  }

  .workflow-line li:not(:last-child)::after {
    display: none;
  }

  .approval-lab > div + div {
    border-top: 1px solid var(--rule);
    border-left: 0;
    box-shadow: inset 0 1.2rem 1.8rem -1.8rem rgba(26, 33, 31, 0.5);
  }
}

@media (max-width: 360px) {
  .hero-copy {
    padding-left: 1.25rem;
  }

  h1 {
    font-size: 2.35rem;
  }
}

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

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

  h1 {
    margin-bottom: 0.8rem;
  }

  .hero-lead {
    margin-bottom: 0.65rem;
  }

  .hero-body {
    margin-bottom: 0.9rem;
  }
}

@media (max-width: 959px) and (max-height: 600px) {
  .hero-sticky {
    padding-top: 1rem;
  }

  .hero-copy {
    display: grid;
  }

  h1 {
    font-size: clamp(2.5rem, 7vw, 3.2rem);
  }

  .hero-lead {
    margin-bottom: 0.55rem;
    font-size: 1.2rem;
  }

  .hero-skill {
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .hero-body {
    order: 5;
    margin-top: 0.85rem;
  }

  .cta-row {
    order: 4;
  }

  .hero-status {
    order: 6;
  }

  .stack-panel {
    margin-top: 0;
  }
}

@keyframes title-line-enter {
  from { opacity: 0; transform: translateY(115%) rotate(1.5deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
  .chapter-rail {
    display: none !important;
  }

  .hero-title-line > span {
    animation: none !important;
    transform: none !important;
  }

  .run-steps {
    --run-progress: 1 !important;
  }

  .section[data-chapter]::before,
  .phone {
    transform: none !important;
    translate: none !important;
  }


  .section[data-chapter]::after {
    display: none !important;
  }
}

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

.reduced-motion-forced .hero-title-line > span {
  animation: none !important;
  transform: none !important;
}

.reduced-motion-forced .run-steps {
  --run-progress: 1 !important;
}

.reduced-motion-forced .section[data-chapter]::before,
.reduced-motion-forced .phone {
  transform: none !important;
  translate: none !important;
}

.reduced-motion-forced .section[data-chapter]::after {
  display: none !important;
}

/* Keep the first reading section legible at desktop scale; the body should
   introduce its content before the next scroll step, not hide it below the
   fold behind oversized display type. */
@media (min-width: 960px) {
  #recovery .failure-layout > div:first-child > h2 {
    max-width: 11ch;
    font-size: clamp(3.6rem, 5vw, 5.6rem);
    line-height: 0.91;
  }

  #recovery .recovery-motif {
    height: 23%;
    top: 9%;
  }

  #eu-ai-act .book-intro > h2 {
    max-width: 14ch;
    font-size: clamp(3rem, 4.8vw, 5rem);
    line-height: 0.92;
  }

  #eu-ai-act .reading-sample h2 {
    max-width: 15ch;
    font-size: clamp(2.7rem, 4.4vw, 4.8rem);
    line-height: 0.94;
  }
}

@media (max-width: 959px) {
  /* Reveal motion must not push the seven-step list beyond the mobile edge. */
  #first-run .run-steps > li {
    --motion-x: 0px !important;
  }

  /* Reserve the reveal offset so the FAQ heading cannot enter the list. */
  #faq h2 {
    margin-bottom: 2.25rem;
  }
}
