/* Moat — motion layer (hero upgrade + GSAP scroll system)
   Only active when motion.js adds html.gsap-motion. Pure additive: removing
   this file + motion.js returns the site to its current state. */

/* When GSAP owns animation, neutralize the legacy CSS reveal transitions
   so the two systems never fight over opacity/transform. */
html.gsap-motion .reveal,
html.gsap-motion .js-reveal .reveal{opacity:1;transform:none;transition:none}

/* ---------- scroll progress hairline ---------- */
.scroll-progress{position:fixed;top:0;left:0;right:0;height:2px;z-index:90;
  background:linear-gradient(90deg,var(--brand-deep),var(--brand),var(--brand-bright));
  transform-origin:0 50%;transform:scaleX(0);pointer-events:none}

/* ---------- hero: aurora field + fine grid ---------- */
.hero{overflow:hidden}
.hero-fx{position:absolute;inset:0;z-index:0;pointer-events:none}
.hero-fx .grid{position:absolute;inset:-1px;opacity:.55;
  background-image:linear-gradient(rgba(255,255,255,.028) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.028) 1px,transparent 1px);
  background-size:52px 52px;
  -webkit-mask-image:radial-gradient(900px 600px at 62% 30%,#000 30%,transparent 75%);
          mask-image:radial-gradient(900px 600px at 62% 30%,#000 30%,transparent 75%)}
.hero-fx .blob{position:absolute;border-radius:50%;filter:blur(70px);will-change:transform}
.hero-fx .b1{width:560px;height:560px;right:-140px;top:-180px;
  background:radial-gradient(circle,rgba(46,139,255,.30),transparent 62%);
  animation:moat-drift1 26s ease-in-out infinite alternate}
.hero-fx .b2{width:480px;height:480px;left:-160px;bottom:-220px;
  background:radial-gradient(circle,rgba(10,70,198,.26),transparent 60%);
  animation:moat-drift2 32s ease-in-out infinite alternate}
.hero-fx .b3{width:300px;height:300px;left:38%;top:-120px;
  background:radial-gradient(circle,rgba(91,168,255,.14),transparent 60%);
  animation:moat-drift3 22s ease-in-out infinite alternate}
@keyframes moat-drift1{from{transform:translate(0,0) scale(1)}to{transform:translate(-90px,70px) scale(1.12)}}
@keyframes moat-drift2{from{transform:translate(0,0) scale(1)}to{transform:translate(80px,-60px) scale(1.08)}}
@keyframes moat-drift3{from{transform:translate(0,0)}to{transform:translate(60px,40px)}}
.hero .wrap{position:relative;z-index:1}

/* ---------- hero: h1 line reveal scaffolding ---------- */
.hl-line{display:block;overflow:hidden;padding-bottom:.08em;margin-bottom:-.08em}
.hl-inner{display:block;will-change:transform}

/* ---------- hero: 3D stage ---------- */
.phone-stage{perspective:1100px}
.phone-stage .phone{will-change:transform;transform-style:preserve-3d}
.float-tile{will-change:transform}

/* ---------- hero: live TOTP card ---------- */
.totp-card{position:absolute;z-index:4;left:-10%;top:15%;display:flex;align-items:center;gap:12px;
  padding:12px 16px 12px 13px;border-radius:16px;
  background:rgba(19,21,27,.72);border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  box-shadow:0 24px 50px -18px rgba(0,0,0,.8)}
.totp-card .ring{position:relative;width:38px;height:38px;flex:none}
.totp-card .ring svg{width:38px;height:38px;transform:rotate(-90deg)}
.totp-card .ring .bg{stroke:rgba(255,255,255,.12)}
.totp-card .ring .fg{stroke:var(--brand-bright);stroke-linecap:round;
  transition:stroke .4s}
.totp-card .ring.low .fg{stroke:#FFB23E}
.totp-card .ring .sec{position:absolute;inset:0;display:grid;place-items:center;
  font:600 11.5px/1 var(--mono);color:var(--ink2)}
.totp-card .meta{display:flex;flex-direction:column;gap:3px}
.totp-card .svc-name{font:500 11px/1 var(--font);color:var(--ink3);letter-spacing:.04em;text-transform:uppercase}
.totp-card .code{font:600 21px/1 var(--mono);letter-spacing:.06em;color:var(--ink);
  font-variant-numeric:tabular-nums}
@media(max-width:860px){.totp-card{display:none}}

/* GSAP-managed entrance states are set inline by motion.js; this file keeps
   everything visible for no-JS / reduced-motion users. */
