/* Ain Muslimah | Botanical Jewellery graphics.
   Custom vector line-art, designed for the emerald-gold palette. */

/* This last-layer contrast correction wins over the original legacy styles. */
html.ams-curated :is(#promo,#services) .ams-wa-choices > a.ams-branch-wa:last-child,
html.ams-curated :is(#promo,#services) .ams-wa-choices > a.ams-branch-gong {
  background:linear-gradient(125deg,#d3a965,#f4d79f)!important;
  color:#07271d!important;
  -webkit-text-fill-color:#07271d!important;
  border:1.5px solid #f6dfac!important;
  text-decoration:none!important;
  text-shadow:none!important;
  opacity:1!important;
  filter:none;
  box-shadow:0 4px 14px #0003,inset 0 1px 0 #fff5!important;
}
html.ams-curated :is(#promo,#services) .ams-wa-choices > a.ams-branch-senawang {
  background:linear-gradient(120deg,#153f30,#1a523f)!important;
  color:#fff2d9!important;
  -webkit-text-fill-color:#fff2d9!important;
  border:1.5px solid #af9660!important;
}
/* Explicitly cover every state (including visited / focus on iOS Safari). */
html.ams-curated body #promo .ams-wa-choices a.ams-branch-gong,
html.ams-curated body #services .ams-wa-choices a.ams-branch-gong,
html.ams-curated body #promo .ams-wa-choices a.ams-branch-gong:visited,
html.ams-curated body #services .ams-wa-choices a.ams-branch-gong:visited,
html.ams-curated body #promo .ams-wa-choices a.ams-branch-gong:focus-visible,
html.ams-curated body #services .ams-wa-choices a.ams-branch-gong:focus-visible {
  background:linear-gradient(120deg,#d2ad6b 0%,#f8dfa9 55%,#d1ab67 100%)!important;
  background-color:#e8c484!important;
  color:#08271d!important;
  -webkit-text-fill-color:#08271d!important;
  text-shadow:none!important;
  border-color:#dfc28b!important;
  opacity:1!important;
}

/* Art appears behind content inside the existing pointer-events:none layers. */
.ams-lux-scene .ams-atelier-vector {
  position:absolute;
  top:8%;right:-14%;
  width:clamp(420px,66vw,860px);
  height:auto;
  overflow:visible;
  pointer-events:none;
  fill:none;
  opacity:.36;
  filter:drop-shadow(0 0 13px #eed09443);
  animation:amsAtelierDrift 31s ease-in-out infinite alternate;
}
.ams-lux-scene .ams-atelier-vector-left {left:-22%;right:auto;top:37%;width:clamp(300px,43vw,560px);opacity:.26;animation-duration:39s;animation-delay:-19s}
.ams-lux-scene .ams-atelier-vector .ams-atelier-gold {
  stroke:#e3c185;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.ams-lux-scene .ams-atelier-vector .ams-atelier-leaf {
  stroke:#acd2b0;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.ams-lux-scene .ams-atelier-vector .ams-atelier-ghost {stroke:#d7ad70;stroke-width:1.15;stroke-dasharray:4 15;opacity:.65}
.ams-lux-scene .ams-atelier-vector .ams-atelier-gold path,
.ams-lux-scene .ams-atelier-vector .ams-atelier-leaf path {
  stroke-dasharray:1500;
  animation:amsAtelierInk 22s ease-in-out infinite alternate;
}
.ams-lux-scene .ams-atelier-vector .ams-atelier-leaf path:nth-child(2n) {animation-delay:-12s;animation-duration:29s}
.ams-lux-scene .ams-atelier-vector .ams-atelier-gold path:nth-child(3n) {animation-delay:-8s;animation-duration:28s}
.ams-lux-scene .ams-atelier-vector circle {vector-effect:non-scaling-stroke}
.ams-lux-scene .ams-atelier-aura {
  position:absolute;
  left:11%;top:10%;
  width:clamp(230px,48vw,630px);
  aspect-ratio:1;
  pointer-events:none;
  border-radius:52% 48% 42% 58%/46% 59% 41% 54%;
  background:conic-gradient(from 65deg,#16513b18,#d3aa6331,#124e3b28,#d9b87618,#175d4726,#16513b18);
  filter:blur(23px);
  opacity:.65;
  animation:amsAtelierAura 24s ease-in-out infinite alternate;
}
.ams-lux-scene .ams-atelier-aura:nth-last-child(2) {left:auto;right:-10%;top:auto;bottom:8%;animation-delay:-12s}
.ams-lux-scene .ams-atelier-mote {
  position:absolute;
  top:var(--mote-y);left:var(--mote-x);
  width:4px;height:4px;
  background:#fde8b5;
  border-radius:50%;
  opacity:0;
  box-shadow:0 0 15px 5px #e7ba6875;
  animation:amsAtelierMote 11s ease-in-out infinite;
  animation-delay:var(--mote-delay);
}
.ams-lux-scene:not(.ams-lux-visible) :is(.ams-atelier-vector,.ams-atelier-aura),
.ams-lux-scene:not(.ams-lux-visible) :is(.ams-atelier-vector *,.ams-atelier-mote) {animation-play-state:paused!important}

@keyframes amsAtelierDrift {
  from {transform:translate3d(-18px,14px,0) rotate(-8deg) scale(.93)}
  to {transform:translate3d(25px,-27px,0) rotate(7deg) scale(1.06)}
}
@keyframes amsAtelierInk {from{stroke-dashoffset:200;opacity:.45}to{stroke-dashoffset:0;opacity:1}}
@keyframes amsAtelierAura {
  from {transform:translate3d(-24px,15px,0) rotate(-20deg) scale(.82);opacity:.3}
  to {transform:translate3d(33px,-26px,0) rotate(20deg) scale(1.13);opacity:.8}
}
@keyframes amsAtelierMote {
  0%,100% {opacity:0;transform:translate3d(-18px,26px,0) scale(.3)}
  38% {opacity:.85;transform:translate3d(6px,0,0) scale(1)}
  70% {opacity:.22;transform:translate3d(24px,-37px,0) scale(.55)}
}

/* Cinematic editorial: elegant photography reveal, not a distracting carousel. */
html.ams-curated .ams-atelier-photo {
  transition:clip-path 1.1s cubic-bezier(.2,.8,.15,1),
             transform 1.1s cubic-bezier(.2,.8,.15,1),
             opacity 1.1s ease,
             box-shadow .7s ease!important;
  transition-delay:var(--ams-editorial-stagger,0ms);
  transform-origin:center;
  clip-path:inset(0 round 14px);
}
html.ams-curated .ams-atelier-photo:not(.ams-atelier-onstage) {
  clip-path:inset(7% 5% round 24px);
  transform:translate3d(0,28px,0) scale(.96);
  opacity:.52;
}
html.ams-curated .ams-atelier-photo.ams-atelier-onstage {
  clip-path:inset(0 round 14px);
  transform:translate3d(0,0,0) scale(1);
  opacity:1;
}
html.ams-curated .ams-atelier-photo img {
  transition:transform 1.2s cubic-bezier(.2,.9,.25,1),filter .8s ease!important;
  filter:saturate(.94) contrast(1.07);
}
@media(hover:hover) and (pointer:fine) {
  html.ams-curated .ams-atelier-photo:hover img {
    transform:scale(1.055);
    filter:saturate(1.13) contrast(1.04);
  }
}
/* Gilded moving horizon, inspired by the reference video's transition scenes. */
html.ams-curated #home.ams-lux-painted::after {
  background:
    repeating-radial-gradient(ellipse at 9% 42%,transparent 0,transparent 54px,#ecd79b11 55px,#ecd79b11 56px),
    conic-gradient(from 20deg at 78% 52%,transparent 0deg,#f3d59c16 39deg,transparent 83deg,#a3cba41d 128deg,transparent 178deg,#f3d59c10 239deg,transparent 290deg);
  transform-origin:78% 52%;
  animation:amsAtelierSky 36s ease-in-out infinite alternate;
  opacity:.86;
}
@keyframes amsAtelierSky {
  from {transform:scale(1.03) rotate(-4deg)}
  to {transform:scale(1.11) rotate(5deg)}
}
html.ams-curated :is(#promo,#services,#homestay,#events,#gallery) .section-heading h2,
html.ams-curated #home .hero-copy h1 {
  text-wrap:balance;
}
html.ams-curated .ams-brand-frame {
  animation:amsAtelierBrandFloat 9s ease-in-out infinite alternate;
}
@keyframes amsAtelierBrandFloat {
  from {transform:translate3d(0,4px,0) rotate(-.4deg)}
  to {transform:translate3d(0,-9px,0) rotate(.4deg)}
}
/* Design continuity: slim gold rule and light foliage shimmer on card edges. */
html.ams-curated :is(.promo-live-card,.service-card,.ams-event-facilities article) {
  background-image:linear-gradient(145deg,#d7b87a0d,transparent 34%,#c6aa6c0c 100%)!important;
  background-blend-mode:screen;
}

/* Engraved corners animate independently of the floating art. */
html.ams-curated :is(#promo,#services,#homestay,#events,#gallery) .section-heading::before {
  content:'✧ ❋ ✧';
  display:block;
  margin:0 auto 11px;
  width:max-content;
  color:#e3c582;
  font:normal 17px Georgia,serif;
  letter-spacing:1em;
  text-shadow:0 0 17px #eccd8b83;
  animation:amsAtelierSparkle 7s ease-in-out infinite;
}
@keyframes amsAtelierSparkle {0%,100%{opacity:.48;transform:translateY(4px)}45%{opacity:1;transform:translateY(-3px)}}

@media(max-width:700px) {
  .ams-lux-scene .ams-atelier-vector {width:112vw;right:-45%;top:14%;opacity:.22}
  .ams-lux-scene .ams-atelier-vector-left {display:none}
  .ams-lux-scene .ams-atelier-aura {width:77vw;opacity:.33}
  .ams-lux-scene .ams-atelier-mote {box-shadow:0 0 10px 3px #e7ba684c}
  html.ams-curated .ams-atelier-photo {transition-duration:.85s!important}
  html.ams-curated .ams-brand-frame {animation-duration:12s}
  html.ams-curated :is(#promo,#services,#homestay,#events,#gallery) .section-heading::before {font-size:12px;margin-bottom:7px}
}
@media(prefers-reduced-motion:reduce) {
  .ams-lux-scene :is(.ams-atelier-vector,.ams-atelier-aura),
  .ams-lux-scene .ams-atelier-vector *,
  .ams-lux-scene .ams-atelier-mote,
  html.ams-curated :is(#promo,#services,#homestay,#events,#gallery) .section-heading::before,
  html.ams-curated #home.ams-lux-painted::after,
  html.ams-curated .ams-brand-frame {animation:none!important}
  html.ams-curated .ams-atelier-photo {clip-path:none!important;transform:none!important;opacity:1!important;transition:none!important}
}
