/* =====================================================================
   Lintar Bias Pakarti: motion layer (loaded after site.css on every page).
   motion.js (GSAP + ScrollTrigger + Lenis) does the moving; this file sets the stage.
   html.bt-on is added by motion.js once the libraries loaded and motion is allowed.
   Without it (reduced motion, script blocked) every page is static and complete.
   ===================================================================== */

/* Lenis smooth scroll: Lenis does the easing, so the browser must not */
html.bt-on{scroll-behavior:auto}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-stopped{overflow:hidden}

/* ---------- curtains ---------- */
/* First visit of the homepage, or arriving from another page of the site: a red cover from the very first paint,
   which motion.js replaces with the animated curtain. If the script never arrives, it fades by itself. */
html.bt-loading body:before,html.bt-arrive body:before{content:"";position:fixed;inset:0;z-index:100;background:var(--moment);animation:btCoverOff .3s ease 2.5s forwards}
@keyframes btCoverOff{to{opacity:0;visibility:hidden}}
.bt-loader,.bt-curtain{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:var(--moment);pointer-events:none}
.bt-loader svg{width:clamp(72px,9vw,110px);height:auto;overflow:visible}
.bt-loader path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.bt-loader__l{stroke:var(--on-moment);stroke-width:6}
.bt-loader__a{stroke:var(--moment-em);stroke-width:4.5}
/* leaving for another page */
.bt-veil{position:fixed;inset:0;z-index:100;background:var(--moment);border-radius:50% 50% 0 0/14vh 14vh 0 0;transform:translateY(100%);visibility:hidden;pointer-events:none}

/* ---------- custom cursor (mouse only) ---------- */
.bt-cursor{position:fixed;left:0;top:0;z-index:90;display:grid;place-items:center;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;border:1.5px solid var(--coral);pointer-events:none;opacity:0;
  transition:width .35s var(--ease),height .35s var(--ease),margin .35s var(--ease),background-color .25s ease,border-color .25s ease,opacity .25s ease}
.bt-cursor.on{opacity:1}
.bt-cursor span{font:700 13px/1 var(--sans);color:var(--on-accent);opacity:0;transition:opacity .2s ease}
.bt-cursor.is-link{width:58px;height:58px;margin:-29px 0 0 -29px;background:color-mix(in srgb,var(--coral) 14%,transparent)}
.bt-cursor.is-label{width:78px;height:78px;margin:-39px 0 0 -39px;background:var(--coral);border-color:var(--coral)}
.bt-cursor.is-label span{opacity:1}
.bt-cursor.is-hide{opacity:0}

/* ---------- every page ---------- */
/* text on the accent colour, and its hover */
.btn:not(.btn--dark):not(.btn--light):not(.btn--ghost){color:var(--on-accent)}
.btn:not(.btn--dark):not(.btn--light):not(.btn--ghost):hover{background:var(--coral-d)}
/* no live blur behind the top bar while scrolling (it was redrawn on every frame) */
.bt-on .nav{background:rgba(255,255,255,.97);backdrop-filter:none;-webkit-backdrop-filter:none}
/* FAQ answers open and close smoothly */
.bt-on .qs details>p,.bt-on .faq details>p{overflow:hidden}

/* ---------- home: hero ---------- */
.bw{display:inline-block}
/* the search card and its rows are moved by GSAP, so no CSS transitions fighting it */
.bt-on .hserp,.bt-on .hserp__r{transition:none}
.bt-on .hserp .hserp__hand{transition:none;opacity:0}
.bt-on .hserp__r.is-them{opacity:1}
/* without motion the note is simply shown */
html:not(.bt-on) .hserp .hserp__hand{opacity:1}

/* ribbons: white on the red band; GSAP runs them so they react to scroll speed */
.rib--b{color:var(--on-accent)}
.bt-on .rib__track{animation:none}

/* ---------- home: problem scene ---------- */
.pain{position:relative}
.board{transform-origin:50% 0}
/* the section is one screen tall while pinned */
.bt-scene .pain{height:100vh;height:100svh;padding-top:clamp(64px,10vh,110px);padding-bottom:0}
/* the wave that rises and carries you into "Tenang. Karena itulah saya di sini." */
.bt-wave{position:absolute;left:0;right:0;bottom:0;height:100%;z-index:5;pointer-events:none;visibility:hidden}
.bt-wave__curve{position:absolute;left:-10%;right:-10%;top:0;height:100%;background:var(--moment);border-radius:50% 50% 0 0/var(--arc,40%) var(--arc,40%) 0 0}
.bt-wave__line{position:absolute;inset:0;display:grid;place-items:center;margin:0;padding:0 var(--gut);color:var(--on-moment);text-align:center;font:800 clamp(44px,6.4vw,104px)/1.02 var(--head);letter-spacing:-.03em}
.bt-wave__line>span{display:block;max-width:12em}
.bt-wave__line em{font-style:normal;color:var(--moment-em)}
/* the panel after the wave: same colour, square top, its headline already said by the wave */
.mine{background:var(--moment);color:var(--on-moment)}
.mine h2{color:inherit}
.mine h2 em{color:var(--moment-em)}
.orbit__ring{border-color:color-mix(in srgb,currentColor 28%,transparent)}
.orbit__ring--in{border-color:color-mix(in srgb,currentColor 14%,transparent)}
.orbit__core{color:var(--on-accent);box-shadow:0 0 0 14px rgba(255,255,255,.14)}
.mine .orbit__core{background:var(--green)}
/* the panel overlaps the scene by a few pixels, so no hairline can show between two reds at fractional positions */
html.bt-scene .mine{position:relative;z-index:1;margin-top:-4px;border-radius:0;padding-top:clamp(40px,8vh,90px);padding-bottom:0}
.bt-scene .mine h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.bt-scene .mine .fill{margin-top:0}
.bt-scene .mine__in{align-items:end}
/* phones: the worries arrive as a WhatsApp chat that fills the screen */
@media(max-width:1000px){
  .bt-mscene .pain{display:flex;flex-direction:column;padding-top:clamp(72px,11vh,96px);padding-bottom:84px}
  .bt-mscene .pain h2{flex:none;font-size:clamp(28px,7.4vw,40px)}
  .bt-mscene .board{flex:1;min-height:0;height:auto;display:block;width:100%;max-width:520px;margin:20px auto 0}
  .bt-chat-vp{height:100%;overflow:hidden;border-radius:18px}
  .bt-chat{position:relative;display:flex;flex-direction:column;gap:10px;padding:4px 2px 8px}
  .bt-chat>*{position:static!important;margin:0}
  .bt-chat .bub{align-self:flex-start;max-width:84%}
  .bt-chat .bub--g{align-self:flex-end}
  .bt-chat .stick{align-self:center;width:auto;max-width:78%;font-size:23px;rotate:-2deg}
  .bt-chat .stick--c{rotate:2deg}
}

/* ---------- home: "Coba dengan nama Anda" ---------- */
.bt-on .smp{transition:none}
.bt-on .smp.bt-leaving{opacity:1;visibility:visible;transform:none}
.browser__view{contain:layout paint}

/* ---------- home: work, a 3D carousel ---------- */
.work{overflow:hidden}
.bt-cf .proj-grid{position:relative;display:block;height:var(--cf-h,520px);perspective:1800px;perspective-origin:50% 35%;touch-action:pan-y;user-select:none;-webkit-user-select:none}
/* centred by GSAP (xPercent:-50), not by CSS translate, so it stays centred on every phone */
.bt-cf .proj{position:absolute;left:50%;top:0;width:min(58vw,740px);transform-style:preserve-3d;cursor:pointer;will-change:transform}
.bt-cf .proj:not(.is-active) .proj__open{display:none}
.bt-cf .proj.is-active{cursor:auto}
.bt-cf .proj img{-webkit-user-drag:none}
.bt-cf .proj:not(.is-active) .proj__ph{pointer-events:none}
.bt-cf .proj:not(.is-active) .proj__ph:after{opacity:1;background:rgba(0,0,0,.18)}
.bt-cf__nav{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:26px}
.bt-cf__btn{display:grid;place-items:center;width:56px;height:56px;padding:0;border:0;border-radius:50%;background:var(--green);color:#fff;font:700 22px/1 var(--sans);cursor:pointer;transition:transform .35s var(--pop),background-color .2s ease,color .2s ease}
.bt-cf__btn:hover{transform:scale(1.08);background:var(--coral);color:var(--on-accent)}
.bt-cf__btn:active{transform:scale(.94)}
.bt-cf__dots{display:flex;align-items:center}
.bt-cf__dot{display:grid;place-items:center;width:30px;height:44px;padding:0;border:0;background:none;cursor:pointer}
.bt-cf__dot:before{content:"";width:9px;height:9px;border-radius:99px;background:color-mix(in srgb,var(--text) 22%,transparent);transition:width .45s var(--ease),background-color .3s ease}
.bt-cf__dot[aria-pressed="true"]{width:46px}
.bt-cf__dot[aria-pressed="true"]:before{width:34px;background:var(--coral)}
.bt-cf__count{min-width:64px;color:var(--muted);font:700 14px/1 var(--sans);font-variant-numeric:tabular-nums;text-align:center}
.bt-cf__btn:focus-visible,.bt-cf__dot:focus-visible{outline:3px solid var(--coral);outline-offset:3px}
@media(max-width:1000px){
  .bt-cf .proj{width:min(80vw,560px)}
  .bt-cf .proj figcaption{align-items:center;text-align:center}
  .bt-cf .proj figcaption>span{text-align:center}
  .bt-cf__nav{gap:8px}
  .bt-cf__btn{width:48px;height:48px;font-size:20px}
  .bt-cf__count{display:none}
}

/* ---------- home: process, the line draws itself ---------- */
.bt-on .flow__spark{display:none}
.bt-line{position:absolute;z-index:0;left:28px;right:calc(33.33% - 28px);top:26px;height:3px;border-radius:3px;background:var(--coral);transform-origin:0 50%}
@media(max-width:1000px){.bt-line{left:26px;right:auto;top:28px;bottom:40px;width:3px;height:auto;transform-origin:50% 0}}

/* ---------- home: prices, the hover lift comes back once the cards are dealt ---------- */
.bt-on .lane:not(.bt-dealt){transition:none}

/* ---------- home: closing, the moment colour floods in ---------- */
.bt-on .ready{position:relative;isolation:isolate;overflow:hidden;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:center}
.bt-ready-fill{position:absolute;inset:0;z-index:-1;background:var(--moment);clip-path:circle(0% at 50% 100%)}
.ready h2,.ready p,.ready em.v{transition:color .4s ease}
.ready.bt-red h2,.ready.bt-red p{color:var(--on-moment)}
.ready.bt-red em.v{color:var(--moment-em)}
.ready.bt-red em.v path{stroke:var(--on-moment)}
.ready.bt-red .btn:not(.btn--dark):not(.btn--light):not(.btn--ghost){background:#fff;color:var(--moment);box-shadow:0 5px 0 #111,0 16px 30px -12px rgba(0,0,0,.45)}

/* the full-screen lights-out layer and flash of the tier scene get their own layer, so fading them does not repaint the
   whole screen every frame (they made the Ultra card stutter on phones, 2026-11-27) */
.work__shade,.work__flash{will-change:opacity}
