/* ==========================================================
   HOME HERO: AURORA
   layers (bottom -> top):  bg  <  liquid blob (WebGL)  <  bouncy icons  <  content
   light by default, PRESS & HOLD anywhere flips the whole hero to the night mood.
   ========================================================== */
.hero--aurora {
  --hi: #0b1f14; --hi2: #35514a; --hi3: #587067;
  --glass: rgba(255, 255, 255, .78); --gline: rgba(11, 31, 20, .13); --gshadow: 0 34px 90px rgba(24, 70, 48, .2);
  --chip: rgba(255, 255, 255, .72); --acc: #0f9d58;
  --g1: #0f9d58; --g2: #0d9488; --g3: #2563eb; --g4: #7c5cff; --g5: #e8590c;
  position: relative; isolation: isolate; overflow: hidden; background: #f3f7f3; color: var(--hi);
  min-height: 100vh; min-height: 100svh; padding: var(--header-h) 0 44px; display: flex; flex-direction: column;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.hero--aurora.is-hold {
  --hi: #f4f7f5; --hi2: #d2dcd6; --hi3: #9fb3a9;
  --glass: rgba(7, 16, 12, .58); --gline: rgba(255, 255, 255, .16); --gshadow: 0 34px 90px rgba(0, 0, 0, .55);
  --chip: rgba(8, 18, 14, .55); --acc: #4ade80;
  --g1: #4ade80; --g2: #2dd4bf; --g3: #60a5fa; --g4: #b9a4ff; --g5: #fbbf24;
}
.hero--aurora::after { display: none; }
.hero--aurora input, .hero--aurora textarea { -webkit-user-select: text; user-select: text; }
.hero--aurora.is-pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }

/* header sits on a dark bar so it stays readable over the bright hero */
body.home-aurora .site-header::before { opacity: 1 !important; background: rgba(5, 22, 14, .94); }
body.home-aurora .site-header { border-bottom-color: rgba(255, 255, 255, .08); }

/* ---------- layer 0: background ---------- */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-bg > i { position: absolute; inset: 0; transition: opacity .7s ease; }
.hb-l { background:
  radial-gradient(60% 55% at 10% 6%, rgba(34, 197, 94, .26), transparent 70%),
  radial-gradient(50% 50% at 94% 16%, rgba(59, 130, 246, .2), transparent 70%),
  radial-gradient(55% 50% at 82% 100%, rgba(245, 165, 36, .24), transparent 70%),
  radial-gradient(40% 40% at 6% 96%, rgba(251, 113, 133, .16), transparent 70%),
  radial-gradient(34% 34% at 56% 42%, rgba(167, 139, 250, .16), transparent 70%),
  #f3f7f3; opacity: 1; }
.hb-d { background:
  radial-gradient(60% 55% at 12% 4%, rgba(34, 197, 94, .3), transparent 70%),
  radial-gradient(50% 50% at 92% 20%, rgba(96, 165, 250, .26), transparent 70%),
  radial-gradient(50% 50% at 76% 100%, rgba(167, 139, 250, .26), transparent 70%),
  radial-gradient(40% 40% at 4% 92%, rgba(251, 191, 36, .16), transparent 70%),
  #040b07; opacity: 0; }
.is-hold .hb-l { opacity: 0; } .is-hold .hb-d { opacity: 1; }
.hb-a { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: normal; }
.hb-a.a1 { width: 38vw; height: 38vw; left: -8vw; top: 12%; background: #4ade80; animation: hbDrift 19s ease-in-out infinite alternate; }
.hb-a.a2 { width: 34vw; height: 34vw; right: -6vw; top: -10%; background: #60a5fa; animation: hbDrift 23s ease-in-out infinite alternate-reverse; }
.hb-a.a3 { width: 30vw; height: 30vw; right: 22%; bottom: -14%; background: #fbbf24; animation: hbDrift 27s ease-in-out infinite alternate; }
.is-hold .hb-a { opacity: .3; }
.hb-a { transition: opacity .7s ease; }
@keyframes hbDrift { to { transform: translate3d(7vw, 6vh, 0) scale(1.18); } }
.hb-grid { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(11, 31, 20, .06) 1px, transparent 1px), linear-gradient(0deg, rgba(11, 31, 20, .06) 1px, transparent 1px); background-size: 96px 96px; -webkit-mask-image: radial-gradient(75% 70% at 50% 45%, #000, transparent); mask-image: radial-gradient(75% 70% at 50% 45%, #000, transparent); transition: opacity .6s; }
.is-hold .hb-grid { background-image: linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(0deg, rgba(255, 255, 255, .07) 1px, transparent 1px); }

/* ---------- layers 1 + 2 ---------- */
.hero-blob { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.fi { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); display: grid; place-items: center; border-radius: var(--rd, 32%); text-decoration: none; cursor: pointer;
  box-shadow: 0 14px 30px rgba(20, 40, 70, .22), 0 2px 5px rgba(20, 40, 70, .18), inset 0 1.5px 1px rgba(255, 255, 255, .55), inset 0 -6px 12px rgba(0, 0, 0, .1);
  will-change: transform; pointer-events: auto; touch-action: manipulation; transition: box-shadow .5s, filter .3s; -webkit-tap-highlight-color: transparent; }
.fi::before { content: ""; position: absolute; left: 14%; right: 14%; top: 5%; height: 36%; border-radius: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, .45), transparent); pointer-events: none; }
.fi svg { position: relative; width: 60%; height: 60%; display: block; }
.fi:hover, .fi:focus-visible { filter: saturate(1.15) brightness(1.04); box-shadow: 0 22px 44px rgba(20, 40, 70, .32), 0 0 0 4px rgba(255, 255, 255, .8), inset 0 1.5px 1px rgba(255, 255, 255, .55); outline: none; }
.is-hold .fi { box-shadow: 0 0 30px rgba(255, 255, 255, .45), 0 14px 30px rgba(0, 0, 0, .35), inset 0 1.5px 1px rgba(255, 255, 255, .55); }
.fi-tip { position: absolute; left: 0; top: 0; z-index: 3; padding: 7px 12px; border-radius: 99px; background: #0d1f17; color: #fff; font: 600 .78rem/1 var(--font-body, system-ui), sans-serif; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.fi-tip.on { opacity: 1; }

/* ---------- layer 3: content (minimal: giant type, lots of air) ---------- */
.hero-stage { position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column; will-change: transform, opacity; pointer-events: none; }
.hero-stage a, .hero-stage button, .hero-stage .hf-card, .hero-stage .hero-risk, .hero-stage input { pointer-events: auto; }
.hero--aurora .hero-grid { flex: 1; width: 100%; padding: clamp(44px, 7vh, 80px) clamp(20px, 4.2vw, 64px) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); grid-template-areas: "h h" "s c" "l c"; align-content: center; column-gap: 40px; row-gap: 0; }
.hero--aurora .hero-inner { display: contents; }
.hero--aurora .hero-h { grid-area: h; margin: 0; font-family: var(--font-head); font-weight: 500; font-size: min(10.2vw, 18.5vh); line-height: .98; letter-spacing: -.06em; color: var(--hi); transition: color .6s; }
.hero-h .hl { display: block; white-space: nowrap; }
.hero-h .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .03em .16em; margin: 0 -.03em -.16em; }
.hero-h .w > span { display: inline-block; transform: translateY(112%) rotate(4deg); animation: hWord 1.2s var(--ease) forwards; animation-delay: calc(var(--i) * .1s + .15s); }
@keyframes hWord { to { transform: none; } }
.hero-h .grad { background: linear-gradient(100deg, var(--g1), var(--g2), var(--g3), var(--g4), var(--g5), var(--g1)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: hGrad 9s linear infinite; padding-right: .05em; }
@keyframes hGrad { to { background-position: 300% 0; } }
.hero--aurora .hero-sub { grid-area: s; align-self: end; margin: clamp(18px, 3.2vh, 34px) 0 0; max-width: 40ch; font-size: clamp(1.02rem, 1.3vw, 1.26rem); line-height: 1.45; font-weight: 450; letter-spacing: -.005em; color: var(--hi); transition: color .6s; }
.hero--aurora .hero-links { grid-area: l; align-self: start; display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(16px, 2.6vh, 28px); }
.hero--aurora .hero-links .btn-ghost { color: var(--hi); background: var(--chip); border-color: var(--gline); transition: color .6s, background .3s, border-color .3s, transform .3s var(--ease); } .hero--aurora .hero-links .btn-ghost:hover { border-color: var(--acc); transform: translateY(-2px); }
.hero--aurora .hero-sub b { font-weight: 650; }
.hero--aurora .btn-primary { box-shadow: 0 12px 30px rgba(34, 197, 94, .4); }
.hero--aurora .hf-card { grid-area: c; align-self: end; justify-self: end; width: 100%; margin: 0; }

.hero-meta { position: absolute; top: 4px; z-index: 4; display: flex; align-items: center; gap: 8px; font: 600 .68rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--hi3); transition: color .6s; pointer-events: none; }
.hm-l { left: clamp(20px, 4.2vw, 64px); } .hm-r { right: clamp(20px, 4.2vw, 64px); }
.hm-l i { width: 14px; height: 1px; background: currentColor; display: block; }
.hm-r em { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); animation: hmBlink 1.6s infinite; } @keyframes hmBlink { 50% { opacity: .25; } }

/* video card: rotating aurora border + glare */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hero--aurora .hf-card { padding: 3px; border-radius: 30px; background: conic-gradient(from var(--ang), #22c55e, #2dd4bf, #3b82f6, #a78bfa, #fb7185, #fbbf24, #a3e635, #22c55e); animation: hCardIn 1s var(--ease) var(--d, .45s) backwards, hAng 8s linear infinite; opacity: 1; box-shadow: 0 34px 80px rgba(24, 70, 48, .3), 0 0 60px color-mix(in srgb, var(--g2) 28%, transparent); transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s ease-out, box-shadow .6s; will-change: transform; }
@keyframes hAng { to { --ang: 360deg; } }
@keyframes hCardIn { from { opacity: 0; transform: translateY(40px) scale(.96); } }
.hero--aurora .hf-card::before { display: none; }
.hero--aurora .hf-frame { border: 0; border-radius: 27px; box-shadow: none; }
.hero--aurora .hf-frame::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .2), transparent 60%); mix-blend-mode: soft-light; }
.hero--aurora .hf-pause { z-index: 4; }

/* bottom row: hold hint / compliance line / scroll cue */
.hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px clamp(20px, 4vw, 56px) 14px; }
.hero--aurora .hero-risk { margin: 0; align-self: center; flex: 0 1 auto; background: var(--chip); border-color: var(--gline); color: var(--hi3); transition: color .6s, background .6s; }
.hero-mode { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 99px; border: 1px solid var(--gline); background: var(--chip); color: var(--hi2); font-size: .8rem; font-weight: 600; transition: color .6s, background .6s, border-color .3s, transform .3s var(--ease); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-mode:hover { transform: translateY(-2px); border-color: var(--acc); } .hero-mode:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.hero-mode i { position: relative; width: 24px; height: 24px; border-radius: 50%; background: conic-gradient(#22c55e, #3b82f6, #a78bfa, #fbbf24, #22c55e); animation: hAng 5s linear infinite; } .hero-mode i::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #0b1f14; }
.hero--aurora.is-hold .hero-mode i::after, .hero-mode[aria-pressed="true"] i::after { background: #fff; }
.hero-mode .hm-s { color: var(--hi3); font-weight: 500; }
.hero-scroll { display: inline-flex; align-items: center; gap: 10px; font: 600 .68rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--hi3); min-width: 150px; justify-content: flex-end; transition: color .6s; }
.hero-scroll b { width: 1px; height: 28px; background: linear-gradient(var(--hi3), transparent); transform-origin: top; animation: hScroll 1.8s var(--ease) infinite; } @keyframes hScroll { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* the next section slides over the pinned hero */
.after { position: relative; z-index: 5; margin-top: -44px; background: #f6f8f4; border-radius: 44px 44px 0 0; box-shadow: 0 -30px 80px rgba(8, 40, 24, .35); }
.after > .ring-section { border-radius: 44px 44px 0 0; }
.hero--aurora { padding-bottom: 44px; }
.hero--aurora .hf-card { padding: 3px; border-radius: 24px; } .hero--aurora .hf-frame { border-radius: 21px; aspect-ratio: 16 / 10; }

@media (max-width: 991px) {
  .hero--aurora .hero-grid { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: clamp(36px, 7vw, 56px) clamp(18px, 4vw, 32px) 0; }
  .hero--aurora .hero-h { font-size: clamp(2.6rem, 11.2vw, 7rem); }
  .hero--aurora .hero-sub, .hero--aurora .hero-links { align-self: flex-start; justify-self: auto; }
  .hero--aurora .hero-sub { max-width: 44ch; text-align: left; margin-inline: 0; } .hero--aurora .hero-links { margin-top: 18px; }
  .hero--aurora .hf-card { width: min(100%, 520px); justify-self: auto; align-self: flex-start; margin-top: 28px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 22px; } .hero-scroll { display: none; }
  .hero-meta { display: none; }
  .after { margin-top: -34px; border-radius: 34px 34px 0 0; } .after > .ring-section { border-radius: 34px 34px 0 0; }
}
@media (max-width: 767px) {
  /* PHONE: the film runs full-screen behind the words */
  .hero-fx { z-index: 4; }
  .hero--aurora { --hi: #fff; --hi2: rgba(255, 255, 255, .88); --hi3: rgba(255, 255, 255, .7); --chip: rgba(0, 0, 0, .38); --gline: rgba(255, 255, 255, .28); --acc: #4ade80; --g1: #4ade80; --g2: #2dd4bf; --g3: #7dd3fc; --g4: #c4b5fd; --g5: #fcd34d; background: #04110a; padding-bottom: 0; min-height: 100svh; }
  .hero--aurora .hero-bg, .hero--aurora .hero-blob { display: none; }
  .hero--aurora .hero-stage { min-height: calc(100svh - var(--header-h)); }
  .hero--aurora .hf-card { position: absolute; z-index: -1; inset: calc(var(--header-h) * -1) 0 0 0; width: auto; height: auto; align-self: stretch; justify-self: stretch; max-width: none; margin: 0; padding: 0; border-radius: 0; background: #04110a; box-shadow: none; animation: none; transform: none !important; opacity: 1; }
  .hero--aurora .hf-card::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(3, 14, 8, .5) 0%, rgba(3, 14, 8, 0) 20%, rgba(3, 14, 8, .2) 34%, rgba(3, 14, 8, .78) 48%, rgba(3, 14, 8, .94) 62%, rgba(3, 14, 8, .96) 100%); }
  .hero--aurora .hf-frame { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; } .hero--aurora .hf-frame::after { display: none; }
  .hero--aurora .hf-video { width: 100%; height: 100%; object-fit: cover; }
  .hero--aurora .hf-pause { position: absolute; right: 16px; top: calc(var(--header-h) + 14px); bottom: auto; z-index: 5; }
  .hero--aurora .hero-grid { flex: 1; justify-content: flex-end; padding-top: 0; padding-bottom: 14px; }
  .hero--aurora .hero-h { text-shadow: 0 2px 24px rgba(0, 0, 0, .35); font-size: clamp(2.3rem, 12.2vw, 5.4rem); }
  .hero--aurora .hero-sub { text-shadow: 0 1px 14px rgba(0, 0, 0, .55); font-size: 1.02rem; max-width: 36ch; }
  .hero--aurora .hero-links { flex-wrap: nowrap; gap: 10px; margin-top: 16px; } .hero--aurora .hero-links .btn { flex: 1 1 0; padding-inline: 10px; min-width: 0; justify-content: center; white-space: nowrap; font-size: .9rem; } .hero--aurora .hero-links .btn-primary { flex-grow: 1.3; }
  .hero--aurora .hero-links .btn-ghost { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .hero--aurora .hero-bottom { padding: 4px 18px 54px; } .hero-mode { display: none; }
  .hero--aurora .hero-risk { background: rgba(0, 0, 0, .45); border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .hero-h .hl { white-space: normal; }
  .hero-mode .hm-s { display: none; }
  .hero--aurora .hero-risk { border-radius: 16px; font-size: .74rem; }
}
@media (max-width: 480px) {
  .hero--aurora .hero-risk { font-size: .7rem; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-blob { display: none; }
  .hero-h .w > span { transform: none; animation: none; } .hb-a, .hero--aurora .hf-card, .hero-mode i, .hero-h .grad, .hero-scroll b { animation: none; }
  .hero--aurora.is-pin { position: relative; height: auto; min-height: 100svh; }
}