/* A native reading rhythm: the illustration stays, the four chapters pass beside it. */
body.refined [data-platform-story] { padding-block: 0; margin-top: var(--section-space); overflow: visible; }
body.refined [data-platform-story] .home-section-heading { margin-bottom: 48px; }
body.refined .platform-story-reader { display: none; position: relative; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(48px,7vw,96px); align-items: stretch; overflow: visible; }
body.refined [data-story-ready][data-story-mode="pinned"] .platform-story-reader,
body.refined [data-story-mode="measuring"] .platform-story-reader { display: grid; }
body.refined .platform-story-visual { position: relative; width: 100%; max-width: 580px; min-width: 0; align-self: stretch; }
body.refined .platform-story-pin { position: sticky; top: var(--story-pin-top,120px); padding: 0; border-radius: 20px; background: #dde8f1; color: #fff; overflow: hidden; }
body.refined .platform-story-pin .platform-showcase { display: block; margin: 0; }
body.refined .platform-story-pin .product-scene.product-motion { position: relative; isolation: isolate; aspect-ratio: .95; height: auto; width: 100%; border: 0; border-radius: 20px; background: #dde8f1; overflow: hidden; }
body.refined .platform-story-pin .product-scene:before,body.refined .platform-story-pin .product-scene:after { content: none; }
body.refined .story-backdrops { display: none; }
body.refined .platform-story-pin .motion-view.product-view { display: flex; align-items: center; justify-content: center; position: absolute; z-index: 2; inset: 0; padding: 0; opacity: 0; visibility: hidden; pointer-events: none; animation: none; transform: none; transition: opacity .16s ease, visibility 0s .16s; }
body.refined .platform-story-pin .motion-view.is-current { opacity: 1; visibility: visible; transition: opacity .28s ease .12s, visibility 0s .12s; }
body.refined .platform-story-pin .motion-view video { display: block; width: 100%; height: auto; max-height: 100%; aspect-ratio: 16/9; object-fit: contain; border-radius: 10px; box-shadow: 0 10px 24px #071e3526; }
body.refined .platform-story-pin .motion-caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.refined .story-number-tabs { display: none; justify-content: center; align-items: center; width: fit-content; gap: 8px; margin: 16px auto -4px; }
body.refined .story-number-tabs > button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; border-radius: 50%; color: #c6d9e7; cursor: pointer; }
body.refined .story-number-tabs .platform-index { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid transparent; border-radius: 50%; background: none; font: 450 12px/1 var(--sans); font-variant-numeric: tabular-nums; color: inherit; transition: color .25s ease, background-color .25s ease; }
body.refined .story-number-tabs [aria-selected="true"] .platform-index { background: #e1edf7; color: #14394f; }
body.refined .story-number-tabs button:hover .platform-index { background: #ffffff1c; color: #fff; }
body.refined .story-number-tabs [aria-selected="true"]:hover .platform-index { background: #e1edf7; color: #14394f; }
body.refined .platform-story-pin :is(a,button):focus-visible { outline: 2px solid #d1e6ff; outline-offset: 3px; }

/* Text keeps its normal place in the document, with equal reading space per step. */
body.refined .platform-story-beats { min-width: 0; }
body.refined .story-beat { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: var(--story-beat-height,600px); padding-block: 56px; }
body.refined .story-beat-index { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 30px; padding-inline: 9px; margin-bottom: 24px; border: 1px solid #ccd8e1; border-radius: 99px; background: #f2f6f9; color: #61788b; font: 450 11px/1 var(--sans); font-variant-numeric: tabular-nums; transition: color .3s ease,background-color .3s ease,border-color .3s ease; }
html[data-typeface] body.refined .story-beat h3 { max-width: 440px; margin: 0; font-family: var(--sans); font-size: clamp(28px,2.3vw,34px); line-height: 1.2; letter-spacing: -.035em; font-weight: 450; color: #62788b; transition: color .3s ease; }
body.refined .story-beat > p { max-width: 420px; margin-top: 24px; font-family: var(--sans); font-size: 17px; line-height: 1.75; color: #61768a; transition: color .3s ease; }
body.refined .story-beat.is-current .story-beat-index,body.refined .story-beat[aria-current="step"] .story-beat-index { color: #14394f; background: #e1edf7; border-color: #ccdeed; }
html[data-typeface] body.refined .story-beat.is-current h3,html[data-typeface] body.refined .story-beat[aria-current="step"] h3 { color: #173b52; }
body.refined .story-beat.is-current > p,body.refined .story-beat[aria-current="step"] > p { color: #425f74; }
body.refined .platform-story-reader + .platform-links { display: none; margin-top: 32px; gap: 16px 28px; }
body.refined [data-story-ready][data-story-mode="pinned"] .platform-story-reader + .platform-links { display: flex; }

/* Without enhancement, on smaller screens, and with reduced motion, all four
   chapters are ordinary readable sections with the same approved media. */
body.refined .platform-story-flow { display: grid; gap: 64px; }
body.refined [data-story-ready][data-story-mode="pinned"] .platform-story-flow,
body.refined [data-story-mode="measuring"] .platform-story-flow { display: none; }
body.refined .story-flow-chapter { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 40px; padding: 32px; background: #14394f; border-radius: 24px; color: #fff; }
body.refined .story-flow-chapter:nth-child(2) { background: #dde8f1; }
body.refined .story-flow-chapter:nth-child(3) { background: #19435d; }
body.refined .story-flow-chapter:nth-child(4) { background: #2b3d65; }
body.refined .story-flow-chapter figure { margin: 0; border-radius: 12px; overflow: hidden; }
body.refined .story-flow-chapter video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; border-radius: 12px; }
body.refined .story-flow-index { display: block; color: #b5cde0; font-size: 11px; font-variant-numeric: tabular-nums; margin-bottom: 16px; }
html[data-typeface] body.refined .story-flow-copy h3 { font-family: var(--sans); font-size: 26px; font-weight: 450; letter-spacing: -.025em; line-height: 1.25; color: #fff; margin: 0 0 16px; }
body.refined .story-flow-copy p { font-size: 15px; line-height: 1.7; color: #d5e5f1; }
body.refined .platform-story-flow > .platform-links { margin: 0; }

@media (min-width:761px) and (max-width:1100px) {
  body.refined .platform-story-reader { gap: 40px; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); }
  body.refined .platform-story-pin { padding: 0; border-radius: 20px; }
  body.refined .platform-story-pin .motion-view.product-view { padding: 0; }
  html[data-typeface] body.refined .story-beat h3 { font-size: 28px; }
  body.refined .story-beat > p { font-size: 16px; }
}
@media (max-width:760px) {
  body.refined [data-platform-story] .home-section-heading { margin-bottom: 32px; }
  body.refined [data-platform-story] .platform-story-reader,body.refined [data-platform-story] .platform-story-reader + .platform-links { display: none; }
  body.refined [data-platform-story] .platform-story-flow { display: grid; }
  body.refined .story-flow-chapter { display: flex; flex-direction: column; gap: 24px; align-items: stretch; padding: 24px; border-radius: 20px; }
  html[data-typeface] body.refined .story-flow-copy h3 { font-size: 24px; }
  body.refined .story-flow-copy p { font-size: 15px; }
}
@media (prefers-reduced-motion:reduce) {
  body.refined [data-platform-story] .platform-story-reader,body.refined [data-platform-story] .platform-story-reader + .platform-links { display: none; }
  body.refined [data-platform-story] .platform-story-flow { display: grid; }
  body.refined .platform-story-pin,body.refined .story-backdrops img,body.refined .platform-story-pin .motion-view,body.refined .story-beat :is(h3,p,.story-beat-index) { transition: none; }
}

/* The UI fragments are drawn natively, so small type and curves stay sharp on
   large displays. Only the visible chapter runs; its fallback video stays idle. */
body.refined .has-vector-scene > video { display: none !important; }
body.refined .platform-story-pin .story-scene { display: block; width: 100%; height: 100%; font-family: var(--sans); }
body.refined .platform-story-pin .motion-view.has-vector-scene { padding: 0; }
body.refined .story-flow-chapter.has-vector-scene { background: transparent; color: #173b52; padding: 0; gap: 28px; border-radius: 0; }
html[data-typeface] body.refined .story-flow-chapter.has-vector-scene h3 { color: #173b52; }
body.refined .story-flow-chapter.has-vector-scene .story-flow-copy p { color: #526d81; }
body.refined .story-flow-chapter.has-vector-scene .story-flow-index { color: #617b8d; }
body.refined .story-flow-chapter.has-vector-scene figure { border-radius: 20px; }
body.refined .story-flow-chapter.has-vector-scene figure { display: block; width: 100%; background: #dde8f1; aspect-ratio: 1; overflow: hidden; }
body.refined .story-flow-chapter.has-vector-scene figure > video { display: none; }
body.refined .story-flow-chapter.has-vector-scene figure > .story-scene { display: block; width: 100%; height: auto; aspect-ratio: 1; }
body.refined :is(.motion-view,.story-flow-chapter).is-playing .scene-anim { animation-play-state: running; }
body.refined [data-platform-story]:not([data-story-ready]) .scene-anim { animation: none !important; }
/* All four app surfaces share one fixed frame. Only the content settles in;
   translating the whole surface made the app jump between scroll chapters. */
body.refined [data-platform-story] .story-scene .scene-anim {
  animation-name: home-story-detail-reveal;
  animation-duration: 1.2s;
}
@keyframes home-story-detail-reveal {
  from { opacity: .92; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion:reduce) {
  body.refined .story-scene .scene-anim { animation: none !important; }
}

/* Rogo-like reading: only the current chapter reads strongly, the others stay quiet */
html[data-typeface] body.refined [data-story-mode="pinned"] .story-beat:not(.is-current) h3{color:#b3c1cc}
body.refined [data-story-mode="pinned"] .story-beat:not(.is-current)>p{color:#b9c5cf}
body.refined [data-story-mode="pinned"] .story-beat:not(.is-current) .story-beat-index{color:#a6b5c1;background:#f6f8fa;border-color:#e1e8ee}
