.home-page { --controls-h:60px; background:var(--navy) }
.story { background:var(--navy) }
.story-act { --tone:var(--paper); --accent:#9ce9ee; --body:#d7e3ed; --category:#ade0eb; --surface:var(--navy); background:var(--surface); color:var(--tone) }
.aperture-act { --tone:var(--navy); --accent:var(--blue); --body:#30495f; --category:#3f5d71; --surface:var(--paper) }
.story-shell { max-width:2000px; margin-inline:auto; background:var(--surface) }
.story-visual { display:none }
.story-scene { display:grid; grid-template-columns:1.08fr 1fr; align-items:center; gap:clamp(20px,5vw,110px); padding:clamp(38px,6vw,100px) var(--gutter); border-bottom:1px solid #46627c55 }
.story-still { display:grid; place-items:center; padding:clamp(10px,2vw,32px); background:#102c4c }
.aperture-act .story-still { background:#e5edf2 }
.story-still img { width:auto; max-width:100%; max-height:55svh; object-fit:contain }
.story-scene[data-scene=contact] .story-still img { width:100px; background:var(--paper); padding:18px; border-radius:50% }
.story-scene:is([data-scene=studio],[data-scene=solittari]) .story-still { padding:0; background:var(--surface) }
.story-scene:is([data-scene=studio],[data-scene=solittari]) .story-still img { width:100%; max-height:62svh; object-fit:contain }
.scene-reading { min-width:0 }
.story-signature { display:flex; align-items:center; flex-wrap:wrap; gap:.6rem .95rem; margin-bottom:clamp(14px,2.2vh,26px) }
.scene-type { font-size:clamp(.78rem,1vw,.98rem); font-weight:640; line-height:1.35; color:var(--category) }
.studio-brand { display:inline-flex; align-items:center; justify-content:center; max-width:132px; height:39px; padding:6px 10px; border-radius:2px; background:var(--paper) }
.aperture-act .studio-brand { background:white; box-shadow:inset 0 0 0 1px #d8e1e7 }
.studio-brand.sports { height:42px; padding:4px 6px }
.studio-brand img { width:auto; height:auto; max-height:100%; max-width:100%; object-fit:contain }
.scene-title { font:510 clamp(3.5rem,5.6vw,6.75rem)/1.04 Sora,Manrope,sans-serif; letter-spacing:-.075em }
.scene-title>span { display:block }
.title-ending { color:var(--accent) }
.scene-title:lang(ar) { font:580 clamp(2.95rem,5.2vw,6rem)/1.3 "Noto Sans Arabic",sans-serif; letter-spacing:-.028em }
.scene-summary { color:var(--body); max-width:40ch; font-size:clamp(1rem,1.24vw,1.22rem); line-height:1.55; margin-top:clamp(.92rem,1.7vw,1.45rem); text-wrap:pretty }
.scene-summary:lang(ar) { line-height:1.68 }
.scene-links { margin-top:clamp(1.1rem,2vw,1.8rem) }
.story-link { display:inline-flex; align-items:center; justify-content:center; gap:.72em; padding:.62rem 1.24rem; min-height:44px; border-radius:80px; text-decoration:none; background:var(--paper); color:var(--navy); font-size:clamp(.86rem,1vw,1rem); line-height:1.35; font-weight:700 }
.story-link:hover { background:#9ce9ee; color:var(--navy) }
.aperture-act .story-link { color:#fff; background:var(--blue) }
.aperture-act .story-link:hover { background:var(--navy) }
.story-link b { font-size:1.1em; line-height:1 }
[dir=rtl] .story-link b,[dir=rtl] .transport-controls button span { transform:scaleX(-1) }
.orbit-act .story-link:focus-visible,.story-transport button:focus-visible { outline-color:var(--cyan) }

/* Each section is its own sticky canvas. Its end pushes it off the screen as
   the next section comes up in normal document flow. */
.story-live .story { padding-bottom:var(--controls-h) }
.story-live .story-act { position:relative; height:var(--act-travel) }
.story-live .story-shell { position:sticky; top:var(--header-h); height:calc(100svh - var(--header-h) - var(--controls-h)); overflow:clip; isolation:isolate }
.story-live .story-body { height:100%; min-height:0; display:grid; grid-template-rows:minmax(0,1fr); grid-template-columns:minmax(0,41fr) minmax(0,59fr); grid-template-areas:"copy image"; align-items:stretch; padding-inline-start:var(--gutter) }
.story-live .orbit-act .story-shell { background:radial-gradient(ellipse at 66% 37%,#123452 0%,#09233e 34%,var(--navy) 73%) }
.story-live .aperture-act .story-body { grid-template-columns:minmax(0,58fr) minmax(0,42fr); grid-template-areas:"image copy"; padding-inline:0 var(--gutter); column-gap:clamp(20px,4vw,92px) }
.story-live .story-visual { display:block; position:relative; grid-area:image; min-width:0; min-height:0 }
.art-host { width:100%; height:100%; position:relative }
.story-live .story-text { grid-area:copy; display:grid; grid-template:100% / minmax(0,1fr); height:var(--copy-room,330px); align-self:center; overflow:clip; overflow-clip-margin:4px; min-height:0; min-width:0 }
.story-live .story-scene { grid-area:1/1; display:flex; align-items:center; padding:0; border:0; min-height:0; min-width:0; opacity:0; visibility:hidden; pointer-events:none }
.story-live .story-scene[data-show] { visibility:visible; opacity:1 }
.story-live .story-scene[data-interactive] { pointer-events:auto }
.story-live .scene-reading { width:100% }
.story-live .story-still,.story-live .site-foot { display:none }
.story-transport { position:fixed; z-index:50; inset:auto 0 0; height:var(--controls-h); padding:0 var(--gutter) env(safe-area-inset-bottom); display:flex; align-items:center; gap:clamp(1rem,2.2vw,2.6rem); color:#d8e6ef; background:var(--navy); border-top:1px solid #39536a; font-size:.79rem; font-weight:650 }
.scroll-cue { display:inline-flex; align-items:center; gap:.65em; white-space:nowrap }
.scroll-cue b { color:var(--cyan) }
.transport-track { height:2px; background:#3f5971; flex:1 }
.transport-track>div { height:100%; background:var(--cyan); transform-origin:0 50%; transform:scaleX(var(--scroll-fraction,0)) }
[dir=rtl] .transport-track>div { transform-origin:100% 50% }
.transport-controls { display:flex; align-items:center; gap:.1rem }
.transport-controls button { background:transparent; border:0; color:var(--paper); display:grid; place-items:center; width:44px; height:44px; font-size:1.3rem }
.transport-controls button:disabled { opacity:.33; cursor:default }
.story-count { min-width:3em; font-size:.81rem; text-align:center; white-space:nowrap; font-variant-numeric:tabular-nums; direction:ltr }
@media (min-width:761px) and (max-width:1100px) {
  .scene-title { font-size:clamp(2.7rem,5.9vw,4rem) }
  .scene-title:lang(ar) { font-size:clamp(2.55rem,5.1vw,3.7rem) }
  .scene-summary { font-size:.98rem }
}
@media(max-width:760px) and (orientation:portrait) {
  .home-page { --controls-h:calc(44px + env(safe-area-inset-bottom)) }
  .story-scene { display:flex; flex-direction:column; align-items:stretch; padding-block:2rem; gap:1.3rem }
  .story-still img { max-height:49svh }
  .scene-title { font-size:clamp(2.38rem,10vw,4.25rem) }
  .scene-title:lang(ar) { font-size:clamp(2.15rem,8.65vw,3.7rem); line-height:1.27 }
  .story-signature { margin-bottom:.58rem; gap:.54rem .72rem }
  .studio-brand { height:28px; max-width:98px; padding:4px 7px }
  .studio-brand.sports { height:30px; padding:3px 5px }
  .scene-type { font-size:.76rem }
  .scene-summary { font-size:clamp(.92rem,3.7vw,1.05rem); margin-top:.7rem; line-height:1.48 }
  .scene-links { margin-top:.85rem }
  .story-live .story-act .story-body { padding:0; gap:0; grid-template-areas:"image" "copy"; grid-template-columns:100%; grid-template-rows:minmax(0,1fr) auto }
  .story-live .story-text { min-height:var(--copy-room,255px); margin-inline:var(--gutter) }
  .story-live .story-scene { display:flex; flex-direction:row; align-items:flex-start; padding-block-start:12px }
  .story-transport { font-size:.71rem; gap:.7rem }
  .story-count { font-size:.74rem }
}
@media(max-width:760px) and (max-height:680px) and (orientation:portrait) {
  .scene-title { font-size:clamp(1.95rem,8.2vw,3.1rem) }
  .scene-title:lang(ar) { font-size:clamp(1.91rem,7.55vw,2.8rem); line-height:1.21 }
  .scene-summary { font-size:.86rem; margin-top:.4rem; line-height:1.43 }
  .scene-summary:lang(ar) { line-height:1.51 }
  .scene-links { margin-top:.5rem }
  .story-signature { margin-bottom:.32rem }
  .scene-type { font-size:.69rem }
  .story-link { font-size:.78rem; padding:.45rem .9rem; min-height:40px }
}
@media(orientation:landscape) and (max-height:580px) {
  .home-page { --controls-h:36px }
  .story-live .story-body { padding-inline-start:3vw }
  .story-live .aperture-act .story-body { gap:3vw; padding-inline-end:3vw }
  .scene-title,.scene-title:lang(ar) { font-size:clamp(1.7rem,4.2vw,2.9rem) }
  .story-signature { min-height:20px; margin-bottom:.3rem; gap:.45rem }
  .studio-brand,.studio-brand.sports { height:23px; padding:3px 5px }
  .scene-type { font-size:.68rem }
  .scene-summary { font-size:.82rem; line-height:1.4; margin-top:.4rem }
  .scene-summary:lang(ar) { line-height:1.5 }
  .scene-links { margin-top:.4rem }
  .story-link { font-size:.75rem; min-height:36px; padding:.4rem .83rem }
  .transport-controls button { height:34px }
}
