/* The scroll-scrubbed Monday morning (gateway 166, shared by /meal-prep and /your-week since gateway 168).
   The stage follows the live viewport (dvh) so a collapsing phone address bar never shows a gap below it;
   the last tenth of the track fades the picture to the page's black so the page underneath arrives on it. */
.yw-track { height:320vh; position:relative; background:#050505; }
.yw-stage { position:sticky; top:0; height:100vh; height:100dvh; overflow:hidden; background:#050505; }
.yw-stage canvas { position:absolute; inset:0; width:100%; height:100%; display:block; }
.yw-stage video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:none; }
.yw-shade { position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 34%, rgba(0,0,0,0) 60%); pointer-events:none; }
.yw-fade { position:absolute; inset:0; background:#050505; opacity:0; pointer-events:none; }
.yw-cap { position:absolute; left:0; right:0; bottom:0; text-align:left; padding:0 1.4rem calc(4.6rem + env(safe-area-inset-bottom)); opacity:0; transform:translateY(12px); transition:opacity .45s ease, transform .45s ease; pointer-events:none; }
.yw-cap.on { opacity:1; transform:none; pointer-events:auto; }
.yw-cap .k { display:block; font-family:'Jost',sans-serif; font-size:1.15rem; letter-spacing:.34em; text-transform:uppercase; color:#e8c574; margin:0 0 .7rem; }
.yw-cap h2 { text-align:left; font-family:'Cormorant Garamond',serif; font-weight:300; font-size:clamp(3.9rem, 13vw, 6.9rem); line-height:1.02; letter-spacing:.01em; margin:0 0 .6rem; color:#fff; text-shadow:0 2px 18px rgba(0,0,0,.55); }
.yw-cap h2 em { font-family:'Rouge Script',cursive; font-style:normal; color:#e8c574; font-size:1.12em; }
.yw-cap p { margin:0; color:rgba(255,255,255,.72); font-family:'Jost',sans-serif; font-weight:300; font-size:1.55rem; line-height:1.5; max-width:30ch; text-shadow:0 1px 10px rgba(0,0,0,.6); }
.yw-cta { display:flex; flex-wrap:wrap; gap:.7rem; margin-top:1.3rem; }
.yw-cta a { display:inline-block; text-decoration:none; font-family:'Jost',sans-serif; font-size:1.2rem; letter-spacing:.2em; text-transform:uppercase; padding:1.2rem 1.9rem; border-radius:3px; }
.yw-cta .gold { background:#dba136; color:#111; font-weight:500; }
.yw-cta .ghost { border:1px solid rgba(255,255,255,.55); color:#fff; background:rgba(0,0,0,.25); backdrop-filter:blur(6px); }
.yw-hint { position:absolute; left:0; right:0; bottom:calc(.9rem + env(safe-area-inset-bottom)); text-align:center; font-family:'Jost',sans-serif; font-size:1rem; letter-spacing:.3em; text-transform:uppercase; color:rgba(255,255,255,.6); transition:opacity .4s; pointer-events:none; }
.yw-hint i { display:block; width:1px; height:22px; margin:.5rem auto 0; background:linear-gradient(to bottom, rgba(255,255,255,.7), transparent); animation:yw-drop 1.6s ease-in-out infinite; }
@keyframes yw-drop { 0% { transform:scaleY(.2); transform-origin:top; opacity:0; } 40% { transform:scaleY(1); opacity:1; } 100% { transform:scaleY(1); opacity:0; } }
.yw-hint.off { opacity:0; }
.yw-load { position:absolute; left:1.4rem; right:1.4rem; top:calc(3.4rem + env(safe-area-inset-top)); height:2px; background:rgba(255,255,255,.12); transition:opacity .5s; }
.yw-load i { display:block; height:100%; width:0; background:#dba136; transition:width .2s; }
.yw-load.off { opacity:0; }
body.cfr-pn-on .yw-cap { padding-bottom:calc(4.6rem + var(--cfr-pn-h, 0px) + env(safe-area-inset-bottom)); }   /* the cookie notice never covers the words */
body.cfr-pn-on .yw-hint { bottom:calc(.9rem + var(--cfr-pn-h, 0px) + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .yw-cap { padding:0 7vw 6rem; }
  .yw-cap p { font-size:1.8rem; max-width:40ch; }
}
/* Gateway 216: on a laptop the picture sits in the middle at full height (see your-week.js), so the words keep to the left of it */
@media (min-width: 900px) and (orientation: landscape) {
  .yw-cap { right:auto; width:26vw; }
  .yw-cap h2 { font-size:clamp(3rem, 4.6vw, 5.6rem); }
  .yw-cap p { max-width:none; font-size:clamp(1.3rem, 1.3vw, 1.8rem); }
  .yw-load { right:auto; width:26vw; }
}
@media (prefers-reduced-motion: reduce) {
  .yw-track { height:auto; }
  .yw-stage { position:relative; height:auto; aspect-ratio:9/16; max-height:100dvh; }
  .yw-stage canvas, .yw-hint, .yw-load, .yw-fade { display:none; }
  .yw-stage video { display:block; position:relative; }
  .yw-cap { position:relative; opacity:1; transform:none; padding:1.6rem 1.4rem; pointer-events:auto; }
  .yw-cap:not(.end) { display:none; }
  .yw-shade { display:none; }
}
