/* Calm motion for the public website and the member portal (body.fe).
   Everything that moves sits inside "no-preference": people who switch on "reduce motion" get still pages. */

/* ---------- still parts (always on) ---------- */
.fe .shortcut .ic{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:var(--cream);color:var(--terra);margin-bottom:14px}
.fe .slides{position:relative}
/* The studio banner photo is both a slideshow and the large arch of the collage: it keeps the collage position
   (on the right, small arch photo at the bottom left), instead of falling into the page flow. */
.fe .collage .a1.slides{position:absolute}
.fe .slides img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.fe .slides img:not(:first-child){opacity:0}
.fe .upnext{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.fe .upnext .card{padding:18px 20px;display:flex;flex-direction:column;gap:6px;border-left:4px solid var(--c,var(--terra))}
.fe .upnext .when{font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--terra);font-weight:600}
.fe .upnext .nm{font-family:var(--serif);font-size:22px;font-weight:500;color:var(--olive-d);line-height:1.15}
.fe .upnext .ft{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:8px}
.fe .greet-ic{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.65);color:var(--sun);vertical-align:middle;margin-right:6px}
.fe .greet-ic svg{width:26px;height:26px}
.fe .nextcls{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;padding:20px 22px;border-left:4px solid var(--c,var(--terra))}
.fe .nextcls .cd{font-family:var(--serif);font-size:30px;line-height:1;color:var(--terra);text-align:center;min-width:70px}
.fe .nextcls .cd small{display:block;font-family:var(--sans,inherit);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#8A7F73);margin-top:6px}
.fe .nextcls .nm{font-family:var(--serif);font-size:24px;color:var(--olive-d);line-height:1.15}
.fe .ringcard{display:flex;align-items:center;gap:18px}
.fe .ring{position:relative;width:96px;height:96px;flex:none}
.fe .ring svg{width:96px;height:96px;transform:rotate(-90deg)}
.fe .ring .trk{stroke:var(--line);fill:none;stroke-width:9}
.fe .ring .val{stroke:var(--olive);fill:none;stroke-width:9;stroke-linecap:round}
.fe .ring .mid{position:absolute;inset:0;display:grid;place-items:center;text-align:center;line-height:1}
.fe .ring .mid b{font-family:var(--serif);font-size:26px;font-weight:600;color:var(--olive-d)}
.fe .ring .mid span{display:block;font-size:10.5px;color:#8A7F73;margin-top:3px}
.toast.ok .tick{display:inline-block;vertical-align:-4px;margin-right:8px}
.toast.ok .tick circle{fill:none;stroke:currentColor;stroke-width:2;opacity:.5}
.toast.ok .tick path{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
/* General homepage hero slideshow (photos and captions from the Super Admin's "Hero photos"). */
.fe .hero-show .hs-big,.fe .hero-show .hs-small{position:absolute;inset:0}
.fe .hero-show .arch img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0}
.fe .hero-show .arch img.on{opacity:1}
.fe .hero-show .tag[hidden]{display:none}
.fe .hero-show .hs-cap{display:inline-block}
.fe .hs-dots{position:absolute;left:0;right:0;bottom:-38px;display:flex;justify-content:center;gap:2px}
.fe .hs-dots button{width:28px;height:28px;padding:0;border:0;background:none;cursor:pointer;display:grid;place-items:center}
.fe .hs-dots button::after{content:"";width:8px;height:8px;border-radius:99px;background:#D9C7A9;transition:width .4s,background .4s}
.fe .hs-dots button.on::after{width:22px;background:var(--terra)}
.fe .hs-dots button:focus-visible{outline:2px solid var(--olive);outline-offset:-4px;border-radius:99px}
@media (max-width:640px){
  .fe .hero-show{height:auto!important;max-width:none!important;display:flex;flex-direction:column;align-items:stretch}
  .fe .hero-show .a2{display:none}
  .fe .hero-show .a1{position:relative!important;right:auto!important;top:auto!important;width:100%!important;height:auto!important;aspect-ratio:4/5;max-height:72vh}
  .fe .hero-show .tag{position:relative!important;right:auto!important;bottom:auto!important;max-width:none!important;margin-top:-34px;margin-left:18px;margin-right:18px;text-align:center;z-index:2}
  .fe .hero-show .hs-dots{position:relative;bottom:auto;margin-top:8px}
}
@media (max-width:900px){.fe .upnext{grid-template-columns:minmax(0,1fr)}}
@media (max-width:560px){.fe .nextcls{grid-template-columns:auto 1fr}.fe .nextcls .go{grid-column:1/-1}}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference){
  /* Pages fade into each other (browsers that support it; others simply change page). */
  @view-transition{navigation:auto}
  ::view-transition-old(root){animation:vt-out .28s ease both}
  ::view-transition-new(root){animation:vt-in .45s ease both}
  @keyframes vt-out{to{opacity:0}}
  @keyframes vt-in{from{opacity:0;transform:translateY(8px)}}
  .fe .nav{view-transition-name:nav} .fe .m-nav{view-transition-name:mnav} .fe .bottom-nav{view-transition-name:bnav}

  /* The sun turns very slowly and breathes. */
  .fe .sunbg{animation:sun-turn 180s linear infinite,sun-breathe 9s ease-in-out infinite}
  @keyframes sun-turn{to{rotate:360deg}}
  @keyframes sun-breathe{0%,100%{scale:1}50%{scale:1.05}}

  /* Hero: words and buttons arrive one after another, the arches settle in. */
  .fe .hero .in>div:first-child>*{animation:m-rise .9s cubic-bezier(.2,.7,.2,1) both}
  .fe .hero .in>div:first-child>*:nth-child(2){animation-delay:.12s}
  .fe .hero .in>div:first-child>*:nth-child(3){animation-delay:.24s}
  .fe .hero .in>div:first-child>*:nth-child(4){animation-delay:.36s}
  .fe .hero .in>div:first-child>*:nth-child(5){animation-delay:.48s}
  .fe .hero .collage>*{animation:m-settle 1.2s cubic-bezier(.2,.7,.2,1) both}
  .fe .hero .collage .a2{animation-delay:.25s}
  .fe .hero .collage .tag{animation-delay:.6s}
  @keyframes m-rise{from{opacity:0;transform:translateY(18px)}}
  @keyframes m-settle{from{opacity:0;transform:translateY(26px) scale(.97)}}

  /* Parallax on the arches (desktop only, set by motion.js). */
  .fe .collage .a1,.fe .collage .a2{translate:0 var(--py,0px);transition:translate .2s linear}

  /* Homepage hero slideshow: slow cross-fade with a gentle settle; the caption fades between photos. */
  .fe .hero-show .arch img{transform:scale(1.06);transition:opacity 1.6s ease,transform 8s cubic-bezier(.2,.7,.2,1)}
  .fe .hero-show .arch img.on{transform:scale(1)}
  .fe .hero-show .hs-cap{transition:opacity .5s ease,transform .5s ease}
  .fe .hero-show .hs-cap.out{opacity:0;transform:translateY(6px)}

  /* Studio hero photos: slow cross-fade with a gentle zoom (3 photos, 7 s each). */
  .fe .slides img{animation:m-slide 21s ease-in-out infinite;opacity:0}
  .fe .slides img:nth-child(2){animation-delay:7s}
  .fe .slides img:nth-child(3){animation-delay:14s}
  @keyframes m-slide{0%{opacity:0;scale:1.08}8%{opacity:1}33%{opacity:1}42%{opacity:0;scale:1}100%{opacity:0}}

  /* Sections and cards fade and rise as they come into view (classes added by motion.js). */
  .motion .rv,.motion .card.hover.rv{opacity:0;transform:translateY(26px);transition:opacity .9s ease var(--d,0s),transform .9s cubic-bezier(.2,.7,.2,1) var(--d,0s)}
  .motion .rv.seen,.motion .card.hover.rv.seen{opacity:1;transform:none}

  /* Header turns lighter once the page scrolls. */
  .fe .nav,.fe .m-nav{transition:background .4s,box-shadow .4s}
  .fe .nav.scrolled,.fe .m-nav.scrolled{background:rgba(251,244,230,.72);box-shadow:0 6px 24px rgba(70,50,30,.06)}

  /* Cards: softer lift, photos zoom slowly. */
  .fe .card.hover{transition:transform .45s cubic-bezier(.2,.7,.2,1),box-shadow .45s}
  .fe .card.hover:hover{transform:translateY(-4px)}
  .fe .studio-mini .lg img{transition:transform .9s cubic-bezier(.2,.7,.2,1)}
  .fe .studio-mini:hover .lg img{transform:scale(1.06)}
  .fe .article-card .im img{transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
  .fe .shortcut:hover .ic{animation:m-bob .9s ease}
  @keyframes m-bob{40%{transform:translateY(-4px)}}

  /* Credits ring fills when it comes into view. */
  .motion .ring .val{transition:stroke-dashoffset 1.6s cubic-bezier(.2,.7,.2,1) .2s}
  .motion .ring:not(.seen) .val{stroke-dashoffset:var(--full)!important}

  /* Booking confirmed: the tick draws itself. */
  .toast.ok .tick path{stroke-dasharray:24;stroke-dashoffset:24;animation:m-draw .7s ease .25s forwards}
  .toast.ok .tick circle{stroke-dasharray:70;stroke-dashoffset:70;animation:m-draw .6s ease forwards}
  .toasts .toast{animation:m-rise .5s cubic-bezier(.2,.7,.2,1) both}
  @keyframes m-draw{to{stroke-dashoffset:0}}

  /* Bottom bar icons react when tapped. */
  .fe .bottom-nav a span{transition:transform .3s cubic-bezier(.2,.7,.2,1)}
  .fe .bottom-nav a:active span{transform:scale(.86)}
  .fe .bottom-nav a.on span{animation:m-pop .5s cubic-bezier(.2,.7,.2,1)}
  @keyframes m-pop{40%{transform:translateY(-3px) scale(1.08)}}
}

/* ---------- General homepage: branches across Malaysia (still parts) ---------- */
.fe .br-sec{position:relative;overflow:hidden}
.fe .br-big{font-size:clamp(40px,6vw,64px);line-height:1;font-weight:500;color:var(--olive-d)}
.fe .br-big .br-num{color:var(--terra-d);font-variant-numeric:lining-nums tabular-nums}
.fe .br-tags{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:16px 0 14px}
.fe .br-tags span{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--olive-d);background:var(--sand3);border:1px solid var(--sand);border-radius:999px;padding:5px 12px}
.fe .br-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:24px;align-items:stretch;margin-top:8px}
.fe .br-map{padding:18px 10px 6px;background:linear-gradient(180deg,#FFFDF8,var(--sand3));display:flex;align-items:center}
.fe .br-map svg{width:100%;height:auto;display:block;overflow:visible}
.fe .br-my{fill:#E8D6B8;stroke:#C9AE85;stroke-width:1;stroke-linejoin:round}
.fe .br-sea{font-size:11px;letter-spacing:.22em;fill:#B9A88E}.fe .br-sea.it{font-family:var(--serif);font-style:italic;font-size:15px;letter-spacing:.04em}
.fe .br-nb{fill:#F1E8D8;stroke:#E2D4BC;stroke-width:.8;stroke-linejoin:round}
.fe .br-pin{cursor:pointer;outline:none}
.fe .br-pin .halo{fill:var(--olive);opacity:.12;transition:opacity .4s,fill .4s}
.fe .br-pin .dot{fill:#fff;stroke:var(--olive);stroke-width:3;transition:fill .3s,stroke .3s}
.fe .br-pin .nm{font-family:var(--serif);font-size:17px;font-weight:600;fill:var(--olive-d)}
.fe .br-pin .ct{font-size:12px;fill:#8A7F73}
.fe .br-pin text{paint-order:stroke;stroke:#FBF6EC;stroke-width:4px;stroke-linejoin:round}
.fe .br-tabs{position:relative}
.fe .br-pin.soon .dot{stroke-dasharray:3 2.4}
.fe .br-pin:hover .halo,.fe .br-pin:focus-visible .halo{opacity:.22}
.fe .br-pin:focus-visible .dot{stroke-width:4}
.fe .br-pin.on .halo{fill:var(--terra);opacity:.2}
.fe .br-pin.on .dot{fill:var(--terra);stroke:#fff}
.fe .br-pin.on .nm{fill:var(--terra-d)}
.fe .br-panel{padding:20px 22px;display:flex;flex-direction:column;min-width:0}
.fe .br-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.fe .br-tabs button{border:1px solid var(--sand);background:#fff;border-radius:999px;padding:7px 14px;font:inherit;font-size:13.5px;font-weight:500;color:var(--olive-d);cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:background .25s,color .25s,border-color .25s}
.fe .br-tabs button span{font-size:12px;background:var(--sand3);border-radius:999px;padding:1px 8px;color:var(--olive-d)}
.fe .br-tabs button.on{background:var(--olive);border-color:var(--olive);color:#fff}
.fe .br-tabs button.on span{background:rgba(255,255,255,.2);color:#fff}
.fe .br-lh{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:6px}
.fe .br-lh h3{margin:0;font-size:24px}
.fe .br-list ul{list-style:none;margin:0;padding:0}
.fe .br-list ul.two{columns:2;column-gap:22px}
.fe .br-list li{display:flex;gap:9px;align-items:flex-start;padding:8px 0;border-bottom:1px dashed var(--line);break-inside:avoid;font-size:14.5px;line-height:1.4}
.fe .br-list li>svg{flex:none;margin-top:2px;color:var(--terra)}
.fe .br-list li b{font-weight:600;color:var(--olive-d)}
.fe .br-list .bn{min-width:0}
.fe .br-list .br-x{font-size:12px;color:#8A7F73;margin-left:2px}
.fe .br-list em,.fe .br-new em{display:block;font-style:normal;font-size:12px;font-weight:600;color:var(--terra-d);margin-top:2px}
.fe .br-list li.up{background:linear-gradient(90deg,rgba(207,115,85,.12),rgba(207,115,85,0));border-radius:10px;padding-left:8px;border-bottom-color:transparent}
.fe .br-list li a{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;font-weight:600;margin-top:3px}
.fe .br-sum{display:flex;flex-wrap:wrap;align-items:stretch;margin-top:24px;padding:0;overflow:hidden}
.fe .br-sum>div{padding:18px 24px;display:flex;align-items:center;gap:14px;position:relative}
.fe .br-sum>div+div{border-left:1px solid var(--line)}
.fe .br-stat{flex-direction:column;align-items:flex-start!important;gap:2px!important;min-width:130px}
.fe .br-stat b{font-family:var(--serif);font-size:44px;line-height:1;font-weight:600;color:var(--olive-d);font-variant-numeric:lining-nums tabular-nums}
.fe .br-stat span{font-size:12.5px;color:#8A7F73;letter-spacing:.04em}
.fe .br-new{flex:1 1 220px}
.fe .br-new .ic{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--sand3);color:var(--terra-d);flex:none}
.fe .br-new b{display:block;font-family:var(--serif);font-size:19px;font-weight:600;color:var(--olive-d);line-height:1.2}
.fe .br-new div>span{display:block;font-size:13.5px;color:#6E6257}
.fe .br-new a.stretch{position:absolute;inset:0}
@media (max-width:900px){
  .fe .br-grid{grid-template-columns:minmax(0,1fr)}
  .fe .br-map{max-width:460px;width:100%;margin:0 auto}
}
@media (max-width:640px){
  .fe .br-map{padding:10px 0 0}
  .fe .br-pin .nm{font-size:23px} .fe .br-pin .ct{font-size:17px;transform:translateY(5px)}
  .fe .br-panel{padding:16px}
  .fe .br-tabs{flex-wrap:nowrap;overflow-x:auto;margin:0 -16px 14px;padding:0 16px 4px;scrollbar-width:none}
  .fe .br-tabs::-webkit-scrollbar{display:none}
  .fe .br-tabs button{flex:none}
  .fe .br-list ul.two{columns:1}
  .fe .br-sum>div{flex:1 1 50%;padding:14px 16px}
  .fe .br-sum>div+div{border-left:0}
  .fe .br-sum .br-stat+.br-stat{border-left:1px solid var(--line)}
  .fe .br-sum .br-new{flex-basis:100%;border-top:1px solid var(--line)}
  .fe .br-stat b{font-size:36px}
}
@media (prefers-reduced-motion: no-preference){
  .fe .br-pin.on .halo{animation:br-breathe 3.2s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
  @keyframes br-breathe{0%,100%{transform:scale(1);opacity:.2}50%{transform:scale(1.18);opacity:.3}}
  .fe .br-list:not([hidden]){animation:m-rise .45s cubic-bezier(.2,.7,.2,1) both}
  .fe .br-list li{animation:m-rise .5s cubic-bezier(.2,.7,.2,1) both}
  .fe .br-list li:nth-child(2){animation-delay:.03s} .fe .br-list li:nth-child(3){animation-delay:.06s}
  .fe .br-list li:nth-child(4){animation-delay:.09s} .fe .br-list li:nth-child(5){animation-delay:.12s}
  .fe .br-list li:nth-child(n+6){animation-delay:.15s}
}
.fe .br-panel{position:relative;overflow:hidden;overflow:clip}
.fe .br-panel>*:not(.br-sunmark){position:relative;z-index:1}
.fe .br-sunmark{position:absolute;right:-70px;bottom:-70px;width:260px;height:260px;color:var(--sand);opacity:.45;pointer-events:none}
