/* ──────────────────────────────────────────────────────────────
   FROST-MOTION — glassmorphism + ambient motion layer
   Loaded AFTER each page's inline <style>. Reuses the existing
   :root tokens (--prism, --a-purple, --g-*, --radius, --ease-out,
   --font-*) wherever they already exist; only introduces new
   tokens for values that have no existing equivalent.
   ────────────────────────────────────────────────────────────── */

:root{
  /* fallback for pages whose inline :root omits it (get-started) —
     identical value to the homepage's own token, so this is a
     no-op redeclaration everywhere it already exists */
  --gb-sm: 14px;

  /* ambient aurora palette — same hot-pink/magenta/plum family as
     the existing --orb-*/--prism tokens, extended one shade darker
     for a page-wide (not hero-only) background layer */
  --aurora-plum:   #6b2d5c;
  --aurora-pink:   #ff85b3;
  --aurora-violet: #3d2466;

  /* cursor-spotlight defaults so the gradients have a sane position
     before the first pointermove fires */
  --mouse-x: 50%;
  --mouse-y: 0%;
}

/* ── 1. AMBIENT AURORA STAGE (page-wide, fixed, behind everything) ─
   Every backdrop-filter surface on the page (nav,
   cap-cards, principles, modal, hire-card, form-card, gp-card) has
   to re-sample whatever's behind it every time these orbs move, so
   their size/blur cost is paid repeatedly, not once. Kept the same
   footprint/positions and colors, just lighter: roughly half the
   blur radius (blur cost scales with the square of the radius) and
   a smaller area to blur in the first place. */
.aurora-stage{
  position:fixed;inset:0;z-index:-1;
  overflow:hidden;pointer-events:none;
  contain:strict;
}
.aurora-orb{
  position:absolute;border-radius:50%;
  mix-blend-mode:screen;will-change:transform;
  opacity:.28;
}
.aurora-orb-1{
  width:36vw;height:36vw;min-width:320px;min-height:320px;
  background:var(--aurora-plum);
  top:-10%;left:-8%;
  filter:blur(60px);
  animation:orbA 46s ease-in-out infinite alternate;
}
.aurora-orb-2{
  width:30vw;height:30vw;min-width:280px;min-height:280px;
  background:var(--aurora-pink);
  top:30%;right:-10%;
  filter:blur(55px);
  animation:orbB 58s ease-in-out infinite alternate;
  animation-delay:-18s;
}
.aurora-orb-3{
  width:28vw;height:28vw;min-width:260px;min-height:260px;
  background:var(--aurora-violet);
  bottom:-12%;left:28%;
  filter:blur(58px);
  animation:orbC 52s ease-in-out infinite alternate;
  animation-delay:-30s;
}

/* existing site-wide .grain overlay already does the fractal-noise
   job this spec asks for — just dial its opacity to the spec value
   instead of standing up a second noise layer */
.grain{ opacity:.035; }

@media(prefers-reduced-motion:reduce){
  .aurora-orb{animation:none!important;transform:none!important}
}
@media(max-width:600px){
  .aurora-orb-3{display:none}
}

/* ── 3a. NAV — floating frosted pill, deepens on scroll ────────── */
.nav{
  top:14px!important;left:50%!important;right:auto!important;
  transform:translateX(-50%);
  width:calc(100% - 32px);
  max-width:960px;
  border-radius:999px;
  transition:background .3s var(--ease-out),box-shadow .3s var(--ease-out),
             backdrop-filter .3s var(--ease-out),border-color .3s var(--ease-out);
}
.nav.scrolled{
  backdrop-filter:blur(26px) saturate(1.8);
  -webkit-backdrop-filter:blur(26px) saturate(1.8);
  border-color:rgba(255,255,255,.14);
}
/* get-started's nav is position:sticky, not fixed — same pill
   treatment, just without the floating offset that would clash
   with sticky's own top anchoring */
body:has(#g-form) .nav{
  position:sticky;top:10px;left:auto;right:auto;transform:none;
  width:calc(100% - 32px);max-width:960px;margin:0 auto;
  border-radius:999px;
}

/* ── 3b. LAYERED FROST on products / about / hire / get-started / modal ─ */
.principle,
.modal-box,
.form-card,
.gp-card,
.hire-card{
  position:relative;
}
.gp-card{
  backdrop-filter:blur(var(--gb-sm));
  -webkit-backdrop-filter:blur(var(--gb-sm));
}
.hire-card{
  margin-top:8px;
  padding:40px clamp(24px,5vw,48px);
  background:var(--g-mid);
  backdrop-filter:blur(var(--gb-md)) saturate(1.3);
  -webkit-backdrop-filter:blur(var(--gb-md)) saturate(1.3);
  border:1px solid var(--g-border);
  border-radius:var(--radius);
  box-shadow:var(--g-shine),var(--g-shad-md);
}

/* shared cursor-spotlight surfaces — inner backlight + border glow,
   driven by --mx/--my (px, backlight) and --mouse-x/--mouse-y
   (%, border ring), set per-element by frost-motion.js */
.frost-spot{ position:relative; overflow:hidden; }
.frost-spot-glow{
  position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;
  background:radial-gradient(circle 260px at var(--mx,50%) var(--my,0px),rgba(255,111,165,.22) 0%,transparent 70%);
  opacity:0;transition:opacity .35s var(--ease-out);
}
.frost-spot:hover .frost-spot-glow{opacity:1}
.frost-spot-border{
  position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:2;
  padding:1px;
  background:radial-gradient(circle 220px at var(--mouse-x,50%) var(--mouse-y,0%),rgba(255,255,255,.75),rgba(255,133,179,.25) 55%,transparent 75%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  opacity:0;transition:opacity .35s var(--ease-out);
}
.frost-spot:hover .frost-spot-border{opacity:1}

/* cap-card already has its own working ::before backlight + hover
   lift — only add the new border-glow child on top of it */
.cap-card{ overflow:hidden; }

@media(hover:none){
  .frost-spot-glow,.frost-spot-border{display:none}
}
@media(prefers-reduced-motion:reduce){
  .frost-spot-glow,.frost-spot-border{transition:none}
}

/* ── 4. MICRO-INTERACTIONS ─────────────────────────────────────── */
/* .btn-primary::after glint-on-hover and the three status dots'
   pulse already match this spec exactly — nothing to add there.
   Secondary glass buttons get the "lift + border glow" the spec
   calls out, layered onto their existing box-shadow tokens. */
.btn-secondary:hover,
.btn-hire:hover{
  border-color:rgba(255,111,165,.5);
  box-shadow:var(--g-shine),var(--g-shad-md),0 0 26px -4px rgba(255,111,165,.45);
}

/* ── REVEAL SYSTEM (shared — already defined inline on index/es/fr;
     redeclared here so get-started, which has no inline copy, gets
     it too. Identical values = harmless no-op where it already
     exists.) ───────────────────────────────────────────────────── */
.will-reveal{
  opacity:0;
  transform:translateY(var(--rise,14px));
  filter:blur(5px);
}
.revealed{
  opacity:1;
  transform:translateY(0);
  filter:blur(0);
  transition:
    opacity var(--dur-base,550ms) var(--ease-out,cubic-bezier(.22,1,.36,1)) var(--reveal-delay,0ms),
    transform var(--dur-base,550ms) var(--ease-out,cubic-bezier(.22,1,.36,1)) var(--reveal-delay,0ms),
    filter var(--dur-base,550ms) var(--ease-out,cubic-bezier(.22,1,.36,1)) var(--reveal-delay,0ms);
}
@media(prefers-reduced-motion:reduce){
  .will-reveal{opacity:1;transform:none;filter:none}
  .revealed{transition:none!important}
}
@media(max-width:600px){
  .will-reveal{filter:none}
  .revealed{transition:opacity var(--dur-base,550ms) var(--ease-out,cubic-bezier(.22,1,.36,1)) var(--reveal-delay,0ms),transform var(--dur-base,550ms) var(--ease-out,cubic-bezier(.22,1,.36,1)) var(--reveal-delay,0ms)}
}

@media(prefers-reduced-transparency:reduce){
  .aurora-stage{display:none}
  .frost-spot-glow,.frost-spot-border{display:none}
  .hire-card,.gp-card{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:var(--bg-2,#1a1620)!important}
}
