/* LONGA.studios polish: loads last. The opening screen, the top bar, the back-to-top arrow,
   and a calmer, tighter phone layout that follows the desktop's black, white and orange. */

/* ===== opening screen: only the logo inside the chrome ring ===== */
html .wel{display:grid;place-items:center;padding:0;gap:0;height:100vh;height:100dvh;background:#000;cursor:pointer;touch-action:none;-webkit-tap-highlight-color:transparent;--bg:#000;--ink:#fff}
html .wel .w-top,html .wel .w-about,html .wel .w-tag,html .wel .w-rule,html .wel .w-side,html .wel .w-est{display:none!important}
html .wel .w-intro{position:relative;left:auto;top:auto;translate:none;display:block;--rw:min(66vw,42svh,380px)}
@media (min-width:761px){html .wel .w-intro{--rw:min(52vh,40vw,460px)}}
html .wel .w-ring{width:var(--rw)}
html .wel .w-mark .mk{width:calc(var(--rw) * .39)}
html .wel .w-intro,html .wel .w-mark{opacity:0;animation:pIn 1.6s .25s cubic-bezier(.2,.8,.2,1) forwards}
html .wel .w-mark{animation:none;opacity:1}
@keyframes pIn{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:none}}
/* hand-off: the ring glides past you, "Welcome" breathes in, then the site rises */
html .wel .w-band{transition:scale 1.25s cubic-bezier(.6,0,.2,1),opacity .9s ease .15s}
html .wel.go .w-band{scale:3.4;opacity:0}
html .wel.go .w-intro{animation:none;opacity:1;filter:none;transition:opacity .7s ease .5s}
html .wel.go .w-mark{opacity:0;transition:opacity .6s ease}
html .wel .w-hello{transition:opacity 1s cubic-bezier(.2,.8,.2,1),letter-spacing 1.6s cubic-bezier(.2,.8,.2,1)}
html .wel.go .w-hello{opacity:1;letter-spacing:.5em;transition-delay:.75s}
html .wel.out{opacity:0;visibility:hidden;transition:opacity 1.1s cubic-bezier(.4,0,.2,1),visibility 0s linear 1.1s}
@media (prefers-reduced-motion:reduce){html .wel .w-intro{animation:none;opacity:1}}

/* the first screen rises in once the welcome lets go */
html:not(.locked) #top .hero :is(.kicker,.lead,.ctas,.hx-strip){animation:pRise 1.1s cubic-bezier(.2,.8,.2,1) both}
html:not(.locked) #top .hero .kicker{animation-delay:.05s}
html:not(.locked) #top .hero .lead{animation-delay:.45s}
html:not(.locked) #top .hero .ctas{animation-delay:.6s}
html:not(.locked) #top .hero .hx-strip{animation-delay:.75s}
@keyframes pRise{from{opacity:0;transform:translate3d(0,18px,0)}to{opacity:1;transform:none}}
html.locked #top .hero :is(.kicker,.lead,.ctas,.hx-strip){opacity:0}

/* ===== top bar steps away while you read ===== */
header.top{transition:transform .6s cubic-bezier(.2,.8,.2,1);will-change:transform}
html.nav-hide:not(.menu-open) header.top{transform:translate3d(0,calc(-100% - 28px),0)}

/* ===== back to top ===== */
#totop{position:fixed;z-index:60;right:var(--tt-r,28px);bottom:var(--tt-b,92px);width:44px;height:44px;padding:0;border-radius:50%;display:grid;place-items:center;
  color:#fff;background:rgba(10,10,10,.82);border:1px solid rgba(255,255,255,.2);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);cursor:pointer;
  opacity:0;transform:translate3d(0,10px,0) scale(.9);pointer-events:none;-webkit-tap-highlight-color:transparent;
  transition:opacity .45s cubic-bezier(.2,.8,.2,1),transform .45s cubic-bezier(.2,.8,.2,1),border-color .3s,color .3s,background .3s}
#totop.show{opacity:1;transform:none;pointer-events:auto}
#totop:hover,#totop:focus-visible{border-color:#ff6a1a;color:#ff6a1a;outline:0}
#totop:active{transform:scale(.92)}

/* ===== phone: concise, centered, the same look as desktop ===== */
@media (max-width:760px){
  html{scroll-padding-top:84px}
  #top .hero{padding-top:clamp(98px,27vw,118px)!important;padding-bottom:34px!important}
  #top .hero .kicker{font-size:10.5px;letter-spacing:.22em;margin-bottom:18px}
  #top .hero h1{font-size:clamp(36px,10.8vw,43px)!important;line-height:1.04;letter-spacing:-.04em}
  #top .hero .lead{font-size:15.5px!important;line-height:1.55;max-width:31ch;margin:18px auto 0!important;color:#fff!important}
  #top .hero .ctas{margin-top:22px!important;gap:10px!important}
  #top .hero .ctas .btn{padding:15px 22px;font-size:15px;min-height:50px}
  #top .hero .hx-strip{margin-top:26px!important;gap:6px!important;border:0!important}
  #top .hero .hx-strip li{padding:0!important;border:0!important;font-size:10.5px;letter-spacing:.16em;opacity:.7}
  #top .hero .hx-strip li+li{border:0!important}
  /* every section breathes the same, and its title reads like the desktop's */
  #top section{padding-block:clamp(40px,11vw,56px)!important}
  #top .final{margin-top:0!important}
  #top .final h2{line-height:1.1!important}
  #top h2 br{display:none}
  #top h2{font-size:clamp(28px,8.4vw,36px);line-height:1.08;letter-spacing:-.035em;text-wrap:balance}
  #top .wrap{padding-inline:max(20px,env(safe-area-inset-left,0px))}
  #top .glass,#top .promise,#top details.glass,#top .stop{border-radius:20px}
  #top .stop,#top .promise{padding:22px 20px}
  /* text arrives gently: a short rise, no blur */
  .rv{transform:translate3d(0,14px,0)!important;transition:opacity .9s cubic-bezier(.2,.8,.2,1),transform .9s cubic-bezier(.2,.8,.2,1)!important}
  .rv.in{transform:none!important}
  .rv.d1{transition-delay:.06s!important}.rv.d2{transition-delay:.12s!important}.rv.d3{transition-delay:.18s!important}
  #top .final{padding:34px 22px!important}
  footer.foot-wrap{padding-bottom:max(28px,env(safe-area-inset-bottom,0px))}
}
@media (hover:none){#totop:hover{border-color:rgba(255,255,255,.2);color:#fff}}

/* "studios" under the mark, and a quiet Enter under the ring */
html .wel .w-studios{position:absolute;left:0;right:0;top:100%;margin-top:calc(var(--rw) * .05);text-align:center;padding-left:.42em;
  font:300 max(8px,calc(var(--rw) * .03))/1 "Outfit","Inter",system-ui,sans-serif;letter-spacing:.42em;text-transform:lowercase;color:rgba(255,255,255,.78);white-space:nowrap}
html .wel .w-go{display:block!important;position:absolute;left:50%;top:100%;translate:-50% 0;margin:calc(var(--rw) * .17) 0 0;padding:8px 0 8px .5em;border:0;background:none;
  font:400 10.5px/1 "Outfit","Inter",system-ui,sans-serif;letter-spacing:.5em;text-transform:uppercase;color:rgba(255,255,255,.85);opacity:0;
  animation:pIn 1.4s 1.2s cubic-bezier(.2,.8,.2,1) forwards;transition:letter-spacing .6s cubic-bezier(.2,.8,.2,1),color .4s}
html .wel .w-go::after{content:"";display:block;width:18px;height:1px;margin:10px auto 0;padding-right:0;background:#ff6a1a;opacity:.9;transition:width .6s cubic-bezier(.2,.8,.2,1)}
html .wel:hover .w-go{letter-spacing:.62em;color:#fff}
html .wel:hover .w-go::after{width:34px}
html .wel.go .w-go{animation:none;opacity:0;transition:opacity .35s ease}
@media (prefers-reduced-motion:reduce){html .wel .w-go{animation:none;opacity:1}}

/* every letter that is not orange is white: no greys */
body,#top,header.top,footer.foot-wrap,.menu{--gx-soft:#fff;--soft:#fff;--faint:#fff;--ink-hi:#fff;--gx-ink:#fff}
html .lang button,html header.top .lang button,html footer .lang button,html .menu .lang button{color:#fff!important}
html .lang button[aria-pressed="true"],html header.top .lang button[aria-pressed="true"],html footer .lang button[aria-pressed="true"]{color:#ff6a1a!important}
#top .stop small,#top .pledge-line,#top .hx-strip li,#top .trust-l,#top .tiny,#top .dbody,#top .dbody p,#top .wi-line,#top .wi-label,#top .fine,#top small,#top .muted,#top .then,#top .fit,#top .sub,footer.foot-wrap p,footer.foot-wrap small,footer.foot-wrap li,footer.foot-wrap nav a{color:#fff!important;opacity:1!important}
#top .tl{opacity:1}

/* ---- FAQ boxes: grid-row height glide ---- */
#top details .dbody{padding:0!important;display:grid;grid-template-rows:0fr;opacity:0!important;transition:grid-template-rows .5s cubic-bezier(.2,.8,.2,1),opacity .32s ease}
#top details.is-open .dbody{grid-template-rows:1fr;opacity:1!important;transition:grid-template-rows .5s cubic-bezier(.2,.8,.2,1),opacity .45s ease .08s}
#top details .dx{overflow:hidden;min-height:0}
#top details .di{padding:0 24px 24px}
@media(max-width:600px){#top details .di{padding:0 18px 20px}}
#top details:not(.is-open) summary::after{transform:none!important}
#top details.is-open summary::after{transform:rotate(45deg)!important}
#top details summary{transition:color .3s ease}
#top details.is-open summary{color:#ff6a1a}
#top details summary:focus-visible{outline:2px solid #ff6a1a;outline-offset:-2px;border-radius:inherit}
#top details::details-content{content-visibility:visible!important;display:block!important;transition:none!important;height:auto!important;block-size:auto!important}
