/* Motion (Mo, 22 Nov 2026: "อยากให้มันมีความพลิ้วไสว มีชีวิตชีวา"): slow, soft, never busy. Off for people who ask for less motion. */
.hero .photo.slide{opacity:0;transition:opacity 2.2s ease}
.hero .photo.slide.on{opacity:1}
/* phones: the hero photo sits above the text, so the other slides lie on top of the first one */
@media (max-width:899px){.hero.split .photo.slide:not(.first){position:absolute;top:0;left:0;right:0;width:100%;height:auto;aspect-ratio:4/5}}
.hero .photo.breathe{animation:heroIn 2.4s ease-out forwards,breathe 24s ease-in-out 2.4s infinite alternate}
@keyframes breathe{from{transform:scale(1) translate3d(0,0,0)}to{transform:scale(1.08) translate3d(-1.5%,-1%,0)}}
.motes{position:absolute;inset:0;pointer-events:none;z-index:1;overflow:hidden}
.motes i{position:absolute;bottom:-10px;width:6px;height:6px;border-radius:50%;background:radial-gradient(circle,rgba(255,236,200,.95),rgba(255,236,200,0) 70%);opacity:0;animation:rise linear infinite}
@keyframes rise{0%{transform:translate3d(0,0,0) scale(.6);opacity:0}12%{opacity:.85}85%{opacity:.5}100%{transform:translate3d(var(--dx,20px),-105vh,0) scale(1.2);opacity:0}}
.hero .wrap{position:relative;z-index:2}
/* reveal: rise, soften in, children one after another */
.rv{transition:opacity 1.1s cubic-bezier(.2,.7,.2,1),transform 1.1s cubic-bezier(.2,.7,.2,1),filter 1.1s ease;filter:blur(3px);transform:translateY(28px)}
.rv.in{filter:none}
.stagger>*{opacity:0;transform:translateY(26px) scale(.985);transition:opacity 1s cubic-bezier(.2,.7,.2,1),transform 1s cubic-bezier(.2,.7,.2,1)}
.stagger.in>*{opacity:1;transform:none}
/* photos zoom slowly under the finger or mouse */
.mosaic a img,.gallery figure img,.explore img{transition:transform 1.6s cubic-bezier(.2,.7,.2,1)!important}
.mosaic a:hover img,.gallery figure:hover img{transform:scale(1.06)}
/* living moments: a slow film strip of the studio's own loops */
.moments{overflow:hidden;padding:10px 0 6px}
.moments .track{display:flex;gap:14px;overflow-x:auto;scroll-behavior:auto;scrollbar-width:none;padding:0 max(16px,calc((100vw - 1180px)/2));-webkit-overflow-scrolling:touch}
.moments .track::-webkit-scrollbar{display:none}
.moments figure{flex:0 0 clamp(200px,26vw,300px);margin:0;position:relative;aspect-ratio:3/4;overflow:hidden;border:1px solid rgba(58,26,8,.18);background:#2b1712}
.moments video{width:100%;height:100%;object-fit:cover;display:block}
.moments figcaption{position:absolute;left:14px;right:14px;bottom:12px;color:#fbf7f0;font:400 20px var(--serif);text-shadow:0 1px 8px rgba(0,0,0,.5)}
.moments figcaption span{display:block;font:300 14px var(--thai,serif);opacity:.95}
/* the book button breathes a little light */
.btn:not(.ghost){position:relative;overflow:hidden}
.btn:not(.ghost):after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.28),transparent);transform:skewX(-18deg);animation:shine 7s ease-in-out infinite}
@keyframes shine{0%,78%{left:-60%}100%{left:130%}}
@media (prefers-reduced-motion:reduce){
  .hero .photo.breathe,.motes i,.btn:not(.ghost):after{animation:none!important}
  .motes{display:none}
  .rv,.stagger>*{filter:none!important;transform:none!important;opacity:1!important;transition:none!important}
}

/* Footer on a phone (Mo, 2 Dec 2026: "too much text and some too much space"): Explore and Find us side by side,
   less padding; the bottom still clears the Book / Call bar and the language picker above it. */
@media (max-width:820px){
  footer{padding:30px 0 150px!important}
  footer .wrap{grid-template-columns:1fr 1fr!important;gap:20px 16px!important}
  footer .wrap>div:first-child,footer .fine{grid-column:1/-1}
  footer .wrap>div:first-child p{margin-top:6px!important;font-size:14.5px}
  footer .brand{font-size:26px!important}
  footer a{font-size:15.5px;padding:2px 0;overflow-wrap:anywhere}
  footer .staff{margin-top:10px}
}
