/* Concept layer, 24.9. Only new sections live here; everything else is the
   live site's CSS, untouched. Tokens only, no new colours except Slack chrome.
   Depth language borrowed from the live site: white cards on paper, hairlines,
   one soft warm shadow family, --site-ease for everything that moves. */

:root {
  --c-lift: 0 1px 2px rgba(38,37,30,.04), 0 24px 44px -26px rgba(38,37,30,.28);
  --c-float: 0 1px 2px rgba(38,37,30,.05), 0 40px 70px -36px rgba(38,37,30,.36);
  --c-ring: 0 0 0 .5px rgba(38,37,30,.09);
}

/* circles and stadiums must not be squircled (see tokens.css) */
.concept-tag, .concept-tag a, .cap-dot, .st-composer .send, .st-step small i, .st-chip, .st-held .badge,
.story-progress i, .connect-groups i, .mode i, .how-copy .cap-tags span, .d1-note, .team-caps span i { corner-shape: round; }

.concept-tag { position: fixed; z-index: 40; left: 16px; bottom: 16px; display: flex; gap: 6px; padding: 6px; border-radius: var(--radius-full); background: var(--glass-light); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); border: .5px solid var(--color-border-glass); font-size: .75rem; font-weight: 500; }
.concept-tag a { padding: 7px 12px; border-radius: var(--radius-full); color: var(--color-text-secondary); }
.concept-tag a[aria-current] { background: var(--color-text-primary); color: var(--color-text-on-dark); }

/* Section heading: same rhythm as the live "Quick fixes." head (eyebrow + h2 left, lede right) */
.c-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 80px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.c-head .eyebrow { margin-bottom: 18px; }
.c-head > p { color: var(--site-muted); font-size: 1.125rem; line-height: 1.55; max-width: 490px; justify-self: end; text-wrap: pretty; }
.c-label { font-size: .6875rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--color-text-secondary); }
.c-divider { border-top: 1px solid var(--color-border); max-width: var(--site-width); margin: 0 auto; }

/* ---------- Home · hero copy (commerce lead's longer title; mountain hero stays locked) ---------- */
.hero.hero-home { min-height: 100vh; min-height: 100dvh; }
.hero-home .hero-content { padding-bottom: clamp(120px, 14vh, 180px); }
@media (max-width: 900px) {
  .hero-home .hero-content { padding-bottom: 0; }
}
.hero-eyebrow { margin-bottom: 26px; }
.hero h1.hero-title-long { font-size: clamp(44px, 6.1vw, 108px); letter-spacing: -.045em; line-height: 1; margin-left: -4px; }
.hero-title-long + .hero-intro { max-width: 440px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-intro .hero-ctas .button { margin: 0; }
.button.button-outline { background: transparent; color: var(--color-text-primary); border: .5px solid var(--color-text-primary); }
.button.button-outline:hover { background: var(--color-text-primary); color: var(--color-text-on-dark); }
@media (max-width: 900px) {
  .site-header .mobile-nav a:last-child { font-size: 1.5rem; }
}

/* ---------- Reveal on scroll (shared) ---------- */
.c-rise { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--site-ease), transform 1.1s var(--site-ease); transition-delay: var(--d, 0ms); }
.c-rise.is-in { opacity: 1; transform: none; }
.factory-foot { display: flex; justify-content: space-between; gap: 30px; align-items: baseline; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--color-border); color: var(--site-muted); font-size: .9375rem; }

/* ---------- Product · a selectable workflow example ---------- */
.story { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.4fr); align-items: center; gap: clamp(32px, 4vw, 64px); }
.story-copy { min-width: 0; }
.story-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.story-tabs button { min-height: 44px; padding: 10px 12px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500; line-height: 1.2; color: var(--color-text-secondary); text-align: left; transition: background .2s var(--site-ease), color .2s var(--site-ease); }
.story-tabs button:hover { background: var(--color-surface); color: var(--color-text-primary); }
.story-tabs button[aria-selected="true"] { background: var(--color-text-primary); border-color: var(--color-text-primary); color: var(--color-text-on-dark); }
.story-tabs button:focus-visible { outline-offset: 3px; }
.story-chapter { display: flex; flex-direction: column; opacity: 1; }
.story-chapter .c-label { margin-bottom: 12px; color: var(--color-accent); }
.story-chapter h3 { font-size: clamp(28px, 2.5vw, 40px); line-height: 1.1; letter-spacing: -.035em; margin-bottom: 16px; text-wrap: balance; }
.story-chapter p { color: var(--site-muted); font-size: 1.0625rem; line-height: 1.55; max-width: 460px; text-wrap: pretty; }
.story-stage-wrap { position: relative; min-width: 0; }
.story-stage { position: relative; height: 500px; border-radius: var(--radius-lg); background: var(--color-surface-sunken); overflow: hidden; perspective: 1600px; perspective-origin: 50% 30%; container: stage / size; font-family: "ABC Diatype", var(--font-body); font-size: .875rem; line-height: 1.4; }
.story-stage::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(38,37,30,.1) 1px, transparent 1.2px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 85%); mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 85%); }
.story-progress { position: absolute; left: 24px; top: 22px; display: flex; gap: 6px; z-index: 6; }
.story-progress i { width: 22px; height: 3px; border-radius: 2px; background: rgba(38,37,30,.12); transition: background .5s var(--site-ease); }
.story-stage[data-step="0"] .story-progress i:nth-child(-n+1),
.story-stage[data-step="1"] .story-progress i:nth-child(-n+2),
.story-stage[data-step="2"] .story-progress i:nth-child(-n+3),
.story-stage[data-step="3"] .story-progress i:nth-child(-n+4),
.story-stage[data-step="4"] .story-progress i:nth-child(-n+5) { background: var(--color-text-primary); }

.st { position: absolute; transition: transform 1.2s var(--site-ease), opacity .8s var(--site-ease), filter .9s var(--site-ease); will-change: transform, opacity; }
.st-card { background: var(--color-surface); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-md); box-shadow: var(--c-lift); }

/* composer — the film's composer, glass on the stage */
.st-composer { z-index: 3; left: 8%; right: 8%; top: 20%; min-height: 74px; padding: 20px 20px 20px 22px; border-radius: var(--radius-xl); background: var(--glass-light); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); border: .5px solid var(--color-border-glass); box-shadow: var(--c-lift); display: flex; gap: 14px; align-items: center; }
.st-composer .spark { width: 22px; height: 22px; flex: none; color: var(--color-accent); align-self: flex-start; margin-top: 2px; }
.st-composer p { font-size: 1.0625rem; line-height: 1.45; letter-spacing: -.005em; }
.st-composer .send { margin-left: auto; flex: none; width: 38px; height: 38px; border-radius: 10px; corner-shape: round; background: var(--color-text-primary); color: var(--color-bg); display: grid; place-items: center; align-self: flex-end; }
.st-composer .send svg { width: 12px; height: 12px; }

/* flow — five blocks on one rail */
.st-flow { z-index: 2; left: 6%; right: 6%; top: 47%; display: flex; align-items: stretch; gap: 0; transform-origin: 50% 0; }
.st-step { flex: 1; min-width: 0; padding: 14px 13px 12px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .6s var(--site-ease), transform .9s var(--site-ease), box-shadow .6s; transition-delay: calc(var(--i, 0) * 110ms); }
.st-step strong { font-size: .875rem; font-weight: 500; line-height: 1.25; }
.st-step small { font-size: .6875rem; letter-spacing: .02em; color: var(--color-text-secondary); display: flex; align-items: center; gap: 6px; margin-top: auto; }
.st-step small i { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--color-surface-muted-hover); }
.st-step.is-review small i { background: var(--color-accent); }
.st-step.is-auto small i { background: var(--color-success); }
.st-join { flex: 0 0 16px; align-self: center; height: 1px; background: var(--color-border-strong); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--site-ease); transition-delay: calc(var(--i, 0) * 110ms + 250ms); }
.st-meta { z-index: 2; left: 6%; right: 6%; top: calc(47% + 104px); display: flex; gap: 8px; flex-wrap: wrap; }
.st-chip { padding: 7px 12px; border-radius: var(--radius-full); background: var(--color-surface); border: .5px solid var(--color-border-strong); font-size: .75rem; color: var(--color-text-secondary); display: inline-flex; gap: 6px; align-items: center; }
.st-chip b { font-weight: 500; color: var(--color-text-primary); }
.st-chip svg, .st-chip img { width: 14px; height: 14px; }

/* product + evidence */
.st-product { z-index: 3; left: 6%; top: 18%; width: 46%; padding: 18px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; }
.st-product img { width: 96px; height: 120px; object-fit: contain; background: var(--color-bg); border-radius: var(--radius-sm); mix-blend-mode: multiply; }
.st-product h4 { font-size: .9375rem; font-weight: 500; margin: 0 0 4px; line-height: 1.3; }
.st-product h4 + small, .st-product .sku { display: block; font-size: .75rem; color: var(--color-text-secondary); margin-bottom: 12px; letter-spacing: .04em; }
.st-field { border-top: 1px solid var(--color-border-subtle); padding-top: 10px; margin-top: 8px; display: grid; gap: 4px; }
.st-field .c-label, .st-field > span:first-child { font-size: .6875rem; letter-spacing: .065em; text-transform: uppercase; color: var(--site-muted); }
.st-field .v-missing { color: var(--color-accent); font-size: .875rem; }
.st-field .v-filled { color: var(--color-ai-filled); font-size: 1rem; line-height: 1.35; font-weight: 500; letter-spacing: -.01em; animation: c-fill .9s var(--site-ease) .6s both; }
.st-source { z-index: 3; right: 6%; top: 34%; width: 40%; padding: 16px 18px; }
.st-source .doc { font-size: .75rem; color: var(--color-text-secondary); display: flex; gap: 8px; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border-subtle); }
.st-source .doc svg { width: 16px; height: 16px; flex: none; }
.st-source p { font-size: .8125rem; line-height: 1.6; color: var(--color-text-secondary); }
.st-source mark { background: rgba(62,131,31,.14); color: var(--color-text-primary); padding: 1px 3px; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.st-link { z-index: 2; left: 52%; top: 40%; width: 2%; height: 1px; background: var(--color-ai-filled); transform-origin: left; }
@keyframes c-fill { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* held */
.st-held { z-index: 4; left: 14%; right: 14%; top: 50%; padding: 18px 20px; border-color: rgba(187,61,19,.32); box-shadow: var(--c-float); }
.st-held .row { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.st-held .row strong, .st-held .row b { font-weight: 500; }
.st-held .badge { font-size: .6875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent); background: var(--color-accent-subtle); padding: 4px 9px; border-radius: var(--radius-full); white-space: nowrap; }
.st-held .vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: .875rem; }
.st-held .vs div { padding: 11px 13px; background: var(--color-bg); border-radius: var(--radius-sm); }
.st-held .vs span { display: block; font-size: .6875rem; letter-spacing: .04em; color: var(--color-text-secondary); margin-bottom: 4px; }
.st-held > p, .st-held small { display: block; margin-top: 12px; font-size: .75rem; color: var(--color-text-secondary); }

/* Slack notification preview — Kito workspace, with the workflow result in focus. */
.st-slack { z-index: 5; left: 4%; right: 4%; top: 7%; bottom: 6%; display: grid; grid-template-columns: 148px minmax(0, 1fr); grid-template-rows: 38px minmax(0, 1fr); border-radius: 15px; corner-shape: round; overflow: hidden; background: #fff; box-shadow: 0 2px 4px rgba(38,37,30,.06), 0 38px 80px -28px rgba(74,21,75,.48); border: 1px solid rgba(74,21,75,.22); font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif; transform-origin: 50% 100%; }
.st-slack::before { content: ''; grid-column: 1 / -1; grid-row: 1; background: radial-gradient(circle at 17px 19px, #ff5f57 5px, transparent 5.5px), radial-gradient(circle at 34px 19px, #febc2e 5px, transparent 5.5px), radial-gradient(circle at 51px 19px, #28c840 5px, transparent 5.5px), #4a154b; }
.st-slack::after { content: 'Search Kito'; position: absolute; top: 8px; left: 50%; width: min(40%, 300px); height: 22px; transform: translateX(-50%); border-radius: 6px; corner-shape: round; background: #5d3a5f; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.78); font-size: 10.5px; line-height: 20px; text-align: center; }
.sl-side { grid-row: 2; background: #3f0e40; color: rgba(255,255,255,.72); padding: 12px 10px 16px; font-size: .8125rem; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid rgba(255,255,255,.08); }
.sl-side strong { display: flex; align-items: center; gap: 7px; color: #fff; font-size: 1rem; white-space: nowrap; overflow: hidden; font-weight: 900; margin: 0 7px 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
.sl-side strong img { width: 18px; height: 18px; padding: 2px; border-radius: 4px; background: #fff; }
.sl-side strong span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sl-side strong i { margin-left: auto; font-style: normal; font-weight: 400; opacity: .72; }
.sl-side span { padding: 6px 10px; border-radius: 6px; corner-shape: round; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-side span.on { background: #1164a3; color: #fff; font-weight: 700; }
.sl-main { grid-row: 2; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.sl-main::after { display: none; }
.sl-top { min-height: 48px; padding: 9px 18px; border-bottom: 1px solid #e7e7e5; color: #1d1c1d; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; line-height: 1.25; }
.sl-top strong { font-size: .9375rem; font-weight: 900; }
.sl-top span { font-weight: 400; font-size: .6875rem; color: #6f6e69; }
.sl-msgs { flex: 1; min-height: 0; padding: 12px 18px 14px; display: flex; flex-direction: column; justify-content: center; gap: 11px; color: #1d1c1d; font-size: .8125rem; line-height: 1.42; overflow: hidden; }
.sl-date { display: flex; align-items: center; gap: 10px; color: #77766f; font-size: .6875rem; font-weight: 700; }
.sl-date::before, .sl-date::after { content: ''; flex: 1; height: 1px; background: #e7e7e5; }
.sl-msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
.sl-av { width: 34px; height: 34px; border-radius: 8px; corner-shape: round; background: var(--color-text-primary); display: grid; place-items: center; overflow: hidden; }
.sl-av img { width: 26px; height: auto; }
.sl-av img[src*="wordmark"] { filter: brightness(0) invert(1); }
.sl-av img[src$="favicon.svg"] { width: 100%; height: 100%; }
.sl-name { font-weight: 900; } .sl-name small { font-weight: 400; color: #616061; margin-left: 6px; font-size: .75rem; }
.sl-app { font-size: .625rem; background: #e8e8e8; color: #616061; padding: 1px 4px; border-radius: 3px; corner-shape: round; margin-left: 4px; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }
.sl-report { max-width: 460px; margin-top: 7px; padding: 4px 0 4px 13px; border: 0; border-left: 4px solid var(--color-accent); border-radius: 0; background: #fff; box-shadow: none; }
.sl-report-k { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; color: #7c3085; font-size: .625rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.sl-report-k i { color: #e01e5a; font-size: .75rem; font-style: normal; }
.sl-report-title { display: block; margin-bottom: 4px; font-size: 1rem; line-height: 1.25; }
.sl-report > p { color: #61605b; font-size: .75rem; }
.sl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 360px; margin: 11px 0; border-block: 1px solid #e4e3df; }
.sl-stats span { display: flex; flex-direction: column; padding: 8px 10px 8px 0; }
.sl-stats span + span { padding-left: 10px; border-left: 1px solid #e4e3df; }
.sl-stats b { color: #1d1c1d; font-size: 1rem; line-height: 1.1; }
.sl-stats small { color: #77766f; font-size: .6875rem; }
.sl-stats .held b { color: var(--color-accent); }
.sl-held-note { display: flex; align-items: flex-start; gap: 8px; max-width: 420px; margin: 0 0 12px; padding: 8px 10px; border-radius: 5px; background: #f8f8f8; color: #61605b; font-size: .75rem; }
.sl-held-note i { width: 7px; height: 7px; flex: none; margin-top: 5px; border-radius: 50%; background: var(--color-accent); }
.sl-held-note b { color: #1d1c1d; }
.sl-btns { display: flex; gap: 8px; }
.sl-btns span { padding: 6px 11px; border: 1px solid rgba(29,28,29,.28); border-radius: 5px; corner-shape: round; font-weight: 700; font-size: .75rem; color: #1d1c1d; }
.sl-btns span.primary { background: #007a5a; border-color: #007a5a; color: #fff; }
.sl-reactions { display: flex; gap: 5px; margin-top: 7px; }
.sl-reactions span { padding: 2px 7px; border: 1px solid #c7c7c7; border-radius: 12px; background: #f8f8f8; color: #454245; font-size: .6875rem; line-height: 1.35; }

/* step states: every element is always in the DOM; the stage only re-stages it.
   Depth reads as: in focus = sharp and near; receded = smaller, softer, lower contrast. */
.story-stage .st-composer { opacity: 0; transform: translateY(20cqh) scale(1.02); }
.story-stage .st-flow, .story-stage .st-meta, .story-stage .st-product, .story-stage .st-source, .story-stage .st-link, .story-stage .st-held, .story-stage .st-slack { opacity: 0; pointer-events: none; }
.story-stage .st-flow { transform: translateY(40px); }
.story-stage .st-product { transform: translate3d(0, 50px, 0) scale(.94); }
.story-stage .st-source { transform: translate3d(50px, 30px, 0) scale(.94); }
.story-stage .st-link { transform: scaleX(0); }
.story-stage .st-held { transform: translate3d(0, 70px, 0) scale(.92); }
.story-stage .st-slack { transform: translate3d(0, 90px, -140px) rotateX(9deg); }
.story-stage .st-meta { transform: translateY(16px); }

/* 0 · the instruction, alone and centred */
.story-stage[data-step="0"] .st-composer { opacity: 1; transform: translateY(20cqh) scale(1.02); }

/* 1 · the instruction lifts, the flow assembles below it */
.story-stage[data-step="1"] .st-composer { opacity: 1; transform: none; }
.story-stage[data-step="1"] .st-flow, .story-stage[data-step="1"] .st-meta { opacity: 1; transform: none; }
.story-stage[data-step="1"] .st-meta { transition-delay: .6s; }
.story-stage[data-step="1"] .st-step { opacity: 1; transform: none; }
.story-stage[data-step="1"] .st-join { transform: scaleX(1); }

/* 2 · the flow sinks back; one product, its evidence in front */
.story-stage[data-step="2"] .st-composer { opacity: 0; transform: translateY(-40px) scale(.92); filter: blur(4px); }
.story-stage[data-step="2"] .st-flow { opacity: .4; transform: translateY(31cqh) scale(.86); filter: blur(1.5px); }
.story-stage[data-step="2"] .st-step, .story-stage[data-step="3"] .st-step, .story-stage[data-step="4"] .st-step { opacity: 1; transform: none; }
.story-stage[data-step="2"] .st-join, .story-stage[data-step="3"] .st-join, .story-stage[data-step="4"] .st-join { transform: scaleX(1); }
.story-stage[data-step="2"] .st-product, .story-stage[data-step="2"] .st-source { opacity: 1; transform: none; }
.story-stage[data-step="2"] .st-source { transition-delay: .15s; }
.story-stage[data-step="2"] .st-link { opacity: 1; transform: scaleX(1); transition-delay: .5s; }
.story-stage[data-step="2"] .v-missing { display: none; }
.story-stage:not([data-step="2"]):not([data-step="3"]) .v-filled { display: none; }

/* 3 · evidence recedes; the one it could not prove comes forward and waits */
.story-stage[data-step="3"] .st-flow { opacity: .22; transform: translateY(36cqh) scale(.82); filter: blur(2.5px); }
.story-stage[data-step="3"] .st-product { opacity: .75; transform: translate3d(-8px, -24px, 0) scale(.9); filter: blur(1.5px); }
.story-stage[data-step="3"] .st-product .v-missing { display: none; }
.story-stage[data-step="3"] .st-source { opacity: .45; transform: translate3d(16px, -40px, 0) scale(.88); filter: blur(2.5px); }
.story-stage[data-step="3"] .st-held { opacity: 1; transform: none; }

/* 4 · the report arrives where the team already is */
.story-stage[data-step="4"] .st-flow { opacity: 0; transform: translateY(40cqh) scale(.8); filter: blur(4px); }
.story-stage[data-step="4"] .st-product { opacity: .3; transform: translate3d(-10px, -40px, 0) scale(.84); filter: blur(4px); }
.story-stage[data-step="4"] .st-source { opacity: .2; transform: translate3d(20px, -56px, 0) scale(.82); filter: blur(5px); }
.story-stage[data-step="4"] .st-held { opacity: .35; transform: translate3d(0, 40px, 0) scale(.88); filter: blur(4px); }
.story-stage[data-step="4"] .st-slack { opacity: 1; transform: none; pointer-events: auto; }
.story-stage[data-step="4"]::before { background-image: radial-gradient(circle at 72% 44%, rgba(74,21,75,.18), transparent 42%), radial-gradient(rgba(38,37,30,.08) 1px, transparent 1.2px); }
.story-stage[data-step="4"] .sl-report { animation: slack-result-in .65s .18s var(--site-ease) both; }
.story-stage[data-step="4"] .sl-stats span { animation: slack-number-in .45s var(--site-ease) both; }
.story-stage[data-step="4"] .sl-stats span:nth-child(1) { animation-delay: .35s; }
.story-stage[data-step="4"] .sl-stats span:nth-child(2) { animation-delay: .43s; }
.story-stage[data-step="4"] .sl-stats span:nth-child(3) { animation-delay: .51s; }
@keyframes slack-result-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes slack-number-in { from { opacity: 0; transform: translateY(5px); } }

/* short stages (1280×800 and below): tighten vertical rhythm */
@container stage (max-height: 700px) {
  .st-composer { padding-block: 16px; }
  .st-composer p { font-size: 1rem; }
  .st-composer { top: 16%; }
  .st-flow { top: 45%; }
  .st-meta { top: calc(45% + 96px); }
  .st-product { top: 15%; }
  .st-source { top: 30%; }
  .st-link { top: 36%; }
  .st-held { top: 48%; }
  .st-slack { top: 10%; bottom: 8%; }
  .sl-msgs { gap: 12px; }
}
@container stage (min-width: 860px) {
  .st-composer { left: 10%; right: 10%; padding: 24px 24px 24px 26px; }
  .st-composer p { font-size: 1.25rem; }
  .st-step { padding: 18px 16px 14px; }
  .st-step strong { font-size: 1rem; }
  .st-step small { font-size: .75rem; }
  .st-meta { top: calc(47% + 124px); }
  .st-chip { font-size: .8125rem; padding: 8px 14px; }
  .st-product { width: 44%; padding: 22px; grid-template-columns: 124px minmax(0, 1fr); gap: 22px; }
  .st-product img { width: 124px; height: 154px; }
  .st-product h4 { font-size: 1.0625rem; }
  .st-field .v-filled { font-size: 1.125rem; }
  .st-source { width: 40%; padding: 20px 22px; }
  .st-source p { font-size: .9375rem; }
  .st-held { left: 16%; right: 16%; padding: 22px 24px; }
  .st-held .vs { font-size: 1rem; }
  .st-slack { left: 8%; right: 8%; grid-template-columns: 190px minmax(0, 1fr); }
  .sl-msgs { font-size: .9375rem; }
}
@container stage (max-width: 760px) {
  .st-step { padding: 12px 10px 10px; }
  .st-step strong { font-size: .8125rem; }
  .st-join { flex-basis: 10px; }
  .st-slack { grid-template-columns: 132px minmax(0, 1fr); }
  .st-held { left: 9%; right: 9%; }
}

/* ---------- Product · the working factory is the hero ---------- */
.hero.hero-product { background: var(--color-bg); min-height: auto; overflow: visible; }
.hero-product h1 { margin-bottom: 0; text-wrap: balance; }
.hero-product h1 .hero-line > span { text-wrap: balance; }
.hero.hero-product-factory {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  overflow: clip;
  background: var(--color-surface-sunken);
}
.hero-product-factory .product-hero-content {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
}
.hero-product-factory .product-hero-content::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 38% 0 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(247,247,244,.72) 48%, var(--color-bg) 78%);
}
.product-hero-copy {
  position: absolute;
  z-index: 2;
  left: var(--site-gutter);
  right: var(--site-gutter);
  bottom: clamp(38px, 5.5vh, 72px);
  min-width: 0;
  text-align: center;
}
.product-hero-copy .eyebrow { margin-bottom: 18px; }
.hero-product-factory .product-hero-copy h1 {
  font-size: clamp(64px, 8.6vw, 148px);
  line-height: .88;
  letter-spacing: -.055em;
}
.hero-product-factory .product-hero-copy .hero-line { display: inline; }
.hero-product-factory .product-hero-copy .hero-line + .hero-line::before { content: ' '; }
.product-hero-lede {
  max-width: none;
  margin-top: 24px;
  color: var(--site-muted);
  font-size: 1.125rem;
  line-height: 1.5;
  text-wrap: pretty;
}
.product-hero-visual {
  position: absolute;
  z-index: 0;
  inset: var(--pinned-header-height, 74px) 0 0;
  min-width: 0;
  width: 100%;
}
.product-hero-visual .k-d4--hero,
.product-hero-visual .kd4-seq,
.product-hero-visual .kd4-stage-col,
.product-hero-visual .kd4-pin,
.product-hero-visual .kd4-stage { height: 100%; }
.product-hero-visual .k-d4--hero .kd4-stage {
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--color-surface-sunken);
}
.product-hero-visual .k-d4--hero .kd4-scene {
  width: min(1050px, 76vw);
  max-width: none;
  height: auto;
}
.product-hero-visual .k-d4--hero .kd4-stage-status { display: none; }
@media (max-width: 700px) {
  .hero-product-factory .product-hero-content::after {
    inset: 35% 0 0;
    background: linear-gradient(to bottom, transparent, rgba(247,247,244,.82) 38%, var(--color-bg) 68%);
  }
  .product-hero-copy {
    left: 20px;
    right: 20px;
    bottom: clamp(48px, 7vh, 72px);
  }
  .product-hero-copy .eyebrow { margin-bottom: 14px; }
  .hero-product-factory .product-hero-copy h1 {
    font-size: clamp(50px, 14.6vw, 66px);
    line-height: .92;
  }
  .hero-product-factory .product-hero-copy .hero-line { display: block; }
  .hero-product-factory .product-hero-copy .hero-line + .hero-line::before { content: none; }
  .product-hero-lede { margin-top: 18px; font-size: 1rem; }
  .product-hero-visual .k-d4--hero .kd4-scene {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(118vw, 480px);
    min-width: 0;
    max-width: none;
    height: auto;
    transform: translateX(-50%);
  }
}

/* Product · one product through the factory: the line draws, each stop lights as it arrives */
.chain-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; position: relative; }
.chain-line::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: var(--color-border-strong); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--site-ease); }
.chain-line:has(.is-in)::before { transform: none; }
.chain-step { position: relative; padding-top: 40px; display: flex; flex-direction: column; gap: 10px; }
.chain-step::before { content: ''; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; corner-shape: round; background: var(--color-surface-muted-hover); box-shadow: 0 0 0 5px var(--color-bg); transition: background .5s var(--site-ease) calc(var(--d, 0ms) + 300ms), box-shadow .6s var(--site-ease) calc(var(--d, 0ms) + 300ms); }
.chain-step.is-in::before { background: var(--color-accent); box-shadow: 0 0 0 5px var(--color-bg), 0 0 0 9px var(--color-accent-subtle); }
.chain-num { font-size: .75rem; font-weight: 500; letter-spacing: .04em; color: var(--color-text-muted); }
.chain-step strong { font-weight: 400; font-size: clamp(19px, 1.5vw, 23px); letter-spacing: -.025em; line-height: 1.15; }
.chain-step p { color: var(--site-muted); font-size: .9375rem; line-height: 1.5; text-wrap: pretty; }
.chain-foot { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--color-border); color: var(--site-muted); font-size: 1rem; }

/* Dashed placeholder for a partial that hasn't landed yet (build.py inlines it once it exists;
   also covers a chapter mid-refinement by its visuals owner). */
.pending-partial { min-height: 40vh; margin: 24px 0; border: 1px dashed var(--color-border-strong); border-radius: var(--radius-lg); display: grid; place-items: center; color: var(--site-muted); }

/* closing (locked roll): new bottom copy + CTAs */
.roll-closing-bottom .closing-copy h3 { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; letter-spacing: -.03em; color: var(--color-text-primary); margin-bottom: 12px; }
.roll-closing-bottom .closing-copy p { max-width: 460px; }
.closing-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.closing-ctas .button { margin: 0; }

@media (max-width: 1000px) {
  .chain-line { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .chain-line::before { top: 0; bottom: 0; left: 4px; right: auto; width: 1px; height: auto; transform: scaleY(0); transform-origin: top; }
  .chain-line:has(.is-in)::before { transform: none; }
  .chain-step { padding: 0 0 26px 30px; }
  .chain-step::before { top: 6px; }
  .c-head { grid-template-columns: minmax(0, 1fr); }
  .c-head > p { justify-self: start; }
  .story { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .story-copy { max-width: 680px; }
  .story-stage-wrap { max-width: 760px; width: 100%; }
  .story-stage { height: 460px; }
}
@media (max-width: 640px) {
  .hero-ctas .button { flex: 1 1 auto; }
  .st-composer { left: 5%; right: 5%; padding: 14px; }
  .st-composer p { font-size: .9375rem; }
  .st-flow { left: 5%; right: 5%; flex-wrap: wrap; gap: 6px; } .st-join { display: none; } .st-step { flex: 1 1 30%; }
  .st-meta { display: none; }
  .st-product { left: 5%; width: 90%; grid-template-columns: 72px minmax(0, 1fr); } .st-product img { width: 72px; height: 90px; }
  .st-source { right: 5%; width: 76%; top: 46%; } .st-link { display: none; }
  .st-held { left: 5%; right: 5%; top: 44%; }
  .st-slack { grid-template-columns: minmax(0, 1fr); left: 3%; right: 3%; top: 8%; bottom: 5%; } .sl-side { display: none; } .sl-main { grid-column: 1; }
  .st-slack::after { width: 60%; }
  .sl-msgs { justify-content: center; padding: 10px 12px 12px; gap: 8px; font-size: .8125rem; }
  .sl-main::after { margin-inline: 14px; }
  .sl-report { padding: 11px 12px; }
  .sl-report > p, .sl-held-note { font-size: .6875rem; }
  .sl-stats { margin-block: 9px; }
  .sl-stats span { padding-block: 7px; }
  .sl-btns span { white-space: nowrap; padding: 5px 8px; font-size: .6875rem; }
  .story-tabs { gap: 6px; margin-bottom: 22px; }
  .story-tabs button { padding-inline: 8px; }
  .story-stage { height: 420px; }
  .story-chapter h3 { font-size: 26px; margin-bottom: 12px; }
  .story-chapter p { font-size: 1rem; }
  .story-chapter .c-label { margin-bottom: 10px; }
  .sl-main::after { display: none; }
  .sl-top { padding-block: 9px; }
  .st-slack { top: 8%; bottom: 4%; }
  .st-source { top: 50%; }
  .st-composer { top: 11%; gap: 10px; } .st-composer p { font-size: .875rem; } .st-composer .send { width: 32px; height: 32px; }
  .st-flow { top: 46%; }
  .story-stage .st-composer, .story-stage[data-step="0"] .st-composer { transform: translateY(18cqh); }
  .story-stage[data-step="1"] .st-composer { transform: none; }
  .story-stage[data-step="2"] .st-flow, .story-stage[data-step="3"] .st-flow { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .c-rise, .st, .st-step, .st-join { transition: none !important; animation: none !important; }
  .sl-report, .sl-stats span { animation: none !important; }
  .c-rise { opacity: 1; transform: none; }
  .st { filter: none !important; }
  .chain-line::before { transform: none !important; transition: none; }
  .chain-step::before { transition: none; }
  .st-field .v-filled { animation: none; }
}
body.is-motion-paused .sl-report, body.is-motion-paused .sl-stats span { animation: none !important; }

/* ============================================================
   v3 additions (25.9) — page-level layout only; never style the
   partials' own internals (.k-d4, .v-principle, .v-cap, .k-connect).
   ============================================================ */

/* ---------- concept pill: Home / Product / About ---------- */
.concept-tag { gap: 4px; }

/* ---------- Product · compact capability chapters ----------
   The open details row selects the visual; neither column pins on scroll. */
.capx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 80px); padding: clamp(48px, 4.5vw, 64px) var(--site-gutter); max-width: calc(var(--site-width) + var(--site-gutter) * 2); margin-inline: auto; border-top: 1px solid var(--color-border); }
.capx:first-of-type { border-top: 0; padding-top: 40px; }
.capx:nth-of-type(even) .capx-copy { order: 2; }
.capx:nth-of-type(even) .capx-stage { order: 1; }
.capx-copy { min-width: 0; max-width: 600px; }
.capx-copy .eyebrow { margin-bottom: 14px; color: var(--color-accent); }
.capx-copy h2 { font-size: clamp(30px, 2.8vw, 46px); letter-spacing: -.035em; line-height: 1.1; max-width: 580px; text-wrap: balance; }
.capx-body { color: var(--site-muted); font-size: 1.0625rem; line-height: 1.55; max-width: 560px; margin-top: 18px; text-wrap: pretty; }
.capx-points { margin: 28px 0 0; padding: 0; border-top: 1px solid var(--color-border); }
.capx-point { margin: 0; padding: 0; border-bottom: 1px solid var(--color-border); }
.capx-point > summary { position: relative; display: flex; align-items: center; min-height: 54px; padding: 14px 30px 14px 0; font-size: 1.125rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.3; list-style: none; cursor: pointer; }
.capx-point > summary::-webkit-details-marker { display: none; }
.capx-point > summary::after { content: ''; position: absolute; right: 3px; top: 50%; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-50%) rotate(45deg); transition: transform .2s var(--site-ease); }
.capx-point[open] > summary { color: var(--color-accent); }
.capx-point[open] > summary::after { transform: translateY(-50%) rotate(225deg); }
.capx-point > summary:hover { color: var(--color-accent); }
.capx-point > summary:focus-visible { outline-offset: 3px; }
.capx-point > p { padding: 0 28px 18px 0; color: var(--site-muted); font-size: 1rem; line-height: 1.55; text-wrap: pretty; }
.capx-stage { position: relative; width: 100%; max-width: 640px; height: 500px; min-width: 0; justify-self: center; }
.capx-stage > * { width: 100%; height: 100%; }

@media (max-width: 1000px) {
  .capx { gap: 28px; }
  .capx-stage { height: 460px; }
  .capx-copy h2 { font-size: 30px; }
  .capx-point > summary { font-size: 1.0625rem; }
}
@media (max-width: 700px) {
  .capx { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 40px; }
  .capx-copy, .capx:nth-of-type(even) .capx-copy, .capx:nth-of-type(even) .capx-stage { order: initial; }
  .capx-copy { max-width: none; }
  .capx-copy h2 { font-size: clamp(30px, 6.4vw, 38px); }
  .capx-body { font-size: 1rem; }
  .capx-points { margin-top: 24px; }
  .capx-stage { height: 420px; }
}

/* ---------- Home · four plain-language principles ---------- */
#principles { padding-block: clamp(48px, 4.5vw, 64px); }
#principles .principles-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
#principles .principles-head h2 { font-size: clamp(32px, 3.5vw, 52px); line-height: 1.1; letter-spacing: -.04em; }
#principles .principles-link { display: inline-flex; align-items: center; gap: 12px; flex: none; padding-block: 10px; font-size: 1rem; border-bottom: 1px solid var(--color-border-strong); }
#principles .principles-link:hover { color: var(--color-accent); border-color: currentColor; }
#principles .principles-link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 5px; }
#principles .principles-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: clamp(22px, 2.5vw, 40px); border: 0; margin-top: 32px; }
#principles .principle { min-width: 0; padding: 20px 0 0; margin: 0; border: 0; border-top: 1px solid var(--color-border-strong); }
#principles .principle > h3 { font-size: clamp(22px, 1.9vw, 28px); letter-spacing: -.025em; line-height: 1.2; margin-bottom: 12px; text-wrap: balance; }
#principles .principle > p { color: var(--site-muted); font-size: 1.0625rem; line-height: 1.5; max-width: 34ch; text-wrap: pretty; }
@media (max-width: 1000px) and (min-width: 701px) {
  #principles .principles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}
@media (max-width: 700px) {
  #principles .principles-head { flex-wrap: wrap; gap: 14px; }
  #principles .principles-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 28px; }
  #principles .principle { padding-top: 18px; }
  #principles .principle > h3 { margin-bottom: 8px; }
  #principles .principle > p { font-size: 1rem; }
}

/* ---------- Product · trust statement ---------- */
#trust { padding-block: clamp(64px, 8vw, 112px); border-top: 1px solid var(--color-border); text-align: center; }
#trust h2 { font-size: clamp(28px, 3vw, 46px); letter-spacing: -.035em; line-height: 1.15; max-width: 800px; margin: 0 auto 20px; text-wrap: balance; }
#trust p { color: var(--site-muted); font-size: 1.0625rem; line-height: 1.6; max-width: 640px; margin: 0 auto; text-wrap: pretty; }

/* ---------- About ---------- */
.hero-about .hero-content { padding-bottom: clamp(40px, 4vw, 64px); }
.hero-about h1 { text-wrap: balance; }

.manifesto-invite { padding-block: clamp(64px, 8vw, 112px); border-top: 1px solid var(--color-border); }
.manifesto-invite-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.manifesto-invite .eyebrow { margin-bottom: 18px; }
.manifesto-invite h2 { font-size: clamp(42px, 5.2vw, 78px); letter-spacing: -.045em; line-height: .98; text-wrap: balance; }
.manifesto-invite .button { flex: none; margin: 0 0 4px; }

@media (max-width: 900px) {
  /* launch.css styles the live mountain hero too; the paper About hero must
     not receive a second top inset inside the hero's own mobile padding. */
  .hero.hero-about .hero-content { padding-top: 0; }
}

@media (max-width: 640px) {
  .manifesto-invite-inner { align-items: flex-start; flex-direction: column; gap: 28px; }
  .manifesto-invite .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .capx-point { opacity: 1; animation: none; }
}
