/* walkthrough.css
   Purpose: "Step inside": street, front door, front waiting area, hallway, treatment room, from the practice's own photos.
   NOT for: other scroll motion (motion.css) or the gallery.
   WHY: a static grid by default (no JS, reduced motion). html.scenes, set by walkthrough.js, pins it as a scroll scene.
   object-position equals transform-origin, so with object-fit:cover the zoom stays on the door at every aspect ratio. */
.walk-stage{width:min(1320px,calc(100% - 64px));margin-inline:auto}
.walk-copy{max-width:640px;margin-bottom:36px}
.walk-copy h2{margin:18px 0 16px}
.walk-shots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.walk-shot{position:relative;border-radius:var(--radius-sm);overflow:hidden;background:var(--stone-soft)}
.walk-shot img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;object-position:var(--o)}
.walk-shot figcaption{position:absolute;left:12px;bottom:12px;padding:7px 13px;border-radius:999px;background:#f7f3efeb;font-size:13px;line-height:1.3;color:var(--ink)}
.walk-progress{display:none}
.walk-seq{display:none}
@media(max-width:900px){.walk-stage{width:calc(100% - 40px)}}
@media(max-width:640px){.walk-shots{grid-template-columns:1fr}}

@media(prefers-reduced-motion:no-preference){
  /* Scroll length is the scene's duration: almost three and a half screens from the street to the chair, so each room
     has time to settle (the owner asked for a slow walk, 11.11). */
  .scenes .walkthrough{height:440vh;height:440svh;padding:0;margin-top:20px}
  .scenes .walk-stage{position:sticky;top:0;width:auto;height:100vh;height:100svh;padding:12px}
  .scenes .walk-shots{position:relative;display:block;height:100%;border-radius:var(--radius);overflow:hidden;background:var(--charcoal-deep);isolation:isolate}
  .scenes .walk-shots::before,.scenes .walk-shots::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none}
  .scenes .walk-shots::before{background:radial-gradient(130% 85% at 0% 0%,#1d1a19eb 0%,#1d1a19b8 48%,#1d1a1900 86%);opacity:var(--copy,1)}
  .scenes .walk-shots::after{background:linear-gradient(0deg,#1d1a1980 0%,#1d1a1900 26%)}
  .scenes .walk-shot{position:absolute;inset:0;border-radius:0;background:none;opacity:var(--a,0)}
  .scenes .walk-shot:first-child{opacity:var(--a,1)}
  .scenes .walk-shot img{height:100%;aspect-ratio:auto;transform-origin:var(--o);transform:scale(var(--s,1));will-change:transform}
  /* The film sits over the hallway photo, under its caption; until frames arrive the photo is what shows. */
  .scenes .walk-seq{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0}
  .scenes .film-on .walk-seq{opacity:1}
  .scenes .walk-shot figcaption{z-index:2;left:clamp(24px,3vw,40px);bottom:46px;opacity:var(--c,0);transform:translateY(calc((1 - var(--c,0))*12px))}
  .scenes .walk-copy{position:absolute;z-index:2;left:clamp(36px,5vw,84px);top:clamp(112px,17vh,180px);max-width:min(560px,calc(100% - 72px));margin:0;color:#fff;opacity:var(--copy,1);transform:translateY(calc((1 - var(--copy,1))*-28px));pointer-events:none}
  .scenes .walk-copy .eyebrow{color:var(--blush)}
  .scenes .walk-copy h2 em{color:var(--blush)}
  .scenes .walk-copy p{color:#f3ebe5;max-width:440px;text-shadow:0 1px 2px #1d1a19,0 0 18px #1d1a19e6}
  .scenes .walk-progress{display:block;position:absolute;z-index:2;left:calc(12px + clamp(24px,3vw,40px));right:calc(12px + clamp(24px,3vw,40px));bottom:34px;height:2px;border-radius:2px;background:#ffffff3d;overflow:hidden}
  .scenes .walk-progress span{display:block;height:100%;background:#fff;transform:scaleX(var(--p,0));transform-origin:left}
}
@media(prefers-reduced-motion:no-preference) and (max-width:900px){
  .scenes .walkthrough{height:340vh;height:340svh}
  .scenes .walk-stage{padding:8px}
  .scenes .walk-copy{top:104px;left:28px;max-width:calc(100% - 56px)}
  /* Above the fixed "Call our office" bar that phones show from here on. */
  .scenes .walk-progress{left:30px;right:30px;bottom:92px}
  .scenes .walk-shot figcaption{left:22px;bottom:104px}
}
