/* Method System: a quiet text hero followed by a readable improvement story.
   Scroll drives the desktop story; small screens show every scene in order. */
.method-system {
  --ink: #20392d;
  --muted: #5d6d62;
  --paper: #f6f5ef;
  --line: #20392d29;
  --system-dark: #101c17;
  --system-panel: #15251d;
  --system-sage: #b7d2bb;
  --system-gold: #d8ba73;
}
.method-system .page-shell { width: calc(100% - 128px); max-width: 1320px; }
.method-system .system-hero { background: var(--paper); color: var(--ink); }
.system-hero .cinema-scene { height: auto; min-height: 0; max-height: none; }
.system-hero .cinema-scene::before { display: none; }
.system-field { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 87% 40%, #315c3838, transparent 55%); }
.system-field::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#a8c4b80b 1px, transparent 1px), linear-gradient(90deg, #a8c4b80b 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, transparent 28%, black); }
.system-hero .cinema-nav { height: 92px; border-color: var(--line); }
.system-hero .text-hero { display: block; width: calc(100% - 48px); max-width: 880px; padding: 66px 0 48px; margin: 0 auto; text-align: center; }
.system-hero .learning-title { font-size: clamp(42px, 5vw, 70px); line-height: 1.08; letter-spacing: -.06em; text-wrap: balance; }
.system-hero .learning-title em { display: inline; margin: 0; color: #437157; font-size: 1.16em; line-height: 1.08; }
.system-hero .hero-description { color: var(--muted); max-width: 570px; margin: 25px auto 0; font-size: 18px; line-height: 1.65; }
.system-hero .hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; margin-top: 27px; }
.system-hero .hero-actions .cinema-cta { margin: 0; background: #203e2d; border-color: #203e2d; color: #f6f5ef; }
.system-hero .hero-actions .cinema-cta:hover { background: #315a40; border-color: #315a40; }
.system-hero .hero-actions .text-link { gap: 14px; text-decoration: none; font-size: 13px; }
.system-hero .hero-actions .text-link:hover { text-decoration: underline; }
.system-hero .hero-training { margin-top: 19px; font-size: 12px; color: var(--muted); }
.method-system .cinema-cta { background: #eee9d8; color: #183022; border: 1px solid #eee9d8; transition: background-color .18s, border-color .18s; }
.method-system .cinema-cta:hover { background: #d8e4cf; border-color: #d8e4cf; }

/* A full-width, five-scene example. No fake activity counters or terminal chrome. */
.learning-example { padding: 24px 0; background: #edf1e7; }
.method-system .loop-example { width: 100%; max-width: none; margin: 0; }
.loop-canvas { --loop-surface: #edf1e7; position: relative; isolation: isolate; width: calc(100% - 64px); max-width: 1440px; margin-inline: auto; background: var(--loop-surface); }
.loop-example[data-scroll="true"] { height: calc(var(--loop-height) + var(--loop-travel)); }
.loop-example[data-scroll="true"] .loop-canvas { position: sticky; top: var(--loop-inset); }
.loop-orbit { position: absolute; inset: 0; width: 100%; height: 100%; color: #7b967c90; z-index: -1; overflow: visible; pointer-events: none; }
.loop-controls { position: absolute; inset: 0; min-width: 0; border: 0; padding: 0; margin: 0; pointer-events: none; z-index: 2; }
.loop-controls label { position: absolute; cursor: pointer; pointer-events: auto; transform: translate(-50%, -50%); }
.loop-controls label:nth-of-type(1) { left: 18%; top: 6.6667%; }
.loop-controls label:nth-of-type(2) { left: 50%; top: 6.6667%; }
.loop-controls label:nth-of-type(3) { left: 82%; top: 6.6667%; }
.loop-controls label:nth-of-type(4) { left: 82%; top: 93.3333%; }
.loop-controls label:nth-of-type(5) { left: 18%; top: 93.3333%; }
.loop-controls input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.loop-controls label > span { display: flex; align-items: center; gap: 9px; padding: 8px 12px; min-height: 44px; color: var(--muted); background: var(--loop-surface); font-size: 13px; }
.loop-controls label > span::before { content: ''; width: 6px; height: 6px; border: 1px solid #7b967c; border-radius: 50%; }
.loop-controls input:checked + span { color: #203e2d; }
.loop-controls input:checked + span::before { background: #437157; border-color: #437157; box-shadow: 0 0 0 3px #43715719; }
.loop-controls label:hover > span { color: #203e2d; }
.loop-controls input:focus-visible + span { outline: 2px solid #437157; outline-offset: 3px; }
.loop-stage { position: relative; overflow: hidden; border-radius: 16px; }
.loop-scene { display: grid; grid-template-columns: minmax(0, .9fr) 60px minmax(0, 1.1fr); gap: 0; align-items: center; padding: 85px 9% 90px; }
@supports selector(:has(input:checked)) {
  .loop-stage { display: grid; }
  .loop-scene { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(8px); }
  .loop-example:has(#stage-work:checked) #scene-work,
  .loop-example:has(#stage-observe:checked) #scene-observe,
  .loop-example:has(#stage-improve:checked) #scene-improve,
  .loop-example:has(#stage-check:checked) #scene-check,
  .loop-example:has(#stage-reuse:checked) #scene-reuse { visibility: visible; opacity: 1; transform: none; }
}
.loop-conversation { padding-right: 8px; }
.demo-person { display: flex; align-items: center; gap: 12px; font-size: 14px; margin-bottom: 17px; }
.person-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e0d8b9; color: #65532e; font-size: 13px; }
.demo-person > span:last-child > span { font-size: 12px; color: var(--muted); margin-left: 6px; }
.demo-request { padding: 23px 25px; border: 1px solid #20392d1c; border-radius: 2px 12px 12px; background: #fffef9; font-size: 19px; line-height: 1.55; letter-spacing: -.02em; box-shadow: 0 5px 12px #20392d04; }
.demo-nine { display: flex; align-items: flex-start; gap: 13px; margin-top: 27px; }
.demo-nine img { flex: none; margin-top: 3px; }
.demo-nine p { color: #4a6551; font-size: 14px; line-height: 1.7; }
.demo-sources { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.demo-sources span { flex-basis: 100%; color: var(--muted); font-size: 11px; }
.demo-nine-lead { margin: 0 0 25px; align-items: center; }
.demo-nine-lead h3 { font-size: 29px; line-height: 1.25; }
.demo-context { font-size: 16px; color: var(--muted); line-height: 1.8; max-width: 320px; margin-top: 16px; }
.loop-link { position: relative; height: 1px; margin-inline: 12px; background: #73917b66; }
.loop-link::after { content: ''; width: 5px; height: 5px; border-top: 1px solid #73917b; border-right: 1px solid #73917b; transform: rotate(45deg); position: absolute; right: 0; top: -2px; }
.loop-link span { position: absolute; width: 5px; height: 5px; border-radius: 50%; left: 0; top: -2px; background: #729d70; }
.demo-paper { min-width: 0; padding: 28px 30px; border: 1px solid #20392d26; border-radius: 8px; background: #fffefb; box-shadow: 0 14px 32px #20392d0b; }
.paper-heading { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.paper-heading img { flex: none; }
.paper-heading h3 { font-size: 22px; line-height: 1.3; }
.paper-heading > span { margin-left: auto; font-size: 12px; white-space: nowrap; }
.paper-item { padding-top: 20px; }
.paper-item h4 { margin: 0 0 7px; font-size: 14px; font-weight: 500; }
.paper-item p { font-size: 13px; line-height: 1.75; color: var(--muted); }
.demo-reports { list-style: none; padding: 0; margin: 6px 0 0; }
.demo-reports li { display: flex; align-items: flex-start; gap: 12px; padding-top: 20px; }
.demo-reports img { flex: none; margin-top: 3px; }
.demo-reports p { font-size: 14px; line-height: 1.6; }
.demo-reports small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.paper-sources { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 24px; font-size: 10px; line-height: 1.7; color: var(--muted); }
.paper-gap { padding: 14px 16px; margin: 18px -16px 0; background: #f4edda; border-left: 2px solid #b99b53; border-radius: 2px; }
.paper-gap .gap-note { margin-top: 9px; font-size: 12px; color: #80652c; }
.demo-method { background: #193a29; color: #f3f4e8; padding-inline: 0; }
.demo-method .paper-heading { margin: 0 26px; border-color: #b7d2bb35; }
.demo-method .paper-heading h3 { font-size: 20px; }
.demo-method .paper-heading > span { color: #c3d7ba; }
.demo-method-lines { list-style: none; padding: 16px 0 0; margin: 0; }
.demo-method-lines li { display: flex; justify-content: space-between; gap: 14px; padding: 13px 26px; font-size: 13px; line-height: 1.65; }
.demo-method-lines .demo-added { background: #b7d2bb18; border-left: 2px solid #bbd49f; padding-left: 24px; }
.demo-added small { color: #d1e5b9; font-size: 10px; padding-top: 2px; flex: none; }
.demo-checks { padding: 0; list-style: none; margin: 7px 0 0; }
.demo-checks li { display: flex; gap: 14px; padding-top: 24px; }
.demo-checks li > span { color: #427d4a; }
.demo-checks p { font-size: 13px; line-height: 1.6; }
.demo-checks p span { font-size: 11px; color: var(--muted); }
.paper-improved { border-top: 3px solid #769662; }
.paper-item dl { margin: 14px 0 0; padding: 14px 16px; background: #edf2e8; border-radius: 4px; font-size: 12px; line-height: 1.7; }
.paper-item dl > div { display: grid; grid-template-columns: 74px 1fr; gap: 10px; }
.paper-item dl > div + div { margin-top: 10px; }
.paper-item dt { color: var(--muted); }
.paper-item dd { margin: 0; }
.loop-explanation { grid-column: 1 / -1; margin-top: 32px; text-align: center; font-size: 14px; line-height: 1.7; color: #4c6553; }

@media (min-width: 901px) and (min-height: 701px) {
  .loop-stage { min-height: min(760px, calc(100svh - 48px)); }
  .demo-request { font-size: clamp(20px, 1.7vw, 25px); }
  .demo-nine-lead h3 { font-size: clamp(30px, 2.6vw, 38px); }
  .demo-context { max-width: 420px; font-size: 18px; }
  .demo-paper { padding: 34px; }
  .demo-method { padding-inline: 0; }
  .paper-heading h3 { font-size: 25px; }
  .paper-item p, .demo-reports p, .demo-nine p, .demo-method-lines li, .demo-checks p { font-size: 15px; }
  .demo-checks p span, .demo-reports small { font-size: 12px; }
}

/* The rest of the page carries the same materials and functional linework. */
.method-system .work-section { border-top: 1px solid var(--line); }
.handoff-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; row-gap: 22px; }
.handoff-example { display: grid; grid-template-rows: subgrid; grid-row: span 3; min-width: 0; border-top: 1px solid var(--line); padding-top: 24px; }
.handoff-example > h3 { font-size: 20px; }
.handoff-example > blockquote { font-size: 27px; line-height: 1.4; color: #4c6b58; }
.handoff-preview { display: flex; flex-direction: column; padding: 26px; background: #fffef9; border: 1px solid var(--line); border-radius: 8px; }
.handoff-preview > h4 { margin: 0 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font: 400 20px/1.3 var(--display); letter-spacing: -.03em; }
.handoff-preview > p, .handoff-findings { font-size: 13px; line-height: 1.8; }
.handoff-preview > p { color: var(--muted); }
.handoff-findings { margin: 0; }
.handoff-findings > div + div { margin-top: 18px; }
.handoff-findings dt { font-weight: 500; margin-bottom: 4px; }
.handoff-findings dd { margin: 0; color: var(--muted); }
.handoff-checks { list-style: none; padding: 0; margin: 20px 0 0; font-size: 12px; line-height: 1.7; }
.handoff-checks li { display: flex; align-items: baseline; gap: 10px; }
.handoff-checks li + li { margin-top: 10px; }
.handoff-checks span { color: #437157; }
.handoff-preview .handoff-result { margin-top: auto; padding-top: 24px; font-size: 11px; }
.handoff-more { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.work-section .handoff-more .example-note { margin: 0; }
.handoff-more .text-link { font-size: 13px; }
@media (max-width: 1000px) {
  .handoff-examples { column-gap: 20px; }
  .handoff-example > blockquote { font-size: 24px; }
  .handoff-preview { padding: 20px; }
}
@media (max-width: 760px) {
  .handoff-examples { grid-template-columns: 1fr; row-gap: 20px; }
  .handoff-example + .handoff-example { margin-top: 12px; }
}
.method-system .handoff-section { background: #eeeee5; }
.method-system .work-detail > p { color: #4c6b58; }
.method-system .story-track span { background: #276652; }
.method-system .brief-paper { background: #fffef9; border: 1px solid #20392d20; border-top: 2px solid #7c9b75; box-shadow: 0 20px 50px #20392d08; }
.method-system .source-list > div { border-color: var(--line); }
.method-system .team-section { background: var(--system-dark); }
.method-system .team-grid .reveal-inner > p { color: #b8c9bb; }
.method-system .conversation { padding: 30px; border: 1px solid #b7d2bb30; background: #15251d; border-radius: 5px; }
.method-system .conversation-line p { color: #d5dfd0; }
.method-system .nine-reply p { color: #f1f1e7; }
.method-system .speaker { color: #b9cbb6; font-size: 12px; }
.method-system .conversation .example-note { color: #a9bcad; }
.method-system .team-horizon { background: linear-gradient(90deg, transparent, #a8c4b880 35%, #d8ba7370 65%, transparent); }
.method-system .tool-line { position: relative; }
.method-system .tool-line::after { content: ''; position: absolute; height: 1px; width: 64px; bottom: -1px; left: calc(50% - 32px); background: #276652; }
.method-system .system-closing { background: var(--system-dark); min-height: 590px; }
.system-closing::after { display: none; }
.system-closing .system-field { background: radial-gradient(ellipse at 50% 100%, #365b3b55, transparent 70%); }
.system-closing .system-field::after { mask-image: linear-gradient(0deg, black, transparent 90%); }
.system-closing .closing-copy h2 { font-size: clamp(52px, 6.4vw, 94px); }
.system-closing .closing-copy h2 em { color: var(--system-sage); }
.system-closing .closing-copy > p { color: #b8c9bb; }
.method-system .page-footer { background: #0c1510; }
.method-system .page-footer p { color: #a7b8aa; }
.method-system .access-dialog::backdrop { background: #0c1510bb; }

@media (prefers-reduced-motion: no-preference) {
  .loop-scene { transition: opacity .4s ease, transform .4s ease, visibility .4s; }
  .loop-example:has(#stage-improve:checked) .demo-added { animation: loop-add .55s ease-out both; }
  .loop-example:has(#stage-improve:checked) .demo-added + .demo-added { animation-delay: .2s; }
  .loop-example:has(#stage-check:checked) .demo-checks li { animation: loop-add .45s ease-out both; }
  .loop-example:has(#stage-check:checked) .demo-checks li:nth-child(2) { animation-delay: .3s; }
  .loop-example:has(#stage-check:checked) .demo-checks li:nth-child(3) { animation-delay: .6s; }
  @keyframes loop-add { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 1000px) {
  .method-system .page-shell { width: calc(100% - 80px); }
  .loop-scene { padding: 76px 9% 80px; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1.15fr); }
  .demo-paper { padding: 24px; }
  .demo-method { padding-inline: 0; }
  .demo-request { padding: 20px; font-size: 17px; }
}
@media (max-width: 760px) {
  .method-system .page-shell { width: calc(100% - 48px); }
  .system-hero .text-hero { padding: 40px 0 34px; }
  .system-hero .learning-title { font-size: clamp(38px, 8vw, 57px); }
  .system-hero .hero-description { font-size: 16px; margin-top: 20px; }
  .system-hero .hero-actions { gap: 18px; }
  .system-hero .hero-actions .text-link { min-height: 44px; }
  .loop-controls label > span { font-size: 12px; padding-inline: 7px; gap: 6px; }
  .loop-scene { grid-template-columns: 1fr; gap: 0; padding: 78px 26px 84px; align-content: start; }
  .loop-conversation { padding: 0; }
  .demo-person { margin-bottom: 12px; font-size: 13px; }
  .demo-request { padding: 16px 18px; font-size: 16px; }
  .demo-nine { margin-top: 18px; }
  .demo-nine p { font-size: 13px; }
  .demo-nine-lead h3 { font-size: 25px; }
  .demo-context { font-size: 14px; max-width: none; }
  .demo-sources { display: none; }
  .loop-link { height: 28px; width: 1px; margin: 16px auto; }
  .loop-link::after { top: auto; bottom: 0; right: -2px; transform: rotate(135deg); }
  .loop-link span { display: none; }
  .demo-paper { padding: 22px 20px; }
  .paper-heading { gap: 10px; padding-bottom: 16px; }
  .paper-heading h3 { font-size: 20px; }
  .demo-method { padding-inline: 0; }
  .demo-method .paper-heading { margin-inline: 20px; }
  .demo-method .paper-heading h3 { font-size: 18px; }
  .demo-method-lines li { padding-inline: 20px; font-size: 12px; gap: 10px; }
  .demo-method-lines .demo-added { padding-left: 18px; }
  .demo-checks li { gap: 10px; }
  .loop-explanation { margin-top: 22px; font-size: 12px; }
  .method-system .conversation { padding: 23px 19px; }
  .method-system .conversation-line { grid-template-columns: 44px 1fr; gap: 14px; }
  .system-closing .closing-copy h2 { font-size: clamp(43px, 10vw, 65px); }
}

/* Read in normal document order on mobile, short windows, and reduced motion. */
@media (max-width: 900px), (max-height: 700px), (prefers-reduced-motion: reduce) {
  .learning-example { padding-block: 0; }
  .loop-canvas { width: calc(100% - 48px); max-width: 1100px; }
  .loop-orbit, .loop-controls { display: none; }
  .loop-stage { display: block; min-height: 0; overflow: visible; }
  .loop-example .loop-scene { grid-area: auto; visibility: visible; opacity: 1; transform: none; transition: none; padding: 48px 0; }
  .loop-scene + .loop-scene { border-top: 1px solid var(--line); }
  .loop-example .demo-added, .loop-example .demo-checks li { animation: none; }
}
