/* Mobile layout refinements shared by the published pages. */
.header-label-mobile { display: none; }
@media (max-width: 700px) {
  .chapter-mode .interest-row .interest-pill {
    min-height: 68px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}
@media (max-width: 900px) {
  html, body { max-width: 100%; overflow-x: clip; }
  body:is(.story-page, .program-page) { overflow-x: clip; }

  .everyday-section { padding: 70px 7% 78px; }
  .everyday-intro { display: block; margin-bottom: 42px; }
  .everyday-intro h2 { font-size: clamp(48px, 9vw, 72px); letter-spacing: -1.5px; }
  .everyday-intro > p { margin-top: 22px; font-size: 16px; }
  .everyday-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .everyday-note { min-height: 0; padding: 24px; }
  .everyday-human { grid-column: 1 / -1; }
  .everyday-section + .perspective-section { padding-top: 100px; }
}

@media (max-width: 900px) {
  :root { --site-header-height: 56px; }
  .site-header, body.subpage .site-header, .story-page .site-header, .program-page .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0;
    height: var(--site-header-height);
    padding: 0 4%;
  }
  .site-header .brand, body.subpage .site-header .brand, .story-page .site-header .brand,
  .site-header .brand img, body.subpage .site-header .brand img, .story-page .site-header .brand img { width: 54px; }
  .header-label-desktop { display: none; }
  .header-label-mobile { display: inline; }
  .site-header .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .site-header .header-app, .story-page .site-header .header-app,
  .program-page .site-header .header-app {
    grid-column: 2; grid-row: 1; justify-self: end; margin: 0;
    min-height: 34px; padding: 8px 12px; font-size: 10px; letter-spacing: -.1px;
    background: var(--yellow); color: var(--ink);
  }
  .site-header .menu-toggle, .story-page .site-header .menu-toggle {
    display: none;
    grid-column: 1; grid-row: 1; justify-self: start;
    width: 42px; height: 42px; padding: 0; margin: 0;
    position: relative; font-size: 0; color: transparent; cursor: pointer;
    border: 0; background: none;
  }
  .menu-toggle::before, .menu-toggle::after {
    content: ''; position: absolute; left: 11px; width: 20px; height: 3px;
    background: #fff; border-radius: 3px;
    transition: top .3s ease, transform .3s ease;
  }
  .menu-toggle::before { top: 15px; }
  .menu-toggle::after { top: 25px; }
  .menu-toggle[aria-expanded=true]::before { top: 20px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded=true]::after { top: 20px; transform: rotate(-45deg); }
  .site-header nav, .story-page .site-header nav, .program-page .site-header nav {
    display: none;
    position: fixed;
    inset: var(--site-header-height) 0 0;
    width: 100%;
    height: calc(100dvh - var(--site-header-height));
    padding: 9vh 7% 32px;
    gap: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: #0d0d0f;
    color: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    animation: none;
    transition: opacity .35s ease, transform .45s ease, visibility .35s;
    overflow-y: auto;
  }
  .site-header nav.open, .story-page .site-header nav.open, .program-page .site-header nav.open {
    display: none;
  }
  .site-header nav a {
    display: block; width: 100%; min-height: 0; padding: 20px 0 23px;
    color: #fff; border-radius: 0; border-bottom: 1px solid #ffffff42;
    font: 900 clamp(40px, 10vw, 64px)/.96 var(--display);
    letter-spacing: -1px;
  }
  .site-header nav a:hover, .site-header nav a:focus-visible { color: var(--yellow); background: transparent; }
  .program-page .site-header nav a[aria-current=page] { color: var(--yellow); }
  .site-header nav a:after { display: none; }
}

@media (max-width: 700px) {
  .about-motion .about-beliefs { min-height: 330svh; padding: 0; overflow: visible; }
  .about-motion .about-belief-stage {
    position: sticky; top: var(--site-header-height); display: grid; grid-template-rows: minmax(185px, auto) 1fr;
    height: calc(100svh - var(--site-header-height)); min-height: 0; gap: 12px;
    padding: 34px 7% 26px; overflow: hidden;
  }
  .about-motion .about-belief-copy { display: grid; align-items: end; min-height: 0; }
  .about-motion .about-belief-copy article,
  .about-motion .about-belief-copy article[data-active=true] {
    grid-area: 1 / 1; display: block; min-height: 0; margin: 0; padding: 0;
  }
  .about-motion .about-belief-copy article[data-active=false] {
    opacity: 0; filter: blur(5px); translate: 0 12px; pointer-events: none;
  }
  .about-motion .about-belief-copy article[data-active=true] {
    opacity: 1; filter: none; translate: none; pointer-events: auto;
  }
  .about-motion .about-belief-copy h2 { font-size: clamp(34px, 9.5vw, 46px); margin-bottom: 16px; }
  .about-motion .about-belief-copy p { font-size: 16px; margin: 0; }
  .about-motion .about-conversation { display: grid; height: 100%; min-height: 0; align-items: center; }
  .about-motion .about-chat-stage { height: min(370px, 100%); max-width: 500px; }
  .about-motion .about-conversation[data-beat='0'] :is(.about-chat-second,.about-chat-third,.about-chat-reactions),
  .about-motion .about-conversation[data-beat='1'] :is(.about-chat-third,.about-chat-reactions) {
    opacity: 0 !important; filter: blur(4px) !important; translate: 0 16px !important; pointer-events: none;
  }
  .about-motion .about-conversation[data-beat='1'] .about-chat-second,
  .about-motion .about-conversation[data-beat='2'] :is(.about-chat-second,.about-chat-third,.about-chat-reactions) {
    opacity: 1 !important; filter: none !important; translate: none !important; pointer-events: auto;
  }
  .about-motion .about-progress { display: flex; bottom: -8px; }
  .about-motion .about-progress i { width: 12px; }
  .about-motion .about-progress i:nth-child(3) { display: block; }
  .about-motion .about-conversation[data-beat='2'] .about-progress i:last-child { width: 40px; background: var(--ink); }

  body:is(.subpage,.narrative-page) .site-footer { height: 285px; padding-top: 26px; align-content: flex-start; }
  body:is(.subpage,.narrative-page) .site-footer nav { gap: 12px 22px; }
  body:is(.subpage,.narrative-page) .site-footer > span { margin-top: 7px; }
  body:is(.subpage,.narrative-page) .site-footer .footer-wordmark img { max-height: 145px; }
  .footer-reaction { width: 62px; height: 62px; }
}

@media (min-width: 701px) {
  .about-progress i:nth-child(3) { display: none; }
}

@media (max-width: 700px) and (max-height: 700px) {
  .about-motion .about-belief-stage { grid-template-rows: minmax(145px, auto) 1fr; padding-block: 19px 17px; gap: 5px; }
  .about-motion .about-belief-copy h2 { font-size: clamp(31px, 8.4vw, 39px); margin-bottom: 8px; }
  .about-motion .about-chat-stage { height: min(275px, 100%); }
  .about-motion .about-chat-first { top: 0; }
  .about-motion .about-chat-second { top: 90px; }
  .about-motion .about-chat-third { top: 180px; }
  .about-motion .about-chat p { font-size: 16px; padding: 13px; }
  .about-motion .about-chat img { width: 38px; height: 38px; }
  .about-motion .about-chat-reactions img:nth-child(3) { bottom: 4px; width: 38px; }
  .about-motion .about-progress { bottom: 2px; }
}

@media (max-width: 600px) {
  .narrative-page .hero-coffee { width: clamp(112px, 36vw, 150px); left: 5%; bottom: 1%; }
  .story-panel .format-card-wrap { width: 100%; max-width: 393px; min-width: 0; }
  .story-panel .riffi-card, .live-post-frame .riffi-card { width: 100%; min-width: 0; }
  .riffi-card .card-options button { width: 100%; max-width: 361px; }
  .riffi-card .card-take-photo { width: 100%; max-width: 361px; height: auto; aspect-ratio: 361 / 301; object-fit: cover; }
  .live-post-frame { width: min(393px, calc(100vw - 36px)); }
  .story-panel .format-card-wrap > .format-float { right: -5px; }
  .everyday-section { padding: 68px 7% 74px; }
  .everyday-intro h2 { font-size: clamp(45px, 12vw, 58px); }
  .everyday-intro > p { max-width: 320px; font-size: 15px; line-height: 1.5; }
  .everyday-notes { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 460px; margin: auto; }
  .everyday-human { grid-column: auto; }
  .everyday-note { min-height: 0; padding: 24px 25px 28px; }
  .everyday-note:nth-child(1) { border-radius: 13px 42px 18px 42px; rotate: -1.5deg; }
  .everyday-note:nth-child(2) { border-radius: 40px 14px 42px 16px; rotate: 1.5deg; }
  .everyday-note:nth-child(3) { border-radius: 16px 45px 14px 45px; rotate: -1deg; }
  .everyday-note h3 { font-size: 29px; margin: 16px 0 10px; }
  .everyday-note > p { font-size: 14px; line-height: 1.5; }
  .local-photo-pair, .respect-voices, .human-aside { height: 128px; }
  .human-aside > span { font-size: 25px; }
  .everyday-section + .perspective-section { padding-top: 70px; }
}

@media (max-width: 360px) {
  .site-header, body.subpage .site-header { padding-inline: 3.5%; }
  .site-header .header-app, .story-page .site-header .header-app,
  .program-page .site-header .header-app { padding: 8px 10px; min-height: 32px; font-size: 9px; }
  .site-header .brand, body.subpage .site-header .brand,
  .site-header .brand img, body.subpage .site-header .brand img { width: 60px; }
  .everyday-note { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .everyday-note { rotate: 0deg !important; }
}

/* The homepage keeps its scroll-driven chapter sequence on touch screens. */
@media (max-width: 900px) {
  html.chapter-mode, html.chapter-mode body { width: 100%; height: 100%; overflow: hidden; }
  .chapter-mode .chapter-stage-viewport { inset: var(--site-header-height) 0 0; border-radius: 22px 22px 0 0; }
  .chapter-mode .chapter-screen { overflow: clip; overscroll-behavior: contain; padding-bottom: 74px; }
  .chapter-mode .chapter-navigation { display: none; }
  .chapter-mode .chapter-controls { right: 14px; bottom: 13px; gap: 8px; }
  .chapter-mode .chapter-arrow { width: 40px; height: 40px; background: #fffdf4e8; }
  .chapter-mode .hero { display: flex; align-items: center; justify-content: center; padding: 72px 6% 115px; }
  .chapter-mode .hero h1 { font-size: clamp(43px, 9vw, 70px); }
  .chapter-mode .hero-copy { max-width: 640px; }
  .chapter-mode .story-opening { justify-content: center; padding: 60px 0 90px; }
  .chapter-mode .interest-heading h2 { font-size: clamp(45px, 8vw, 66px); }
  .chapter-mode .formats-intro { padding: 70px 6% 100px; }
  .chapter-mode .formats-heading { font-size: clamp(50px, 9vw, 76px); }

  .chapter-mode .story-step {
    grid-template-columns: minmax(0, 1fr); gap: 18px;
    align-content: safe center; padding: 28px 7% 78px;
  }
  .chapter-mode .story-copy { text-align: left; }
  .chapter-mode .story-copy h2 { font-size: clamp(44px, 7.5vw, 62px); }
  .chapter-mode .story-copy > p { font-size: 15px; line-height: 1.5; max-width: 560px; }
  .chapter-mode .story-panel { min-height: 0; max-height: none; height: auto; width: 100%; max-width: 440px; padding: 18px; margin-inline: auto; }
  .chapter-mode .format-card-wrap { width: min(100%, 393px); flex-shrink: 1; }
  .chapter-mode .format-card-wrap > .format-float { width: 62px; height: 62px; right: -12px; top: -25px; }
  .chapter-mode .format-atmosphere, .chapter-mode .format-reaction { display: none; }
  .chapter-mode .story-panel .riffi-card { width: 100%; }
  .chapter-mode .riffi-card .card-social { height: auto; min-height: 24px; gap: 6px 10px; flex-wrap: wrap; }
  .chapter-mode .riffi-card .card-stats { width: auto; gap: 10px; }
  .chapter-mode .riffi-card .card-stats > span { width: auto; }

  .chapter-mode .live-conversation { display: block; padding: 30px 7% 80px; }
  .chapter-mode .live-conversation[data-live-step="-1"] { overflow-y: hidden; }
  .chapter-mode .live-intro { padding: 30px 0 65px; gap: 28px; }
  .chapter-mode .live-intro h2 { width: 88%; font-size: clamp(46px, 8vw, 68px); }
  .chapter-mode .live-intro .intro-card-window { height: min(410px, 50svh); }
  .chapter-mode .live-copy { min-height: 0; align-content: start; margin-bottom: 16px; }
  .chapter-mode .live-copy-panel { min-height: 0; }
  .chapter-mode .live-copy-panel h2 { font-size: clamp(42px, 7vw, 56px); margin-bottom: 18px; }
  .chapter-mode .live-copy-panel > p { font-size: 15px; line-height: 1.5; }
  .chapter-mode .live-thread { height: 550px; max-width: 430px; }
  .chapter-mode .live-conversation[data-live-step="0"] .live-answer,
  .chapter-mode .live-conversation[data-live-step="0"] .live-response-reactions,
  .chapter-mode .live-conversation[data-live-step="1"] .live-response-reactions {
    opacity: 0; visibility: hidden; pointer-events: none;
  }
  .chapter-mode .live-conversation[data-live-step="1"] .live-answer,
  .chapter-mode .live-conversation[data-live-step="2"] .live-answer,
  .chapter-mode .live-conversation[data-live-step="2"] .live-response-reactions { opacity: 1; visibility: visible; }

  .chapter-mode .everyday-section { padding: 34px 6% 76px; gap: 17px; justify-content: safe center; }
  .chapter-mode .everyday-intro h2 { font-size: clamp(46px, 7vw, 62px); }
  .chapter-mode .everyday-intro > p { font-size: 14px; line-height: 1.4; }
  .chapter-mode .everyday-notes { width: 100%; height: 320px; flex: 0 0 320px; margin: 0; }
  .chapter-mode .everyday-note { width: min(340px, calc(100vw - 74px)); height: 310px; min-height: 0; padding: 20px; }
  .chapter-mode .everyday-note h3 { font-size: 28px; margin: 16px 0 10px; }
  .chapter-mode .everyday-note > p { font-size: 13px; line-height: 1.42; }
  .chapter-mode .everyday-deck-arrow { width: 38px; height: 38px; top: 43%; }
  .chapter-mode .everyday-deck-controls { margin-top: 2px; }

  .chapter-mode #perspective .conversation-canvas { min-height: 100%; height: auto; padding: 28px 7% 80px; }
  .chapter-mode #perspective .signup-chat { width: min(500px, 100%); gap: 17px; transition: transform .45s var(--ease); }
  .chapter-mode .chapter-stage-viewport[data-current="footer"] #perspective .signup-chat {
    transform: translateY(48px);
  }
  .chapter-mode #perspective .signup-message { max-width: 95%; gap: 10px; }
  .chapter-mode #perspective .signup-message > p { font-size: 17px; padding: 13px 16px; }
  .chapter-mode #perspective .signup-message > img { width: 40px; height: 40px; }
  .chapter-mode #perspective .signup-composer { width: 96%; }
  .chapter-mode #perspective #early-access-form { grid-template-columns: 1fr; }

}

@media (max-width: 600px) {
  .chapter-mode .hero { padding: 86px 6% 150px; }
  .chapter-mode .hero h1 { font-size: clamp(39px, 11.6vw, 58px); }
  .chapter-mode .hero-coffee { width: clamp(112px, 36vw, 150px); left: 5%; bottom: 1%; }
  .chapter-mode .story-opening { padding: 80px 0 85px; }
  .chapter-mode .interest-heading h2 { font-size: clamp(39px, 11vw, 55px); }
  .chapter-mode .formats-heading { font-size: clamp(43px, 12vw, 61px); }
  .chapter-mode .story-copy h2 { font-size: clamp(42px, 11vw, 52px); }
  .chapter-mode .story-panel { padding: 12px; }
  .chapter-mode .live-intro h2 { font-size: clamp(42px, 11vw, 54px); }
  .chapter-mode .live-copy-panel h2 { font-size: clamp(39px, 10vw, 49px); }
  .chapter-mode .everyday-intro h2 { font-size: clamp(38px, 10vw, 50px); }
  .chapter-mode .everyday-note { width: min(310px, calc(100vw - 70px)); }
}

@media (max-width: 360px), (max-width: 600px) and (max-height: 760px) {
  .chapter-mode .story-step { gap: 8px; padding: 15px 6% 54px; }
  .chapter-mode .story-copy h2 { font-size: 36px; line-height: .97; margin-bottom: 10px; }
  .chapter-mode .story-copy > p { font-size: 12px; line-height: 1.35; }
  .chapter-mode .story-copy .story-detail { margin-top: 8px; }
  .chapter-mode .story-panel { max-width: 280px; padding: 7px; }
  .chapter-mode .riffi-card { gap: 7px; padding: 12px; }
  .chapter-mode .riffi-card .card-question { font-size: 14px; line-height: 19px; }
  .chapter-mode .riffi-card .card-take-photo { height: 132px; aspect-ratio: auto; }
  .chapter-mode .live-conversation { padding: 18px 6% 46px; }
  .chapter-mode .live-copy-panel h2 { font-size: 34px; line-height: .98; margin-bottom: 12px; }
  .chapter-mode .live-copy-panel > p { font-size: 13px; line-height: 1.4; }
  .chapter-mode .live-copy { margin-bottom: 12px; }
  .chapter-mode .live-thread { height: min(400px, calc(100svh - 330px)); }
  .chapter-mode .live-post-frame { transform: translateX(-50%) scale(.72); }
  .chapter-mode .live-conversation[data-live-step="1"] .live-post-frame,
  .chapter-mode .live-conversation[data-live-step="2"] .live-post-frame { transform: translateX(-58%) translateY(-4px) rotate(-6deg) scale(.63); }
  .chapter-mode #perspective .conversation-canvas { padding: 12px 6% 32px; }
  .chapter-mode #perspective .signup-chat { gap: 8px; }
  .chapter-mode #perspective .signup-message { gap: 6px; max-width: 100%; }
  .chapter-mode #perspective .signup-message > img { width: 30px; height: 30px; }
  .chapter-mode #perspective .signup-message > p { font-size: 14px; line-height: 1.28; padding: 9px 11px; }
  .chapter-mode #perspective .signup-composer { margin: 0; }
  .chapter-mode #perspective .signup-composer #early-access-form { padding: 8px 12px; min-height: 0; gap: 4px; }
  .chapter-mode #perspective .signup-composer #early-access-name { font-size: 14px; padding: 5px 0; }
  .chapter-mode #perspective #early-access-form .button { min-height: 36px; padding: 8px 14px; font-size: 12px; }
}

@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .chapter-mode .hero { padding: 10px 4% 42px; }
  .chapter-mode .hero-copy { zoom: .6; padding: 0; }
  .chapter-mode .story-opening { padding: 8px 0 40px; }
  .chapter-mode .interest-heading h2 { font-size: 36px; line-height: 1; }
  .chapter-mode .interest-cloud { margin: 12px 0 0; padding: 0; gap: 10px; }
  .chapter-mode .interest-row .interest-pill { width: 180px; min-height: 62px; padding: 12px; font-size: 18px; }
  .chapter-mode .interest-row .interest-icon { transform: none; margin: 0; }
  .chapter-mode .story-step {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center; align-content: center; gap: 8px;
    padding: 12px 4% 45px;
  }
  .chapter-mode .story-copy h2 { font-size: clamp(30px, 4vw, 40px); line-height: .98; margin-bottom: 10px; }
  .chapter-mode .story-copy > p { font-size: 12px; line-height: 1.35; }
  .chapter-mode .story-copy .story-detail { margin-top: 8px; }
  .chapter-mode .story-panel { width: 393px; max-width: none; padding: 12px; zoom: .52; }
  .chapter-mode .format-card-wrap { width: 393px; }
  .chapter-mode .story-panel .riffi-card { width: 393px; }
  .chapter-mode .live-conversation { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 10px 4% 45px; gap: 8px; }
  .chapter-mode .live-copy { margin: 0; }
  .chapter-mode .live-copy-panel h2 { font-size: 36px; line-height: 1; margin-bottom: 10px; }
  .chapter-mode .live-copy-panel > p { font-size: 12px; line-height: 1.35; }
  .chapter-mode .live-thread { height: 260px; }
  .chapter-mode .live-post-frame { transform: translateX(-50%) scale(.5); }
  .chapter-mode .live-conversation[data-live-step="1"] .live-post-frame,
  .chapter-mode .live-conversation[data-live-step="2"] .live-post-frame { transform: translateX(-60%) rotate(-6deg) scale(.44); }
  .chapter-mode .live-answer { zoom: .65; bottom: 42px; }
  .chapter-mode .live-response-reactions { zoom: .65; bottom: 0; }
  .chapter-mode .live-intro { flex-direction: row; padding: 10px 4%; gap: 8px; }
  .chapter-mode .live-intro h2 { width: 44%; font-size: 36px; line-height: 1; }
  .chapter-mode .live-intro .intro-card-window { width: 56%; height: 260px; zoom: .65; overflow: hidden; }
  .chapter-mode .live-intro-art { display: none; }
  .chapter-mode .everyday-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px; padding: 10px 4% 45px; }
  .chapter-mode .everyday-intro h2 { font-size: 36px; line-height: 1; }
  .chapter-mode .everyday-notes { height: 240px; flex: none; }
  .chapter-mode .everyday-note { width: min(320px, calc(50vw - 56px)); height: 220px; padding: 14px; }
  .chapter-mode .everyday-note h3 { font-size: 21px; margin: 8px 0 6px; }
  .chapter-mode .everyday-note > p { font-size: 11px; }
  .chapter-mode .everyday-note :is(.local-photo-pair,.respect-voices,.human-aside) { height: 92px; }
  .chapter-mode .everyday-note[data-position="left"],
  .chapter-mode .everyday-note[data-position="right"] { opacity: 0; visibility: hidden; pointer-events: none; }
  .chapter-mode #perspective .conversation-canvas { padding: 8px 5% 36px; }
  .chapter-mode #perspective .signup-chat { zoom: .7; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header nav, .menu-toggle::before, .menu-toggle::after { transition: none !important; }
  .chapter-mode #perspective .signup-chat { transition: none !important; }
}

@media (max-width: 700px) {
  .chapter-mode #perspective .signup-composer:has(.early-access-sent:not([hidden])) {
    width: max-content;
    max-width: calc(100% - 12px);
    gap: 14px;
  }
  .chapter-mode #perspective .signup-composer:has(.early-access-sent:not([hidden])) .signup-reply-body {
    width: auto;
  }
  .chapter-mode #perspective .signup-composer .early-access-sent {
    width: max-content;
    max-width: 100%;
    padding: 13px 16px;
    border-radius: 22px;
  }
  .chapter-mode #perspective .signup-composer .early-access-sent::after {
    top: 50%;
    right: -9px;
    bottom: auto;
    width: 10px;
    height: 14px;
    transform: translateY(-50%);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
  }
  .chapter-mode #perspective .signup-composer .sent-intent {
    font-size: 17px;
    line-height: 1.3;
    white-space: nowrap;
  }
}

/* Smooth-scroll pass: keep every scene transition on the compositor. */
@media (max-width: 900px), (pointer: coarse) {
  html.chapter-mode, html.chapter-mode body { overscroll-behavior: none; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
  .chapter-mode .chapter-stage-viewport { height: calc(100dvh - var(--site-header-height)); contain: layout paint; transform: translateZ(0); }
  .chapter-mode .chapter-screen { contain: layout paint; backface-visibility: hidden; -webkit-overflow-scrolling: touch; }
  .chapter-mode .chapter-reveal, .chapter-mode .live-answer, .chapter-mode .live-copy-panel { filter: none !important; }
  .chapter-mode .chapter-reveal { transition-property: opacity, translate !important; transition-duration: .45s, .6s !important; }
  .chapter-mode .chapter-reveal:not(.is-revealed) { will-change: opacity, translate; }
  .chapter-mode .final-scroll { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Scenes fit the visible height on phones (see fit() in october-chapters.js) instead of scrolling inside. */
@media (max-width: 900px), (pointer: coarse) {
  .chapter-mode .october-page .chapter-screen:is(#story, #join-conversation, #community, #note) { overflow-y: hidden; }
  .chapter-mode .chapter-screen:is(#story, #join-conversation, #community, #note) > * { zoom: var(--fit, 1); }
}

@media (max-width: 900px), (pointer: coarse) {
  .chapter-mode .final-scroll { scroll-snap-type: none; }
}

/* Early-access chat: readable type, fitted to the visible height; the footer step is a handled swipe, not native scroll. */
@media (max-width: 900px), (pointer: coarse) {
  .chapter-mode .final-scroll { overflow-y: hidden; }
  .chapter-mode #perspective .conversation-canvas { padding: 16px 5% 64px; }
  .chapter-mode #perspective .signup-chat { gap: 20px; zoom: var(--fit, 1); }
  .chapter-mode #perspective .signup-message { gap: 10px; max-width: 97%; }
  .chapter-mode #perspective .signup-message > img { width: 44px; height: 44px; }
  .chapter-mode #perspective .signup-message > p { font-size: 19px; line-height: 1.32; padding: 14px 18px; }
  .chapter-mode #perspective .signup-composer #early-access-form { padding: 12px 16px; gap: 10px; }
  .chapter-mode #perspective .signup-composer #early-access-name { font-size: calc(16px / var(--fit, 1)); padding: 8px 0; } /* zoom scales it back to 16px, so iOS won't zoom the page on focus */
  .chapter-mode #perspective #early-access-form .button { min-height: 48px; padding: 12px 20px; font-size: 16px; }
}

/* Slimmer header on phones: 56px bar, smaller logo and early-access pill. */
@media (max-width: 900px) {
  .site-header .header-app, .story-page .site-header .header-app, .program-page .site-header .header-app { min-height: 30px; padding: 6px 11px; font-size: 10px; }
  .footer-playground { inset: var(--site-header-height) 0 0; }
}
