/* Still Hours, motion edition: slowness and breath.
   Static final states live here; js/motion.js animates transform / opacity / clip-path, slowly. */

html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-stopped{overflow:hidden}

/* first paint: hide only what the opening brings in, until GSAP has set its start states */
.m-pre .hero-h,.m-pre .hero-p,.m-pre .go,.m-pre .hero-facts,.m-pre .hero-img img,.m-pre .hero-img figcaption,.m-pre .top,.m-pre .rail{visibility:hidden}

main{overflow-x:clip}
.hero-img img{transform-origin:55% 60%}

/* window light: the shadow of a window frame, soft, falling across the wall and drifting with the afternoon */
.intro,.desk,.visit{position:relative;overflow:clip}
.intro>*:not(.sun),.desk>*:not(.sun),.visit>*:not(.sun){position:relative;z-index:1}
.desk .launcher{position:absolute}
.sun{position:absolute;z-index:0;pointer-events:none;width:min(78vw,1100px);aspect-ratio:1.25;top:6%;left:30%;
  opacity:.075;mix-blend-mode:multiply;transform:skewX(-22deg) rotate(-7deg);transform-origin:50% 50%}
.sun svg{display:block;width:100%;height:100%}
.desk .sun{left:-8%;top:10%;opacity:.05}
.visit .sun{left:44%;top:-4%;opacity:.08}

/* menu rows: the rule above each item draws itself */
.item{border-top-color:transparent;position:relative}
.item::before{content:"";position:absolute;left:0;right:0;top:-1px;height:1px;background:rgba(234,223,206,.16);transform-origin:0 50%;transform:scaleX(var(--l,1))}

/* the front room */
.room-img{position:relative}
.room-cap{position:absolute;left:var(--pad);bottom:26px;font-family:var(--serif);font-style:italic;font-size:17px;color:#3b2d23;background:rgba(243,236,226,.86);padding:7px 12px}

/* assistant typing indicator */
.chat-body{position:relative}
.dots{position:absolute;left:24px;display:flex;gap:6px;padding:15px 16px;background:var(--bone);border-radius:10px 10px 10px 2px;opacity:0}
.dots i{width:6px;height:6px;border-radius:50%;background:var(--clay)}
.chat-input span.typed{color:var(--ink)}
.chat-input b{transition:color .6s}
.chat-input b.hit{color:var(--amber)}

/* the hand on the aftercare card */
.hand .hl{display:block}

@media (max-width:700px){
  .sun{width:150vw;left:-30%;opacity:.06}
  .room-cap{left:20px;bottom:18px;font-size:15px}
  .dots{left:16px}
  .desk .launcher{position:static}
}
