/* ============================================================
   HOUSTON YOGIS — 0001/slides.css
   The first feature, "Coming to Houston Yogis": a walk-through of full-screen
   scenes. Loaded AFTER ../style.css; nothing in style.css changes, so every
   other page is untouched.

   ALL look decisions are in the two token blocks below (type + ink + motion,
   then one color set per tone). A different visual direction is a change of
   VALUES there, not a rewrite. Words never animate: motion is only ever on the
   washes, the logo mark and the poster, and every bit of it is off under
   prefers-reduced-motion. With scripts off the scenes simply stack.
   ============================================================ */

/* ── TOKENS ───────────────────────────────────────────────── */
:root {
  --sl-display: var(--font-display);
  --sl-body:    var(--font-body);
  --sl-meta:    var(--font-meta);

  --sl-ink:      #F7F3EC;                 /* text on a dark scene   */
  --sl-ink-soft: rgba(247, 243, 236, 0.86);
  --sl-accent:   #E7B07A;                 /* kicker + rule, dark    */

  --sl-dur:  0.8s;                        /* the one entrance, < 1 s */
  --sl-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* One tone per scene. base = the floor color, glow = the big bloom, warm = the corner light. */
.tone-forest { --wash-base: #12271B; --wash-glow: #2F6B47; --wash-warm: #B5723A; }
.tone-pool   { --wash-base: #061A2C; --wash-glow: #0F6F93; --wash-warm: #1CC0D8; }
.tone-amber  { --wash-base: #2B170B; --wash-glow: #B8641F; --wash-warm: #E9A23B; }
.tone-plum   { --wash-base: #1A1226; --wash-glow: #6A3A8C; --wash-warm: #D96BA0; }
.tone-sage   { --wash-base: #16241A; --wash-glow: #5C8556; --wash-warm: #C9D8A8; }
.tone-clay   { --wash-base: #2C130C; --wash-glow: #A93F22; --wash-warm: #E58A4E; }
.tone-rose   { --wash-base: #2A1019; --wash-glow: #A02F5E; --wash-warm: #F08CA6; }
.tone-indigo { --wash-base: #0E1232; --wash-glow: #3342A6; --wash-warm: #8FA0FF; }
.tone-garden { --wash-base: #0F2817; --wash-glow: #3F8A41; --wash-warm: #D6E26A; }
.tone-close  { --wash-base: #12271B; --wash-glow: #A9662F; --wash-warm: #E7B07A; }
/* the one light scene, for rhythm: dark ink on warm paper */
.tone-paper  { --wash-base: #F3EADB; --wash-glow: #E3B98A; --wash-warm: #D9A06B;
               --ink: #1B2B1F; --ink-soft: #3A4238; --accent: #6B3410; }


/* ── PAGE ─────────────────────────────────────────────────── */
/* style.css gives every <main> a 1160px column; these scenes run edge to edge. */
main.scenes { max-width: none; padding: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.print-only { display: none; }

html.js { scroll-snap-type: y proximity; }
/* The masthead above the first scene and the footer below the last are snap points too, so the page can come to
   rest at the very top (the site navigation) and the very bottom (the footer links). Without them, proximity
   snapping pulls every resting place onto a scene and the header is out of reach. */
.js .masthead { scroll-snap-align: start; }
.js .site-footer { scroll-snap-align: end; }


/* ── SCENE ────────────────────────────────────────────────── */
.scene {
  --ink:      var(--sl-ink);
  --ink-soft: var(--sl-ink-soft);
  --accent:   var(--sl-accent);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(72px, 12vh, 140px) clamp(24px, 7vw, 112px);
  background: var(--wash-base);
  color: var(--ink);
}
.js .scene { scroll-snap-align: start; }
.scene--first { min-height: calc(100vh - 230px); min-height: calc(100svh - 230px); }

/* tone-paper sets --ink etc. itself; keep it after .scene so it wins */
.tone-paper { --ink: #1B2B1F; --ink-soft: #3A4238; --accent: #6B3410; }

.scene-inner {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.scene--split .scene-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }

/* the bloom: two soft lights on the floor color */
.scene-wash {
  position: absolute; inset: -10%; z-index: -2;
  background:
    radial-gradient(58% 52% at 80% 28%, color-mix(in srgb, var(--wash-glow) 62%, transparent), transparent 72%),
    radial-gradient(48% 48% at 10% 92%, color-mix(in srgb, var(--wash-warm) 30%, transparent), transparent 74%);
}

/* the Cadenza Arthouse master mark, tinted by the tone, drifting slowly (--p is set by slides.js) */
.scene-mark {
  position: absolute; z-index: -1;
  right: -7vw; top: 50%;
  width: min(66vmin, 700px);
  aspect-ratio: 2060 / 1000;
  background-color: var(--wash-warm);
  -webkit-mask: url(../assets/logo.png) center / contain no-repeat;
          mask: url(../assets/logo.png) center / contain no-repeat;
  opacity: 0.17;
  transform: translate3d(0, calc(-50% + var(--p, 0) * -56px), 0);
}
.scene:nth-of-type(even) .scene-mark { right: auto; left: -7vw; }


/* ── TYPE ─────────────────────────────────────────────────── */
.scene-body { position: relative; max-width: 46rem; }

.scene-kicker {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  font: 700 0.9rem/1 var(--sl-meta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.scene-folio { opacity: 0.85; }
.scene-kicker::after {                          /* a short rule that draws in */
  content: ''; flex: 0 0 56px; height: 1px; background: currentColor;
  transform-origin: left center;
}

.scene-title {
  margin: 0 0 24px;
  font-family: var(--sl-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.6rem, 8.2vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}
.scene--first .scene-title { font-size: clamp(3rem, 10.5vw, 8.4rem); }

.scene-line {
  margin: 0 0 34px;
  max-width: 34em;
  font: 400 clamp(1.2rem, 2.2vw, 1.5rem)/1.55 var(--sl-body);
  color: var(--ink-soft);
}

.scene-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }

.scene-btn {
  display: inline-block;
  padding: 18px 30px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--wash-base);
  font: 700 0.86rem/1 var(--sl-meta);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.scene-btn:hover, .scene-btn:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--wash-base); }
.scene-btn--ghost { background: transparent; color: var(--ink); }
.scene-btn--ghost:hover, .scene-btn--ghost:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--wash-base); }
.tone-paper .scene-btn:hover, .tone-paper .scene-btn:focus-visible { color: #fff; }
.scene a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.scene:focus { outline: none; }                  /* the arrow keys focus a scene (slides.js) so Tab continues from it; it is not a control */


/* ── MEDIA: the posters, the channel card, the plates ── */
.scene-media { position: relative; min-width: 0; }

.reel {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 18px; background: #000;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.reel-poster { position: absolute; inset: 0; display: block; }
.reel-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--sl-ease); }
.reel-poster:hover img { transform: scale(1.03); }
.reel-play {
  position: absolute; left: 50%; top: 50%;
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  display: grid; place-items: center;
  border-radius: 50%; background: rgba(247, 243, 236, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.reel-play::before {
  content: ''; margin-left: 6px;
  border-left: 24px solid #061A2C;
  border-top: 15px solid transparent; border-bottom: 15px solid transparent;
}

.tv {                                            /* the channel: a test card, television first */
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px;
  display: grid; grid-template-rows: 3fr 1fr;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.tv-bars  { display: grid; grid-template-columns: repeat(7, 1fr); }
.tv-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.tv-bars i:nth-child(1) { background: #E8E2D3; } .tv-bars i:nth-child(2) { background: #E5C872; }
.tv-bars i:nth-child(3) { background: #6FC2C0; } .tv-bars i:nth-child(4) { background: #7FBF7A; }
.tv-bars i:nth-child(5) { background: #C46FB0; } .tv-bars i:nth-child(6) { background: #C9604A; }
.tv-bars i:nth-child(7) { background: #4A5DB0; }
.tv-strip i:nth-child(1) { background: #1B2B1F; } .tv-strip i:nth-child(2) { background: #F7F3EC; }
.tv-strip i:nth-child(3) { background: #3A2547; } .tv-strip i:nth-child(4) { background: #0B0B0B; }

.plates { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.plates li {
  padding: clamp(20px, 3vw, 34px);
  border-radius: 18px;
  background: color-mix(in srgb, var(--wash-base) 88%, #fff 8%);
  box-shadow: inset 0 0 0 1px rgba(247, 243, 236, 0.2);
}
.plate-label { display: block; margin-bottom: 10px; font: 700 0.78rem/1 var(--sl-meta); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.plate-name  { display: block; font: italic 600 clamp(1.8rem, 4.4vw, 3.2rem)/1.05 var(--sl-display); letter-spacing: -0.01em; }


/* ── SCENE DOTS: where you are, and a way to jump (real links, so they work without scripts) ── */
.scene-dots {
  position: fixed; right: 8px; top: 50%; z-index: 20;
  display: flex; flex-direction: column; gap: 2px;
  transform: translateY(-50%);
  mix-blend-mode: difference;                    /* readable on the dark scenes and the one light one */
}
.scene-dots a { display: grid; place-items: center; width: 24px; height: 24px; }
.scene-dots a::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid #fff; transition: transform 0.2s, background 0.2s;
}
.scene-dots a[aria-current="true"]::before { background: #fff; transform: scale(1.3); }


/* ── ENTRANCE (scripts on only; every scene is complete without it) ── */
.js .scene .scene-wash {
  opacity: 0; transform: scale(1.08);
  transition: opacity var(--sl-dur) var(--sl-ease), transform 1.2s var(--sl-ease);
}
.js .scene.is-in .scene-wash { opacity: 1; transform: none; }
.js .scene .scene-mark { opacity: 0; transition: opacity var(--sl-dur) var(--sl-ease) 0.1s; }
.js .scene.is-in .scene-mark { opacity: 0.17; }
.js .scene .scene-kicker::after { transform: scaleX(0); transition: transform 0.7s var(--sl-ease) 0.15s; }
.js .scene.is-in .scene-kicker::after { transform: scaleX(1); }
/* the media wipes in once (never the words, and not the plates, which carry names). The end shape is
   deliberately larger than the box so it does not clip the box-shadow. */
.js .scene .reel, .js .scene .tv {
  clip-path: inset(0 100% 0 0 round 18px);
  transition: clip-path 0.7s var(--sl-ease) 0.15s;
}
.js .scene.is-in .reel, .js .scene.is-in .tv { clip-path: inset(-90px round 18px); }


/* ── SMALL SCREENS ────────────────────────────────────────── */
@media (max-width: 880px) {
  .scene { padding-right: 44px; }               /* clear the dots */
  .scene--split .scene-inner { grid-template-columns: minmax(0, 1fr); }
  .scene-mark { width: 86vmin; right: -22vw; }
  .scene:nth-of-type(even) .scene-mark { left: -22vw; }
}
@media (max-height: 480px) { .scene-dots { display: none; } }


/* ── REDUCED MOTION: nothing moves, nothing is hidden waiting to move ── */
@media (prefers-reduced-motion: reduce) {
  html.js { scroll-snap-type: none; scroll-behavior: auto; }
  .js .scene .scene-wash,
  .js .scene .scene-mark,
  .js .scene .scene-kicker::after,
  .js .scene .reel, .js .scene .tv,
  .reel-poster img,
  .scene-dots a::before,
  .scene-btn { transition: none; }
  .js .scene .scene-wash { opacity: 1; transform: none; }
  .js .scene .scene-mark { opacity: 0.17; transform: translate3d(0, -50%, 0); }
  .js .scene .scene-kicker::after { transform: none; }
  .js .scene .reel, .js .scene .tv { clip-path: none; }
  .scene-mark { transform: translate3d(0, -50%, 0); }
  .reel-poster:hover img { transform: none; }
}


/* ── PRINT: the same stack scripts-off gives, in ink on paper (a handout can start here) ── */
@media print {
  .scene-dots, .scene-wash, .scene-mark, .reel-play, .tv, .masthead-nav, .masthead-search { display: none !important; }
  .scene {
    --ink: #111; --ink-soft: #333; --accent: #444;
    min-height: 0; padding: 16pt 0; overflow: visible; break-inside: avoid;
    background: #fff !important; color: #111; border-top: 1px solid #bbb;
  }
  .scene--split .scene-inner { grid-template-columns: 1fr 1fr; }
  .scene-title, .scene--first .scene-title { font-size: 24pt; }
  .scene-line { font-size: 11pt; margin-bottom: 8pt; }
  .scene-btn { padding: 4pt 8pt; border: 1px solid #111; background: none; color: #111; font-size: 8pt; }
  .js .scene .reel, .reel { clip-path: none; box-shadow: none; aspect-ratio: auto; }   /* a scene never scrolled to has not run its wipe */
  .reel-poster { position: static; }
  .reel-poster img { height: auto; max-height: 160pt; }
  .plates li { box-shadow: none; border: 1px solid #bbb; background: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; word-break: break-all; text-transform: none; letter-spacing: 0; }   /* a video ID is case-sensitive: never print it in capitals */
  .print-only { display: block; margin: 16pt 0 0; font: 9pt var(--sl-meta); color: #333; }
}
