/* Isolated experiment: permanent Ask iris masthead + bounded 3/9-column rail. */
.toolbar { gap: 24px; }
.toolbar .brand { width: 200px; gap: 12px; }
.toolbar .nav-action { width: 224px; }
.nav-context { display: flex; align-items: center; justify-content: center; flex: 1; min-width: 0; }
.site-disclosure { position: relative; flex: none; }
.site-toggle { display: flex; align-items: center; gap: 6px; padding: 0; min-height: 36px; background: transparent; border-radius: 6px; }
.menu-caret { color: var(--secondary); font-size: 12px; transition: transform 200ms; }
.site-toggle[aria-expanded="true"] .menu-caret { transform: rotate(180deg); }
.site-popover { position: absolute; top: calc(100% + 20px); left: -12px; min-width: 272px; padding: 12px; background: rgb(245 243 234 / 96%); border: 1px solid var(--glass-edge); border-radius: 16px; box-shadow: 0 12px 40px #19171316; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
/* A hover bridge keeps the menu reachable across the gap under the mark. */
.site-popover::before { content: ''; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
.site-popover .eyebrow { padding: 12px; font-size: 10px; }
.site-popover a { display: flex; justify-content: space-between; gap: 24px; padding: 12px; min-height: 44px; border-radius: 8px; }
.site-popover a:hover, .site-popover a:focus-visible { background: var(--mint); }
.ask-prompt { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 760px; height: 44px; padding: 8px 16px; background: #ffffff60; border: 1px solid #ffffff90; border-radius: 10px; text-align: left; color: var(--secondary); transition: height var(--nav-duration) var(--nav-settle), background-color 180ms; }
.is-compact .ask-prompt { height: 36px; }
.ask-prompt:hover, .ask-prompt[aria-expanded="true"] { background: #ffffffa0; }
.ask-hint { margin-left: auto; font-size: 13px; white-space: nowrap; }
.ask-spark { color: var(--ink); font-size: 22px; }
.ask-panel { position: fixed; z-index: 2; top: 100px; left: 50%; transform: translateX(-50%); width: var(--page-width); max-height: calc(100dvh - 180px); overflow-y: auto; padding: 40px; border: 1px solid #ffffffb0; border-radius: 24px; background: rgb(245 243 234 / 94%); backdrop-filter: blur(32px) saturate(130%); -webkit-backdrop-filter: blur(32px) saturate(130%); box-shadow: 0 20px 64px #19171324; }
.is-compact .ask-panel { top: 84px; }
.close-ask { position: absolute; top: 20px; right: 20px; display: flex; align-items: center; gap: 16px; padding: 10px 12px; min-height: 44px; background: #ffffff80; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.ask-panel-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding: 16px 0 24px; }
.ask-panel h2 { font-size: 36px; line-height: 40px; margin-top: 16px; }
.ask-panel-heading > p { max-width: 30ch; font-size: 20px; line-height: 28px; }
.ask-panel textarea { display: block; width: 100%; min-height: 120px; padding: 20px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; background: #ffffffa6; font-size: 24px; line-height: 32px; }
.ask-examples { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0 24px; }
.ask-examples button, .copy-question { background: #ffffff70; border: 1px solid var(--line); border-radius: 24px; padding: 10px 16px; }
.ask-examples button:hover, .copy-question:hover { background: white; }
.ask-panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.ask-panel-footer > p { font-size: 14px; }
.ask-panel-footer > div { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ask-panel-footer .button { padding: 10px 16px; min-height: 44px; border-radius: 10px; font-size: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* One 12-column grid, with 24px gutters. The rail owns 3 columns, the story 9.
   Sticky is bounded by this wrapper and releases after Report & Downloads. */
.walkthrough-surface { background: var(--paper); }
.walkthrough { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 24px; align-items: start; padding-block: 72px 96px; }
/* Paper B: names only, with a label-sized mint pill and 48px targets.
   The viewport-height sticky container centers its contents without transforms,
   so its entire rail stays bounded by the four-chapter wrapper. */
.walkthrough .journey { --rail-active: #d0e4d8; grid-column: 1 / span 3; position: sticky; top: 96px; height: calc(100dvh - 96px); display: flex; align-items: center; padding: 24px 24px 24px 32px; background: transparent; }
.journey-index { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; max-height: 100%; overflow-y: auto; padding: 4px; }
.journey-index a { display: flex; flex-direction: row; align-items: center; flex-shrink: 0; width: fit-content; max-width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: 24px; font-size: 15px; line-height: 24px; color: var(--secondary); transition: background-color 240ms ease, color 240ms ease; }
.journey-index a:hover { background: #ffffff80; color: var(--ink); }
.journey-index a[aria-current="step"] { background: var(--rail-active); color: var(--ink); }
.walkthrough-chapters { grid-column: 4 / -1; min-width: 0; }
.walkthrough .chapter { padding: 0 0 96px; background: transparent; }
.walkthrough .chapter + .chapter { padding-top: 64px; border-top: 1px solid var(--line); }
.walkthrough .chapter:last-child { padding-bottom: 0; }
/* Paper stage D: 354px copy + 48px gutter + 564px media at a 1440px viewport.
   The 432px focused screenshot sits inside a 564 × 552px quiet stage.
   Change data-stage-layout to "direct" to try A without changing the content. */
.walkthrough .chapter-layout { width: 100%; display: grid; grid-template-columns: minmax(0,354fr) minmax(0,564fr); align-items: center; gap: 32px clamp(24px,3.333vw,48px); }
.walkthrough .chapter-heading { grid-column: 1; grid-row: auto; display: flex; flex-direction: column; gap: 24px; max-width: none; min-width: 0; }
.walkthrough .chapter-heading h2 { font-size: clamp(28px,2.778vw,40px); line-height: 1.1; }
.walkthrough .chapter-description { font-size: clamp(18px,1.528vw,22px); line-height: 1.455; }
.walkthrough .chapter-figure { grid-column: 2; grid-row: auto; width: 100%; max-width: none; }
.walkthrough .chapter-media-stage { display: flex; align-items: center; justify-content: center; min-width: 0; }
.walkthrough[data-stage-layout="quiet"] .chapter-media-stage { aspect-ratio: 564 / 552; padding: 12.766% 11.702% 14.894%; background: #e9ebe3; border-radius: 16px; }
.walkthrough .chapter-preview { width: 100%; aspect-ratio: 636 / 584; --crop-height: calc(var(--crop-width) * 584 / 636); border-radius: 10px; box-shadow: none; }
.walkthrough .chapter-sounding .chapter-preview { --crop-width: 636; }
.walkthrough .chapter-plan .chapter-preview { --crop-width: 640; }
.walkthrough .chapter-figure figcaption { margin-top: 16px; font-size: 12px; }
.walkthrough .chapter-invitation { grid-column: 1 / -1; margin-top: 8px; }

.prototype-controls { position: fixed; z-index: 40; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; padding: 8px 12px 8px 20px; background: #191713; color: #f5f3ea; border-radius: 32px; box-shadow: 0 4px 20px #19171322; white-space: nowrap; font-size: 12px; }
.prototype-controls > span:first-child { font-family: var(--mono); font-size: 10px; }
.prototype-controls [role="group"] { display: flex; gap: 4px; }
.prototype-controls button { background: transparent; color: inherit; border-radius: 24px; padding: 8px 12px; }
.prototype-controls button[aria-pressed="true"] { background: #f5f3ea; color: #191713; }
.prototype-controls button:focus-visible { outline-color: var(--mint); }
.prototype-state { color: #b5b5a8; border-left: 1px solid #ffffff44; padding-left: 16px; }
@media (max-width: 1399px) {
  .toolbar .brand { width: auto; }
  .toolbar .beta-label { display: none; }
  .toolbar .nav-action { width: auto; }
  .toolbar .nav-cta { width: 208px; }
  .ask-hint { display: none; }
  .walkthrough .journey { padding-inline: 8px; }
}
@media (max-width: 999px) {
  .walkthrough { grid-template-columns: repeat(12,minmax(0,1fr)); gap: 20px; }
  .walkthrough .chapter-layout { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .walkthrough .chapter-heading, .walkthrough .chapter-figure { grid-column: 1; }
  .walkthrough .chapter-heading { gap: 20px; }
  .walkthrough .journey { padding-inline: 0; }
  .journey-index a { padding-inline: 12px; }
}
@media (max-width: 719px) {
  .toolbar, .is-compact .toolbar { gap: 12px; padding: 5px 5px 5px 12px; --nav-inset: 6px; }
  .toolbar .brand, .is-compact .toolbar .brand { width: auto; }
  .toolbar .brand-product { display: none; }
  .toolbar .brand-mark { width: 26px; height: 26px; }
  .site-toggle { gap: 4px; min-height: 44px; }
  .site-popover { left: -6px; top: calc(100% + 12px); width: min(288px,calc(100vw - 48px)); min-width: 0; max-height: calc(100dvh - 100px); overflow-y: auto; }
  .nav-context { justify-content: start; }
  .toolbar .nav-action { display: flex; width: auto; }
  .toolbar .nav-cta, .is-compact .toolbar .nav-cta { width: 152px; height: 44px; font-size: 13px; line-height: 18px; gap: 8px; padding: 0 10px; border-radius: 10px; }
  .ask-prompt, .is-compact .ask-prompt { height: 40px; padding: 8px; gap: 0; white-space: nowrap; }
  .ask-hint, .ask-prompt .ask-spark { display: none; }
  .ask-panel, .is-compact .ask-panel { top: 80px; padding: 20px; max-height: calc(100dvh - 156px); }
  .close-ask { top: 12px; right: 12px; }
  .ask-panel-heading { display: block; padding-top: 8px; }
  .ask-panel-heading > p { display: none; }
  .ask-panel h2 { font-size: 28px; line-height: 32px; }
  .ask-panel textarea { font-size: 18px; line-height: 26px; padding: 16px; }
  .ask-panel-footer { flex-direction: column; align-items: stretch; gap: 16px; }
  .ask-panel-footer > div { justify-content: space-between; }
  .walkthrough { display: block; padding-block: 40px 64px; }
  .walkthrough .journey { position: static; height: auto; padding: 0 0 32px; }
  .journey-index { flex-direction: row; flex-wrap: wrap; gap: 4px 8px; overflow: visible; }
  .journey-index a { font-size: 15px; }
  .walkthrough .chapter, .walkthrough .chapter + .chapter { padding-block: 40px 56px; }
  .walkthrough .chapter:first-child { padding-top: 0; }
  .walkthrough .chapter-heading h2 { font-size: 36px; }
  .walkthrough .chapter-layout { gap: 24px; }
  .walkthrough .chapter-description { font-size: 20px; line-height: 28px; }
  /* Keep the frame light on small screens so the detail remains readable. */
  .walkthrough[data-stage-layout="quiet"] .chapter-media-stage { aspect-ratio: auto; padding: 20px; }
  .walkthrough .chapter-preview { aspect-ratio: 636 / 584; --crop-height: calc(var(--crop-width) * 584 / 636); }
  .walkthrough .chapter-sounding .chapter-preview { --crop-width: 636; }
  .walkthrough .chapter-plan .chapter-preview { --crop-width: 640; }
  .prototype-controls { gap: 8px; max-width: calc(100vw - 24px); padding: 8px 12px; }
  .prototype-controls > span:first-child { font-size: 0; }
  .prototype-state { display: none; }
}
@media (max-width: 369px) {
  .toolbar, .is-compact .toolbar { gap: 6px; padding-left: 8px; }
  .toolbar .nav-cta { width: 140px; font-size: 12px; padding-inline: 8px; }
  .menu-caret { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ask-prompt, .journey-index a, .menu-caret { transition: none; } }
