.lean-v1 .l-skip { position: fixed; top: -100px; left: var(--gutter); z-index: 30; padding: 12px; background: var(--bg); color: var(--ink); }
.lean-v1 .l-skip:focus { top: 12px; }
.lean-v1 .l-section { max-width: var(--shell); margin: 0 auto; padding: 88px var(--gutter); }
.lean-v1 .l-section h2 { margin: 0; font: var(--display); letter-spacing: -.035em; text-wrap: balance; }
.lean-v1 .l-premise { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; text-align: center; padding-top: 100px; padding-bottom: 100px; }
.lean-v1 .l-premise .lead { margin-left: auto; margin-right: auto; }
.lean-v1 #beat-3 > h2 { text-align: center; }
.lean-v1 .l-ladder-thesis { margin-left: auto; margin-right: auto; text-align: center; }
.lean-v1 .l-ladder { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 800px; margin: 56px auto 0; }
.lean-v1 .l-rungs { display: flex; flex-direction: column; min-width: 0; }
.lean-v1 .l-rung-stack { display: flex; gap: 12px; }
.lean-v1 .l-rung { position: relative; display: flex; flex: 1; min-width: 0; min-height: 60px; justify-content: center; align-items: center; margin: 0; padding: 12px 8px; text-align: center; border: 1px solid var(--line-2); cursor: pointer; touch-action: manipulation; transition: border-color .2s; }
.lean-v1 .l-rung-name { font: var(--lead); color: var(--ink); }
.lean-v1 .l-rung .l-scope, .lean-v1 .l-rung-open { display: none; }
.lean-v1 .l-rung:not(:last-of-type)::after { content: '→'; position: absolute; right: -12px; width: 12px; text-align: center; font: 12px/1 var(--font); color: var(--ink-3); }
.lean-v1 .l-mobile-description { display: block; min-height: 3.2em; margin: 12px 0 0; font: 400 16px/1.6 var(--font); color: var(--ink-2); }
.lean-v1 #beat-3 .l-mobile-description { text-align: center; }
.lean-v1 .l-rung[aria-pressed="true"] { border-color: var(--warm); }
.lean-v1 .l-rung[aria-pressed="true"] .l-rung-name, .lean-v1 .l-rung[aria-pressed="true"] .l-rung-open { color: var(--warm); }
.lean-v1 .l-rung:hover, .lean-v1 .l-rung:focus-visible { border-color: var(--warm); }
.lean-v1 .l-rung:hover .l-rung-open, .lean-v1 .l-rung:focus-visible .l-rung-open { transform: translateX(4px); }
.lean-v1 .l-detail { min-width: 0; width: 100%; max-width: 560px; margin: 0 auto; }
.lean-v1 .l-flow-set { position: relative; display: grid; }
.lean-v1 .l-flow { grid-area: 1 / 1; align-self: start; margin: 0; font: var(--caption); color: var(--ink-2); }
.lean-v1 .l-flow[hidden] { display: none; }
.lean-v1 .l-unit { transform-origin: top left; border: 1px solid var(--line-2); padding: 16px; }
.lean-v1 .l-unit-name { font: 500 17px/1.4 var(--font); color: var(--ink); }
.lean-v1 .l-capability { border: 1px solid var(--line-2); padding: 6px 8px; text-align: center; font: var(--caption); color: var(--ink-2); }
.lean-v1 .l-unit-prompt { padding: 12px; text-align: center; }
.lean-v1 .l-unit-prompt > .l-unit-name { font-size: 15px; margin-bottom: 10px; }
.lean-v1 .l-prompt-exchange { display: flex; align-items: center; justify-content: center; gap: 8px; }
.lean-v1 .l-prompt-arrow { color: var(--ink-3); }
.lean-v1 .l-single-prompt { max-width: 290px; margin: 0 auto; }
.lean-v1 .l-single-agent { max-width: 290px; margin: 0 auto; }
.lean-v1 .l-unit-agent { container-type: inline-size; }
.lean-v1 .l-unit-agent > .l-unit-name { margin-bottom: 14px; }
.lean-v1 .l-unit-agent > .l-capability { margin-bottom: 20px; }
.lean-v1 .l-unit-agent > .l-unit-prompt { position: relative; }
.lean-v1 .l-unit-factory > .l-capability { margin-top: 14px; }
.lean-v1 .l-agent-team { display: grid; grid-template-columns: minmax(0,1fr) 20px minmax(0,1fr); gap: 8px; margin-top: 20px; }
.lean-v1 .l-agent-team .l-unit-agent { position: relative; min-width: 0; padding: 12px; }
.lean-v1 .l-agent-team .l-unit-agent::before, .lean-v1 .l-unit-agent > .l-unit-prompt::before { content: ''; position: absolute; top: -21px; left: 50%; width: 1px; height: 20px; background: var(--line-2); }
.lean-v1 .l-agent-team .l-unit-agent::after, .lean-v1 .l-unit-agent > .l-unit-prompt::after { content: ''; position: absolute; top: -6px; left: calc(50% - 2px); width: 4px; height: 4px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transform: rotate(45deg); }
.lean-v1 .l-agent-link { display: flex; align-items: flex-start; padding-top: 18px; }
.lean-v1 .l-agent-link svg { width: 100%; height: 12px; }
.lean-v1 .l-agent-link path { fill: none; stroke: var(--ink-3); stroke-width: 1; }
.lean-v1 .l-unit-firm { border-color: var(--warm-line); }
.lean-v1 .l-unit-firm > .l-unit-name { color: var(--warm); margin-bottom: 16px; }
.lean-v1 .l-business-cycle { display: grid; grid-template-columns: minmax(0,1fr) 24px; }
.lean-v1 .l-business-cycle > .l-capability, .lean-v1 .l-business-cycle > .l-unit-factory, .lean-v1 .l-business-down { grid-column: 1; }
.lean-v1 .l-business-choice { grid-row: 1; }
.lean-v1 #beat-3 .l-business-choice { white-space: nowrap; }
.lean-v1 .l-business-measure { grid-row: 5; }
.lean-v1 .l-business-down { display: flex; justify-content: center; height: 20px; }
.lean-v1 .l-business-down svg { width: 12px; height: 20px; }
.lean-v1 .l-business-down path { fill: none; stroke: var(--warm); stroke-width: 1; }
.lean-v1 .l-feedback-top, .lean-v1 .l-feedback-trunk, .lean-v1 .l-feedback-bottom { grid-column: 2; position: relative; }
.lean-v1 .l-feedback-top { grid-row: 1; }
.lean-v1 .l-feedback-trunk { grid-row: 2 / 5; margin-right: 6px; border-right: 1px solid var(--warm); }
.lean-v1 .l-feedback-trunk::after { content: ''; position: absolute; right: -2px; top: calc(50% - 2px); width: 5px; height: 5px; border-top: 1px solid var(--warm); border-left: 1px solid var(--warm); transform: rotate(45deg); }
.lean-v1 .l-feedback-bottom { grid-row: 5; }
.lean-v1 .l-feedback-top::before, .lean-v1 .l-feedback-bottom::before { content: ''; position: absolute; left: 0; right: 6px; top: 50%; border-top: 1px solid var(--warm); }
.lean-v1 .l-feedback-top::after { content: ''; position: absolute; top: 50%; bottom: 0; right: 6px; border-right: 1px solid var(--warm); }
.lean-v1 .l-feedback-bottom::after { content: ''; position: absolute; top: 0; bottom: 50%; right: 6px; border-right: 1px solid var(--warm); }
.lean-v1 .l-feedback-top i { position: absolute; top: calc(50% - 2px); left: 1px; width: 5px; height: 5px; border-left: 1px solid var(--warm); border-bottom: 1px solid var(--warm); transform: rotate(45deg); }
.lean-v1 .l-feedback-bottom i { position: absolute; top: calc(50% - 1px); left: -1px; width: 3px; height: 3px; border-radius: 50%; background: var(--warm); }
.lean-v1 .l-inside { text-align: center; padding-bottom: 0; }
.lean-v1 .l-inside .lead { margin-left: auto; margin-right: auto; }
.lean-v1 .l-inside .action { display: inline-block; margin-top: 26px; }
.lean-v1 #building.l-building-trimmed { height: var(--building-frame-height); overflow: clip; }
.lean-v1 #building.l-building-trimmed .lot { position: relative; transform: translateY(calc(-1 * var(--building-top-trim, 0px))); }
.lean-v1 .ov[aria-hidden="true"] { pointer-events: none; }
.lean-v1 .l-closing { text-align: center; padding-top: 32px; padding-bottom: 76px; }
.lean-v1 .l-closing .lead { max-width: none; margin: 0 0 24px; }
.lean-v1 .site-foot [aria-current="page"] { color: var(--warm); }
/* Scene pacing applies only to the published V2 beats, not the V1 prototype. */
.l-scenes-ready .l-scene { display: flow-root; min-height: var(--screen, 100svh); }
.l-scenes-ready .l-scene-final { min-height: 0; padding-top: calc(var(--screen, 100svh) * .35); }
.l-scenes-ready .l-scene:not(.is-scene-visible) { pointer-events: none; }
.l-scenes-ready .hero { opacity: 1 !important; }
.l-scenes-ready:not([data-scene="3"]) .site-head { visibility: hidden; }
@media (max-width: 700px) {
  .lean-v1 .l-section { padding-top: 62px; padding-bottom: 62px; }
  .lean-v1 #beat-2 h2, .lean-v1 #beat-3 h2, .lean-v1 #inside h2 { font-size: clamp(28px, 8vw, 34px); }
  .lean-v1 .l-ladder { margin-top: 34px; }
  .lean-v1 #beat-3 .l-ladder-thesis { margin-top: 18px; }
  .lean-v1 #beat-3 .l-ladder { margin-top: 26px; gap: 16px; }
  .lean-v1 #beat-3 .l-mobile-description { min-height: 1.6em; margin-top: 10px; }
  .lean-v1 .l-rung-stack { gap: 8px; }
  .lean-v1 .l-rung { min-height: 48px; padding: 10px 4px; }
  .lean-v1 #beat-3 .l-rung { min-height: 38px; padding: 7px 4px; }
  .lean-v1 #beat-3 .l-rung::before { content: ''; position: absolute; inset: -3px 0; }
  .lean-v1 #beat-3 .l-business-choice { font-size: clamp(10px, 3vw, 12px); }
  .lean-v1 .l-rung-name { font-size: 13px; line-height: 1.4; }
  .lean-v1 .l-rung:not(:last-of-type)::after { right: -8px; width: 8px; }
  .lean-v1 .l-mobile-description { font-size: 14px; }
  .lean-v1 .l-unit-agent .l-capability { font-size: 11px; }
  .lean-v1 .l-inside { padding-bottom: 0; }
  .lean-v1 .l-closing { padding-top: 0; }
}

@media (max-width: 900px) {
  .lean-v1 .l-unit { padding: 12px; }
  .lean-v1 .l-agent-team { grid-template-columns: minmax(0,1fr) 18px minmax(0,1fr); gap: 4px; }
  .lean-v1 .l-agent-team .l-unit-agent { padding: 8px; }
  .lean-v1 .l-agent-link { padding-top: 14px; }
  .lean-v1 .l-unit-prompt { padding: 8px 4px; }
  .lean-v1 .l-business-cycle { grid-template-columns: minmax(0,1fr) 20px; }
}

@container (max-width: 160px) {
  .lean-v1 .l-capability { font-size: 10px; padding: 6px 4px; }
  .lean-v1 .l-prompt-exchange { flex-direction: column; gap: 3px; }
  .lean-v1 .l-prompt-arrow { transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  .lean-v1 .l-ladder *, .lean-v1 .l-ladder *::before, .lean-v1 .l-ladder *::after { transition: none !important; }
}

/* The V2 cue keeps its animated, fading stem with a quiet downward tip. */
.lean-v1 #hero .cue[aria-label="Continue to next section"] i { position: relative; }
.lean-v1 #hero .cue[aria-label="Continue to next section"] i::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 4px; height: 4px; border-right: 1px solid var(--ink-2); border-bottom: 1px solid var(--ink-2);
  transform: translateX(-50%) rotate(45deg); opacity: .35;
}

/* V2's opening beat shares the display type of the following beats. */
.lean-v1 #hero[data-track-section="hero"] h1 {
  font: var(--display); letter-spacing: -.035em; text-transform: none;
}
@media (max-width: 700px) {
  .lean-v1 #hero[data-track-section="hero"] h1 { font-size: clamp(28px, 8vw, 34px); }
}

/* After the final line settles, the d makes room for itself. */
.lean-v1 #hero {
  --hero-suffix-delay: 3.1s;
  --hero-suffix-duration: .65s;
  --hero-cue-delay: calc(var(--hero-suffix-delay) + var(--hero-suffix-duration) + .2s);
}
.lean-v1 #hero .l-hero-suffix {
  display: inline-grid; grid-template-columns: 0fr;
  animation: firmd-suffix var(--hero-suffix-duration) var(--ease) var(--hero-suffix-delay) both;
}
.lean-v1 #hero .l-hero-suffix > span { min-width: 0; overflow: hidden; }
.lean-v1 #hero .cue[aria-label="Continue to next section"],
.lean-v1 #hero .cue[aria-label="Continue to next section"] i { animation-delay: var(--hero-cue-delay); animation-fill-mode: both; }
@keyframes firmd-suffix {
  from { grid-template-columns: 0fr; opacity: 0; }
  to { grid-template-columns: 1fr; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lean-v1 #hero .l-hero-suffix { animation: none; grid-template-columns: 1fr; }
}

.lean-v1 #hero[data-track-section="hero"] .firmd { color: inherit; }
.lean-v1 #hero .l-hero-suffix { color: var(--warm); }

/* V2's development invitation shares the footer's type and sits opposite its links. */
.lean-v1 .site-foot.l-footer-development {
  justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; clip-path: none;
}
.lean-v1 .l-footer-note { margin: 0; text-align: left; }
.lean-v1 .l-footer-note a { text-decoration: underline; text-underline-offset: 3px; }
.lean-v1 .l-footer-development .shell { justify-content: flex-end; margin: 0 0 0 auto; }
.lean-v1 .l-footer-development .shell > *::before { content: none; }
.lean-v1 .l-footer-development .shell > * + *::before {
  content: "\00b7"; display: inline; width: auto; margin: 0 .8em;
}
@media (max-width: 759px) {
  .lean-v1 .l-footer-note { flex-basis: 100%; }
}
