/* SOGANET homepage premium pass (2026-11).
   Loaded after every section stylesheet. To roll back: remove the enqueue in functions.php. */

/* 1. Reveal: no blur filter (costly), shorter travel, quicker and earlier */
body.sgx-plse3w-homepage .sgx-wrl5lw-reveal{
  opacity:0;
  transform:translate3d(0,26px,0);
  filter:none;
  transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .85s cubic-bezier(.2,.7,.2,1);
  will-change:opacity,transform;
}
body.sgx-plse3w-homepage .sgx-wrl5lw-reveal.is-visible{opacity:1;transform:none;will-change:auto}

/* 2. Decorative loops stop while their section is off screen (class set by soganet-premium.js) */
body.sgx-plse3w-homepage .sgx-anim-paused,
body.sgx-plse3w-homepage .sgx-anim-paused *{animation-play-state:paused!important}

/* 3. One scrollbar: hide the custom rail, give the native one the site colours */
body.sgx-plse3w-homepage .sgx-c8zr7y-scrollbar{display:none!important}
html:has(body.sgx-plse3w-homepage){scrollbar-width:thin;scrollbar-color:rgba(124,232,255,.38) #020613}
body.sgx-plse3w-homepage::-webkit-scrollbar{width:10px}
body.sgx-plse3w-homepage::-webkit-scrollbar-track{background:#020613}
body.sgx-plse3w-homepage::-webkit-scrollbar-thumb{background:rgba(124,232,255,.32);border-radius:10px;border:2px solid #020613}

/* 4. Headings: give Vietnamese diacritics room (tracking was -0.066em, line-height .96) */
body.sgx-plse3w-homepage .s01-hero-title,
body.sgx-plse3w-homepage .s01-title-line{letter-spacing:-.035em!important;line-height:1.06!important;font-weight:900!important}
body.sgx-plse3w-homepage #sgx-ow0hct-app section h2{letter-spacing:-.04em!important;line-height:1.06!important;font-weight:900!important}
body.sgx-plse3w-homepage #sgx-ow0hct-app section h3{letter-spacing:-.015em}

/* 5. Body copy: a little larger and brighter for comfortable reading */
body.sgx-plse3w-homepage #sgx-ow0hct-app .sgx-vseohp-lead{font-size:clamp(16px,1.12vw,18.5px)!important;line-height:1.7!important;color:rgba(232,240,255,.84)!important}
body.sgx-plse3w-homepage #sgx-ow0hct-app section li,
body.sgx-plse3w-homepage #sgx-ow0hct-app section p:not([class*=kicker]):not(.sgx-vseohp-lead){color:rgba(226,236,252,.8)}

/* 6. Buttons: calmer hover, clear keyboard focus */
body.sgx-plse3w-homepage .sgx-za23xr-btn{transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s ease,filter .35s ease,background-color .35s ease!important}
body.sgx-plse3w-homepage .sgx-za23xr-btn:hover{transform:translateY(-2px);filter:none}
body.sgx-plse3w-homepage .sgx-orbqil-btn-primary:hover{box-shadow:0 10px 34px -8px rgba(80,170,255,.65),0 0 0 1px rgba(150,220,255,.35) inset}
body.sgx-plse3w-homepage .sgx-hrw09m-btn-ghost:hover{box-shadow:0 0 0 1px rgba(150,220,255,.5) inset;background-color:rgba(124,232,255,.06)}
body.sgx-plse3w-homepage a:focus-visible,
body.sgx-plse3w-homepage button:focus-visible{outline:2px solid #7ce8ff;outline-offset:3px;border-radius:8px}

/* 7. Team section (sections/team/html.php) */
.sgx-team{position:relative;z-index:2;padding:clamp(72px,9vw,128px) 0}
.sgx-team__inner{width:min(1180px,calc(100% - 40px));margin:0 auto;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(28px,4vw,64px);align-items:center}
.sgx-team__kicker{font:800 12px/1.6 Inter,system-ui,sans-serif;letter-spacing:.42em;color:#81dfff;text-transform:uppercase;margin:0 0 14px}
body.sgx-plse3w-homepage #sgx-ow0hct-app #sgx-team h2{font-family:Roboto,sans-serif;font-size:clamp(32px,3.2vw,52px)!important;color:#fff;margin:0 0 18px}
.sgx-team h2 span{background:linear-gradient(90deg,#9fe9ff,#5b8cff);-webkit-background-clip:text;background-clip:text;color:transparent}
.sgx-team__lead{font:400 clamp(16px,1.12vw,18.5px)/1.7 Inter,system-ui,sans-serif;color:rgba(232,240,255,.84);margin:0 0 26px}
.sgx-team__roles{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 30px;padding:0;list-style:none}
.sgx-team__roles li{font:600 13px/1 Inter,system-ui,sans-serif;color:#dff6ff;padding:10px 14px;border-radius:999px;background:rgba(124,232,255,.07);box-shadow:0 0 0 1px rgba(124,232,255,.22) inset}
.sgx-team__photo{position:relative;margin:0;border-radius:22px;overflow:hidden;background:#0b1530;box-shadow:0 30px 80px -30px rgba(20,90,255,.55),0 0 0 1px rgba(150,210,255,.18)}
.sgx-team__photo img{display:block;width:100%;height:auto}
.sgx-team__photo figcaption{position:absolute;left:16px;bottom:14px;font:600 13px/1.3 Inter,system-ui,sans-serif;color:#0b1530;background:rgba(255,255,255,.88);padding:8px 12px;border-radius:10px}
@media (max-width:900px){.sgx-team__inner{grid-template-columns:1fr}.sgx-team__photo{order:-1}}

/* 8. Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce){
  body.sgx-plse3w-homepage *{animation-duration:.001s!important;animation-iteration-count:1!important;transition-duration:.001s!important}
  body.sgx-plse3w-homepage .sgx-wrl5lw-reveal{opacity:1;transform:none}
}

/* 9. Section 4 (eye): the HTML rings/text follow values that are already smoothed in JS every frame.
   The old 0.24s transitions were re-targeted on every frame (lag then catch-up = stutter) and the
   rings were moved with left/top (layout + repaint each frame). Move them on the compositor instead. */
body.sgx-plse3w-homepage .sgx-s04__eye-fx{
  left:0!important;top:0!important;
  transform:translate3d(var(--s04-eye-center-x,0px),var(--s04-eye-center-y,0px),0) translate(-50%,-50%) scale(calc(.90 + var(--s04-eye-fx-progress, 0) * .10))!important;
  transition:none!important;
}
body.sgx-plse3w-homepage .sgx-s04__content,
body.sgx-plse3w-homepage .sgx-s04__signal{transition:none!important}
body.sgx-plse3w-homepage .sgx-s04__eye-fx:before{filter:none!important;background:radial-gradient(circle, rgba(92,207,255,.13) 0%, rgba(72,122,255,.06) 38%, transparent 72%)!important}
body.sgx-plse3w-homepage .sgx-s04:before{filter:none!important}
body.sgx-plse3w-homepage .sgx-s04__visual{contain:layout style}
/* 10. Section 4 -> 5: rings and labels fade out while the eye turns into the sphere (--s04-fx-out set in JS) */
body.sgx-plse3w-homepage .sgx-s04__eye-fx{opacity:calc(var(--s04-eye-fx-progress, 0) * (1 - var(--s04-fx-out, 0)))!important}
body.sgx-plse3w-homepage .sgx-s04__signal{opacity:calc(var(--s04-signal-progress, 0) * (1 - var(--s04-fx-out, 0)))!important}
