/* =============================================================== CHAPTERS ==
   Two states from one set of markup.
   Default (no .sc-on on <html>): the plain reading version. The still from
   each clip, then the copy, nothing hidden. This is what prefers-reduced-motion
   gets, and what the page falls back to if the engine does not load.
   .sc-on: the engine is mounted; chapters pin and scrub.                    */

/* ---- shared ---- */
.ch__band { position: relative; aspect-ratio: 16 / 9; width: 100%; background: var(--raised); overflow: clip; }
.ch__band img, .ch__band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ch__top, .ch__bot, .rail__lead, .rail__note { padding-inline: var(--gutter); }
.card { flex: 0 0 min(80vw, 26.25rem); scroll-snap-align: start; }
.card__in {
  height: 100%;
  background: var(--card);
  border: 1px solid var(--gray-1); border-radius: var(--r);
  overflow: clip;
  box-shadow: var(--sc-e2), var(--sc-edge);
  display: flex; flex-direction: column;
}
.card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card__body { padding: 1.125rem 1.25rem 1.375rem; display: flex; flex-direction: column; flex: 1; }
.card__label { font-family: var(--sc-font-display); font-size: 1.375rem; font-weight: 620; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
.card__text { margin-top: 0.5rem; margin-bottom: 1.25rem; color: var(--text-soft); font-size: 1.0625rem; line-height: 1.5; text-wrap: pretty; }
.card .redrule { margin-top: auto; }

/* Act 6: the three steps */
.steps { display: grid; gap: 2rem; }
.step { border-top: 1px solid var(--gray-1); padding-top: 1.25rem; }
.step__name { font-family: var(--sc-font-display); font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.015em; color: var(--text); }
.step .body { margin-top: 0.5rem; }

/* ---- plain reading version ---- */
html:not(.sc-on) [data-sc-cue], html:not(.sc-on) [data-sc-in], html:not(.sc-on) [data-sc-stagger] > * { opacity: 1 !important; transform: none !important; }
html:not(.sc-on) [data-sc-reveal] { clip-path: none !important; }
html:not(.sc-on) .ch { padding-top: var(--pad); }
html:not(.sc-on) .ch__stage { display: flex; flex-direction: column; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; }
html:not(.sc-on) .ch__band { order: -1; }
html:not(.sc-on) .ch__band video { display: none; }
html:not(.sc-on) .ch__top:not(:empty) { margin-top: 2rem; }
html:not(.sc-on) .after { padding-top: 1.125rem; }
html:not(.sc-on) .after > .sc-wrap { max-width: calc(var(--maxw) + 2 * var(--gutter)); }
html:not(.sc-on) .act--lead { padding-bottom: 0; }
html:not(.sc-on) .ch--steps { padding-top: 2.5rem; }
html:not(.sc-on) .ch--steps .steps { margin-top: 2.5rem; }
html:not(.sc-on) .peak { padding-block: var(--pad); }
html:not(.sc-on) .rail { display: block; }   /* the engine's rail is a flex row; not here */
html:not(.sc-on) .rail__lead, html:not(.sc-on) .rail__note { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; }
html:not(.sc-on) .rail__cards {
  margin-top: 2rem;
  display: flex; gap: 0.875rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 0.25rem var(--gutter) 1.5rem;
  scrollbar-width: none;
}
html:not(.sc-on) .rail__cards::-webkit-scrollbar { display: none; }
html:not(.sc-on) .rail__note { margin-top: 2rem; }
@media (min-width: 700px) {
  html:not(.sc-on) .ch__band { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; border-radius: var(--r); box-shadow: var(--sc-e2); }
  html:not(.sc-on) .rail__cards { gap: 1.25rem; padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); }
  /* several cards share the screen here: one red rule at most, so the rest go grey */
  html:not(.sc-on) .card:not(:first-child) .redrule { background: var(--gray-2); }
}
@media (min-width: 1000px) {
  html:not(.sc-on) .ch--steps .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  html:not(.sc-on) .ch--steps .step .body { font-size: 1rem; }
}

/* ---- chapters on ---- */
.sc-on .ch { padding: 0; }
.sc-on .ch__stage {
  display: grid; grid-template-rows: 1fr auto 1fr;
  background: var(--ground);
}
.sc-on .ch__top { align-self: end; padding-bottom: 1.25rem; }
.sc-on .ch__bot { align-self: start; padding-top: 1.25rem; }
.sc-on .after { padding-block: 2.25rem calc(var(--pad) * 0.7); }
.sc-on .act--lead { padding-bottom: 1.5rem; }

/* Act 6: the three steps share one slot under the band and cross over */
.sc-on .ch--steps .ch__stage { grid-template-rows: minmax(3.5rem, 0.45fr) auto 1fr; }
.sc-on .steps { margin: 0; gap: 0; }
.sc-on .steps .step { grid-area: 1 / 1; border: 0; padding: 0; max-width: 38rem; }
.sc-on .steps .step .body { font-size: 0.9375rem; line-height: 1.5; }

/* Wide and landscape: the clip fills the stage, copy sits on a solid plate.
   Portrait tablets keep the band layout, so the frame is never cropped there. */
@media (min-width: 1000px) and (min-aspect-ratio: 3/2) {
  .sc-on .ch__stage { display: block; }
  /* The whole 16:9 frame, as large as the screen allows, never cropped: the
     outer signs in Act 1 sit right at the frame's edges. */
  .sc-on .ch__band {
    position: absolute; left: 50%; top: 50%;
    width: min(100vw, calc(100svh * 16 / 9));
    transform: translate(-50%, -50%);
  }
  .sc-on .ch__top:not(:empty), .sc-on .steps .step {
    padding: 1.75rem 2rem;
    background: rgb(11 11 12 / 0.88);
    border: 1px solid var(--gray-1); border-radius: var(--r);
    box-shadow: var(--sc-e3);
  }
  .sc-on .ch__top:not(:empty) { position: absolute; z-index: 2; left: var(--gutter); bottom: 9vh; max-width: 36rem; }
  .sc-on .ch__top .h2 { font-size: clamp(1.75rem, 1rem + 1.6vw, 2.5rem); max-width: 20ch; }
  .sc-on .ch__top:empty { display: none; }
  .sc-on .steps { position: absolute; z-index: 2; left: var(--gutter); bottom: 5vh; width: min(44rem, 56vw); padding: 0; align-items: end; }
  .sc-on .steps .step { max-width: none; }
  .sc-on .steps .step .body { font-size: 1rem; }
  .sc-on .after > .sc-wrap { max-width: calc(46rem + 2 * var(--gutter)); }
}

/* Act 4, the peak: a rail the scroll pans sideways */
.sc-on .peak__stage { display: flex; align-items: center; background: var(--ground); }
.sc-on .rail { display: flex; align-items: stretch; gap: 1rem; padding-inline: 0 var(--gutter); }
.sc-on .rail__cards { display: contents; }
.sc-on .rail__lead { flex: 0 0 min(88vw, 36rem); align-self: center; }
.sc-on .rail__note { flex: 0 0 min(88vw, 36rem); align-self: center; padding-left: clamp(1.25rem, 3vw, 3rem); }
.sc-on .card {
  --t: 1; --f: 0;
  flex-basis: min(78vw, 25rem);
  opacity: calc(0.5 + 0.5 * var(--t));
  transform: translate3d(0, calc((1 - var(--t)) * 3.5rem), 0) scale(calc(0.94 + 0.06 * var(--t)));
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}
.sc-on .card .redrule { background: color-mix(in srgb, var(--accent) calc(var(--f) * 100%), var(--gray-2)); }
@media (min-width: 700px) { .sc-on .rail { gap: 1.5rem; } }
/* The peak is the biggest thing on the page at every width */
@media (min-width: 1000px) {
  .sc-on .rail { gap: 2rem; }
  .sc-on .card { flex-basis: clamp(27rem, 36vw, 38rem); }
  .sc-on .card__body { padding: 1.5rem 1.75rem 1.75rem; }
  .sc-on .card__label { font-size: 1.75rem; }
  .sc-on .card__text { font-size: 1.1875rem; line-height: 1.45; margin-top: 0.625rem; }
  .sc-on .rail__lead { flex-basis: min(60vw, 44rem); }
  .sc-on .rail__lead .h2 { font-size: clamp(2.25rem, 1rem + 2.6vw, 3.5rem); max-width: 16ch; }
  .sc-on .rail__note { flex-basis: min(56vw, 42rem); }
}
@media (hover: hover) and (pointer: fine) {
  .sc-on .card { filter: blur(calc((1 - var(--t)) * 3px)); }
  .sc-on .card__in { transition: box-shadow 200ms var(--sc-ease-out); }
  .sc-on .card__in:hover { box-shadow: var(--sc-e3), inset 0 1px 0 rgb(242 242 242 / 0.22); }
}

/* A headline that opens the plain copy after a chapter */
.after--head .h2 + .body { margin-top: 1.125rem; }
.sc-on .after--head { padding-top: 3rem; }

/* ------------------------------------------------------- the sticky bar ----
   Clear over the hero, solid once the page has moved. No blur, no gradient. */
.bar--sticky {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  max-width: none; margin: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.625rem var(--gutter);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color 200ms var(--sc-ease-out), border-color 200ms var(--sc-ease-out);
}
.bar--sticky.is-solid { background: var(--ground); border-bottom-color: var(--gray-1); }
.bar--sticky .bar__mark { width: 3rem; }
.btn--bar {
  min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.9375rem;
  opacity: 0; visibility: hidden; transform: translate3d(0, -4px, 0);
  transition: opacity 180ms var(--sc-ease-out), transform 180ms var(--sc-ease-out), visibility 0s linear 180ms,
              background-color 140ms var(--sc-ease-out), border-color 140ms var(--sc-ease-out);
}
.bar--sticky.has-cta .btn--bar { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
#talk { scroll-margin-top: 0; }
/* The video control in the bar: text only, between the mark and the button.
   It appears when the VSL is on with sound and its player has left the screen,
   so a dealer deep in the page can see what is talking and stop it or go back. */
.bar__now {
  display: flex; align-items: center; gap: 0.625rem; flex: none;
  margin-inline: -0.375rem auto; white-space: nowrap;
}
.bar__now[hidden] { display: none; }
.bar--sticky .bar__home { flex: none; }
@media (max-width: 379px) {            /* the narrowest phones: make room without shrinking the mark */
  .bar--sticky { gap: 0.625rem; }
  .bar--sticky .btn--bar { padding-inline: 0.75rem; }
  .bar__now { margin-left: 0; }
  .bar__now-btn { font-size: 0.75rem; }
}
.bar__now-label { display: none; font-size: 0.8125rem; color: var(--text-soft); }
.bar__now-btn {
  background: none; border: 0; padding: 0.75rem 0; cursor: pointer;
  font-family: inherit; font-size: 0.8125rem; line-height: 1; color: var(--text);
}
.bar__now-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 2px; }
@media (min-width: 700px) {
  .bar--sticky { padding-block: 0.75rem; }
  .bar--sticky .bar__mark { width: 3.5rem; }
  .bar__now { gap: 1.25rem; margin-left: 1rem; }
  .bar__now-label { display: inline; }
  .bar__now-btn { font-size: 0.875rem; }
}
@media (prefers-reduced-motion: reduce) { .bar--sticky, .btn--bar { transition: none; } }

/* ------------------------------------------------- Act 7: the folder opens --
   One paragraph in copy.md's order. Each phrase is dim until its moment in the
   clip, then lights: the sheets (the four sources of truth), the orbs (your AI
   team), the close. --sc-p is the chapter's scroll progress, set by the engine. */
html:not(.sc-on) .ch--own .ch__bot { margin-top: 1.125rem; }
.sc-on .ch--own .own { font-size: 0.9375rem; line-height: 1.55; color: var(--text); max-width: 38rem; }
.sc-on .ch--own .own__truth { opacity: clamp(0.28, calc((var(--sc-p, 0) - 0.04) * 8), 1); }
.sc-on .ch--own .own__team  { opacity: clamp(0.28, calc((var(--sc-p, 0) - 0.36) * 8), 1); }
.sc-on .ch--own .own__rest  { opacity: clamp(0.28, calc((var(--sc-p, 0) - 0.66) * 7), 1); }
@media (min-width: 1000px) and (min-aspect-ratio: 3/2) {
  /* A small chapter: the clip takes the right of the stage, the copy the left. */
  .sc-on .ch--own .ch__stage {
    display: grid; grid-template-columns: minmax(22rem, 0.62fr) 1fr; grid-template-rows: 1fr auto auto 1fr;
    column-gap: clamp(2rem, 4vw, 4.5rem); padding-inline: var(--gutter); align-items: center;
  }
  .sc-on .ch--own .ch__top:not(:empty) {
    position: static; grid-column: 1; grid-row: 2; max-width: none;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .sc-on .ch--own .ch__bot { grid-column: 1; grid-row: 3; padding: 1.5rem 0 0; }
  .sc-on .ch--own .ch__band {
    position: relative; left: auto; top: auto; transform: none; width: 100%;
    grid-column: 2; grid-row: 1 / -1; align-self: center;
    border-radius: var(--r); box-shadow: var(--sc-e3);
  }
  .sc-on .ch--own .own { font-size: 1.0625rem; }
}

/* --------------------------------------------- Block 8: the team, the quotes --
   Phones and tablets: the clip as an uncropped 16:9 band, quotes below it.
   Wide screens: the quotes sit over the lower part of the frame on a solid plate. */
.team { margin-top: 2.5rem; position: relative; }
.team__band { position: relative; aspect-ratio: 16 / 9; background: var(--raised); overflow: clip; }
.team__band img, .team__band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
html:not(.sc-on) .team__band video { display: none; }
.team__quotes { padding-inline: var(--gutter); margin: 1rem auto 0; max-width: calc(var(--maxw) + 2 * var(--gutter)); }
.team .quotes { margin-top: 0; }
.team .quote:first-child { border-top: 0; }
@media (min-width: 1200px) {
  .team__quotes {
    position: absolute; inset: auto 0 0 0; max-width: none; margin: 0;
    padding: 1.75rem var(--gutter) 2rem;
    background: rgb(11 11 12 / 0.9);
    border-top: 1px solid var(--gray-1);
  }
  .team .quotes { grid-template-columns: repeat(3, 1fr); column-gap: clamp(2rem, 3.5vw, 4rem); max-width: 80rem; margin-inline: auto; }
  .team .quote, .team .quote:last-child { border: 0; padding: 0; }
  .team .quote blockquote { font-size: 0.9375rem; line-height: 1.55; }
}

/* ------------------------------------- chapters that carry their paragraph --
   The paragraph belongs to the clip, so it lands on the stage after the
   headline instead of in a separate block underneath. */
html:not(.sc-on) .ch--read .ch__bot { margin-top: 1.125rem; }
.sc-on .ch--read .ch__bot .body { font-size: 0.9375rem; line-height: 1.55; color: var(--text); max-width: 38rem; }
@media (min-width: 1000px) and (min-aspect-ratio: 3/2) {
  .sc-on .ch--read .ch__bot {
    position: absolute; z-index: 2; right: var(--gutter); bottom: 5vh; max-width: 36rem;
    padding: 1.5rem 1.75rem;
    background: rgb(11 11 12 / 0.88);
    border: 1px solid var(--gray-1); border-radius: var(--r);
    box-shadow: var(--sc-e3);
  }
  .sc-on .ch--read .ch__bot .body { font-size: 1rem; }
  .sc-on .ch--read .ch__top:not(:empty) { bottom: 5vh; }
}

/* Act 6 on wide screens: the steps sit in the upper left, where reading starts
   and where the frame is empty. The car and all its motion are lower and right. */
@media (min-width: 1000px) and (min-aspect-ratio: 3/2) {
  .sc-on .ch--steps .steps { top: 5.75rem; bottom: auto; width: min(34rem, 38vw); align-items: start; }
  .sc-on .ch--steps .step__name { font-size: 1.5rem; }
  .sc-on .ch--steps .steps .step .body { font-size: 1.0625rem; margin-top: 0.625rem; }
}

/* Block 8: the pre-frame line that introduces the three quotes */
.team__pre { margin: 0 0 1.25rem; color: var(--text-soft); }
@media (min-width: 1200px) {
  .team__pre { max-width: 80rem; margin: 0 auto 1.25rem; }
}

/* Block 8, reordered: lead, paragraph, band, then the testimonials' own
   headline, deck and quotes below the band on every width. */
#proof .pre + .proof__lead { margin-top: 0.875rem; }
.team__quotes { margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.team__quotes .h2 { max-width: 20ch; }
.team__pre { margin: 0.875rem 0 1.75rem; }
@media (min-width: 1200px) {
  .team__quotes {
    position: static; inset: auto; background: none; border-top: 0;
    max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: clamp(2.5rem, 4vw, 4rem) auto 0;
    padding: 0 var(--gutter);
  }
  .team__pre { max-width: none; margin: 0.875rem 0 2rem; }
  .team .quotes { max-width: none; margin-inline: 0; }
  .team .quote blockquote { font-size: 1rem; }
}

/* Reserve each pinned chapter's full scroll height before the engine mounts.
   Without this the page is briefly a third of its real length, and the browser
   fetches every far-down image at once because they all look close.
   Keep these in step with data-sc-span in index.html (span x 100svh). */
.sc-on #act-1 { min-height: 300svh; }
.sc-on #act-2 { min-height: 340svh; }
.sc-on #act-4 { min-height: 750svh; }
.sc-on #act-5 { min-height: 320svh; }
.sc-on #act-6-engine { min-height: 540svh; }
.sc-on #act-7 { min-height: 260svh; }

/* Block 9: each list on its own raised panel, like the proof cards under the
   hero. The "for you" panel is the brighter of the two and keeps the one red rule. */
.fit { gap: 0.875rem; }
.fit__col {
  padding: 1.5rem 1.375rem 1.75rem;
  background: var(--raised);
  border: 1px solid var(--gray-1); border-radius: var(--r);
  box-shadow: var(--sc-edge);
}
.fit__col--yes { background: var(--card); border-color: var(--gray-2); box-shadow: var(--sc-e2), var(--sc-edge); }
.fit .h3 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); letter-spacing: -0.02em; }
.fit .list { gap: 0.875rem; }
.fit .list li { font-size: 1.0625rem; line-height: 1.45; max-width: none; padding-top: 0.875rem; border-top: 1px solid var(--gray-1); }
.fit .list li:first-child { padding-top: 0; border-top: 0; }
.fit__col--yes .list li { border-top-color: var(--gray-2); }
@media (min-width: 700px) {
  .fit { gap: 1.25rem; align-items: stretch; }
  .fit__col { padding: 2rem 2rem 2.25rem; }
}

/* ------------------------------------------- closing backgrounds (Tue Nov 18) --
   Two full-bleed images behind the last two blocks. Both are added by a class
   the script sets only when the block is near the screen, so neither image is
   fetched during the first load. These edge fades are the page's only
   gradients: Sean asked for them so the images read as a room and a closing
   scene, not as photos pasted on the ground. */

/* Block 9: the showroom, blurred, faint, behind the two panels */
#fit { position: relative; isolation: isolate; }
#fit::before, #fit::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
#fit.has-bg::before {
  background: url("media/showroom-blur.webp") center / cover no-repeat;
  opacity: 0.15;
}
#fit.has-bg::after {
  background: linear-gradient(to bottom, var(--ground) 0%, rgb(11 11 12 / 0) 24%, rgb(11 11 12 / 0) 76%, var(--ground) 100%);
}

/* Block 11: the same building at dawn, the page's closing image */
.talk { position: relative; isolation: isolate; border-top: 0; }
.talk::before, .talk::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.talk.has-bg::before {
  background: url("media/dawn-800.webp") 50% 50% / cover no-repeat;   /* the man is at the image's centre line */
  opacity: 0.25;
}
.talk.has-bg::after {
  /* clear over the sky and roofline at the top, near-black from the fields down */
  background: linear-gradient(to bottom,
    var(--ground) 0%, rgb(11 11 12 / 0) 9%, rgb(11 11 12 / 0) 24%,
    rgb(11 11 12 / 0.62) 52%, rgb(11 11 12 / 0.86) 80%, var(--ground) 100%);
}
@media (min-width: 700px) {
  .talk.has-bg::before { background-image: url("media/dawn-1600.webp"); }
}

/* ------------------------------------------------- /invitation (Wed Nov 18) --
   Hero: the room, full bleed, darkened so the headline and paragraph sit on it
   at AA, fading to the ground at the bottom. */
.inv { padding-top: 0; }
.inv__hero { position: relative; isolation: isolate; padding: 6.5rem 0 clamp(3rem, 2rem + 5vw, 6rem); overflow: clip; }
.inv__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 28% 50%; opacity: 0.3; }
.inv__hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgb(11 11 12 / 0.45) 0%, rgb(11 11 12 / 0.3) 40%, rgb(11 11 12 / 0.78) 78%, var(--ground) 100%);
}
.inv__hero .sub { color: var(--text); }
.inv__blocks { margin-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
.inv__blocks .body:first-child { padding-top: 0; border-top: 0; }
.inv__blocks--after { margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
@media (min-width: 700px) {
  .inv__hero { padding-top: 8.5rem; }
  .inv__bg { object-position: 40% 50%; }
}

/* A clip that plays once on entry: an uncropped 16:9 band, full bleed on
   phones, inside the content column on wider screens. */
.once { position: relative; aspect-ratio: 16 / 9; margin: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0 0; background: var(--raised); overflow: clip; }
.once img, .once video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.once video { opacity: 0; transition: opacity 300ms var(--sc-ease-out); }
.once video.is-on { opacity: 1; }
@media (min-width: 700px) {
  .once { width: calc(100% - 2 * var(--gutter)); max-width: var(--maxw); margin-inline: auto; border-radius: var(--r); box-shadow: var(--sc-e2); }
}
@media (prefers-reduced-motion: reduce) { .once video { display: none; } }

/* --------------------------------- /invitation, restructured (Wed Nov 18) --
   Three blocks, each with its own headline. Block 2 is a pinned chapter that
   scrubs the four-files clip while its three paragraphs come in one at a time. */
.inv__sec { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) 0; }
.inv__sec--last { padding-bottom: var(--pad); }
.inv__sec .copy { margin-top: 0; }
.inv__act { margin-top: 2.25rem; }
.sc-on #room { min-height: 440svh; }             /* keep in step with data-sc-span on #room */

/* plain reading version: the still, the headline, then the three paragraphs */
html:not(.sc-on) .ch--room { padding-top: clamp(3rem, 2rem + 5vw, 6.5rem); }
html:not(.sc-on) .room__steps { margin-top: 1.125rem; display: grid; gap: 1rem; max-width: calc(var(--maxw) + 2 * var(--gutter)); }

/* pinned: paragraphs share one slot and cross over */
.sc-on .ch--room .ch__stage { grid-template-rows: minmax(5.5rem, 0.5fr) auto 1fr; }
.sc-on .ch--room .ch__top { padding-bottom: 0.875rem; }
.sc-on .room__steps { display: grid; }
.sc-on .room__step { grid-area: 1 / 1; font-size: 0.9375rem; line-height: 1.5; color: var(--text); max-width: 38rem; }

/* wide: the clip takes the right of the stage, headline and paragraphs the left */
@media (min-width: 1000px) and (min-aspect-ratio: 3/2) {
  .sc-on .ch--room .ch__stage {
    display: grid; grid-template-columns: minmax(24rem, 0.82fr) 1fr; grid-template-rows: 1fr auto auto 1fr;
    column-gap: clamp(2rem, 4vw, 4.5rem); padding-inline: var(--gutter); align-items: start;
  }
  .sc-on .ch--room .ch__top:not(:empty) {
    position: static; grid-column: 1; grid-row: 2; max-width: none;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .sc-on .ch--room .ch__bot { grid-column: 1; grid-row: 3; padding: 1.5rem 0 0; min-height: 21rem; }
  .sc-on .ch--room .ch__band {
    position: relative; left: auto; top: auto; transform: none; width: 100%;
    grid-column: 2; grid-row: 1 / -1; align-self: center;
    border-radius: var(--r); box-shadow: var(--sc-e3);
  }
  .sc-on .room__step { font-size: 1.125rem; line-height: 1.55; }
}
