/* SHADHLI / Mobile scene composition v3. Desktop stays on story.css unchanged. */
@media (max-width: 720px) {
  :root { --sh-cream:#ede2d2; --sh-ink:#31251d; }
  .film-journey { height: 420svh; min-height:0; }
  .film-sticky { height:100svh; min-height:0; background:var(--sh-cream); overflow:hidden; }
  /* Keep the movie full-size, rather than shrinking the whole last frame. */
  .film-poster,.film-canvas,
  .film-sticky[data-active="4"] .film-poster,
  .film-sticky[data-active="4"] .film-canvas {
    position:absolute; top:72px; bottom:0; left:0; right:0;
    inset:72px 0 0; width:100%; height:calc(100% - 72px);
    transform:none; transition:none;
  }
  .film-poster img {width:100%;height:100%;object-fit:cover;object-position:50% 48%;}
  .film-sticky[data-active="0"] .film-poster,
  .film-sticky[data-active="0"] .film-canvas,
  .film-sticky[data-active="1"] .film-poster,
  .film-sticky[data-active="1"] .film-canvas {transform:none;}
  .reading-gradient,html[lang="ar"] .reading-gradient,
  .film-sticky[data-active="4"] .reading-gradient,
  html[lang="ar"] .film-sticky[data-active="4"] .reading-gradient {
     inset:0; width:100%; height:100%; pointer-events:none;
     transition:none; background:linear-gradient(180deg,
       rgba(237,226,210,.48) 0%, transparent 18%, transparent 48%,
       rgba(237,226,210,.12) 56%,rgba(237,226,210,.82) 72%,
       #ede2d2 93%);
  }
  /* Ground coffee: the lower part of the film stays visible while the copy uses the empty upper region. */
  .film-sticky[data-active="1"] .reading-gradient,
  html[lang="ar"] .film-sticky[data-active="1"] .reading-gradient,
  .film-sticky[data-active="3"] .reading-gradient,
  html[lang="ar"] .film-sticky[data-active="3"] .reading-gradient {
    background:linear-gradient(to bottom,
      #ede2d2 0%,rgba(237,226,210,.99) 13%,rgba(237,226,210,.84) 27%,
      rgba(237,226,210,.21) 44%, transparent 59%, transparent 100%);
  }
  /* The final cup is the first half of the composition; kiosk details rise from a soft gradient. */
  .film-sticky[data-active="4"] .reading-gradient,
  html[lang="ar"] .film-sticky[data-active="4"] .reading-gradient {
    background:linear-gradient(to bottom,
      rgba(237,226,210,.13) 0%,transparent 21%,transparent 39%,
      rgba(237,226,210,.74) 52%,rgba(237,226,210,.98) 64%,
      #ede2d2 78%,#ede2d2 100%);
  }
  .chapter-region {position:absolute;inset:0;z-index:4;pointer-events:none;}
  .chapter, .chapter-4 {
    position:absolute;inset:0;top:0;bottom:0;left:0;right:0;
    min-height:0;height:100%;width:100%;
    display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;
    padding:80px 23px calc(32px + env(safe-area-inset-bottom,0px));
    transform:none;transition:none!important;pointer-events:none;
  }
  .chapter.is-active {opacity:1;visibility:visible;transform:none;animation:none;pointer-events:none;}
  .chapter:not(.is-active) {opacity:0;visibility:hidden;animation:none;pointer-events:none;}
  .chapter-content,.chapter-4 .chapter-content {
    flex:none;width:100%;max-width:520px;margin:0 auto;pointer-events:auto;
  }
  /* Every scene has its own editorial position. No universal top/bottom caption. */
  .chapter-0 {justify-content:flex-end;padding-bottom:calc(40px + env(safe-area-inset-bottom,0px));}
  .chapter-1,.chapter-3 {justify-content:flex-start;padding-top:calc(102px + env(safe-area-inset-top,0px));}
  .chapter-2 {justify-content:flex-end;padding-bottom:calc(46px + env(safe-area-inset-bottom,0px));}
  .chapter-4 {justify-content:flex-end;padding:74px 21px calc(13px + env(safe-area-inset-bottom,0px));}
  .chapter-eyebrow {font-size:10px;margin:0 0 7px;letter-spacing:.1em;font-weight:700;}
  .chapter h1,.chapter h2 {font-size:clamp(39px,10.2vw,47px);line-height:.96;max-width:355px;margin:0 0 11px;letter-spacing:-.035em;}
  .chapter-description {font-size:clamp(13px,3.55vw,15px);line-height:1.48;max-width:330px;margin:0 0 13px;color:#45382f;}
  .pill-cta {min-height:43px;padding:11px 19px;font-size:12px;gap:13px;}
  .small-cta {font-size:12px;line-height:1.5;display:inline-flex;padding:0 0 5px;}
  html[lang="ar"] .chapter h1,html[lang="ar"] .chapter h2 {
    font-size:clamp(33px,8.5vw,39px);line-height:1.27;letter-spacing:0;max-width:355px;margin:0 0 9px;
  }
  html[lang="ar"] .chapter-description {font-size:clamp(13px,3.65vw,15px);line-height:1.57;max-width:360px;margin-bottom:12px;}
  /* Arabic, like English, uses the natural eye line. We never mirror photographs on mobile. */
  html[lang="ar"] .chapter-content {margin-inline:auto;text-align:start;}
  .chapter-4 .chapter-content {max-width:480px;}
  .chapter-4 .chapter-eyebrow {margin-bottom:3px;}
  .chapter-4 h2 {font-size:clamp(29px,7.7vw,36px);line-height:1.04;max-width:365px;margin:0 0 6px;}
  .chapter-4 .chapter-description {font-size:12.5px;line-height:1.43;margin:0 0 11px;max-width:380px;}
  html[lang="ar"] .chapter-4 h2 {font-size:clamp(26px,7vw,33px);line-height:1.24;margin:0 0 5px;}
  html[lang="ar"] .chapter-4 .chapter-description {font-size:12.5px;line-height:1.5;margin:0 0 9px;max-width:390px;}
  .visit-details {display:grid;grid-template-columns:1fr 1fr;gap:9px 16px;max-width:460px;}
  .detail {gap:2px;min-width:0;}
  .detail:nth-child(3) {grid-column:span 2;}
  .detail span {font-size:10px;line-height:1.35;letter-spacing:.07em;}
  .detail strong {font-size:12px;line-height:1.37;overflow-wrap:anywhere;}
  html[lang="ar"] .detail strong {font-size:12px;line-height:1.46;}
  .visit-actions {margin:10px 0 5px;gap:8px 13px;}
  .visit-actions .pill-cta {padding:10px 15px;min-height:39px;font-size:11.5px;}
  .phone-link {font-size:12px;}
  .hours-note {font-size:10px;line-height:1.4;}
  .scroll-hint,.whatsapp-float {display:none;}
  .subtle-progress {height:3px;}
}
/* Short phones: keep tappable CTAs and readable opening hours, reduce only decoration. */
@media (max-width:720px) and (max-height:740px){
  .chapter-0 {padding-bottom:22px;}
  .chapter-1,.chapter-3 {padding-top:88px;}
  .chapter-2 {padding-bottom:22px;}
  .chapter h1,.chapter h2 {font-size:clamp(35px,9.8vw,41px);margin-bottom:7px;}
  .chapter-description {font-size:12px;line-height:1.39;margin-bottom:8px;}
  html[lang="ar"] .chapter h1,html[lang="ar"] .chapter h2 {font-size:clamp(30px,8vw,35px);margin-bottom:6px;}
  html[lang="ar"] .chapter-description {font-size:12px;line-height:1.43;margin-bottom:8px;}
  .chapter-4 {padding:70px 17px calc(9px + env(safe-area-inset-bottom,0px));}
  .chapter-4 .chapter-eyebrow {display:none;}
  .chapter-4 h2 {font-size:28px;line-height:1.05;margin-bottom:5px;}
  html[lang="ar"] .chapter-4 h2 {font-size:25px;line-height:1.20;margin-bottom:4px;}
  .chapter-4 .chapter-description,html[lang="ar"] .chapter-4 .chapter-description {font-size:11.5px;line-height:1.34;margin-bottom:6px;}
  .visit-details {gap:5px 10px;}
  .detail strong,html[lang="ar"] .detail strong {font-size:11px;line-height:1.28;}
  .detail span {font-size:9px;}
  .visit-actions {margin:7px 0 4px;}
  .visit-actions .pill-cta {min-height:37px;padding:8px 13px;}
  .hours-note {display:none;}
}
@media (max-width:375px){
  .chapter {padding-left:19px;padding-right:19px;}
  .chapter-4 {padding-left:15px;padding-right:15px;}
  .chapter h1,.chapter h2 {font-size:36px;}
  html[lang="ar"] .chapter h1,html[lang="ar"] .chapter h2 {font-size:30px;}
  .chapter-4 h2 {font-size:27px;}
  html[lang="ar"] .chapter-4 h2 {font-size:25px;}
}
@media (max-width:720px) and (max-height:620px){
  .chapter-4 .chapter-description {display:none;}
  .chapter-4 h2 {font-size:25px;}
  html[lang="ar"] .chapter-4 h2 {font-size:23px;}
  .detail strong,html[lang="ar"] .detail strong{font-size:10.5px;}
  .chapter-4 .visit-actions {margin-top:4px;}
}
/* Final art direction: remove the unnecessary beige void between latte and kiosk copy. */
@media (max-width:720px) and (min-height:741px) {
  .chapter-4 h2 {font-size:clamp(32px,8.2vw,38px);line-height:1.07;margin-bottom:8px;}
  .chapter-4 .chapter-description {font-size:13.5px;line-height:1.5;margin-bottom:12px;}
  .visit-details {gap:11px 16px;}
  .detail strong {font-size:12.6px;}
  .visit-actions {margin:12px 0 7px;}
  html[lang="ar"] .chapter-4 h2 {font-size:clamp(35px,9.2vw,40px);max-width:310px;line-height:1.22;margin-bottom:8px;}
  html[lang="ar"] .chapter-4 .chapter-description {font-size:13.5px;line-height:1.56;margin-bottom:11px;}
  html[lang="ar"] .visit-details {gap:12px 16px;}
  html[lang="ar"] .detail strong {font-size:12.7px;line-height:1.53;}
  html[lang="ar"] .visit-actions {margin:13px 0 7px;}
}
@media (max-width:720px) and (max-height:740px) {
  html[lang="ar"] .chapter-4 h2 {max-width:265px;}
}
@media (max-width:720px) and (max-height:740px) {
  html[lang="ar"] .chapter-4 h2 {max-width:225px;}
}
