@media (max-width: 1080px) {
  .scene-stage {
    grid-template-columns: minmax(280px, .85fr) minmax(400px, 1.15fr);
    gap: 28px;
    padding-left: 42px;
    padding-right: 70px;
  }
  .story-step h1 { font-size: clamp(38px, 5vw, 62px); }
  .story-step h2 { font-size: clamp(32px, 4.4vw, 54px); }
  .human-domain { width: 150px; }
  .source-item { grid-template-columns: 44px 1fr; }
  .source-item a { grid-column: 2; }
}

/* Common non-full-screen desktop windows need a tighter vertical rhythm while
   preserving the approved copy and the standard 800px/900px compositions. */
@media (min-width: 1100px) and (max-height: 780px) {
  .scene-stage {
    min-height: 0;
    padding-top: 78px;
    padding-bottom: 34px;
  }
  .scene-copy { min-height: calc(100svh - 112px); }
  .story-steps { min-height: calc(100svh - 136px); }
  .step-index { margin-bottom: 10px; }
  .story-step h1 { font-size: clamp(38px, 4vw, 54px); line-height: 1.04; }
  .story-step h2 { max-width: 13.5ch; font-size: clamp(31px, 3.25vw, 46px); line-height: 1.045; }
  .story-step p { margin-top: 14px; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.52; }
  .story-emphasis,
  .act-transition { margin-top: 8px; font-size: 14px; line-height: 1.4; }
  .act-transition { font-size: 11px; line-height: 1.35; }
  .citation { min-height: 34px; margin-top: 9px; }
}

/* Mobile story mode keeps the desktop narrative model: one sticky stage,
   native vertical scrolling, reversible frame progression. */
@media (max-width: 820px) {
  .topbar {
    height: 60px;
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .topbar.is-scrolled { background: rgba(7, 19, 29, .9); }

  .brand-lockup { gap: 9px; }
  .brand-lockup .brand-wordmark-zh { height: 23px; }
  .brand-lockup .brand-wordmark-en { height: 13px; }

  .chapter-status {
    position: fixed;
    z-index: 39;
    top: 68px;
    left: 16px;
    min-width: 0;
    max-width: calc(100vw - 32px);
    gap: 7px;
    padding: 6px 10px;
    color: rgba(243, 240, 232, .62);
    background: rgba(7, 19, 29, .72);
    border: 1px solid rgba(243, 240, 232, .1);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    font-size: 9px;
    pointer-events: none;
  }

  .chapter-status i { width: 16px; }
  .chapter-status strong {
    max-width: 12em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chapter-rail,
  .scroll-cue { display: none; }

  .source-open {
    min-height: 34px;
    padding: 0 12px;
    font-size: 11px;
  }

  .story-scene {
    height: var(--mobile-scroll-span, 304dvh);
    min-height: 100dvh;
  }

  .scene-stage {
    position: sticky;
    top: 0;
    height: 100dvh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(196px, .82fr) minmax(284px, 1.18fr);
    align-items: stretch;
    gap: 8px;
    padding: 104px 18px 44px;
    overflow: hidden;
  }

  .scene-stage::before {
    background-size: 36px 36px;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  }

  .scene-copy {
    min-height: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    align-self: stretch;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: .2em;
  }

  .story-steps {
    height: 100%;
    min-height: 0;
  }

  .story-step {
    width: 100%;
    max-height: 100%;
  }

  .story-step h1,
  .story-step h2 {
    max-width: 15ch;
    font-size: clamp(30px, 9.2vw, 42px);
    line-height: 1.08;
  }

  .story-step p {
    max-width: 38em;
    margin-top: 13px;
    font-size: clamp(13px, 3.65vw, 15px);
    line-height: 1.58;
  }

  .step-index {
    margin-bottom: 10px;
    font-size: 9px;
  }

  .citation {
    min-height: 32px;
    margin-top: 10px;
    padding: 0 10px;
    font-size: 9px;
  }

  .scene-visual {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: none;
    margin: 0;
    aspect-ratio: auto;
    align-self: stretch;
  }

  .scene-counter {
    left: 18px;
    bottom: 16px;
    display: flex;
    font-size: 9px;
  }

  .scene-counter i { width: 22px; }

  /* 01 — AI arrival */
  .ambient-grid { inset: 2%; }
  .arrival-core { width: clamp(104px, 31vw, 126px); }
  .arrival-core span { font-size: clamp(38px, 12vw, 50px); }
  .arrival-core small { font-size: 8px; }
  .ring-one { width: 52%; }
  .ring-two { width: 82%; }

  .arrival-signal {
    min-width: 72px;
    padding: 8px 9px;
    border-radius: 9px;
  }

  .arrival-signal b { font-size: 12px; }
  .arrival-signal small { font-size: 6px; }
  .signal-a { top: 2%; left: 2%; }
  .signal-b { top: 3%; right: 2%; }
  .signal-c { top: 46%; right: -1%; }
  .signal-d { right: 6%; bottom: 18%; }
  .signal-e { left: 1%; bottom: 18%; }

  .arrival-question {
    bottom: 0;
    width: 96%;
    max-width: 96%;
    font-size: 9px;
    letter-spacing: .12em;
    white-space: normal;
  }

  /* 02 — one person's continuity */
  .fracture-visual::before { inset: 3%; }
  .memory-thread { width: 62%; }

  .fragment {
    width: 86px;
    padding: 8px 9px;
    border-radius: 8px;
  }

  .fragment span { font-size: 6px; }
  .fragment b { margin-top: 2px; font-size: 11px; }
  .fragment-a { top: 1%; left: 0; }
  .fragment-b { top: 1%; right: 0; }
  .fragment-c { top: 42%; right: -2%; }
  .fragment-d { right: 1%; bottom: 18%; }
  .fragment-e { left: 0; bottom: 18%; }

  .person-presence { width: clamp(100px, 30vw, 118px); }
  .presence-time { bottom: -18px; width: 148px; }

  .fracture-score {
    bottom: 1%;
    gap: 12px;
    padding: 7px 10px;
  }

  .fracture-score span { font-size: 8px; }
  .fracture-score b { font-size: 14px; }
  .gap-label { font-size: 8px; transform: translate(-50%, 58px); }
  .scene-gap[data-frame-current="4"] .gap-label { transform: translate(-50%, 52px); }

  .human-domain {
    width: 98px;
    min-height: 66px;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .human-domain span { font-size: 7px; }
  .human-domain b { margin-top: 3px; font-size: 15px; }
  .human-domain small { margin-top: 2px; font-size: 8px; }
  .domain-work,
  .domain-self { left: 0; }
  .domain-learn,
  .domain-life { right: 0; }
  .domain-work,
  .domain-learn { top: 1%; }
  .domain-self,
  .domain-life { bottom: 5%; }

  .continuity-caption {
    bottom: 0;
    width: 100%;
    font-size: 12px;
    text-align: center;
  }

  /* 03 — five directions */
  .entry-memory { width: 106px; }
  .entry-memory small { font-size: 6px; }
  .entry-memory b { font-size: 16px; }
  .entry-memory span { font-size: 8px; }

  .entry-node {
    min-width: 88px;
    padding: 8px 10px;
    border-radius: 9px;
  }

  .entry-node span { font-size: 7px; }
  .entry-node b { margin-top: 2px; font-size: 14px; }
  .entry-node small { font-size: 8px; }
  .entry-work { top: 1%; left: 0; }
  .entry-learn { top: 1%; right: 0; }
  .entry-life { top: 45%; right: 0; }
  .entry-self { right: 6%; bottom: 1%; }
  .entry-wealth { left: 0; bottom: 5%; }

  /* 04 — five-layer stack */
  .pain-ring { inset: 1%; }
  .pain-ring span { padding: 5px 7px; font-size: 7px; }
  .pain-ring span:nth-child(1) { top: 3%; left: 12%; }
  .pain-ring span:nth-child(2) { top: 9%; right: 5%; }
  .pain-ring span:nth-child(3) { top: 48%; right: -1%; }
  .pain-ring span:nth-child(4) { right: 9%; bottom: 4%; }
  .pain-ring span:nth-child(5) { left: 0; bottom: 20%; }

  .memory-stack {
    width: 100%;
    height: 66%;
  }

  .memory-stack article {
    width: 94%;
    height: 52px;
    grid-template-columns: 28px 1fr auto;
    gap: 7px;
    padding: 0 11px;
    border-radius: 9px;
  }

  .memory-stack span { font-size: 8px; }
  .memory-stack b { font-size: 14px; }
  .memory-stack small { font-size: 8px; }
  .layer-meter { bottom: 0; width: 82%; font-size: 8px; }

  .future-layers {
    inset: 2%;
    flex-wrap: wrap;
    align-content: flex-end;
    gap: 5px;
    padding: 0 16px 9%;
  }

  .future-layers span { padding: 5px 7px; font-size: 7px; }
  .future-layers b { top: 40%; font-size: clamp(24px, 7.6vw, 32px); }

  /* 04 — subscription model */
  .scenario-model {
    inset: 0;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px;
    border-radius: 16px;
    overflow: hidden;
  }

  .model-head {
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
  }

  .model-head small { font-size: 6px; }
  .model-head b { font-size: clamp(15px, 4.4vw, 18px); }
  .model-head > span { max-width: 13em; padding: 5px 7px; font-size: 6px; }

  .finance-path { justify-content: flex-start; gap: 3px; overflow: hidden; font-size: 5px; }
  .finance-path i { width: 4px; min-width: 4px; }

  .scenario-presets { gap: 5px; }
  .scenario-presets button {
    min-height: 32px;
    padding: 0 11px;
    font-size: 9px;
  }

  .scenario-detail { grid-template-columns: 1fr 1fr; gap: 4px; }
  .scenario-detail section { min-height: 70px; gap: 3px; padding: 6px 7px; border-radius: 8px; }
  .scenario-detail small { font-size: 6px; }
  .scenario-detail p { font-size: 6px; line-height: 1.35; }
  .model-boundary { gap: 2px; font-size: 5px; line-height: 1.3; }
  .model-boundary strong { font-size: 5px; }

  .value-close {
    width: 100%;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
  }

  .value-close-brand {
    min-width: 108px;
    gap: 8px;
    padding-right: 12px;
  }

  .brand-lockup-closing .brand-wordmark-zh { height: 27px; }
  .brand-lockup-closing .brand-wordmark-en { height: 15px; }
  .value-close-brand small { font-size: 6px; }
  .value-close-message b { font-size: clamp(19px, 5.6vw, 24px); }
  .motion-toggle {
    right: 12px;
    bottom: 10px;
    min-width: 70px;
    min-height: 34px;
    gap: 7px;
    padding: 0 11px;
  }

  .motion-toggle span,
  .motion-toggle b { font-size: 9px; }

  .source-dialog { max-height: calc(100dvh - 24px); }
  .source-dialog-head { padding: 18px 18px 14px; }
  .source-list { padding: 14px 18px; }
  .source-item { grid-template-columns: 30px 1fr; gap: 10px; padding: 13px; }
  .source-note { padding: 0 18px 20px; }
  .site-footer { min-height: 72px; padding: 22px 18px; }
  .site-footer a { font-size: 10px; }
}

@media (max-width: 520px) {
  .story-step h1,
  .story-step h2 { max-width: 14ch; }
  .value-close-brand { min-width: 100px; }
  .scene-memory .act4-value-bridge > p { max-width: 31em; font-size: 10px; line-height: 1.45; }
  .scene-value .scenario-model { gap: 8px; padding: 12px; }
  .scene-value .model-head { gap: 8px; padding-bottom: 8px; }
  .scene-value .model-head small { font-size: 8px; }
  .scene-value .model-head b { font-size: clamp(16px, 4.8vw, 19px); }
  .scene-value .model-head > span { max-width: 14em; font-size: 8px; line-height: 1.35; }
  .scene-value .finance-path { display: none; }
  .scene-value .scenario-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .scene-value .scenario-presets button { min-width: 0; min-height: 44px; padding: 0 5px; font-size: 10px; line-height: 1.25; }
  .scene-value .scenario-summary { gap: 5px; }
  .scene-value .scenario-keyfacts,
  .scene-value .scenario-model[data-scenario-state="cautious"] .scenario-keyfacts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .scene-value .scenario-keyfacts > span { min-height: 52px; gap: 2px; padding: 5px 6px; border-radius: 7px; }
  .scene-value .scenario-keyfacts small { font-size: 7px; }
  .scene-value .scenario-keyfacts b { font-size: 10.5px; }
  .scene-value .scenario-keyfacts em { font-size: 6px; }
  .scene-value .scenario-verdict { padding: 7px 8px; font-size: 9px; line-height: 1.4; }
  .scene-value .scenario-growth-evidence { gap: 6px; }
  .scene-value .scenario-growth-evidence > header small { font-size: 7px; }
  .scene-value .scenario-growth-evidence > header b { font-size: 13px; }
  .scene-value .scenario-month-head { display: none; }
  .scene-value .scenario-month-row:not(.scenario-month-head) { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr); }
  .scene-value .scenario-month-row:not(.scenario-month-head) > b { grid-row: 1 / 3; display: grid; place-items: center; }
  .scene-value .scenario-month-row > * { padding: 5px 6px; font-size: 8px; }
  .scene-value .scenario-month-row > span { display: grid; gap: 2px; }
  .scene-value .scenario-month-row > span::before { content: attr(data-label); color: rgba(243, 240, 232, .42); font-size: 6px; }
  .scene-value .scenario-cost-breakdown > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-value .scenario-source-ledger ul { grid-template-columns: 1fr; }
  .scenario-detail-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .scenario-detail-tabs button {
    min-height: 44px;
    padding: 0 4px;
    color: var(--paper-soft);
    background: rgba(243, 240, 232, .025);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 10px;
    cursor: pointer;
  }
  .scenario-detail-tabs button.is-active,
  .scenario-detail-tabs button:focus-visible { color: var(--paper); border-color: rgba(120, 217, 209, .72); background: rgba(120, 217, 209, .1); }
  .scenario-detail-tabs button:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
  .scene-value .scenario-detail { grid-template-columns: 1fr; }
  .scene-value .scenario-detail section { display: none; min-height: 96px; gap: 6px; padding: 11px 12px; }
  .scene-value .scenario-detail section.is-active { display: grid; }
  .scene-value .scenario-detail small { font-size: 10px; }
  .scene-value .scenario-detail p { font-size: 11px; line-height: 1.5; }
  .scene-value .model-boundary { font-size: 8.5px; line-height: 1.4; }
  .scene-value .model-boundary strong { font-size: 7.5px; }
}

@media (max-width: 820px) and (max-height: 620px) and (orientation: portrait) {
  .scene-memory .scene-stage,
  .scene-value .scene-stage {
    grid-template-rows: minmax(150px, .68fr) minmax(238px, 1.32fr);
    gap: 4px;
    padding: 82px 14px 28px;
  }
  .scene-memory:is([data-frame-current="8"], [data-frame-current="9"], [data-frame-current="10"], [data-frame-current="11"]) .scene-stage {
    grid-template-rows: minmax(164px, .72fr) minmax(224px, 1.28fr);
  }
  .scene-memory .story-step h2,
  .scene-value .story-step h2 { max-width: 17ch; font-size: 23px; line-height: 1.04; }
  .scene-memory .story-step p,
  .scene-value .story-step p { margin-top: 7px; font-size: 10px; line-height: 1.38; }
  .scene-memory .act-transition,
  .scene-value .act-transition { margin-top: 6px; font-size: 8px; line-height: 1.28; }
  .scene-memory .memory-visual,
  .scene-value .value-visual { min-height: 0; }
  .scene-memory .memory-stack { gap: 3px; }
  .scene-memory .memory-stack button { height: 39px; min-height: 39px; }
  .scene-memory .layer-meter { bottom: -2px; }
  .scene-memory:is([data-frame-current="9"], [data-frame-current="10"], [data-frame-current="11"]) .act4-value-bridge {
    inset: -40px 0 auto;
    height: 188px;
    grid-template-rows: auto auto auto;
    align-content: start;
    gap: 6px;
  }
  .act4-value-core { padding: 7px 10px; }
  .act4-value-core b { font-size: 16px; }
  .act4-value-track > span { min-height: 50px; }
  .act4-value-track b { font-size: 11px; }
  .scene-memory .act4-value-bridge > p { font-size: 9px; line-height: 1.35; }
  .scene-value .scenario-model { gap: 5px; padding: 8px; }
  .scene-value .model-head { padding-bottom: 4px; }
  .scene-value .model-head b { font-size: 13px; }
  .scene-value .model-head small,
  .scene-value .model-head > span { font-size: 8px; }
  .scene-value .finance-path { display: none; }
  .scene-value .scenario-presets button,
  .scene-value .scenario-detail-tabs button { min-height: 44px; }
  .scene-value .scenario-keyfacts > span { min-height: 46px; padding: 4px 5px; }
  .scene-value .scenario-keyfacts b { font-size: 9.5px; }
  .scene-value .scenario-verdict { padding: 5px 7px; font-size: 8.5px; }
  .scene-value .scenario-detail section { min-height: 72px; padding: 7px 8px; }
  .scene-value .scenario-detail small { font-size: 9px; }
  .scene-value .scenario-detail p { font-size: 10.5px; line-height: 1.42; }
  .scene-value .model-boundary strong { font-size: 7px; }
  .scene-value .model-boundary span { display: none; }
}

/* Short screens and phone landscape keep the same frame model, but use a
   side-by-side stage so the active message and visual remain simultaneously visible. */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 600px) {
  .chapter-status { display: none; }
  .chapter-rail,
  .scroll-cue { display: none; }
  .story-scene { height: var(--mobile-scroll-span, 304dvh); }
  .scene-stage {
    position: sticky;
    top: 0;
    height: 100dvh;
    min-height: 100svh;
    grid-template-columns: minmax(250px, .9fr) minmax(330px, 1.1fr);
    grid-template-rows: 1fr;
    gap: 16px;
    padding: 72px 52px 30px 22px;
  }
  .scene-copy,
  .scene-visual { height: 100%; min-height: 0; }
  .story-steps { height: 100%; min-height: 0; }
  .story-step h1,
  .story-step h2 { font-size: clamp(26px, 4.8vw, 36px); }
  .story-step p { margin-top: 9px; font-size: 12px; line-height: 1.45; }
  .step-index { margin-bottom: 7px; }
  .citation { min-height: 28px; margin-top: 7px; }
  .scene-counter { left: 22px; bottom: 10px; }
  .motion-toggle { right: 10px; bottom: 8px; }
}

/* Accessibility fallback: users who explicitly request reduced motion receive
   a natural document flow. Manual page motion-off still preserves scroll frames. */
@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
  .story-scene { height: auto; min-height: 0; }
  .scene-stage {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    display: block;
    padding: 106px 20px 68px;
    overflow: hidden;
  }
  .scene-copy { display: block; }
  .story-steps { height: auto; margin-top: 34px; }
  .story-step,
  .story-step.is-past,
  .story-step.is-active {
    position: relative;
    top: auto;
    width: 100%;
    max-height: none;
    margin-bottom: 56px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    filter: none;
  }
  .story-step:not(:first-child) {
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }
  .scene-visual {
    height: auto;
    min-height: 430px;
    margin-top: 8px;
    aspect-ratio: .95;
  }
  .scene-ai .arrival-core,
  .scene-ai .arrival-ring { transform: translate(-50%, -50%) scale(1); }
  .scene-ai .arrival-signal,
  .scene-gap .human-domain,
  .scene-entry .entry-node,
  .scene-memory .memory-stack article { opacity: 1; transform: scale(1); }
  .scene-ai .arrival-question,
  .scene-gap .continuity-caption { opacity: 1; transform: translate(-50%, 0); }
  .scene-gap .human-axis { opacity: 1; }
  .scene-gap .fragment { opacity: .055; filter: blur(1.4px); transform: scale(.82); }
  .scene-gap .person-presence { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .scene-memory .future-layers { display: flex; opacity: 1; transform: scale(1); }
  .scene-memory .act4-value-bridge { position: relative; inset: auto; min-height: 420px; opacity: 1; transform: none; }
  .scene-value .scene-visual { min-height: 930px; aspect-ratio: auto; }
  .scenario-model {
    top: 360px;
    bottom: auto;
    height: 430px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .scene-value[data-frame-current="1"] .scenario-model {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .value-close {
    top: auto;
    bottom: 0;
    opacity: 1;
    transform: translate(-50%, 0);
  }
  .scene-counter,
  .motion-toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 820px) {
  .scenario-model[data-revenue-model] {
    grid-template-columns: 1fr;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: auto;
    touch-action: pan-y;
  }
  .scenario-model[data-revenue-model] > * { grid-column: 1; }
  .revenue-controls { gap: 8px; }
  .revenue-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .revenue-results article.is-total { grid-column: auto; }
  .revenue-formula { display: grid; gap: 3px; }
}

@media (max-width: 520px) {
  .scene-value .scenario-model[data-revenue-model] { gap: 9px; padding: 12px 12px 60px; }
  .scene-value .scenario-model[data-revenue-model] .model-head { align-items: flex-start; gap: 8px; padding-bottom: 9px; }
  .scene-value .scenario-model[data-revenue-model] .model-head small { font-size: 7px; line-height: 1.35; }
  .scene-value .scenario-model[data-revenue-model] .model-head b { font-size: clamp(17px, 5vw, 20px); }
  .scene-value .scenario-model[data-revenue-model] .model-head > span { min-width: 52px; padding: 6px 8px; font-size: 8px; }
  .scene-value .scenario-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .scene-value .scenario-presets button { min-width: 0; min-height: 44px; padding: 0 5px; font-size: 11px; }
  .scene-value .revenue-controls { gap: 7px; }
  .scene-value .revenue-controls label { min-height: 76px; gap: 4px; padding: 7px 9px; }
  .scene-value .revenue-controls label b { font-size: 9px; }
  .scene-value .revenue-controls output { font-size: 11px; }
  .scene-value .revenue-controls small { font-size: 6.5px; }
  .scene-value .revenue-controls input[type="range"] { min-height: 28px; }
  .scene-value .revenue-results { gap: 5px; }
  .scene-value .revenue-results article { min-height: 82px; gap: 4px; padding: 8px 7px; border-radius: 8px; }
  .scene-value .revenue-results small { font-size: 7px; }
  .scene-value .revenue-results b,
  .scene-value .revenue-results article.is-total b { font-size: clamp(13px, 4vw, 16px); }
  .scene-value .revenue-results span { font-size: 6.5px; overflow-wrap: anywhere; }
  .scene-value .revenue-formula,
  .scene-value .scenario-source-note p,
  .scene-value .model-boundary { font-size: 8px; }
  .scene-value .scenario-source-note summary { min-height: 44px; font-size: 8px; }
  .scene-value .model-boundary strong { font-size: 7.5px; }
}

@media (max-width: 820px) and (max-height: 620px) {
  .scene-value .scenario-model[data-revenue-model] { gap: 6px; padding: 9px 9px 58px; }
  .scene-value .scenario-model[data-revenue-model] .model-head { padding-bottom: 5px; }
  .scene-value .revenue-controls { gap: 5px; }
  .scene-value .revenue-controls label { min-height: 66px; padding: 5px 8px; }
  .scene-value .revenue-results article { min-height: 70px; padding: 6px; }
}

/* 039: phone portrait reads the complete 04.1 model through page scroll. The model itself
   is a full-height document, translated inside the existing scene window. */
@media (max-width: 520px) and (orientation: portrait) {
  body.is-phone-value-flow .scene-value { height: 680dvh; }
  body.is-phone-value-flow .scene-value[data-frame-current="0"] .value-visual {
    overflow: hidden;
    margin-bottom: max(54px, calc(44px + env(safe-area-inset-bottom)));
  }
  body.is-phone-value-flow .scene-value[data-frame-current="0"] .scenario-model[data-revenue-model] {
    inset: 0 0 auto;
    height: max-content;
    min-height: max-content;
    max-height: none;
    padding: 12px 12px calc(18px + env(safe-area-inset-bottom));
    overflow: visible;
    overscroll-behavior: auto;
    scrollbar-gutter: auto;
    touch-action: pan-y;
    transform: translateY(var(--act5-model-offset, 0px));
    transition: opacity 240ms ease;
    will-change: transform;
  }
  body.is-phone-value-flow .scene-value[data-frame-current="0"] .revenue-controls input[type="range"] { touch-action: none; }
}

@media (max-width: 520px) and (min-height: 621px) and (orientation: portrait) {
  body.is-phone-value-flow .scene-value[data-frame-current="0"] .value-visual { margin-top: 48px; }
}

@media (max-width: 520px) and (prefers-reduced-motion: reduce) {
  .scene-value .value-visual {
    min-height: 0;
    overflow: visible;
    padding-bottom: 180px;
  }
  .scene-value .scenario-model[data-revenue-model] {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    margin-top: 360px;
    padding: 12px 12px calc(18px + env(safe-area-inset-bottom));
    overflow: visible;
    transform: none;
  }
}
/* 057 — same-source four-year summary; scoped to Act 04. */
/* 065: expanded foldables share desktop composition with Act 01. */
.scene-value .commercial-summary {
  position: relative; width: 100%; box-sizing: border-box; padding: 22px;
  border: 1px solid rgba(120,217,209,.24); border-radius: 18px;
  background: rgba(7,19,29,.92); color: var(--paper); display: grid; gap: 12px;
  font-family: var(--font-ui); text-align: left;
}
.summary-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.summary-heading > span { font-size: 20px; }
.summary-heading small, .summary-gate-note { color: var(--paper-soft); font-size: 12px; }
.summary-scenarios { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.summary-scenarios button, .summary-open {
  min-height: 44px; border: 1px solid rgba(120,217,209,.3); border-radius: 8px;
  background: transparent; color: var(--paper); font: inherit; cursor: pointer;
}
.summary-scenarios button[aria-pressed="true"] { color: var(--cyan); background: rgba(120,217,209,.12); border-color: var(--cyan); }
.summary-scenarios button:hover, .summary-open:hover { background: rgba(120,217,209,.16); }
.summary-scenarios button:focus-visible, .summary-open:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.summary-status { font-size: 11px; line-height: 1.6; margin: 0 0 14px; color: var(--paper-soft); }
.summary-status b { color: var(--cyan); font-weight: 500; }
.summary-years { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.summary-years li { display: flex; flex-direction: column; min-width: 0; }
.summary-years small { font-size: 13px; color: var(--gold); }
.summary-bar { height: 6px; display: flex; background: rgba(120,217,209,.12); margin: 14px 0; }
.summary-bar i { height: 100%; background: var(--cyan); }
.summary-years b { font-size: clamp(20px,1.8vw,28px); font-weight: 500; color: var(--cyan); white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary-years strong { margin-top: 10px; font-size: clamp(15px,1.3vw,21px); font-weight: 500; white-space: nowrap; }
.summary-years span { font-size: 11px; color: var(--paper-soft); line-height: 1.8; }
.commercial-summary em { font-size: 11px; font-style: normal; font-weight: 400; padding-left: 4px; color: var(--paper-soft); }
.summary-totals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 18px; border-top: 1px solid rgba(243,240,232,.18); }
.summary-totals > div { padding: 12px 0 0; min-width: 0; display: grid; gap: 4px; }
.summary-totals small { color: var(--paper-soft); font-size: 12px; }
.summary-totals b { font-size: clamp(21px,2vw,30px); font-weight: 500; font-variant-numeric: tabular-nums; }
.summary-boundary { margin: 0; font-size: 12px; color: var(--paper-soft); line-height: 1.6; text-wrap: pretty; }
.summary-open { color: var(--cyan); display: flex; justify-content: space-between; align-items: center; padding: 0 14px; }
.summary-gate-note { text-align: center; }
.scene-value .value-visual { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.scene-value .value-close { position: static; transform: none; width: auto; padding: 12px; display: none; }
.scene-value[data-frame-current="1"] .value-close { display: grid; transform: none; }
.scene-value[data-frame-current="1"] .commercial-summary { opacity: .8; }
.scene-value .value-close-brand { display: grid; }
.scene-value .value-close-message b { font-size: 19px; }
/* 062: centered composition; opacity-only glyph reveal preserves layout. */
.scene-value .value-close { text-align: center; justify-items: center; }
.scene-value .value-close-brand { padding-right: 0; border-right: 0; justify-items: center; }
.scene-value .brand-lockup-closing { justify-items: center; }
.scene-value [data-closing-typewriter] > span { font: inherit; color: inherit; }
@media (min-width: 821px) {
  body:not(.is-mobile-story) .scene-value .scene-stage { grid-template-columns: .85fr 1.15fr; gap: 5vw; }
  /* 061: replace both columns only in the desktop ending frame. */
  body:not(.is-mobile-story) .scene-value[data-frame-current="1"] .scene-copy,
  body:not(.is-mobile-story) .scene-value[data-frame-current="1"] .commercial-summary,
  body:not(.is-mobile-story) .scene-value[data-frame-current="1"] .scene-counter { visibility: hidden; pointer-events: none; }
  body:not(.is-mobile-story) .scene-value[data-frame-current="1"] .value-visual { position: static; }
  body:not(.is-mobile-story) .scene-value[data-frame-current="1"] .value-close {
    position: absolute; top: 50%; left: 50%; width: min(88%, 660px);
    transform: translate(-50%, -50%);
  }
}
@media (max-width: 1100px) and (min-width: 821px) {
  body:not(.is-mobile-story) .scene-value .scene-stage { grid-template-columns: 1fr 1.35fr; gap: 3vw; }
  .scene-value .commercial-summary { padding: 16px; }
  .summary-years { gap: 7px; }
}
@media (max-width: 820px), (max-width: 900px) and (orientation: landscape) and (max-height: 600px) {
  body .scene-value, body.is-phone-value-flow .scene-value { height: auto; min-height: 100dvh; }
  body .scene-value .scene-stage { position: relative; height: auto; min-height: 0; display: flex; flex-direction: column; padding: 100px 22px 110px; overflow: visible; }
  body .scene-value .scene-copy, body .scene-value .story-steps { position: static; height: auto; min-height: 0; width: 100%; }
  body .scene-value .story-step { position: static; opacity: 1; transform: none; filter: none; visibility: visible; margin-bottom: 24px; }
  body .scene-value .story-step h2 { font-size: 28px; }
  body .scene-value .story-step p { font-size: 14px; line-height: 1.7; }
  body .scene-value .value-visual, body.is-phone-value-flow .scene-value[data-frame-current="0"] .value-visual {
    width: 100%; min-height: 0; height: auto; aspect-ratio: auto; margin: 0; padding: 0; overflow: visible;
  }
  body .scene-value .commercial-summary { padding: 18px; opacity: 1; transform: none; }
  .scene-value .summary-content { min-width: 0; }
  .summary-years {
    display: flex; gap: 0; width: 100%; min-width: 0;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: auto;
    overscroll-behavior-x: contain;
  }
  .summary-years > li { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
  .summary-years b { font-size: 26px; }
  .summary-years strong { font-size: 19px; }
  .summary-totals b { font-size: 23px; }
  .summary-totals small { font-size: 11px; }
  .summary-heading > span { font-size: 18px; }
  body .scene-value .value-close { display: grid; opacity: 1; transform: none; }
  body .scene-value .scene-counter { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-value .commercial-summary *, .scene-value .commercial-summary { transition: none; animation: none; }
}
