/* SYL R08 — opening, scene controls and chapter track. */
:root {
  --film-paper:#f5f3ef;
  --film-ink:#30272a;
  --film-burgundy:#652b39;
  --film-gold:#e1c38b;
  --film-ease:cubic-bezier(.22,1,.36,1);
}
.journey-sticky::after {
  content:""; position:absolute; inset:0; z-index:2; pointer-events:none;
  background:linear-gradient(90deg,#f5f3eff5 1%,#f5f3efd9 24%,#f5f3ef3b 49%,transparent 66%);
}
.scene-topline {letter-spacing:.12em;font-size:10px;font-weight:500}
.chapter {
  top:clamp(176px,25%,240px); width:min(47%,640px);
  transform:translateY(18px); filter:none;
  transition:opacity .38s var(--film-ease),transform .56s var(--film-ease);
}
.chapter h1,.chapter h2 {font-size:clamp(53px,6.5vw,106px);line-height:.99}
.chapter p {max-width:42ch;margin-top:22px;line-height:1.58;color:var(--film-ink)}
.chapter-kicker {margin-bottom:18px}
.chapter-cta {
  background:var(--film-burgundy);color:var(--film-paper);border:0;
  min-height:46px;padding:0 15px;gap:12px;margin-top:18px;
}
.chapter-cta span {color:var(--film-gold);font-size:16px}
.scene-skip {display:none}
.webgl-ready .scene-skip {
  position:absolute;z-index:6;right:var(--pad);bottom:92px;
  display:flex;align-items:center;gap:4px;
  background:var(--film-paper);color:var(--film-burgundy);
  border:1px solid #652b3960;border-radius:5px;padding:2px;
}
.scene-skip button {
  width:44px;height:44px;border:0;border-radius:3px;background:none;
  color:inherit;font:inherit;font-size:19px;cursor:pointer;
}
.scene-skip button:hover:not(:disabled),.scene-skip button:focus-visible {background:var(--film-burgundy);color:var(--film-paper)}
.scene-skip button:disabled {opacity:.38;cursor:default}
#scene-count {min-width:132px;text-align:center;font-size:11px;font-variant-numeric:tabular-nums}
.chapter-nav {
  height:72px;gap:0;background:var(--film-ink);border:0;border-radius:6px 6px 0 0;
  color:var(--film-paper);padding-inline:5px;
}
.chapter-nav button {padding:0 8px;min-height:44px;color:var(--film-paper);gap:7px}
.chapter-nav button span {color:var(--film-gold);font-variant-numeric:tabular-nums}
.chapter-nav button:hover {background:#ffffff14}
.chapter-nav button[aria-current] {
  background:var(--film-burgundy);color:var(--film-paper);border-top:2px solid var(--film-gold);
}
.chapter-nav button:focus-visible {outline:2px solid var(--film-gold);outline-offset:-3px}
.journey-progress {display:none}
.scene-bottom {bottom:101px}
.gesture-hint {display:none}
@media(max-width:760px),(max-width:1100px) and (orientation:portrait) {
  .journey-sticky::after {
    background:linear-gradient(180deg,#f5f3effb 9%,#f5f3efea 26%,#f5f3ef70 42%,transparent 59%);
  }
  .scene-topline {font-size:8px;top:97px}
  .chapter {top:120px;width:auto}
  .chapter h1,.chapter h2 {font-size:clamp(40px,10vw,65px);line-height:1}
  .chapter p {margin-top:12px}
  .chapter-kicker {margin-bottom:12px}
  .chapter-cta {min-height:44px;margin-top:10px;padding:0 10px}
  .webgl-ready .scene-skip {bottom:73px}
  .chapter-nav {height:62px;grid-template-columns:repeat(8,minmax(94px,1fr))}
  .scene-bottom {bottom:129px;right:auto;width:min(38%,240px)}
  .scene-caption,.scene-caption small {font-size:9px}
  .scene-caption {background:#f5f3efed;padding:6px 7px;border-radius:4px}
  .scene-tools {bottom:129px}
  .scene-tools button {min-height:44px}
  #scene-count {min-width:92px;font-size:10px}
}
@media(max-height:600px) and (orientation:landscape) {
  .chapter {top:110px}
  .chapter h1,.chapter h2 {font-size:clamp(35px,5.2vw,56px)}
  .scene-topline {top:81px}
  .chapter-nav {height:49px}
  .webgl-ready .scene-skip,.scene-bottom {bottom:54px}
}
@media(prefers-reduced-motion:reduce) {
  .chapter {transition:none;transform:none}
}

@media(max-width:360px) and (orientation:portrait) { .scene-bottom {bottom:181px;width:45%} }
