/* Malibu Beach Resort Samui — motion, ported from pusher.support.
   Everything waits for html.an (set in <head> unless the visitor asks for less motion),
   so without JavaScript or with "reduce motion" the page is simply there. */
:root{--weich:cubic-bezier(.22,.8,.3,1)}

@keyframes dreh{to{transform:rotate(360deg)}}
@keyframes rein{from{opacity:0;transform:translateY(10px) scale(.985)}}
@keyframes auf{from{opacity:0;translate:0 28px;filter:blur(10px)}}
@keyframes zeichenAuf{from{opacity:0;scale:.3;filter:blur(8px)}}
@keyframes livePuls{0%{opacity:.7;scale:.5}80%,100%{opacity:0;scale:1.6}}
@keyframes glanz{0%,55%{translate:-110% 0}85%,100%{translate:110% 0}}
@keyframes wabern{50%{rotate:8deg;scale:1.08}to{rotate:-6deg;scale:.96;translate:3% -2%}}
@keyframes schweben{50%{translate:0 -12px}}
@keyframes flussPunkt{0%{left:0;opacity:0}6%{opacity:1}94%{opacity:1}100%{left:calc(100% - 12px);opacity:0}}

/* header: frosted glass once you scroll (like pusher.support / x.ai) */
.top.solid{background:color-mix(in srgb,var(--cream) 80%,transparent);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px)}
/* the palm badge pops in */
html.an .top .badge{animation:zeichenAuf 1.1s cubic-bezier(.2,1.4,.4,1) both}

/* hero: blur-rise, one after the other */
html.an .auf{animation:auf 1s var(--weich) both;animation-delay:var(--d,0ms)}

/* headings: words rise out of an invisible edge */
.wort{display:inline-block;overflow:hidden;vertical-align:bottom;padding-bottom:.1em;margin-bottom:-.1em}
.wort>span{display:inline-block}
html.an .wort>span{translate:0 110%;transition:translate .9s var(--weich);transition-delay:calc(var(--i) * 55ms + var(--d0,0ms))}
html.an .da .wort>span,html.an .wort.da>span{translate:0 0}

/* cards come in one after the other */
html.an .stufe{opacity:0;translate:0 56px;scale:.94;transition:opacity .8s var(--weich),translate 1s var(--weich),scale 1s var(--weich);transition-delay:var(--d,0ms)}
html.an .stufe.da{opacity:1;translate:0 0;scale:1}

/* photos lie tilted back and straighten up as you scroll (--p from 0 to 1) */
.kipp-buehne{perspective:1600px}
.kipp{transform-origin:50% 0;transform:rotateX(calc((1 - var(--p,1)) * 18deg)) scale(calc(.92 + var(--p,1) * .08));will-change:transform}
/* and the big room swings in from the side (--q from 0 to 1) */
.schwenk{transform:perspective(1300px) translateX(calc((1 - var(--q,1)) * min(70px,7vw))) rotateY(calc((1 - var(--q,1)) * -24deg + var(--ry,0deg))) rotateX(calc((1 - var(--q,1)) * 8deg + var(--rx,0deg)));will-change:transform}

/* soft moving aura in the umbrella colours */
.aura{position:absolute;inset:8% -6% -4%;z-index:0;border-radius:50%;opacity:.7;pointer-events:none;will-change:transform;
  background:radial-gradient(40% 50% at 30% 40%,#e2d6c2,transparent 70%),radial-gradient(35% 45% at 72% 55%,#d9d1f3,transparent 70%),radial-gradient(30% 40% at 50% 80%,#cfe1ea,transparent 70%);
  animation:wabern 16s ease-in-out infinite alternate}
@media(max-width:900px){.aura{animation:none}}

/* the live dot breathes */
.dot{position:relative}
.dot::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid var(--ok);opacity:0;animation:livePuls 2.4s ease-out infinite}

/* a glint runs over the booking buttons */
.btn.book{position:relative;overflow:hidden;isolation:isolate}
.btn.book::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.28) 50%,transparent 70%);translate:-110% 0;animation:glanz 3.6s ease-in-out 1.2s infinite;pointer-events:none}
.btn.book:hover{box-shadow:0 18px 36px -16px rgba(75,58,156,.7)}

/* Google rating: the stars pop in one by one, quickly, then the line below */
@keyframes sternAuf{from{opacity:0;scale:.2;rotate:-25deg}}
.stars span{display:inline-block}
html.an .rating .stars span,html.an .rating small{opacity:0}
html.an .rating.da .stars span{opacity:1;animation:sternAuf .35s cubic-bezier(.2,1.5,.4,1) both;animation-delay:calc(var(--i) * 70ms)}
html.an .rating.da small{opacity:1;animation:auf .45s var(--weich) both;animation-delay:380ms}

/* things that float */
html.an .schwebt{animation:schweben 5s ease-in-out infinite}

/* the spinning badge in the closing section */
.dreh-badge{width:72px;height:72px;margin:0 auto 6px;animation:dreh 18s linear infinite}
html.an .dreh-badge.stufe{transition:none}
html.an .dreh-badge.stufe.da{animation:zeichenAuf 1.1s cubic-bezier(.2,1.4,.4,1) both,dreh 18s linear 1.1s infinite}

/* a day here: a track fills as you scroll, the hours light up one by one */
.spur{position:relative;height:14px;margin:0 0 26px;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.spur::before{content:"";position:absolute;left:0;right:0;top:6px;height:2px;background:var(--sand-2);border-radius:2px}
.spur b{position:absolute;left:0;right:0;top:6px;height:2px;background:var(--clay);border-radius:2px;transform:scaleX(var(--a,0));transform-origin:0 50%}
.spur i{position:relative;width:14px;height:14px;border-radius:50%;background:var(--cream);border:2px solid var(--sand-2);transition:background .4s,border-color .4s,scale .4s var(--weich)}
.spur i.an{background:var(--clay);border-color:var(--clay);scale:1.15}
.spur .punkt{position:absolute;top:2px;width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px var(--clay);animation:flussPunkt 6s ease-in-out infinite;opacity:0}
.moment{transition:opacity .5s}
html.an .day-grid .moment:not(.an) time{color:var(--sand-2);transition:color .5s}
html.an .day-grid .moment.an time{color:var(--clay);transition:color .5s}

/* mouse light on cards, a little lift (computer only) */
@media(hover:hover) and (pointer:fine){
  .place div,.moment div,.perk{background-image:radial-gradient(420px circle at var(--mx,-999px) var(--my,-999px),rgba(217,209,243,.55),transparent 62%)}
  .place,.moment,.perk,.room,.rm{transition:translate .35s var(--weich),box-shadow .35s}
  .place:hover,.moment:hover,.perk:hover,.rm:hover{translate:0 -4px;box-shadow:0 18px 40px -24px rgba(7,36,65,.35)}
  .room:hover{translate:0 -4px}
}

/* booking page: every new step slides in, room cards one after the other */
html.an [data-body].neu>*{animation:rein .5s var(--weich) both}
html.an .neu .rm-list>.rm{animation:auf .8s var(--weich) both}
html.an .neu .rm-list>.rm:nth-child(2){animation-delay:70ms}
html.an .neu .rm-list>.rm:nth-child(3){animation-delay:140ms}
html.an .neu .rm-list>.rm:nth-child(4){animation-delay:210ms}
html.an .neu .rm-list>.rm:nth-child(5){animation-delay:280ms}
html.an .neu .rm-list>.rm:nth-child(6){animation-delay:350ms}
html.an .neu .rm-list>.rm:nth-child(7){animation-delay:420ms}
html.an .neu .sum li{animation:rein .45s var(--weich) both}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .kipp,.schwenk{transform:none}
}
main{overflow-x:clip}
