/* SIRSTACK. Rules for this file live in DESIGN.md. */
@font-face { font-family: "Funnel Display"; src: url("/fonts/funnel-display.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url("/fonts/funnel-sans.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  /* One hue, eleven steps. Every colour on the site comes from this scale. */
  --paper: #ffffff;
  --r50: #fdf9f3; --r100: #faf2e3; --r200: #f5e3c4; --r300: #fdd187; --r400: #fbbb4b;
  --r500: #faa005; --r600: #d78a04; --r700: #aa6d03; --r800: #6b4b15; --r900: #422f0d; --r950: #241a07;
  --btn: var(--r500); --on-btn: var(--r950); --on-500: var(--r950);
  --ink: var(--r950);
  --soft: color-mix(in srgb, var(--r950) 70%, var(--r50));
  --rule: var(--r200);
  --display: "Funnel Display", "Arial Narrow", sans-serif;
  --text: "Funnel Sans", system-ui, sans-serif;
  --edge: clamp(20px, 5vw, 72px);
  --nav: 72px;
  --r-s: 10px; --r-m: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav); }
body { background: var(--r50); color: var(--ink); font-family: var(--text); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--r500); color: var(--on-500); }
:focus-visible { outline: 3px solid var(--r500); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: var(--edge); top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-s); }
.skip:focus { top: 12px; }

h1 .nb { white-space: nowrap; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.028em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 5.3vw, 5.1rem); }
h2 { font-size: clamp(2.1rem, 3.9vw, 3.5rem); }
h3 { font-size: 1.45rem; line-height: 1.15; letter-spacing: -0.015em; }
p { text-wrap: pretty; }
.lede { font-size: clamp(1.15rem, 1.45vw, 1.35rem); color: var(--soft); max-width: 33em; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--edge); }
main > section { padding-block: clamp(80px, 11vh, 132px); }
.head { display: grid; gap: 18px; max-width: 46rem; margin-bottom: clamp(36px, 5vh, 60px); }
.head p { color: var(--soft); font-size: 1.15rem; }

/* ---------- buttons: one pair ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  background: var(--btn); color: var(--on-btn); border: 2px solid var(--btn); border-radius: var(--r-s);
  font-family: var(--text); font-weight: 600; font-size: 1.05rem; text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.08s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(2px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--r400); text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color 0.15s; }
.link:hover { text-decoration-color: var(--r700); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav); background: var(--r50); border-bottom: 1px solid var(--rule); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.035em; text-decoration: none; }
.mark svg { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 500; padding: 10px 0; background: linear-gradient(var(--r500), var(--r500)) left bottom 6px / 0 2px no-repeat; transition: background-size 0.2s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { background-size: 100% 2px; }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.menu-btn { display: none; min-height: 44px; padding: 0 16px; background: transparent; border: 2px solid var(--ink); border-radius: var(--r-s); font: inherit; font-weight: 600; color: var(--ink); }

/* ---------- hero ---------- */
main > .hero { padding-block: clamp(32px, 5vh, 56px) clamp(40px, 6vh, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(24px, 4vw, 72px); align-items: center; min-height: calc(100svh - var(--nav) - 190px); }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.fact { padding-left: 16px; border-left: 4px solid var(--r500); max-width: 30em; font-weight: 500; }
.illustration { width: 100%; max-height: 74svh; margin-inline: auto; overflow: visible; }
.illustration text { font-family: var(--text); fill: var(--ink); }
.il-no { font-size: 15px; }
.illustration .il-name { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.il-layer { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.il-layer:hover, .il-layer:focus-visible { transform: translateY(-7px); outline: none; }
.il-layer:hover .il-name, .il-layer:focus-visible .il-name { text-decoration: underline; }
.enter .il-layer { animation: land 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; animation-delay: calc(var(--n) * 0.13s); }
.enter .hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.enter .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.enter .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.enter .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
@keyframes land { from { transform: translateY(-70px); opacity: 0; } }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } }

.tools { margin-top: clamp(24px, 4vh, 40px); padding-top: 22px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.tools p { color: var(--soft); margin-right: 8px; }
.tools ul { display: contents; }
.tools li { padding: 7px 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; font-weight: 500; font-size: 0.98rem; }

/* inner pages */
main > .page-hero { padding-block: clamp(40px, 6vh, 72px); }
.page-hero .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); min-height: min(600px, calc(100svh - var(--nav) - 120px)); }
.page-hero.solo .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: clamp(24px, 5vh, 64px); }
.page-hero.solo .hero-copy { max-width: 54rem; }
.crumb { font-weight: 600; color: var(--r700); text-decoration: none; }
.crumb:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- services ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative; display: grid; gap: 14px; align-content: start;
  padding: 30px 30px 30px 42px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-m);
  text-decoration: none; overflow: hidden; transition: transform 0.2s, border-color 0.2s;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: var(--tone); }
.card:hover { transform: translateY(-2px); border-color: var(--r400); }
.card small { font-weight: 600; color: var(--r700); font-size: 0.95rem; }
.card h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.card p { color: var(--soft); }
.card li { padding: 9px 0; border-top: 1px solid var(--rule); }
.card .link { justify-self: start; margin-top: 4px; }
.t1 { --tone: var(--r700); } .t2 { --tone: var(--r500); } .t3 { --tone: var(--r300); } .t4 { --tone: var(--r200); }

/* ---------- the statement band (the page's one moment) ---------- */
main > .band { background: var(--r900); color: var(--r100); padding-block: clamp(100px, 16vh, 180px); }
.band .wrap { display: grid; gap: 32px; justify-items: start; }
.band .statement { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 5.2vw, 5rem); line-height: 1.04; letter-spacing: -0.03em; max-width: 19em; color: var(--paper); text-wrap: balance; }
.statement span { opacity: var(--o, 1); transition: opacity 0.25s linear; }
.band p { max-width: 34em; color: var(--r200); font-size: 1.15rem; }
.band .link { text-decoration-color: var(--r400); }
.band .link:hover { text-decoration-color: var(--paper); }
.band :focus-visible { outline-color: var(--r200); }

/* ---------- hand-offs diagram ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split .head { margin-bottom: 0; }
.flow li { display: grid; grid-template-columns: 210px minmax(0, 1fr); column-gap: 22px; align-items: center; }
.node { padding: 18px 20px; border-radius: var(--r-s); background: var(--tone); color: var(--on); font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; }
.node small { display: block; font-family: var(--text); font-weight: 500; font-size: 0.85rem; letter-spacing: 0; }
.flow .pass { min-height: 60px; }
.flow .pass i { justify-self: center; align-self: stretch; width: 2px; background: var(--r400); position: relative; }
.flow .pass i::after { content: ""; position: absolute; left: -6px; top: -1px; border: 7px solid transparent; border-bottom-color: var(--r400); border-top: 0; }
.flow .pass span { color: var(--soft); }
.n4 { --tone: var(--r200); --on: var(--r950); } .n3 { --tone: var(--r300); --on: var(--r950); }
.n2 { --tone: var(--r500); --on: var(--on-500); } .n1 { --tone: var(--r700); --on: var(--paper); }
.flow-back { margin-top: 26px; padding: 18px 20px; border: 2px dashed var(--r400); border-radius: var(--r-s); }

/* ---------- steps ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: s; display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 3px solid var(--ink); }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 700; font-size: clamp(3.2rem, 5vw, 4.6rem); line-height: 0.9; color: var(--r600); }
.steps p { color: var(--soft); }

/* ---------- calculator ---------- */
main > .tint { background: var(--paper); border-block: 1px solid var(--rule); }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); }
.calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-content: start; }
.calc-form label { display: grid; gap: 7px; font-weight: 500; }
.calc-wide { grid-column: 1 / -1; }
.field { position: relative; display: block; }
.field::before { content: "$"; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--soft); }
.field-pct::before { content: "%"; left: auto; right: 15px; }
.calc-form input[type="number"] { width: 100%; min-height: 52px; padding: 0 15px 0 32px; font: inherit; font-size: 1.15rem; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--r50); border: 2px solid var(--rule); border-radius: var(--r-s); }
.field-pct input[type="number"] { padding: 0 34px 0 15px; }
.calc-form input[type="number"]:focus { border-color: var(--r500); outline: none; }
.calc-form input[type="range"] { width: 100%; height: 44px; accent-color: var(--r600); }
.calc-form output { font-weight: 700; }
.calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-content: start; }
.figure { display: grid; gap: 4px; }
.figure span { font-weight: 500; color: var(--soft); }
.figure strong { font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 5.6vw, 5rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.figure-main strong { color: var(--r600); }
.calc-note { grid-column: 1 / -1; min-height: 3.2em; }
.bar-wrap { grid-column: 1 / -1; display: grid; gap: 14px; }
.bar-wrap > p { font-weight: 600; }
.bar { display: flex; height: 64px; border-radius: var(--r-s); overflow: hidden; background: var(--r50); border: 1px solid var(--rule); }
.seg { display: block; width: 0; transition: width 0.35s ease; }
.seg-cogs { background: var(--r950); } .seg-ship { background: var(--r800); } .seg-fee { background: var(--r400); }
.seg-ads { background: var(--r500); } .seg-profit { background: var(--r200); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; }
.legend b { font-variant-numeric: tabular-nums; }

/* ---------- rows and lists ---------- */
.rows { border-top: 1px solid var(--rule); }
.rows li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 8px 40px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.rows h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
.rows p { color: var(--soft); }
.plain { border-top: 1px solid var(--rule); max-width: 52rem; }
.plain li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.prose { display: grid; gap: 18px; max-width: 44rem; font-size: 1.15rem; }
.prose p { color: var(--soft); }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pair > div { padding: 28px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-m); display: grid; gap: 10px; align-content: start; }
.pair small { font-weight: 600; color: var(--r700); }
.pair p { color: var(--soft); }

/* ---------- questions ---------- */
.qa { border-top: 1px solid var(--rule); max-width: 60rem; }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 68px; padding: 14px 0; font-family: var(--display); font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: -0.015em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 13px; height: 13px; border-right: 2.5px solid var(--r500); border-bottom: 2.5px solid var(--r500); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s; }
.qa details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.qa details p { padding: 0 0 24px; color: var(--soft); max-width: 40em; }

/* ---------- closing + footer ---------- */
.closing { background: var(--r950); color: var(--r100); }
.closing .wrap { padding-block: clamp(88px, 13vh, 160px) 36px; display: grid; gap: clamp(56px, 9vh, 110px); }
.closing-main { display: grid; gap: 28px; justify-items: start; }
.closing h2 { font-size: clamp(3rem, 8.2vw, 8rem); letter-spacing: -0.04em; line-height: 0.95; }
.closing-main p { font-size: clamp(1.1rem, 1.5vw, 1.3rem); max-width: 32em; color: var(--r200); }
.closing .btn { background: var(--r500); border-color: var(--r500); color: var(--on-500); }
.closing .btn:hover { background: var(--paper); border-color: var(--paper); color: var(--r950); }
.closing :focus-visible { outline-color: var(--r200); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 36px; border-top: 1px solid var(--r800); }
.foot h3 { font-family: var(--text); font-size: 0.95rem; font-weight: 600; letter-spacing: 0; color: var(--r300); margin-bottom: 12px; }
.foot li a { display: inline-block; padding: 6px 0; text-decoration: none; }
.foot li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot .mark { color: var(--paper); }
.legal { color: var(--r300); font-size: 0.95rem; margin-top: 14px; }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .hero-grid, .page-hero .hero-grid, .split, .calc { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero .illustration { max-height: none; max-width: 520px; }
  .page-hero .illustration { max-width: 440px; margin-inline: 0; }
  .cards, .pair { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; position: fixed; inset: var(--nav) 0 0 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 0; padding: 24px var(--edge); background: var(--r50); overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 18px 0; font-family: var(--display); font-size: 1.8rem; font-weight: 600; border-bottom: 1px solid var(--rule); background: none; }
  .nav-links .btn { margin-top: 24px; min-height: 56px; font-size: 1.1rem; }
  .menu-btn { display: inline-flex; align-items: center; }
}
@media (max-width: 620px) {
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
  .steps, .calc-form, .calc-result, .foot { grid-template-columns: minmax(0, 1fr); }
  .calc-wide, .calc-note { grid-column: auto; }
  .rows li { grid-template-columns: minmax(0, 1fr); }
  .flow li { grid-template-columns: 132px minmax(0, 1fr); column-gap: 14px; }
  .node { padding: 14px; font-size: 1.05rem; }
  .card { padding: 24px 22px 24px 34px; }
  .bar { height: 48px; }
  .illustration .il-name { font-size: 27px; }
  .il-no { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .statement span { opacity: 1 !important; }
}

/* ================= The journey: the home page's scroll-through 3D scene ================= */
.illustration { color: var(--ink); }
.illustration text { fill: currentColor; }

.home .nav { position: fixed; left: 0; right: 0; transition: background 0.25s, border-color 0.25s, color 0.25s; }
.nav.dark { background: linear-gradient(var(--r950) 35%, transparent); border-color: transparent; color: var(--r100); }
.nav.dark .menu-btn { color: var(--r100); border-color: var(--r100); }
.nav.dark .nav-links a:not(.btn) { background-image: linear-gradient(var(--r300), var(--r300)); }
.nav.dark .btn { background: var(--r500); border-color: var(--r500); color: var(--on-500); }

main > .journey { position: relative; padding: 0; background: radial-gradient(120% 90% at 72% 40%, var(--r900) 0%, var(--r950) 62%); color: var(--r100); }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; pointer-events: none; }
.chapters { position: relative; margin-top: -100svh; }
html:not(.gl) .stage { display: none; }
html:not(.gl) .chapters { margin-top: 0; }
#scene { width: 100%; height: 100%; display: none; }
.gl #scene { display: block; }

.chapter { scroll-margin-top: calc(-1 * var(--nav)); position: relative; z-index: 1; min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--nav) + 24px) 48px; }
.chapter .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.chapter-copy { display: grid; gap: 22px; justify-items: start; max-width: 33rem; }
.chapter-hero .chapter-copy { max-width: 40rem; }
.chapter-hero .chapter-copy { gap: 26px; }
.chapter h2 { font-size: clamp(2.6rem, 5vw, 4.8rem); }
.chapter .lede { color: var(--r200); }
.chapter-tag { font-weight: 600; color: var(--r300); }
.chapter-copy ul { width: 100%; border-top: 1px solid var(--r800); }
.chapter-copy li { padding: 12px 0; border-bottom: 1px solid var(--r800); }
.journey .fact { border-color: var(--r400); }
.journey .btn { background: var(--r500); border-color: var(--r500); color: var(--on-500); }
.journey .btn:hover { background: var(--paper); border-color: var(--paper); color: var(--r950); }
.journey .btn-line { background: transparent; color: var(--paper); border-color: var(--r200); }
.journey .btn-line:hover { background: var(--paper); color: var(--r950); }
.journey .link { text-decoration-color: var(--r400); }
.journey .link:hover { text-decoration-color: var(--paper); }
.journey :focus-visible { outline-color: var(--r200); }
.chapter-art .illustration { color: var(--r100); max-height: 70svh; }
.gl .chapter-art { visibility: hidden; }

.rail { position: absolute; inset: 0; z-index: 2; display: none; flex-direction: column-reverse; justify-content: center; align-items: flex-end; gap: 6px; padding-right: clamp(16px, 2.4vw, 40px); pointer-events: none; }
.gl .rail { display: flex; }
.rail a { pointer-events: auto; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; text-decoration: none; color: var(--r300); opacity: 0.55; transition: opacity 0.25s, color 0.25s; }
.rail b { display: grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 0.9rem; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.rail span { font-weight: 500; font-size: 0.95rem; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.3s; order: -1; }
.rail a:hover, .rail a.on { opacity: 1; color: var(--paper); }
.rail a:hover span, .rail a.on span { max-width: 160px; }
.rail a.on b { background: var(--paper); border-color: var(--paper); color: var(--r950); }
.journey[data-step="0"] .rail { opacity: 0; }
.rail { transition: opacity 0.3s; }

main > .strip { padding-block: 0 8px; }
.strip .tools { margin-top: 0; border-top: 0; padding-top: 26px; }

@media (max-width: 960px) {
  .nav.dark { background: var(--r950); border-color: var(--r800); }
  .chapter { align-items: flex-end; padding-block: 0 clamp(28px, 6vh, 56px); }
  .chapter .wrap { grid-template-columns: minmax(0, 1fr); }
  .gl .chapter-art { display: none; }
  .gl .chapter-copy ul, .gl .chapter-hero .fact { display: none; }
  .gl .chapter-hero .chapter-copy { padding-top: 50svh; }
  .gl .stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 36%, var(--r950) 60%); }
  html:not(.gl) .chapter { min-height: 0; padding-block: calc(var(--nav) + 32px) 40px; }
  html:not(.gl) .chapter-art { order: -1; }
  .gl .rail { display: none; }
  .chapter h2 { font-size: clamp(2.2rem, 9vw, 3.4rem); }
  .chapter-hero h1 { font-size: clamp(2.2rem, 9.4vw, 3.6rem); }
}

/* ================= Headline words rise into place once ================= */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.w > span { display: inline-block; transform: translateY(110%); transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--i) * 45ms); }
.shown .w > span { transform: none; }

/* ================= Live 3D layer on service pages ================= */
.solo { position: relative; aspect-ratio: 1.12; }
.solo canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.gl .solo canvas { display: block; }
.gl .solo .illustration { visibility: hidden; }
.solo .illustration { position: absolute; inset: 0; height: 100%; }

/* ================= Moving type strip: moves only as the page scrolls ================= */
main > .ticker { padding-block: clamp(40px, 7vh, 90px); overflow: hidden; }
.ticker-row { display: flex; align-items: center; gap: 0.35em; width: max-content; font-family: var(--display); font-weight: 700; font-size: clamp(3.4rem, 10vw, 10rem); line-height: 1.05; letter-spacing: -0.04em; white-space: nowrap; transform: translate3d(var(--x, 0px), 0, 0); will-change: transform; }
.ticker-row i { width: 0.22em; height: 0.22em; background: var(--r500); border-radius: 50%; margin-inline: 0.12em; }
.ticker-out { color: transparent; -webkit-text-stroke: 2px var(--r400); }

/* ================= The process as a sideways runway ================= */
main > .runway { padding: 0; }
.runway-pin { padding-block: clamp(80px, 11vh, 132px); }
.runway-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-inline: var(--edge); max-width: 1360px; margin-inline: auto; }
.runway-track li { display: grid; gap: 14px; align-content: start; padding: 28px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-m); }
.runway-track b { font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 9vw, 9rem); line-height: 0.85; letter-spacing: -0.05em; color: var(--r500); }
.runway-track h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.runway-track p { color: var(--soft); font-size: 1.15rem; max-width: 26em; }
.runway-line { display: none; }
@media (min-width: 961px) and (prefers-reduced-motion: no-preference) {
  .js-run .runway { height: 340vh; }
  .js-run .runway-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding-block: var(--nav) 24px; }
  .js-run .runway-pin .head { margin-bottom: 28px; }
  .js-run .runway-track { display: flex; gap: 28px; width: max-content; max-width: none; margin: 0; padding-inline: max(var(--edge), calc((100vw - 1360px) / 2 + var(--edge))); transform: translate3d(var(--x, 0px), 0, 0); will-change: transform; }
  .js-run .runway-track li { width: min(44vw, 620px); min-height: min(52vh, 440px); padding: 36px; align-content: end; transition: background 0.3s, border-color 0.3s; }
  .js-run .runway-track li.now { background: var(--r950); border-color: var(--r950); color: var(--r100); }
  .js-run .runway-track li.now p { color: var(--r200); }
  .js-run .runway-line { display: block; height: 3px; margin-top: 28px; background: var(--rule); }
  .js-run .runway-line i { display: block; height: 100%; background: var(--r500); transform-origin: left; transform: scaleX(var(--p, 0)); }
}

/* ================= Packets travelling up the hand-off arrows ================= */
.flow .pass i::before { content: ""; position: absolute; left: -4px; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--r500); animation: climb 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.flow .pass:nth-of-type(4) i::before { animation-delay: 0.8s; }
.flow .pass:nth-of-type(6) i::before { animation-delay: 1.6s; }
@keyframes climb { 0% { transform: translateY(0); opacity: 0; } 15%, 80% { opacity: 1; } 100% { transform: translateY(-48px); opacity: 0; } }

@media (max-width: 620px) {
  .runway-track { grid-template-columns: minmax(0, 1fr); }
}
