/* /implementation: one story told around the onboarding film (assets/onboarding-film.css).
   Hero + film, then eight chapters that pair a motion scene (assets/onboarding-scenes.css)
   with short copy and one line from the film. The film's chapter list seeks to each part. */
.page-implementation section[id] { scroll-margin-top: 88px; }

/* ---------- Hero ---------- */
.ob-hero { padding: 32px 0 72px; border-bottom: 1px solid var(--line); }
.ob-hero-head { margin-top: 28px; }
.ob-hero h1 { max-width: 1040px; margin: 18px 0 0; font-size: clamp(40px, 4.2vw + 8px, 70px); line-height: 1.02; letter-spacing: -0.052em; text-wrap: balance; }
.ob-hero-side { display: grid; grid-template-columns: minmax(0, 600px) auto; justify-content: space-between; align-items: end; gap: 24px 48px; margin-top: 24px; }
.ob-hero-side .lede { margin: 0; color: var(--fg-2); text-wrap: pretty; }
.ob-hero-side .cta-row { margin: 0; flex-wrap: nowrap; }
.ob-hero-watch { gap: 10px; }
.ob-hero-watch svg { width: 14px; height: 14px; }
.ob-film-block { margin-top: 40px; }

/* ---------- Chapters ---------- */
.ob-chapter { padding-block: clamp(72px, 8.4vw, 120px); }
.ob-chapter-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 88px); align-items: center; }
.ob-chapter-grid.is-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ob-chapter-grid.is-flip > .ob-chapter-copy, .ob-chapter.is-flip > .wrap > .ob-chapter-grid:first-child > .ob-chapter-copy { order: 2; }
.ob-chapter.is-flip > .wrap > .ob-chapter-grid:first-child { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ob-chapter.is-text .ob-chapter-grid { grid-template-columns: minmax(0, 1fr); }
.ob-chapter-copy { min-width: 0; max-width: 520px; }
.ob-chapter.is-text .ob-chapter-copy { max-width: none; }
.ob-chapter h2, .ob-chapter-pm .pm-title { margin: 18px 0 0; font-size: clamp(30px, 3.4vw + 6px, 48px); line-height: 1.08; letter-spacing: -0.042em; text-wrap: balance; }
.ob-chapter-body > p { margin: 20px 0 0; font-size: 17px; line-height: 1.65; color: var(--fg-2); text-wrap: pretty; }
.ob-chapter-art { min-width: 0; }
.ob-chapter-art > .ob-scene { margin: 0; }
.ob-chapter-sub { margin-top: clamp(56px, 7vw, 96px); }
.ob-chapter-sub h3 { margin: 0; font-size: clamp(22px, 1.6vw + 10px, 30px); line-height: 1.2; letter-spacing: -0.03em; }
.ob-chapter-sub .ob-chapter-body > p { margin-top: 14px; }

/* Chapter 02: copy and the loop scene, then the platform scene and its note. */
.ob-gap-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: clamp(56px, 7vw, 96px); }
.ob-gap-grid > .ob-chapter-copy { grid-column: 1 / 6; grid-row: 1; }
.ob-gap-arts { display: contents; }
.ob-gap-loop { grid-column: 6 / 13; grid-row: 1; }
.ob-gap-platform { grid-column: 1 / 8; grid-row: 2; }
.ob-gap-sub { grid-column: 8 / 13; grid-row: 2; min-width: 0; }
.ob-gap-sub h3 { margin: 0; font-size: clamp(22px, 1.6vw + 10px, 30px); line-height: 1.2; letter-spacing: -0.03em; }
.ob-gap-sub .ob-chapter-body > p { margin-top: 14px; }

/* One line from the film, with its speaker. */
.ob-quote { margin: 28px 0 0; padding-left: 20px; border-left: 2px solid var(--line-2); }
.ob-quote blockquote { margin: 0; }
.ob-quote blockquote p { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.45; letter-spacing: -0.012em; color: var(--fg); text-wrap: pretty; }
.ob-quote figcaption { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; line-height: 1.35; color: var(--fg-3); }
.ob-quote figcaption img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.ob-quote-compact { margin-top: 24px; }
.ob-quote-compact blockquote p { font-size: 17px; }
.ob-chapter-pm .pm-press { margin: 18px 0 0; font-size: 15px; } /* October 21: the link to Will’s interview under Sam’s line */

/* Placeholder until a motion scene partial exists (same reserved shape, never empty). */
.ob-scene-placeholder { display: grid; place-items: center; aspect-ratio: 4 / 3; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-subtle); background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px); background-size: 16px 16px; }
.ob-scene-placeholder-mark .plane-icon { width: 28px; height: 28px; color: var(--fg-4); }

/* Below a chapter: supporting material at full width. */
.ob-more { margin-top: clamp(48px, 6vw, 72px); }
.ob-more-head { max-width: 640px; margin-bottom: 24px; }
.ob-more-head h3 { margin: 0; font-size: clamp(22px, 1.4vw + 12px, 28px); line-height: 1.2; letter-spacing: -0.028em; }
.ob-more-head p:not(.eyebrow) { margin: 12px 0 0; font-size: 16px; line-height: 1.65; color: var(--fg-3); }

/* Discovery: the four questions, then where to look first. */
.ob-questions { display: grid; margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ob-questions > li { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--fg); }
.ob-questions > li > span { font: 13px/1 var(--font-sans); color: var(--fg-3); }
.implementation-opportunities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.implementation-opportunities > article { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.implementation-opportunities h4 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; letter-spacing: -0.02em; }
.implementation-opportunities p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fg-3); }

/* Shared disclosures (responsibilities, partner guidance). */
.implementation-detail { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; background: var(--bg-elev); }
.implementation-detail > summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 0; cursor: pointer; font-size: 15px; font-weight: 500; line-height: 1.45; list-style: none; }
.implementation-detail > summary::-webkit-details-marker { display: none; }
.implementation-detail > summary::before { content: ""; flex: none; width: 8px; height: 8px; border-right: 1.5px solid var(--fg-3); border-bottom: 1.5px solid var(--fg-3); rotate: -45deg; transition: rotate var(--dur-2) var(--ease); }
.implementation-detail[open] > summary::before { rotate: 45deg; }
.implementation-detail > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.implementation-detail[open] { padding-bottom: 24px; }
.implementation-detail[open] > summary { margin-bottom: 16px; border-bottom: 1px solid var(--line); }
/* Mach 1's own discovery questions (Will's Channel Portal, October 7), in two groups. */
.ob-opportunity + .implementation-question-bank { margin-top: 24px; }
.implementation-question-bank > p { max-width: 70ch; color: var(--fg-2); line-height: 1.65; }

/* Knowledge first: what your team brings, then the four shared steps. */
.implementation-knowledge { margin: 20px 0 0; font-size: 17px; line-height: 1.65; color: var(--fg-2); }
.ob-brings { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.ob-brings > li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 15px; line-height: 1.55; color: var(--fg-3); }
.ob-brings strong { color: var(--fg); font-weight: 500; }
.ob-brings .icon-tile { width: 36px; height: 36px; }
.implementation-process .home-process-art { max-width: 1100px; margin: 0 auto 12px; }
.implementation-process .home-process-art::before { opacity: 0.65; }
.implementation-station-labels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1100px; margin: -16px auto 0; padding: 0; list-style: none; }
.implementation-station-labels > li { padding: 0 12px; color: var(--fg); font-size: 15px; line-height: 1.5; font-weight: 500; text-align: center; }
.implementation-responsibilities { margin-top: 28px; }
.implementation-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.implementation-steps > li { display: flex; gap: 22px; padding: 28px; min-width: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.implementation-number { font: 13px var(--font-sans); color: var(--fg-3); padding-top: 4px; flex-shrink: 0; }
.implementation-steps h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 12px; }
.implementation-steps p { color: var(--fg-3); font-size: 15px; line-height: 1.65; margin: 0; }
.implementation-contributions { margin: 20px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.implementation-contributions > div { margin-top: 14px; }
.implementation-contributions dt { font: 13px var(--font-sans); color: var(--fg); margin-bottom: 4px; }
.implementation-contributions dd { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fg-3); }

/* Sample: the illustrative support test. */
.implementation-example { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); }
.implementation-example .ob-more-head { margin-bottom: 0; }
.implementation-review-sequence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 24px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.implementation-review-sequence > li { min-width: 0; }
.implementation-review-sequence > li > span { font: 13px var(--font-sans); color: var(--fg-3); }
.implementation-review-sequence h4 { font-size: 18px; font-weight: 500; margin: 12px 0 8px; line-height: 1.3; }
.implementation-review-sequence p { margin: 0; color: var(--fg-3); font-size: 14px; line-height: 1.65; }

/* After launch: the review loop and customer voices. */
.implementation-improvement .ob-chapter-copy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 88px); }
.implementation-improvement .ob-chapter-copy > :not(.ob-chapter-body) { grid-column: 1; }
.implementation-improvement .ob-chapter-body { grid-column: 2; grid-row: 1 / span 3; }
.implementation-improvement .ob-chapter-body > p:first-child { margin-top: 0; }
.implementation-feedback { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 24px 0; margin: 28px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; counter-reset: feedback; }
.implementation-feedback > li { min-width: 0; counter-increment: feedback; }
.implementation-feedback > li::before { content: "0" counter(feedback); display: block; font: 13px var(--font-sans); color: var(--fg-3); margin-bottom: 12px; }
.implementation-feedback > li > span { display: block; font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.implementation-feedback p { font-size: 14px; line-height: 1.6; color: var(--fg-3); margin: 0; }
.implementation-ownership { margin: 20px 0 0; color: var(--fg-3); font-size: 16px; line-height: 1.65; }
.implementation-voices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.implementation-voice { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.implementation-voice blockquote { margin: 0; }
.implementation-voice blockquote p { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.45; letter-spacing: -0.012em; color: var(--fg); text-wrap: pretty; }
.implementation-voice figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.implementation-voice figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.implementation-voice figcaption > span { display: grid; gap: 2px; line-height: 1.35; min-width: 0; }
.implementation-voice figcaption strong { font-size: 14px; }
.implementation-voice figcaption strong + span { font-size: 13px; color: var(--fg-3); }
.implementation-voices-links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 16px 0 0; }
.implementation-voices-links .textlink { display: inline-flex; align-items: center; column-gap: 0.3em; min-height: 44px; }

/* Team. */
.implementation-section-heading { max-width: 720px; margin-bottom: 36px; }
.implementation-section-heading h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.04em; line-height: 1.1; margin: 0 0 20px; }
.implementation-section-heading > p:last-child { color: var(--fg-3); line-height: 1.65; margin: 0; }
.implementation-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.implementation-person { margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.implementation-person figcaption { display: flex; align-items: center; gap: 16px; }
.implementation-person figcaption img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }
.implementation-person figcaption div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.implementation-person figcaption strong { font-size: 18px; }
.implementation-person figcaption span { font-size: 14px; color: var(--fg-3); }
.implementation-person blockquote { margin: 20px 0 0; }
.implementation-person blockquote p { font-size: 21px; line-height: 1.5; margin: 0; }

@media (max-width: 1000px) {
  .ob-hero-side { grid-template-columns: minmax(0, 1fr); }
  .ob-hero-side .cta-row { flex-wrap: wrap; }
  .implementation-improvement .ob-chapter-copy { display: block; }
}
@media (max-width: 900px) and (min-width: 721px) {
  .ob-chapter-grid.ob-gap-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .ob-gap-grid > .ob-chapter-copy { grid-column: 1 / 7; }
  .ob-gap-loop { grid-column: 7 / 13; }
  .ob-gap-platform { grid-column: 1 / 7; }
  .ob-gap-sub { grid-column: 7 / 13; }
  .ob-chapter-grid, .ob-chapter-grid.is-flip, .ob-chapter.is-flip > .wrap > .ob-chapter-grid:first-child { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}

/* ---------- Phones: one column; the scene follows the headline ---------- */
@media (max-width: 720px) {
  .page-implementation section[id] { scroll-margin-top: calc(var(--m-header-h, 64px) + 12px); }
  .ob-hero { padding: 20px 0 48px; }
  .ob-hero-head { margin-top: 20px; }
  .ob-hero-side { gap: 20px; margin-top: 16px; }
  .ob-hero h1 { margin-top: 12px; font-size: clamp(34px, 9.4vw, 44px); line-height: 1.04; letter-spacing: -0.045em; }
  .ob-hero-side .lede { font-size: 16px; line-height: 1.55; }
  .ob-hero-side .cta-row .btn { padding-inline: 12px; }
  .ob-film-block { margin-top: 28px; }
  .ob-film .ob-film-frame { border-radius: var(--radius); }
  .ob-credit { margin-top: 14px; gap: 10px; }
  .ob-credit-people { gap: 10px 18px; }
  .ob-credit-person img { width: 28px; height: 28px; }
  .ob-credit-person strong { font-size: 13px; }
  .ob-credit-person strong + span { font-size: 12px; }
  .ob-chapter { padding-block: 40px 44px; }
  .ob-chapter-grid, .ob-chapter.is-text .ob-chapter-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .ob-chapter-copy { display: contents; }
  .ob-chapter h2, .ob-chapter-sub h3 { order: 2; }
  .ob-chapter h2, .ob-chapter-pm .pm-title { margin-top: 14px; font-size: clamp(27px, 7.4vw, 32px); line-height: 1.1; }
  .ob-chapter-art { order: 3; margin-top: 24px; }
  .ob-chapter-body { order: 4; }
  .ob-quote { order: 5; }
  .ob-chapter-body > p, .implementation-knowledge { margin-top: 18px; font-size: 16px; line-height: 1.6; }
  .ob-chapter-sub { margin-top: 44px; }
  .ob-gap-arts, .ob-gap-grid > .m-rail-dots { order: 3; }
  .ob-gap-arts { margin-top: 24px; align-items: stretch; }
  .ob-gap-arts > .ob-chapter-art { margin-top: 0; }
  .ob-gap-sub { order: 5; margin-top: 28px; }
  .ob-gap-grid .ob-quote { order: 6; }
  .ob-chapter-sub .ob-chapter-art { margin-top: 18px; }
  .ob-quote { margin-top: 22px; padding-left: 16px; }
  .ob-quote blockquote p { font-size: 17px; }
  .ob-more { margin-top: 40px; }
  .ob-more-head { margin-bottom: 16px; }
  .ob-more-head p:not(.eyebrow) { font-size: 15px; line-height: 1.6; }

  /* The discovery scene shows the same four questions on phones; the list stays for assistive tech. */
  .ob-questions { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .implementation-opportunities > article { padding: 20px; }
  .implementation-detail { padding: 0 18px; }
  .implementation-detail > summary { min-height: 52px; }

  .ob-brings { gap: 12px; margin-top: 20px; }
  .ob-brings > li { font-size: 14px; line-height: 1.5; }
  .implementation-process .home-process-art { margin: 0 0 16px; }
  .implementation-station-labels { margin-top: -12px; }
  .implementation-station-labels > li { padding: 0 3px; font-size: 12px; }
  .implementation-responsibilities { margin-top: 18px; }
  .implementation-steps { grid-template-columns: minmax(0, 1fr); }
  .implementation-steps > li { padding: 20px; gap: 14px; }

  .implementation-example { padding: 0; border: 0; border-radius: 0; background: none; }
  .implementation-review-sequence { margin-top: 16px; padding-top: 4px; border-top: 0; }
  .implementation-review-sequence > li { padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
  .implementation-review-sequence h4 { margin: 8px 0 6px; font-size: 17px; }

  .implementation-feedback { margin-top: 24px; border: 0; }
  .implementation-feedback > li { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
  .implementation-feedback > li::before { margin-bottom: 8px; }
  .implementation-feedback > li > span { margin-bottom: 4px; }
  .implementation-ownership { font-size: 15px; line-height: 1.6; margin-top: 16px; }
  .implementation-voices { margin-top: 32px; }
  .implementation-voice { padding: 20px; gap: 14px; }
  .implementation-voice blockquote p { font-size: 17px; }
  .implementation-voices-links { gap: 0 18px; margin-top: 8px; }
  .implementation-voices-links .textlink { font-size: 14px; }

  .implementation-section-heading { margin-bottom: 24px; }
  .implementation-section-heading h2 { margin: 0 0 14px; }
  .implementation-person { padding: 20px; }
  .implementation-person figcaption img { width: 56px; height: 56px; }
  .implementation-person blockquote { margin-top: 14px; }
  .implementation-person blockquote p { font-size: 19px; line-height: 1.4; }
}

@media (max-width: 720px) and (min-width: 370px) {
  .ob-hero-side .cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 380px) {
  .implementation-steps > li { padding: 18px; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .implementation-detail > summary::before { transition: none; }
}

/* ---------- Interview quotes (scripts/interview_quotes.py; base styles in assets/quotes.css) ----------
   Customer words beside the claim they prove. Staged quotes render nothing, and each slot collapses. */
.ob-chapter-art > .iq { margin-top: 20px; }
.ob-gap-sub > .iq { margin-top: 24px; }
.implementation-proof { display: grid; gap: 12px; align-content: start; margin-top: 32px; }
.implementation-proof:empty { display: none; }
.implementation-improvement .ob-chapter-copy > .implementation-proof { grid-row: 3; align-self: start; }
@media (max-width: 720px) {
  /* Phones: the quote follows the chapter's copy instead of interrupting the scene and its explanation. */
  .implementation-proof { order: 6; margin-top: 24px; }
  .ob-chapter-art:has(> .iq) { display: contents; }
  .ob-chapter-art:has(> .iq) > :not(.iq) { order: 3; margin-top: 24px; }
  .ob-chapter-art > .iq { order: 6; margin-top: 22px; }
  .ob-gap-sub > .iq { margin-top: 20px; }
  /* With the platform quote in place, the film line stays with the copy it belongs to instead of stacking under it. */
  .ob-gap-grid:has(.ob-gap-sub > .iq) .ob-quote { order: 4; }
}

/* ---------- October 9: who does what (Will) and start with a messy problem (Rob's deck) ---------- */
.implementation-roles { margin-top: 24px; }
.implementation-roles h3 { margin: 0 0 12px; font-size: var(--label); font-weight: 500; color: var(--fg-3); letter-spacing: 0; }
.implementation-roles ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.implementation-roles li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.implementation-roles li > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.implementation-roles strong { font-size: 16px; font-weight: 500; color: var(--fg); }
/* The messy-problem sorter, the checkpoints, and the question cards: assets/discovery.css (October 15). */
