/* Gallian homepage banner — UI/UX effects layer (2026-10-10)
   Pure add-on: styles the existing 3D hero (.gh-*) without changing its code. */

/* 1. Intro: first panel builds in, line by line */
@keyframes ghfx-rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ghfx-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ghfx-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.gh-panel:first-child .gh-eye { animation: ghfx-rise .7s cubic-bezier(.2,.7,.2,1) .15s both; }
.gh-panel:first-child .gh-h { animation: ghfx-rise .8s cubic-bezier(.2,.7,.2,1) .3s both; }
.gh-panel:first-child .gh-h em { animation: ghfx-wipe .9s cubic-bezier(.7,0,.2,1) .75s both; }
.gh-panel:first-child .gh-sub { animation: ghfx-rise .7s cubic-bezier(.2,.7,.2,1) .95s both; }
.gh-panel:first-child .gh-ctas { animation: ghfx-rise .7s cubic-bezier(.2,.7,.2,1) 1.1s both; }
.gh-hud { animation: ghfx-rise .6s ease .1s both; }

@media (min-width: 1100px) { .gh-panel .gh-eye { white-space: nowrap; } }
/* eyebrow gets a volt rule that draws in */
.gh-eye::before { content: ""; display: inline-block; width: 26px; height: 2px; margin-right: 10px; vertical-align: middle; background: var(--lime, #c8ff00); transform-origin: 0 50%; animation: ghfx-line .6s ease .4s both; }

/* accent word: soft volt glow so it reads as the hero's focal point */
.gh-h em { text-shadow: 0 0 28px rgba(200,255,0,.28); }

/* 2. Buttons: shine sweep, lift, glow, arrow nudge, magnetic pull (JS sets --mx/--my) */
.gh-btn { position: relative; overflow: hidden; translate: var(--mx, 0) var(--my, 0); transition: translate .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background-color .25s, color .25s; will-change: translate; }
.gh-btn:not(.ghost) { box-shadow: 0 10px 30px -10px rgba(200,255,0,.55); }
.gh-btn:not(.ghost)::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%); transform: translateX(-120%); animation: ghfx-shine 4.5s ease-in-out 2.2s infinite; pointer-events: none; }
@keyframes ghfx-shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.gh-btn::after { content: "→"; display: inline-block; margin-left: 10px; transition: transform .25s; }
.gh-btn:hover::after, .gh-btn:focus-visible::after { transform: translateX(5px); }
.gh-btn:not(.ghost):hover { box-shadow: 0 16px 40px -10px rgba(200,255,0,.8); }
.gh-btn.ghost:hover { background: #fff; color: #050607; }

/* 3. Cursor spotlight on the stage (desktop) — JS sets --sx/--sy on .gh-root */
.gh-pin::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: var(--so, 0); transition: opacity .6s;
  background: radial-gradient(520px circle at var(--sx, 70%) var(--sy, 50%), rgba(200,255,0,.10), rgba(200,255,0,.03) 40%, transparent 70%); mix-blend-mode: screen; }

/* 4. Progress + step ticks: glow and clearer active state */
.gh-progress span { box-shadow: 0 0 12px rgba(200,255,0,.7); }
.gh-ticks i { transition: transform .3s, background-color .3s, box-shadow .3s; }
.gh-ticks i.on { box-shadow: 0 0 10px rgba(200,255,0,.8); transform: scaleY(1.35); }

/* 5. Scroll cue: animated mouse instead of plain text */
@media (min-width: 900px) { .gh-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; } }
.gh-cue::before { content: ""; width: 22px; height: 34px; border: 2px solid rgba(255,255,255,.55); border-radius: 12px; order: -1;
  background: radial-gradient(circle, var(--lime, #c8ff00) 0 2.5px, transparent 3px) 50% 7px / 6px 6px no-repeat; animation: ghfx-wheel 1.8s ease-in-out infinite; }
@keyframes ghfx-wheel { 0% { background-position: 50% 6px; } 60% { background-position: 50% 18px; opacity: 1; } 100% { background-position: 50% 18px; opacity: .2; } }

/* 6. Mobile sticky quote bar (appears after the banner, hides at the footer) */
.ghfx-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(7,8,7,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid rgba(200,255,0,.25); transform: translateY(110%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.ghfx-bar.on { transform: none; }
.ghfx-bar a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 46px; font: 700 13px var(--cond, "Barlow Condensed", sans-serif); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.ghfx-bar .p { background: var(--volt, #c8ff00); color: #050607; }
.ghfx-bar .s { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.8); flex: .7; }
@media (max-width: 760px) {
  .ghfx-bar { display: flex; }
  body.ghfx-bar-on #waFloat, body.ghfx-bar-on .gs-wa, body.ghfx-bar-on .wa-float { transform: translateY(-70px); transition: transform .35s; }
  .gh-ctas .gh-btn { flex: 1 1 auto; text-align: center; }
}

/* Respect reduced-motion: keep the look, drop the movement */
@media (prefers-reduced-motion: reduce) {
  .gh-panel:first-child .gh-eye, .gh-panel:first-child .gh-h, .gh-panel:first-child .gh-h em, .gh-panel:first-child .gh-sub, .gh-panel:first-child .gh-ctas, .gh-hud, .gh-eye::before { animation: none !important; clip-path: none; }
  .gh-btn:not(.ghost)::before, .gh-cue::before { animation: none !important; }
  .gh-btn { translate: none !important; }
  .gh-pin::after { display: none; }
}
