/* Five camera takes, one native, reversible scroll timeline. Stills without JS. */
.kala-journey { --story-top: 86px; --story-bottom: 88px; position: relative; background: #0a0d12; }
.kala-stage { position: relative; padding-top: var(--story-top); }
.kala-screen, .kala-progress { display: none; }
.kala-chapter { padding-bottom: 3rem; }
.kala-chapter figure { margin: 0; }
.kala-chapter img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.kala-copy { padding: 1.5rem var(--gutter); }
.kala-copy :is(h1, h2) { font: italic 300 clamp(2rem, 5.5vw, 5.5rem)/1.04 var(--serif); text-wrap: balance; margin: .6rem 0 1rem; }
.kala-copy p { max-width: 42ch; font-size: 1rem; line-height: 1.5; color: #e2ddcf; margin: 0; }
.kala-copy .btn { margin-top: 1.1rem; min-height: 44px; }
.kala-journey.is-scroll-linked { height: 700vh; height: 700svh; }
.is-scroll-linked .kala-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding: 0; }
.is-scroll-linked .kala-screen { display: block; position: absolute; inset: 0; }
.kala-screen > :is(img, canvas) { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.kala-screen canvas { opacity: 0; }
.kala-screen canvas.is-painted { opacity: 1; }
.kala-screen::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, #0a0d1280 70%, #0a0d12e6); pointer-events: none; }
.is-scroll-linked .kala-chapter { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 calc(var(--story-bottom) + 90px); opacity: 0; visibility: hidden; pointer-events: none; }
.is-scroll-linked .kala-chapter.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.is-scroll-linked .kala-chapter figure { display: none; }
.is-scroll-linked .kala-copy { text-align: center; max-width: 1000px; }
.is-scroll-linked .kala-copy p { margin-inline: auto; }
.is-scroll-linked .kala-progress { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: absolute; bottom: calc(var(--story-bottom) + 20px); left: var(--gutter); right: var(--gutter); font: .65rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.kala-progress ol { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; width: min(460px, 45%); }
.kala-progress li { flex: 1; height: 3px; background: #efe7d840; }
.kala-progress li::before { content: ''; display: block; width: var(--fill, 0%); height: 100%; background: var(--gold); }
.kala-progress a { min-height: 44px; display: flex; align-items: center; }
.kala-progress a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.kala-scroll-ready .nav.hide { transform: none; }
@media (max-width: 1024px) {
  .kala-journey { --story-top: 86px; --story-bottom: 84px; --media-height: min(42svh, 56.25vw); }
  .is-scroll-linked .kala-screen { inset: var(--story-top) 0 auto; height: var(--media-height); }
  .kala-screen::after { display: none; }
  .is-scroll-linked .kala-chapter { inset: calc(var(--story-top) + var(--media-height)) 0 calc(var(--story-bottom) + 50px); align-items: center; padding: 14px 0; }
  .is-scroll-linked .kala-copy { text-align: left; width: 100%; max-width: 700px; padding-block: 0; }
  .kala-copy :is(h1, h2) { font-size: clamp(1.8rem, 6.5vw, 3rem); margin: .45rem 0 .75rem; }
  .is-scroll-linked .kala-copy p { margin-inline: 0; line-height: 1.4; }
  .kala-copy .btn { padding: .6rem 1rem; }
  .is-scroll-linked .kala-progress { bottom: var(--story-bottom); }
  .kala-scroll-hint { display: none; }
}
@media (max-height: 680px) and (max-width: 600px) {
  .kala-journey { --media-height: min(26svh, 56.25vw); }
  .is-scroll-linked .kala-chapter { padding-block: 8px; }
  .kala-copy :is(h1, h2) { font-size: 1.65rem; }
  .kala-copy p { font-size: .9rem; }
  .kala-copy .btn { margin-top: .5rem; }
}
@media (max-height: 520px) and (min-width: 601px) and (max-width: 1024px) {
  .is-scroll-linked .kala-screen { width: 52%; height: calc(100svh - var(--story-top) - var(--story-bottom) - 44px); }
  .is-scroll-linked .kala-chapter { inset: var(--story-top) 0 calc(var(--story-bottom) + 44px) 52%; }
  .kala-copy :is(h1, h2) { font-size: 1.55rem; }
  .kala-copy p { font-size: .875rem; }
  .kala-copy .mono { font-size: .55rem; }
}
