/* Gas Hunters motion pack: embers, gas-mask seal, strain gauge, tilt + glare, scroll progress, parallax, draw-ins.
   Everything that moves is gated by html.gh-motion (added in <head> unless the visitor prefers reduced motion). */

/* --- Static pieces (shown with or without motion) --- */
.gh-seal { position: absolute; z-index: 2; width: 118px; height: 118px; left: -48px; top: -36px; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .8)); }
.gh-seal__disc { fill: #0f0d0a; stroke: rgba(245, 197, 24, .55); stroke-width: 1.2; }
.gh-seal text { font: 700 11.5px "Barlow Condensed", sans-serif; letter-spacing: 2.6px; fill: #f5c518; }
.gh-plate { overflow: hidden; }
.gh-plate__shine { position: absolute; inset: 0; border-radius: 22px; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .28) 50%, transparent 60%); background-size: 250% 100%; background-position: 130% 0; mix-blend-mode: screen; }
.gh-dust { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.gh-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gh-grad-metal); transform-origin: left center; transform: scaleX(var(--gh-progress, 0)); pointer-events: none; }

.gh-band { overflow: hidden; padding: 26px 0; border-top: 1px solid var(--gh-line-soft); border-bottom: 1px solid var(--gh-line-soft); background: #0a0806; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.gh-band__track { display: flex; width: max-content; }
.gh-band__group { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.gh-band__group span { font: 400 clamp(34px, 4.4vw, 62px)/1.1 var(--gh-display); text-transform: uppercase; white-space: nowrap; background: var(--gh-grad-chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gh-silver); }
.gh-band__group span.gh-band__outline { background: none; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1.2px rgba(245, 197, 24, .55); color: transparent; }
.gh-band .gh-bolt { width: 26px; height: 26px; color: var(--gh-silver); }

/* Glare layer used by the tilt cards */
.gh-glare { position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .16), transparent 45%); }
.gh-site .products > .product .product-inner { position: relative; }

@media (max-width: 991px) {
	.gh-seal { width: 92px; height: 92px; left: -16px; top: -26px; }
}

/* --- Keyframes --- */
@keyframes gh-seal-spin { to { transform: rotate(360deg); } }
@keyframes gh-band-move { to { transform: translateX(-50%); } }
@keyframes gh-plate-shine { 0%, 62% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
@keyframes gh-strike {
	0% { stroke-dashoffset: 1100; opacity: 0; }
	6% { opacity: .5; }
	22% { stroke-dashoffset: 0; opacity: .5; }
	24% { opacity: .95; filter: drop-shadow(0 0 18px #fff); }
	26% { opacity: .2; }
	28% { opacity: .85; }
	40%, 100% { stroke-dashoffset: 0; opacity: .08; filter: none; }
}
@keyframes gh-flash { 0%, 21%, 31%, 100% { opacity: 0; } 24% { opacity: .5; } 26% { opacity: .1; } 28% { opacity: .35; } }
@keyframes gh-ken { from { transform: scale(1.04); } to { transform: scale(1.14) translate3d(-1.5%, 0, 0); } }
@keyframes gh-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes gh-pop-in { from { opacity: 0; transform: scale(.4) rotate(-30deg); } to { opacity: 1; transform: none; } }
@keyframes gh-slide-in { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes gh-chrome-sweep { from { background-position: 50% 100%; } to { background-position: 50% 0%; } }

/* --- Hero --- */
html.gh-motion .gh-hero__bg { animation: gh-ken 28s ease-in-out infinite alternate; will-change: transform; }
html.gh-motion .gh-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 80% at 82% 40%, rgba(245, 197, 24, .55), transparent 60%); opacity: 0; animation: gh-flash 9s ease-in-out 1.2s infinite; mix-blend-mode: overlay; }
html.gh-motion .gh-hero__grid { position: relative; }
html.gh-motion .gh-hero__grid::before { content: ""; position: absolute; inset: -40% -20%; z-index: -1; pointer-events: none; background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), rgba(245, 197, 24, .09), transparent 60%); }
html.gh-motion .gh-seal { animation: gh-seal-spin 22s linear infinite; }
html.gh-motion .gh-plate__shine { animation: gh-plate-shine 7s ease-in-out 2s infinite; }

/* --- Band (second marquee) runs the other way --- */
html.gh-motion .gh-band__track { animation: gh-band-move 38s linear infinite reverse; }
.gh-band:hover .gh-band__track { animation-play-state: paused; }

/* --- Section heads: chrome sweeps in, rule draws from the center --- */
html.gh-motion .gh-reveal .gh-h2 .gh-hot { background-size: 100% 260%; background-position: 50% 100%; }
html.gh-motion .gh-reveal.is-in .gh-h2 .gh-hot { animation: gh-chrome-sweep 1.6s cubic-bezier(.2, .8, .2, 1) .2s both; }
html.gh-motion .gh-reveal .gh-rule i { transform: scaleX(0); }
html.gh-motion .gh-reveal .gh-rule i:first-child { transform-origin: right; }
html.gh-motion .gh-reveal .gh-rule i:last-child { transform-origin: left; }
html.gh-motion .gh-reveal.is-in .gh-rule i { animation: gh-draw 1s cubic-bezier(.2, .8, .2, 1) .35s both; }
html.gh-motion .gh-reveal .gh-rule .gh-bolt { opacity: 0; }
html.gh-motion .gh-reveal.is-in .gh-rule .gh-bolt { animation: gh-pop-in .6s cubic-bezier(.2, .9, .3, 1.4) .2s both, gh-flicker 5s steps(1) 1.4s infinite; }

/* --- Spec sheet rows slide in one after another --- */
html.gh-motion .gh-reveal .gh-spec > div { opacity: 0; }
html.gh-motion .gh-reveal.is-in .gh-spec > div { animation: gh-slide-in .7s cubic-bezier(.2, .8, .2, 1) both; }
html.gh-motion .gh-reveal.is-in .gh-spec > div:nth-child(2) { animation-delay: .08s; }
html.gh-motion .gh-reveal.is-in .gh-spec > div:nth-child(3) { animation-delay: .16s; }
html.gh-motion .gh-reveal.is-in .gh-spec > div:nth-child(4) { animation-delay: .24s; }
html.gh-motion .gh-reveal.is-in .gh-spec > div:nth-child(5) { animation-delay: .32s; }
html.gh-motion .gh-reveal.is-in .gh-spec > div:nth-child(6) { animation-delay: .4s; }
html.gh-motion .gh-spec dt .gh-ico { transition: transform .4s cubic-bezier(.2, .9, .3, 1.4), color .3s ease; }
html.gh-motion .gh-spec > div:hover dt .gh-ico { transform: scale(1.3) rotate(-10deg); color: #fff; }

/* --- Feature + step icons pop, step connectors draw --- */
html.gh-motion .gh-reveal .gh-feature__ico,
html.gh-motion .gh-reveal .gh-guide__marker { opacity: 0; }
html.gh-motion .gh-reveal.is-in .gh-feature__ico,
html.gh-motion .gh-reveal.is-in .gh-guide__marker { animation: gh-pop-in .7s cubic-bezier(.2, .9, .3, 1.3) calc(.2s + var(--gh-i, 0) * 80ms) both; }
html.gh-motion .gh-feature:hover .gh-feature__ico { animation: gh-flicker 1.2s steps(1) 1; }
html.gh-motion .gh-steps li::after { transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.2, .8, .2, 1) .6s; }
html.gh-motion .gh-steps li.is-in::after { transform: scaleX(1); }
html.gh-motion .gh-steps__n { background-size: 100% 260%; background-position: 50% 100%; transition: background-position 1.4s cubic-bezier(.2, .8, .2, 1) .3s; }
html.gh-motion .gh-steps li.is-in .gh-steps__n { background-position: 50% 0%; }

/* --- Tilt cards (angles set by script.js) --- */
html.gh-motion .gh-tilt.is-tilting { transition: border-color .3s ease, box-shadow .35s ease; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }
html.gh-motion .gh-tilt.is-tilting .gh-glare { opacity: 1; }

/* --- Wholesale + CTA --- */
html.gh-motion .gh-wholesale__bg { animation: gh-ken 30s ease-in-out infinite alternate-reverse; }
html.gh-motion .gh-cta__mark { transform: translate(-50%, -50%) rotate(var(--gh-rot, 0deg)); }
html.gh-motion .gh-reveal .gh-packs li { opacity: 0; }
html.gh-motion .gh-reveal.is-in .gh-packs li { animation: gh-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
html.gh-motion .gh-reveal.is-in .gh-packs li:nth-child(2) { animation-delay: .07s; }
html.gh-motion .gh-reveal.is-in .gh-packs li:nth-child(3) { animation-delay: .14s; }
html.gh-motion .gh-reveal.is-in .gh-packs li:nth-child(4) { animation-delay: .21s; }
html.gh-motion .gh-reveal.is-in .gh-packs li:nth-child(5) { animation-delay: .28s; }
html.gh-motion .gh-reveal.is-in .gh-packs li:nth-child(6) { animation-delay: .35s; }
html.gh-motion .gh-reveal.is-in .gh-packs li:nth-child(7) { animation-delay: .42s; }

/* --- Magnetic buttons (offset set by script.js) --- */
html.gh-motion .gh-btn.is-magnet { translate: var(--bx, 0px) var(--by, 0px); }

/* --- FAQ answers ease open --- */
html.gh-motion .gh-faq details[open] p { animation: gh-slide-in .45s ease both; }

/* --- Logo glints on hover --- */
html.gh-motion .gh-logo { position: relative; overflow: hidden; }
html.gh-motion .gh-logo::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-200%) skewX(-20deg); pointer-events: none; }
html.gh-motion .gh-logo:hover::after { animation: gh-shine 1s ease forwards; }

@media (prefers-reduced-motion: reduce) {
	.gh-band__track { width: auto; justify-content: center; }
	.gh-band__group:nth-child(2) { display: none; }
	.gh-band__group { flex-wrap: wrap; justify-content: center; row-gap: 12px; padding: 0 16px; }
	.gh-band__group span { font-size: clamp(30px, 5vw, 56px); }
}
