/* Production homepage styles: selective scroll treatment adopted from issue #22. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --canvas: #f4f7fa;
  --ink: #0f2747;
  --muted: #556579;
  --line: #d7e2ed;
  --blue: #2563eb;
  --blue-deep: #174ea6;
  --blue-soft: #eaf3fc;
  --teal: #4ba3a0;
  --teal-deep: #2c7371;
  --teal-soft: #e5f4f3;
  --radius: 8px;

  /* dark chapter */
  --night: #061527;
  --night-2: #0a2440;
  --night-ink: #e9f2fc;
  --night-muted: #a3bdd8;
  --night-line: rgba(159, 197, 233, .22);
  --glow-teal: #6fd6d1;
  --glow-blue: #82b4ff;
  --warn: #e0a26a;

  --ease: cubic-bezier(.22, .7, .2, 1);
  --ease-out: cubic-bezier(.22, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { margin-top: 0; letter-spacing: -.01em; line-height: 1.03; }
p { margin-top: 0; }
img, svg { display: block; max-width: 100%; }
svg { font-family: inherit; }
:focus-visible { outline: 3px solid var(--glow-teal); outline-offset: 3px; }

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

.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: var(--radius); padding: 14px 20px; font-weight: 850; line-height: 1.1; text-align: center; transition: transform .25s var(--ease-out), background-color .25s ease; }
.button.primary { background: var(--blue); color: var(--paper); box-shadow: 0 10px 30px rgba(37, 99, 235, .28); }
.button.primary:hover { background: #3b76f6; transform: translateY(-2px); }

.kicker { margin-bottom: 16px; color: var(--teal-deep); font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.note { color: var(--muted); font-size: .92rem; font-weight: 700; line-height: 1.6; }

.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px clamp(16px, 4vw, 48px); border-bottom: 1px solid transparent; background: rgba(6, 21, 39, .72); color: var(--night-ink); backdrop-filter: blur(12px); transition: background-color .4s ease, border-color .4s ease, color .4s ease; }
.site-header.is-light { border-bottom-color: var(--line); background: rgba(248, 250, 252, .9); color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 40px; object-fit: contain; }
.site-header:not(.is-light) .brand-mark { filter: brightness(0) invert(1); opacity: .92; }
.brand-name { font-size: .9rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; font-size: .88rem; font-weight: 760; }
.nav a { padding: 9px 11px; border-radius: 6px; opacity: .82; transition: opacity .2s ease, background-color .2s ease; }
.nav a:hover { opacity: 1; }
.nav .nav-cta { background: var(--blue); color: var(--paper); opacity: 1; }
.nav .nav-cta:hover { background: #3b76f6; }

/* --- dark chapter shell ----------------------------------------------- */

.darkzone { position: relative; z-index: 1; background: radial-gradient(120% 90% at 78% 12%, #0d2b4c 0%, var(--night) 62%); color: var(--night-ink); }
/* The sticky graphic stops at the end of this zone; fade it out so it does not
   end on a hard cut against the light chapters. */
.darkzone::after { position: absolute; right: 0; bottom: 0; left: 0; z-index: 0; height: 420px; background: linear-gradient(rgba(6, 21, 39, 0) 0%, rgba(6, 21, 39, .82) 52%, var(--night) 100%); content: ""; pointer-events: none; }
.darkzone h1, .darkzone h2, .darkzone h3 { color: var(--night-ink); }
.darkzone .kicker { color: var(--glow-teal); }
.darkzone .note { color: var(--night-muted); }

.systemfield { position: sticky; top: 0; z-index: 0; height: 100svh; margin-bottom: -100svh; pointer-events: none; }
.field { width: 100%; height: 100%; opacity: var(--field-opacity, 1); }
.field-grid { color: #7fb0e6; opacity: calc(.05 + var(--p, 0) * .07); transition: opacity .4s linear; }

/* --tangle defaults to 1 so the graphic renders in its resolved, ordered state
   when this page is read without JavaScript. */
.tangles path { fill: none; stroke: var(--warn); stroke-width: 1.6; opacity: .55; }
.tangles, .deadends, .ghosts { opacity: calc(1 - var(--tangle, 1)); }
.deadends circle { fill: none; stroke: var(--warn); stroke-width: 1.6; opacity: .6; }
.ghosts rect { fill: none; stroke: #9db6d0; stroke-width: 1.2; stroke-dasharray: 5 6; opacity: .45; }

.routes path { fill: none; stroke: var(--glow-blue); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 0); opacity: calc(.25 + var(--route, 1) * .55); }
.flow path { fill: none; stroke-width: 3.5; stroke-linecap: round; opacity: var(--flow, 0); }

.node > rect { fill: rgba(8, 26, 46, .82); stroke: var(--warn); stroke-width: 1.5; transition: stroke .6s ease, fill .6s ease; }
.node text { fill: var(--night-muted); font-size: 15px; font-weight: 700; text-anchor: middle; transition: fill .6s ease; }
/* The same six glyphs as the capability tiles further down the page, so the
   graphic and that chapter are visibly naming the same six systems. */
.node-icon { fill: none; stroke: var(--warn); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: stroke .6s ease; }
.field.is-ordered .node > rect { fill: rgba(10, 36, 64, .9); stroke: var(--glow-teal); }
.field.is-ordered .node text { fill: #d8ecff; }
.field.is-ordered .node-icon { stroke: var(--glow-teal); }
.field.is-chaotic .node { animation: drift 5.5s ease-in-out infinite alternate; }
.field.is-chaotic .node:nth-child(2n) { animation-duration: 6.8s; }
.field.is-chaotic .node:nth-child(3n) { animation-duration: 4.9s; }

@keyframes drift { from { opacity: .82; } to { opacity: 1; } }

/* --- hero -------------------------------------------------------------- */

.hero { position: relative; z-index: 1; display: grid; align-content: center; min-height: calc(100svh - 118px); padding: clamp(56px, 9vh, 110px) clamp(18px, 5vw, 72px) 64px; }
/* Heavier through the band the copy actually reaches — the longest line ends
   near 55% on a desktop window and near 70% on a small one — then off quickly,
   so the tangle keeps its presence in the open right-hand side. */
.hero::before { position: absolute; inset: 0; background: linear-gradient(96deg, rgba(6, 21, 39, .95) 0%, rgba(6, 21, 39, .88) 44%, rgba(6, 21, 39, .58) 64%, rgba(6, 21, 39, .08) 84%); content: ""; }
.hero-inner { position: relative; width: min(1120px, 100%); margin-inline: auto; }
.hero h1 { margin-bottom: 26px; font-weight: 900; }
.hero-lead { display: block; font-size: clamp(1.6rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -.02em; opacity: .82; }
/* One word, so it is set as a callout rather than as a line of a sentence. */
.hero-run { display: block; margin-top: .04em; background: linear-gradient(96deg, var(--night-ink) 12%, var(--glow-teal) 72%); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(4.6rem, 15vw, 12.5rem); font-weight: 900; letter-spacing: -.045em; line-height: .86; }
.lede { max-width: 640px; margin-bottom: 28px; color: var(--night-muted); font-size: clamp(1.02rem, 1.6vw, 1.22rem); line-height: 1.7; }
.hero-actions { margin: 0 0 18px; }
.hero .note { max-width: 600px; margin: 0; }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; margin: 0; color: var(--night-muted); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; translate: -50% 0; }
.scroll-cue span { display: block; width: 1px; height: 34px; margin: 0 auto 10px; background: linear-gradient(var(--glow-teal), transparent); animation: cue 2.2s ease-in-out infinite; }

@keyframes cue { 0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .5; } 50% { transform: scaleY(1); transform-origin: top; opacity: 1; } }

/* --- pinned RUN scene --------------------------------------------------- */

.run-scene { position: relative; z-index: 1; height: 420svh; }
.run-stage { position: sticky; top: 0; display: grid; align-items: center; height: 100svh; padding-inline: clamp(18px, 5vw, 72px); }
/* The copy sits on solid ground, but only as far as the copy goes: the diagram
   now lives to the right of it, so a veil reaching 76% would be hiding the
   thing it was drawn to protect. */
.run-stage::before { position: absolute; inset: 0; background: linear-gradient(95deg, rgb(6, 21, 39) 0%, rgb(6, 21, 39) 42%, rgba(6, 21, 39, .7) 47%, rgba(6, 21, 39, 0) 52%); content: ""; }
/* The gutter belongs to the stage, not to this column — with it inside, the
   copy started 72px right of the hero headline above it, which read as a
   misalignment because it was one. */
.run-copy { position: relative; width: min(1120px, 100%); margin-inline: auto; }
.run-states { position: relative; min-height: 20.5rem; }
/* Narrower than the copy column it sits in. There is little text here — a
   word, a sentence, a contrast line — so a shorter measure costs nothing and
   hands the width back to the diagram. */
.run-state { position: absolute; top: 0; right: 0; left: 0; max-width: 480px; }
.run-state:not(.is-active) { pointer-events: none; }
.run-state h3 { margin-bottom: 20px; font-weight: 900; }
.q-run { display: block; font-size: clamp(3.4rem, 9.5vw, 8.4rem); letter-spacing: -.05em; line-height: .84; opacity: 0; }
.q-word { display: block; margin-top: .06em; color: var(--glow-teal); font-size: clamp(1.9rem, 5vw, 4.1rem); letter-spacing: -.03em; }
.state-index { margin-bottom: 14px; color: var(--glow-blue); font-size: .78rem; font-weight: 900; letter-spacing: .18em; }
.state-body { margin-bottom: 14px; color: var(--night-ink); font-size: clamp(1.02rem, 1.5vw, 1.2rem); font-weight: 700; line-height: 1.6; }
.state-chip { display: inline-block; margin: 0; border-left: 2px solid rgba(224, 162, 106, .8); padding: 4px 0 4px 12px; color: var(--night-muted); font-size: .93rem; line-height: 1.55; }

.run-state.is-active .q-run { opacity: 1; }
.run-state :is(.state-index, .q-word, .state-body, .state-chip) { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .55s var(--ease-out); }
.run-state.is-active :is(.state-index, .q-word, .state-body, .state-chip) { opacity: 1; transform: none; }
.run-state.is-active .q-word { transition-delay: .04s; }
.run-state.is-active .state-body { transition-delay: .11s; }
.run-state.is-active .state-chip { transition-delay: .17s; }

.run-rail { display: flex; gap: 8px; width: 210px; margin: 40px 0 0; }
.run-rail span { position: relative; height: 3px; flex: 1; overflow: hidden; border-radius: 3px; background: rgba(159, 197, 233, .22); }
.run-rail span::after { position: absolute; inset: 0; background: var(--glow-teal); content: ""; transform: scaleX(var(--seg, 0)); transform-origin: left; transition: transform .3s linear; }

/* --- light chapters ----------------------------------------------------- */

/* One continuous field rather than per-chapter background bands: chapters are
   separated by spacing and a hairline, and the page deepens toward the water of
   the closing panel. */
.lightzone { position: relative; z-index: 1; margin-bottom: 100svh; background: linear-gradient(180deg, #f7fbff 0%, #eef6fd 38%, #e4f1fb 72%, #d9ecfa 100%); color: var(--ink); }
.lightzone > section + section { border-top: 1px solid rgba(15, 39, 71, .07); }
.lightzone > section { position: relative; z-index: 1; }

.lightzone h2 { font-size: clamp(2rem, 4.2vw, 3.7rem); font-weight: 880; }
.lightzone h3 { font-size: 1.24rem; font-weight: 850; line-height: 1.22; }
/* `:not([class])` keeps this from overriding .kicker, .label, .step-num, and .note. */
.lightzone p:not([class]) { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.section-head { width: min(1120px, 100%); margin: 0 auto 40px; }
.section-head h2 { max-width: 820px; color: var(--ink); }
.section-lede { max-width: 620px; margin: 18px 0 0; }

.plan { padding: clamp(72px, 9vw, 118px) clamp(18px, 5vw, 72px); }
/* Timeline: the rail sits above the cards and draws left to right with scroll,
   while each numbered badge straddles it. */
/* One thread runs through all three numbered badges and draws left to right as
   the section is scrolled. */
.plan-steps { position: relative; display: grid; width: min(1120px, 100%); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-inline: auto; }
.plan-rail { position: absolute; top: 49px; right: 0; left: 0; z-index: 2; height: 2px; background: linear-gradient(90deg, var(--blue) 0%, var(--teal) 100%); transform: scaleX(var(--rail, 0)); transform-origin: left; transition: transform .2s linear; }
.plan-steps article { position: relative; border: 1px solid #c6d8e9; background: var(--paper); padding: 28px; box-shadow: 0 10px 26px rgba(15, 39, 71, .05); }
.step-num { position: relative; z-index: 3; display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; margin: 0 0 22px; border: 4px solid var(--paper); border-radius: 999px; background: var(--blue); color: var(--paper); font-size: .82rem; font-weight: 900; }
.plan-steps h3 { margin-bottom: 10px; color: var(--ink); }
.plan-steps p:last-child { margin-bottom: 0; }

.ways { padding: clamp(72px, 9vw, 118px) clamp(18px, 5vw, 72px); }
.offer-boundary { color: var(--ink); font-weight: 800; }
.way-grid { display: grid; width: min(1120px, 100%); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-inline: auto; }
.way-grid article { border: 1px solid var(--line); background: var(--paper); padding: 28px; box-shadow: 0 10px 26px rgba(15, 39, 71, .05); transition: transform .4s var(--ease-out), box-shadow .4s ease; }
.way-grid article:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 39, 71, .08); }
.way-grid article:nth-child(2) { background: var(--teal-soft); border-color: rgba(75, 163, 160, .45); }
.label { margin-bottom: 12px; color: var(--blue); font-size: .74rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.way-grid h3 { margin-bottom: 12px; color: var(--ink); }
.way-grid p:last-child { margin-bottom: 0; }
/* Sits after the card's body copy, so `.way-grid p:last-child` still zeroes its
   bottom margin — this rule deliberately sets no margin-bottom of its own so it
   does not outrank that. Reads as a footnote rather than more body copy,
   because it answers a practical question the buyer has rather than making
   another claim about the offer. */
.way-grid .way-note { margin-top: 14px; color: var(--muted); font-size: .88rem; line-height: 1.6; }

.systems { padding: clamp(72px, 9vw, 118px) clamp(18px, 5vw, 72px); }
.system-grid { display: grid; width: min(1120px, 100%); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 auto; padding: 0; list-style: none; }
.system-grid li { display: flex; align-items: center; gap: 16px; border: 1px solid rgba(75, 163, 160, .42); background: rgba(255, 255, 255, .78); padding: 20px; transition: transform .4s var(--ease-out), background-color .3s ease, border-color .3s ease; }
.system-grid li:hover { border-color: var(--teal-deep); background: var(--paper); transform: translateY(-3px); }
.sys-icon { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: rgba(44, 115, 113, .12); }
.sys-icon svg { width: 25px; height: 25px; fill: none; stroke: var(--teal-deep); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sys-label { color: var(--ink); font-size: 1.02rem; font-weight: 800; line-height: 1.3; }

.workflow-example { padding: clamp(72px, 9vw, 118px) clamp(18px, 5vw, 72px); }
.workflow-artifact { width: min(1120px, 100%); margin: 0 auto; border: 1px solid #c6d8e9; background: rgba(255, 255, 255, .88); padding: clamp(24px, 4vw, 46px); box-shadow: 0 16px 38px rgba(15, 39, 71, .07); }
.artifact-label { margin: 0 0 16px; color: var(--blue-deep); font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.workflow-path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin: 0 0 clamp(36px, 5vw, 54px); padding: 0; list-style: none; }
.workflow-path li { position: relative; display: grid; min-height: 76px; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); padding: 14px; color: var(--ink); font-size: .94rem; font-weight: 780; line-height: 1.35; text-align: center; }
.workflow-path li + li::before { position: absolute; top: 50%; left: -27px; width: 27px; color: var(--teal-deep); content: "\2192"; font-size: 1.15rem; font-weight: 900; line-height: 1; text-align: center; transform: translateY(-50%); }
.improvement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.improvement-grid article { position: relative; min-height: 178px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 28px 28px 74px; }
.improvement-index { position: absolute; top: 31px; left: 28px; margin: 0; color: var(--teal-deep); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.improvement-grid h3 { margin-bottom: 10px; color: var(--ink); }
.improvement-grid p:last-child { margin-bottom: 0; }
.workflow-judgment { margin: 28px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.workflow-judgment strong { color: var(--ink); }
.workflow-boundary { margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; font-weight: 700; line-height: 1.65; }



/* --- scroll-revealed CTA ------------------------------------------------ */

/* The panel is exactly one screen tall, so everything in it has to fit. The
   footer is the grid's second row rather than pinned to the bottom edge: pinned,
   it sat on top of the copy whenever the copy outgrew the screen, which on a
   1366x768 laptop it did by 45px (#96). The top padding clears the header. */
.cta-reveal { position: fixed; right: 0; bottom: 0; left: 0; z-index: 0; display: grid; grid-template-rows: 1fr auto; align-content: center; height: 100svh; padding: 80px clamp(18px, 5vw, 72px) 22px; background: radial-gradient(110% 80% at 20% 20%, #10375f 0%, var(--night) 64%); color: var(--night-ink); }
.cta-inner { position: relative; align-self: center; width: min(760px, 100%); margin-inline: auto; text-align: center; opacity: var(--cta, 1); transform: translateY(calc(34px * (1 - var(--cta, 1)))); }

/* The drop lands here. Rings start once the panel is mostly uncovered, so the
   impact reads as the arrival of the closing message. */
/* Ripples only exist below the surface line, so mask off everything above it.
   That also keeps the founder note and headline clear of stray arcs. */
.water { position: absolute; inset: 0; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--surface, 52%) - 1px), #000 var(--surface, 52%)); mask-image: linear-gradient(to bottom, transparent calc(var(--surface, 52%) - 1px), #000 var(--surface, 52%)); }
.water-line { position: absolute; top: var(--surface, 52%); right: 0; left: 0; height: 1px; background: linear-gradient(90deg, rgba(111, 214, 209, 0), rgba(111, 214, 209, .2) 34%, rgba(111, 214, 209, .2) 66%, rgba(111, 214, 209, 0)); opacity: 0; transition: opacity .8s ease; }
.ripples { position: absolute; top: var(--surface, 52%); left: var(--drop-x, 66%); opacity: 0; transition: opacity .5s ease; }
.ripples span { position: absolute; top: 0; left: 0; width: min(760px, 84vw); height: 168px; border: 1px solid rgba(133, 226, 220, .55); border-radius: 50%; }
/* Resting state, which is what a reduced-motion visitor sees. */
.ripples span:nth-child(1) { opacity: .3; transform: translate(-50%, -50%) scale(.32); }
.ripples span:nth-child(2) { opacity: .24; transform: translate(-50%, -50%) scale(.58); }
.ripples span:nth-child(3) { opacity: .17; transform: translate(-50%, -50%) scale(.84); }
.cta-reveal.is-open .water-line, .cta-reveal.is-open .ripples { opacity: 1; }

.cta-reveal.is-open .ripples span { animation: ripple 5.4s cubic-bezier(.16, .74, .3, 1) infinite; }
.cta-reveal.is-open .ripples span:nth-child(2) { animation-delay: 1.8s; }
.cta-reveal.is-open .ripples span:nth-child(3) { animation-delay: 3.6s; }

@keyframes ripple {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.06); }
  12% { opacity: .42; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.18); }
}

/* A calm guide introduction, not a testimonial card: no pill, no border, no
   badge chrome. Just the founder, what he believes, and room around it. */
.founder { display: grid; justify-items: center; gap: 14px; margin: 0 auto 36px; }
.founder-avatar { width: 92px; height: 92px; border-radius: 14px; border: 1px solid rgba(159, 197, 233, .3); object-fit: cover; object-position: 50% 40%; }
.founder p { margin: 0; max-width: 52ch; color: var(--night-muted); font-size: .95rem; line-height: 1.65; text-align: center; }
.founder strong { display: block; margin-bottom: 6px; color: var(--night-ink); font-size: 1.16rem; font-weight: 760; letter-spacing: -.01em; }
/* The founder block is a direct child of `.cta-inner`, so its paragraphs are
   grandchildren and `.cta-inner > p` never reaches them. `.founder p` keeps the
   centered, muted treatment; this rule only restores the link affordance that
   the base `a { color: inherit; text-decoration: none; }` strips away. Do not
   use `<strong>` here — `.founder strong` renders as a block heading. */
.founder a { color: var(--glow-teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.founder a:hover, .founder a:focus-visible { color: var(--night-ink); }

/* Closing context, not a trailer on the previous chapter: this grounds the offer
   alongside the founder and the call to action instead of scrolling away above it. */
/* Scoped past `.cta-inner > p`, which is a more specific selector than a bare
   class and was setting this line at the lede's size — so the grounding note
   was reading as loudly as the promise above it. */
.cta-inner .cta-location { max-width: 620px; margin: 26px auto 0; padding-top: 22px; border-top: 1px solid var(--night-line); color: var(--night-muted); font-size: .9rem; font-weight: 650; line-height: 1.6; }

.cta-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 20px 0 0; color: var(--night-muted); font-size: .8rem; font-weight: 700; opacity: var(--cta, 1); }
.site-footer { display: contents; }
.cta-footer a:hover { color: var(--night-ink); }
.cta-inner .kicker { color: var(--glow-teal); }
/* Capped so the line holds at two lines in the 760px column; at 3.6rem it broke
   to three from about 1310px wide, leaving "run?" alone on the last line. */
.cta-inner h2 { margin-bottom: 18px; color: var(--night-ink); font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 880; text-wrap: balance; }
.cta-inner > p { margin-bottom: 26px; color: var(--night-muted); font-size: clamp(1.02rem, 1.6vw, 1.18rem); line-height: 1.7; }
/* Same collision as `.cta-location` above, and the same fix: `.cta-inner > p`
   was setting the reassurance line at the lede's size on every screen wider
   than 620px, where a narrow-screen rule already scoped it correctly. Carry the
   size `.note` asks for, so the line grounds the offer instead of restating it. */
.cta-inner .note { margin: 20px 0 0; color: var(--night-muted); font-size: .92rem; line-height: 1.6; }

/* --- reveal utilities --------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .plan-steps .reveal:nth-of-type(2) { transition-delay: .12s; }
.js .plan-steps .reveal:nth-of-type(3) { transition-delay: .24s; }
.js .way-grid .reveal:nth-child(2) { transition-delay: .1s; }
.js .way-grid .reveal:nth-child(3) { transition-delay: .2s; }
.js .system-grid .reveal { transform: translateY(20px) scale(.96); }
.js .system-grid .reveal.is-in { transform: none; }
.js .system-grid .reveal:nth-child(2) { transition-delay: .07s; }
.js .system-grid .reveal:nth-child(3) { transition-delay: .14s; }
.js .system-grid .reveal:nth-child(4) { transition-delay: .21s; }
.js .system-grid .reveal:nth-child(5) { transition-delay: .28s; }
.js .system-grid .reveal:nth-child(6) { transition-delay: .35s; }
.js .system-grid .sys-icon svg > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .system-grid .reveal.is-in .sys-icon svg > * { stroke-dashoffset: 0; transition: stroke-dashoffset .8s ease .15s; }
.js .outcome-list .reveal { opacity: 1; transform: none; }
.js .outcome-list .mask-in { transform: translateY(115%); transition: transform .85s var(--ease-out); }
.js .outcome-list .reveal.is-in .mask-in { transform: none; }
.js .outcome-list .reveal:nth-child(2) .mask-in { transition-delay: .07s; }
.js .outcome-list .reveal:nth-child(3) .mask-in { transition-delay: .14s; }
.js .outcome-list .reveal:nth-child(4) .mask-in { transition-delay: .21s; }
.js .outcome-list .reveal:nth-child(5) .mask-in { transition-delay: .28s; }
.js .outcome-list .reveal:nth-child(6) .mask-in { transition-delay: .35s; }

/* Selective mode: the RUN sequence and the closing reveal keep their motion, and
   every other chapter shares one entrance — same distance, same duration, no
   per-item stagger, no scale, no mask, no icon drawing. The point is that the
   light chapters read as one calm system rather than six separate effects. */
[data-motion="selective"] .reveal { transform: translateY(18px); transition: opacity .55s ease, transform .55s var(--ease-out); transition-delay: 0s !important; }
[data-motion="selective"] .reveal.is-in { transform: none; }
[data-motion="selective"] .mask-in { transform: none !important; transition: none !important; }
[data-motion="selective"] .sys-icon svg > *, [data-motion="off"] .sys-icon svg > * { stroke-dasharray: none; stroke-dashoffset: 0; }
[data-motion="selective"] .plan-rail { transform: none; }
[data-motion="selective"] .way-grid article:hover, [data-motion="selective"] .system-grid li:hover { transform: none; }

/* --- static scene: no JS, reduced motion, motion off, or narrow screens --- */

.no-js .run-scene, .static-scene .run-scene { height: auto; }
.no-js .run-stage, .static-scene .run-stage { position: static; height: auto; padding-block: clamp(54px, 8vw, 90px); }
.no-js .run-stage::before, .static-scene .run-stage::before { background: linear-gradient(180deg, rgba(6, 21, 39, .55), rgba(6, 21, 39, .92)); }
.no-js .run-states, .static-scene .run-states { position: static; display: grid; min-height: 0; gap: 14px; }
.no-js .run-state, .static-scene .run-state { position: static; max-width: none; border: 1px solid var(--night-line); border-radius: 10px; padding: clamp(20px, 3vw, 30px); background: rgba(6, 21, 39, .78); backdrop-filter: blur(6px); }
.no-js .run-state h3, .static-scene .run-state h3 { margin-bottom: 14px; }
.no-js .q-run, .static-scene .q-run { display: inline; font-size: clamp(2.2rem, 8vw, 3.4rem); opacity: 1; }
.no-js .q-word, .static-scene .q-word { display: inline; margin-left: .16em; font-size: clamp(2.2rem, 8vw, 3.4rem); }
.no-js .run-state :is(.state-index, .q-word, .state-body, .state-chip), .static-scene .run-state :is(.state-index, .q-word, .state-body, .state-chip) { opacity: 1; transform: none; transition: none; }
.no-js .run-rail, .static-scene .run-rail { display: none; }
.no-js .systemfield, .static-scene .systemfield { height: 62svh; margin-bottom: -62svh; }
/* Stacked cards sit on top of the graphic, so hold it further back. */
.no-js .field, .static-scene .field { opacity: .5; }
/* Motion off: the whole page is legible and complete without a single transition. */
[data-motion="off"] * { animation: none !important; transition: none !important; }
[data-motion="off"] .reveal, [data-motion="off"] .mask-in { opacity: 1 !important; transform: none !important; }
[data-motion="off"] .scroll-cue { display: none; }
[data-motion="off"] .plan-rail { transform: none; }

/* --- responsive --------------------------------------------------------- */

@media (max-width: 980px) {
  .plan-steps, .way-grid { grid-template-columns: 1fr; }
  .plan-rail { display: none; }
  .system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-header { padding-inline: 16px; }
  /* The name stays. Every other page keeps it at this width — they can afford
     to, because they drop the whole nav here, while this header keeps its call
     to action — and a business this new is not identified by the mark alone.
     The mark and the name step down instead, on one line, so the header stays a
     single row. */
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: .76rem; letter-spacing: .05em; white-space: nowrap; }
  .nav { font-size: .82rem; }
  .hero { min-height: auto; padding-top: clamp(40px, 8vh, 72px); }
  .scroll-cue { display: none; }
  /* The closing panel is an ordinary section here, not a fixed one the page
     scrolls to uncover. A fixed, full-viewport panel has to become its own
     scroll container to stay readable on a short screen — and on a touch device
     that container takes the gesture meant for the page, so a reader who
     reaches the bottom cannot scroll back up. In flow there is nothing to
     trap: the panel scrolls because the page does. */
  .lightzone { margin-bottom: 0; }
  .cta-reveal { position: static; height: auto; padding: clamp(52px, 8vh, 84px) 18px clamp(40px, 6vh, 60px); }
  .cta-footer { position: static; margin-top: 24px; }
}

/* Laptop screens, not just short ones: at 125% display scaling a 1080p or 768p
   panel is well under 900px tall, and the full-size panel does not fit in it. */
@media (max-height: 900px) {
  .founder { margin-bottom: 22px; gap: 10px; }
  .founder-avatar { width: 66px; height: 66px; }
  .founder p { font-size: .88rem; }
  .founder strong { font-size: 1.05rem; }
  .cta-inner h2 { margin-bottom: 12px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
  .cta-inner > p { margin-bottom: 18px; }
  .cta-inner .cta-location { margin-top: 18px; padding-top: 16px; font-size: .85rem; }
}

@media (max-height: 780px) {
  .founder { margin-bottom: 16px; gap: 8px; }
  .founder-avatar { width: 52px; height: 52px; }
  .cta-inner .note { margin-top: 12px; }
  .cta-inner .cta-location { margin-top: 14px; padding-top: 12px; }
  .cta-footer { margin-top: 12px; }
}

@media (max-width: 620px) {
  .system-grid { grid-template-columns: 1fr; }
  .workflow-path, .improvement-grid { grid-template-columns: 1fr; }
  .workflow-path { gap: 24px; }
  .workflow-path li { min-height: 62px; }
  .workflow-path li + li::before { top: -25px; left: 50%; width: 24px; content: "\2193"; transform: translateX(-50%); }
  .improvement-grid article { min-height: 0; padding: 24px 22px 24px 62px; }
  .improvement-index { top: 27px; left: 22px; }
  .nav a:not(.nav-cta) { display: none; }
  /* Tighter still on a phone. The panel is in flow from 860px down, so it may
     outgrow the viewport freely — the page scrolls it. It is kept to about one
     screen anyway: the founder note, the promise, the action and the grounding
     line are one thought, and a reader should not have to scroll through it. */
  .cta-reveal { padding: 30px 18px 34px; }
  .founder { gap: 8px; margin-bottom: 18px; }
  .founder-avatar { width: 56px; height: 56px; }
  .founder strong { margin-bottom: 4px; font-size: .98rem; }
  .founder p { font-size: .82rem; line-height: 1.55; }
  .cta-inner h2 { margin-bottom: 10px; font-size: clamp(1.55rem, 7vw, 2rem); }
  .cta-inner > p { margin-bottom: 16px; font-size: .95rem; }
  .cta-inner .note { margin-top: 14px; font-size: .84rem; line-height: 1.5; }
  .cta-inner .cta-location { margin-top: 14px; padding-top: 12px; font-size: .78rem; line-height: 1.5; }
  .cta-footer { margin-top: 18px; }
}

/* The brand and the call to action share one tight row here. The button steps
   down rather than wrapping onto a second line, which is what pushed the header
   to 75px at 360px — the most common Android width. */
@media (max-width: 380px) {
  .site-header { gap: 12px; }
  .nav .nav-cta { padding: 8px 8px; font-size: .78rem; }
}

/* Narrower than any current phone but the first SE: the name and the call to
   action collide whatever the type does, so the mark stands alone. */
@media (max-width: 359px) {
  .brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal, .mask-in { opacity: 1 !important; transform: none !important; }
  .scroll-cue { display: none; }
}
