.scroll-story { display: none; }
html.scroll-ready { scroll-padding-top: 110px; }
.scroll-ready .hero { display: none; }
.scroll-ready .header { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 30; width: min(1180px, calc(100% - 48px)); min-height: 70px; padding: 10px 20px; border: 1px solid var(--line); background: #f5f5f7f5; box-shadow: 0 4px 20px #1d1d1f0b; }
.scroll-ready .scroll-story { display: block; position: relative; height: 650svh; background: var(--bg); }
.scroll-viewport { position: sticky; top: 0; width: 100%; height: 100svh; overflow: clip; background: #f5f5f7; }
.scroll-canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.story-captions { position: absolute; inset: 0; pointer-events: none; }
.story-captions:before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #f5f5f7 0%, #f5f5f7f5 25%, #f5f5f7b0 34%, transparent 50%); opacity: var(--copy-alpha, 1); }
.story-is-right .story-captions:before { background: linear-gradient(270deg, #f5f5f7 0%, #f5f5f7f5 25%, #f5f5f7b0 34%, transparent 50%); }
.story-panel { position: absolute; top: 48%; left: max(48px, calc((100vw - 1240px) / 2)); width: clamp(280px, 28vw, 420px); transform: translateY(-50%); pointer-events: auto; color: var(--ink); }
.story-panel[hidden] { display: none; }
.story-panel .eyebrow { color: var(--muted); font-size: .75rem; line-height: 1.7; max-width: 320px; margin-bottom: 22px; letter-spacing: .04em; }
.story-panel h1, .story-panel h2 { font: 500 clamp(2.7rem, 4.6vw, 4.8rem)/1.08 'Manrope', sans-serif; letter-spacing: -.055em; word-spacing: .02em; margin: 0; }
.story-panel .story-italic { font-family: Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.05em; }
.story-panel>p:not(.eyebrow) { font-size: 1rem; line-height: 1.8; margin: 26px 0 0; max-width: 340px; }
.story-right { left: auto; right: max(48px, calc((100vw - 1240px) / 2)); }
.story-start, .story-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 30px; min-height: 46px; font-size: .875rem; font-weight: 700; border-bottom: 1px solid var(--ink); }
.story-start { font-size: .75rem; letter-spacing: .07em; }
.story-start>span[aria-hidden], .story-link>span[aria-hidden] { font-size: 1.4rem; }
.story-bottom { position: absolute; bottom: 22px; left: max(32px, calc((100vw - 1240px) / 2)); right: max(32px, calc((100vw - 1240px) / 2)); display: flex; align-items: center; gap: 18px; color: var(--ink); }
.story-track { width: 96px; height: 2px; background: var(--line); flex-shrink: 0; }
.story-progress { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.story-count { font-size: .75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.story-note { font-size: .75rem; color: var(--muted); margin-left: auto; max-width: 400px; }
.story-motion-toggle { display: inline-flex; gap: 12px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 2px; padding: 10px 12px; color: var(--ink); min-height: 44px; font-size: .75rem; flex-shrink: 0; }
.story-anchor { position: absolute; top: 25%; }
.scroll-ready .projects.wrap { margin-top: 0; }
.scroll-ready .project { animation: none !important; }
.scroll-ready .project-carta, .scroll-ready .project-rotation { transform: none; }
html:lang(my) .story-panel h1, html:lang(my) .story-panel h2, html:lang(my) .story-panel .story-italic { font-family: 'Noto Sans Myanmar', 'Myanmar Text', sans-serif; font-size: clamp(1.5rem, 2.5vw, 2.6rem); line-height: 1.65; letter-spacing: 0; font-style: normal; }
html:lang(my) .story-panel>p { line-height: 1.85; }
html:lang(my) .story-panel[data-chapter='1'] h2, html:lang(my) .story-panel[data-chapter='2'] h2 { font-family: 'Manrope', sans-serif; }
@media (max-width: 900px) {
  html.scroll-ready { scroll-padding-top: 145px; }
  .scroll-ready .header { top: 12px; width: calc(100% - 32px); padding: 10px 14px; gap: 0 14px; }
  .scroll-ready .header .nav { gap: 0 24px; }
  .scroll-ready .brand-small { display: none; }
  .story-panel { left: 28px; width: 31vw; min-width: 230px; }
  .story-right { left: auto; right: 28px; }
  .story-panel h1, .story-panel h2 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); }
  .story-panel>p:not(.eyebrow) { font-size: .9375rem; line-height: 1.7; }
}
@media (max-width: 600px) {
  .story-captions:before, .story-is-right .story-captions:before { background: linear-gradient(0deg, #f5f5f7 0%, #f5f5f7 10%, transparent 45%); }
  .scroll-ready .scroll-story { height: 600svh; }
  .scroll-ready .header { top: 10px; }
  .scroll-ready .brand { font: 800 1rem/1.1 'Manrope', sans-serif; gap: 8px; }
  .scroll-ready .brand img { width: 32px; height: 32px; }
  .scroll-ready .language-control { width: 142px; }
  .scroll-ready .header .nav a { min-height: 36px; padding-block: 8px; font-size: .8125rem; }
  .scroll-ready .nav { flex-wrap: nowrap; }
  .story-panel, .story-right { top: auto; left: 24px; right: 24px; bottom: calc(var(--hud-height, 72px) + 32px); width: auto; min-width: 0; transform: none; max-width: none; }
  .story-panel { background: #f5f5f7ef; padding: 17px 18px; border-left: 2px solid var(--ink); }
  .story-panel h1, .story-panel h2 { font-size: clamp(1.65rem, 6.9vw, 2.5rem); line-height: 1.12; }
  .story-intro h1 br:first-of-type { display: none; }
  .story-intro h1>span:first-child:after { content: ' '; }
  .story-panel .eyebrow { margin-bottom: 9px; font-size: .75rem; }
  .story-panel>p:not(.eyebrow) { font-size: .875rem; line-height: 1.6; margin-top: 12px; max-width: none; }
  .story-start, .story-link { margin-top: 12px; min-height: 40px; }
  .story-bottom { bottom: 12px; left: 24px; right: 24px; gap: 8px 12px; flex-wrap: wrap; }
  .story-track { width: 52px; }
  .story-note { order: 4; margin: 0; max-width: 100%; width: 100%; font-size: .75rem; }
  .story-motion-toggle { margin-left: auto; padding: 8px 10px; }
  html:lang(my) .story-panel h1, html:lang(my) .story-panel h2, html:lang(my) .story-panel .story-italic { font-size: 1.4rem; }
  html:lang(my) .story-panel>p:not(.eyebrow) { font-size: .875rem; }
}
@media (max-width: 360px) {
  .scroll-ready .header { gap: 0 8px; }
  .scroll-ready .language-control { width: 126px; }
}
@media (max-height: 560px) and (min-width: 601px) {
  .scroll-ready .header { min-height: 56px; top: 8px; padding-block: 4px; }
  .story-panel { top: 52%; }
  .story-panel h1, .story-panel h2 { font-size: 2rem; }
  .story-panel .eyebrow { margin-bottom: 10px; }
  .story-panel>p:not(.eyebrow) { font-size: .875rem; margin-top: 12px; }
  .story-start, .story-link { margin-top: 10px; }
  .story-bottom { bottom: 10px; }
  .story-note { display: none; }
}
@media (max-height: 500px) {
  .story-panel .eyebrow, .story-panel>p:not(.eyebrow) { display: none; }
}
