/* NASMA v9d: more life, less shudder. Motion is on by default (NASMA_CFG.forceMotion). */
.hero.h9c{--sy:0}

/* smoother depth: the position variables are already eased in JS, so no second CSS ease (that was the judder) */
.h9-world>img,.h9-world>picture{transition:opacity .45s ease;will-change:transform,opacity;backface-visibility:hidden}
.h9-bg{will-change:transform}
.h9-world>.on{animation:h9kb 18s ease-in-out infinite alternate}
@keyframes h9kb{from{scale:1}to{scale:1.06}}
.h9-bg img.on{animation:h9kb2 24s ease-in-out infinite alternate}
@keyframes h9kb2{from{scale:1}to{scale:1.1}}

/* hybrid: a gust of silk carries a person in, and out again */
@property --wipe{syntax:"<number>";inherits:false;initial-value:0}
.h9-hy{position:absolute;inset:0;opacity:0;pointer-events:none;--wipe:0;
  -webkit-mask-image:linear-gradient(105deg,#000 calc(var(--wipe) * 135% - 35%),transparent calc(var(--wipe) * 135%));
  mask-image:linear-gradient(105deg,#000 calc(var(--wipe) * 135% - 35%),transparent calc(var(--wipe) * 135%));
  transition:--wipe 1.9s cubic-bezier(.2,.65,.25,1),opacity 1.4s ease .8s}
.h9-hy img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:62% 28%;scale:1.1;transition:scale 7s ease-out;filter:saturate(1.1)}
.h9-hy::after{content:"";position:absolute;inset:0;pointer-events:none;mix-blend-mode:soft-light;
  background:radial-gradient(80% 80% at 20% 10%,color-mix(in oklab,var(--scent) 75%,#fff),transparent 70%),linear-gradient(180deg,transparent 55%,color-mix(in oklab,var(--scent) 55%,transparent))}
.hybrid .h9-hy{opacity:1;--wipe:1;transition:--wipe 1.9s cubic-bezier(.2,.65,.25,1),opacity .01s}
.hybrid .h9-hy img{scale:1}
.h9-air{filter:blur(7px);opacity:.95}

/* pouch card and headline: float with transform only (no layout-shifting margins) */
.h9-card{transform:translate3d(calc(var(--px) * -18px),calc(var(--py) * -12px),0)}
.h9-pouch{animation:h9sway 6s ease-in-out infinite;transform-origin:50% 80%}
@keyframes h9sway{0%,100%{transform:rotate(-8deg) translateY(0)}50%{transform:rotate(-2deg) translateY(-6px)}}
.h9-l2{display:inline-block;animation:h9in .9s cubic-bezier(.2,.7,.2,1) .16s backwards,h9wave 6s ease-in-out 1.2s infinite}
@keyframes h9wave{0%,100%{transform:translateY(0) skewX(0)}50%{transform:translateY(-6px) skewX(-2deg)}}
.h9-scents button{animation:h9in .7s cubic-bezier(.2,.7,.2,1) backwards}
.h9-scents button:nth-child(1){animation-delay:.9s}.h9-scents button:nth-child(2){animation-delay:.97s}.h9-scents button:nth-child(3){animation-delay:1.04s}.h9-scents button:nth-child(4){animation-delay:1.11s}
.h9-scents button:nth-child(5){animation-delay:1.18s}.h9-scents button:nth-child(6){animation-delay:1.25s}.h9-scents button:nth-child(7){animation-delay:1.32s}.h9-scents button:nth-child(8){animation-delay:1.39s}
.h9-scents button[aria-pressed="true"]{box-shadow:0 0 0 4px color-mix(in oklab,var(--scent) 45%,transparent)}

/* shop cards: no more lift-and-flicker, no panel over the picture */
.v9c .card,.v9c .card:hover,.v9c .card:focus-within{transform:none!important}
.v9c .card{transition:box-shadow .3s}
.v9c .card:hover{box-shadow:0 30px 56px -26px color-mix(in srgb,var(--c) 80%,#000)}
.v9c .card .ql{display:none!important}
.v9c .card .art .pk{transition:opacity .4s}
.v9c .card:hover .art .pk{opacity:0;transform:rotate(-4deg)}
.v9c .card .art{transform:none!important}
.v9c .card .art .world{transition:none}
.v9c .card .art:hover .world,.v9c .card:hover .art .world{transform:none}
.v9c .card .flip{will-change:transform;transform:translateZ(0)}

/* drifting colour behind the sections */
.fx{position:relative;overflow:clip}
.fx>.fx-o{position:absolute;border-radius:50%;opacity:.28;pointer-events:none;z-index:0;will-change:transform}
.fx>.wrap,.fx>div{position:relative;z-index:1}
.fx-o.a{width:38vw;height:38vw;max-width:520px;max-height:520px;left:-10%;top:5%;background:radial-gradient(closest-side,#F45A79 10%,transparent);animation:fxa 22s ease-in-out infinite alternate}
.fx-o.b{width:34vw;height:34vw;max-width:480px;max-height:480px;right:-8%;bottom:0;background:radial-gradient(closest-side,#5EC7C7 10%,transparent);animation:fxb 26s ease-in-out infinite alternate}
.fx-o.c{width:26vw;height:26vw;max-width:360px;max-height:360px;left:40%;top:30%;background:radial-gradient(closest-side,#F49A24 10%,transparent);opacity:.18;animation:fxa 30s ease-in-out infinite alternate-reverse}
@keyframes fxa{to{transform:translate3d(14vw,8vh,0) scale(1.2)}}
@keyframes fxb{to{transform:translate3d(-12vw,-10vh,0) scale(1.15)}}

/* moments: the slide on screen slowly pushes in; pictures glide with the scroll */
.v9c .mcar .mo.on img{animation:h9kb 14s ease-in-out infinite alternate}
[data-par]{translate:0 var(--pp,0px);will-change:translate}


/* comfort band: a gallery of scenes that drifts by itself */
.rot{position:relative;aspect-ratio:16/9;border-radius:26px;overflow:hidden;background:#241433;box-shadow:0 40px 80px -40px rgba(36,20,51,.55)}
.rot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;scale:1.04;transition:opacity .45s ease;border-radius:0}
.rot img.on{opacity:1;animation:h9kb 9s ease-in-out infinite alternate}
.rot::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,rgba(255,255,255,.14),transparent 30%);mix-blend-mode:soft-light}
.rot-dots{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:7px;z-index:2}
.rot-dots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.5);transition:width .4s,background .4s}
.rot-dots i.on{width:22px;border-radius:7px;background:#fff}

/* people must sit above every scent world (worlds added later were covering them) */
.h9-world .h9-hy{z-index:5}

/* ink-blot morph (driven by the SVG filter #h9m); no mask, no transition */
.h9-hy{-webkit-mask-image:none!important;mask-image:none!important;filter:url(#h9m);transition:none!important;visibility:hidden;opacity:1}
.hybrid .h9-hy{visibility:visible;opacity:1;transition:none!important}
.h9-hy img{transition:scale 7s ease-out}

/* v9.2: phones get still colour (no drifting orbs) and lighter frosted glass */
@media (max-width:760px){.fx>.fx-o{animation:none!important;will-change:auto}}
