/* ============================================================
   HOUSTON YOGIS — scenes.css  (scroll scenes, 2026-11-15)
   A layer over style.css and each article's article.css. It only
   takes effect when scenes.js has run (html.has-scenes); without
   the script every page reads exactly as it did before.
   Uses the tokens style.css defines on :root.
   ============================================================ */

/* A scene: a picture that holds still on the screen while words pass over it. */
.scene {
  position: relative;
  width: var(--scene-vw, 100vw);
  margin-left: calc(50% - var(--scene-vw, 100vw) / 2);
}
.scene-bg {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--color-dark);
}
/* --focus: which part of a wide clip survives the crop on an upright phone (set per clip in scenes.js) */
.scene-bg video {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--focus, 50% 50%);
}
.scene-bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,24,18,.30), rgba(15,24,18,.62));
}
.scene-light .scene-bg::after {
  background: linear-gradient(180deg, rgba(15,24,18,.12), rgba(15,24,18,.50));
}
.scene-body {
  position: relative;
  margin-top: -100vh; margin-top: -100svh;
  padding: 0 20px;
}

/* The opening scene carries the article's own headline block. */
.scene-open .scene-body {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 11vh;
}
.has-scenes .scene-open .feature-head { margin: 0 auto; max-width: 46rem; }
.has-scenes .scene-open .feature-kicker { color: #EBCBA8; }
.has-scenes .scene-open .feature-title {
  color: #fff; text-wrap: balance;
  text-shadow: 0 2px 26px rgba(0,0,0,.5);
}
.has-scenes .scene-open .feature-dek,
.has-scenes .scene-open .feature-byline {
  color: #F3EEE4; text-shadow: 0 1px 14px rgba(0,0,0,.6);
}
.scene-cue {
  font-family: var(--font-meta); font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; text-align: center;
  color: #fff; opacity: .8; margin-top: 1.6rem;
}

/* A chapter scene carries one section heading. */
.scene-chapter .scene-body { padding-top: 34vh; padding-bottom: 88vh; }
.has-scenes .feature-body .scene-chapter h2 {
  margin: 0 auto; max-width: 14em; text-align: center;
  font-style: italic; font-size: clamp(2rem, 7.5vw, 3.2rem); line-height: 1.15;
  color: #fff; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,.6);
}
.has-scenes .feature-body .scene-chapter { margin-top: 2.6rem; margin-bottom: 2.4rem; }

/* The band at the top of a teacher's page. */
.scene-band .scene-bg { position: relative; height: 62vh; height: 62svh; min-height: 320px; }
.has-scenes .scene-band + .page-wrap { padding-top: 0 !important; }
.has-scenes .scene-band + .page-wrap .prof-avatar {
  margin-top: -58px; position: relative;
  box-shadow: 0 0 0 5px var(--color-bg), 0 10px 30px rgba(0,0,0,.5);
}

/* The homepage: the hero's words on a full-screen clip. */
.has-scenes .scene-home { margin-bottom: 88px; }
.has-scenes .scene-home .hero { padding: 0; }
.has-scenes .scene-home .hero-image { display: none; }
.has-scenes .scene-home .hero-kicker { color: #EBCBA8; }
.has-scenes .scene-home .hero-headline {
  color: #fff; max-width: 18ch; text-wrap: balance;
  font-size: clamp(2.3rem, 8vw, 4.2rem);
  text-shadow: 0 2px 26px rgba(0,0,0,.5);
}
.has-scenes .scene-home .hero-excerpt { color: #F3EEE4; text-shadow: 0 1px 14px rgba(0,0,0,.6); }
.has-scenes .scene-home .cta-button.solid { background: #fff; border-color: #fff; color: var(--color-bg); }
.has-scenes .scene-home .cta-button.solid:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); }

/* The membership quote passes over its own clip. */
.scene-quote .scene-body { padding-top: 30vh; padding-bottom: 70vh; }
.has-scenes .scene-quote .membership-block { background: transparent; border: 0; color: #fff; padding: 0 4px; text-shadow: 0 2px 22px rgba(0,0,0,.6); }
.has-scenes .scene-quote .membership-block .section-kicker { color: #EBCBA8; }
.has-scenes .scene-quote .membership-block .membership-sub { color: #F3EEE4; font-size: .86rem; }

/* The explore tiles carry stills from the same footage. */
.has-scenes .explore-tile .tile-wash { background-size: cover; background-position: center; }
.has-scenes .explore-tile:nth-child(1) .tile-wash { background-image: url(assets/loops/aisha-class.jpg); background-position: 92% 50%; }
.has-scenes .explore-tile:nth-child(2) .tile-wash { background-image: url(assets/loops/nahnah-willow-bowls.jpg); background-position: 17% 50%; }
.has-scenes .explore-tile:nth-child(3) .tile-wash { background-image: url(assets/loops/aisha-fold.jpg); }
.has-scenes .explore-tile .tile-overlay {
  background: linear-gradient(to top, rgba(27,43,31,.86) 0%, rgba(27,43,31,.28) 60%, rgba(27,43,31,.12) 100%);
}

/* A list or info page (Journal, Calendar, Guides, Join and the rest): its heading on a band. */
.has-scenes .journal-main { padding-top: 0; }
.scene-page .scene-bg { height: max(60vh, 360px); height: max(60svh, 360px); }
.scene-page .scene-body {
  margin-top: calc(-1 * max(60vh, 360px)); margin-top: calc(-1 * max(60svh, 360px));
  min-height: max(60vh, 360px); min-height: max(60svh, 360px);
  display: flex; flex-direction: column; justify-content: center;
  margin-bottom: 40px; text-align: center;
  padding-top: var(--bar-h, 0px);          /* the bar floats over the top of the band */
  text-shadow: 0 2px 22px rgba(0,0,0,.6);
}
/* words sit mid-picture here, so the veil is heavier than on a full-screen scene */
.scene-page .scene-bg::after { background: linear-gradient(180deg, rgba(15,24,18,.36), rgba(15,24,18,.60)); }
.has-scenes .scene-page .journal-header { margin-bottom: 0; }
.has-scenes .scene-page .section-kicker,
.has-scenes .scene-page .page-kicker { color: #EBCBA8; }
.has-scenes .scene-page .section-heading,
.has-scenes .scene-page .page-title {
  color: #fff; margin-bottom: 0; text-wrap: balance;
  font-size: clamp(2.2rem, 8vw, 3.4rem); line-height: 1.15;
}
.has-scenes .scene-page.scene-long .page-title {
  font-size: clamp(1.7rem, 6vw, 2.6rem); max-width: 20ch; margin-left: auto; margin-right: auto;
}
.has-scenes .scene-page .journal-subtitle { color: #F3EEE4; }

/* Pause control: moving pictures can always be stopped. */
.scene-pause {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  font-family: var(--font-meta); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: rgba(15,24,18,.55);
  border: 1px solid rgba(255,255,255,.45); border-radius: 999px;
  padding: 8px 14px; min-height: 36px; cursor: pointer;
}
.scene-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* The article opens on the scene, so the paper starts lower. */
.has-scenes .feature { padding-top: 0; }
.has-scenes .feature .feature-hero { margin-top: 2.5rem; }

/* Stills and pull quotes rise into place. */
.has-scenes .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.has-scenes .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .has-scenes .reveal { opacity: 1; transform: none; transition: none; }
}
@media print {
  .scene-bg, .scene-cue, .scene-pause { display: none; }
  .scene-body { margin-top: 0; padding: 0; min-height: 0; }
  .has-scenes .scene-open .feature-title, .has-scenes .feature-body .scene-chapter h2 { color: #000; text-shadow: none; }
}
