/* FoxFace heroes: the opening screen of home, Labs, Studio, Marketing, AI and HVAC. The pictures are drawn by
   /shared/hero-fx.js; this is the frame they sit in.

   James, 9 November 2026: "massively animated hero sections" and "a rolling hero like ArcticNord". So each one
   fills the screen under the menu, dark, in the page's own colour (--c, --grad), with the words large and rising
   in, and the picture moving behind and beside them. Class names all start fx so no page's own .hero, .btn or
   .card rules can reach in. */
.fxh{--c:#ffc61a;--c2:#4cc9f0;--grad:linear-gradient(90deg,#ffc61a,#ff9d2e);position:relative;isolation:isolate;overflow:hidden;
  min-height:calc(100svh - 56px);display:flex;align-items:center;color:#fff;
  background:radial-gradient(70% 60% at 85% 10%,color-mix(in srgb,var(--c) 22%,transparent),transparent 70%),
    radial-gradient(60% 55% at 0% 100%,color-mix(in srgb,var(--c2) 18%,transparent),transparent 70%),
    linear-gradient(180deg,#070a16 0%,#05070f 100%);
  font-family:Inter,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif}
.fxh>canvas{position:absolute;inset:0;width:100%;height:100%;z-index:0;display:block}
/* A shade behind the words, so a streak or a drifting word never sits on top of what you are reading. */
.fxh::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(5,7,15,.82) 0%,rgba(5,7,15,.55) 38%,rgba(5,7,15,0) 62%)}
@media (max-width:979px){.fxh::before{background:linear-gradient(180deg,rgba(5,7,15,.25),rgba(5,7,15,.7) 40%,rgba(5,7,15,.35))}}
.fxh::after{content:"";position:absolute;left:0;right:0;bottom:0;height:120px;z-index:1;pointer-events:none;background:linear-gradient(180deg,transparent,rgba(5,7,15,.55))}
.fx-in{position:relative;z-index:2;width:min(1200px,calc(100% - 32px));margin:0 auto;padding:64px 0 96px;display:grid;gap:44px;align-items:center}
@media (min-width:980px){.fx-in{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);padding:80px 0 110px}}
.fx-copy{min-width:0;max-width:720px}
.fx-copy .ffl{color:#fff}
.fx-chip{display:inline-flex;align-items:center;gap:10px;margin-top:18px;border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:8px 16px 8px 12px;font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#D4DBF0;background:rgba(255,255,255,.04);backdrop-filter:blur(6px)}
.fx-chip i{width:8px;height:8px;border-radius:50%;background:var(--c);box-shadow:0 0 12px var(--c);animation:fx-pulse 2s ease-in-out infinite}
.fx-copy h1,.fx-copy .fx-h{font-size:clamp(2.3rem,4.4vw + .4rem,4.4rem);line-height:1;letter-spacing:-.04em;font-weight:800;margin:22px 0 22px;text-wrap:balance}
.fx-copy h1 span,.fx-copy .fx-h span{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;background-size:200% 100%;animation:fx-sheen 6s ease-in-out infinite}
.fx-copy p{color:#CBD3EA;font-size:clamp(1rem,1.4vw,1.16rem);line-height:1.65;max-width:58ch;margin:0 0 28px}
.fx-stats{display:flex;flex-wrap:wrap;gap:16px 40px;margin:0 0 30px}
.fx-stats b{display:block;font-size:clamp(26px,3vw,34px);letter-spacing:-.03em;line-height:1.1}
.fx-stats small{font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#AEB8D6}
.fx-btns{display:flex;flex-wrap:wrap;gap:12px}
.fx-btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:12px 26px;border-radius:999px;font-weight:700;font-size:15px;line-height:1.25;text-decoration:none;text-align:center;transition:transform .16s,box-shadow .16s,background .16s;border:1px solid transparent}
.fx-btn.pri{background:var(--grad);color:var(--on,#0b1220);box-shadow:0 10px 30px -10px color-mix(in srgb,var(--c) 70%,transparent)}
.fx-btn.pri:hover{transform:translateY(-2px);box-shadow:0 16px 40px -12px color-mix(in srgb,var(--c) 80%,transparent)}
.fx-btn.ghost{border-color:rgba(255,255,255,.3);color:#fff;background:rgba(255,255,255,.04)}
.fx-btn.ghost:hover{background:rgba(255,255,255,.1)}
.fx-vis{position:relative;min-width:0;display:flex;justify-content:center;align-items:center}
@media (max-width:979px){.fx-vis{order:2}}

/* Words rise in one after another, every time a slide comes round. */
.fx-rise>*{opacity:0;transform:translateY(26px);animation:fx-rise .9s cubic-bezier(.2,.8,.2,1) forwards}
.fx-rise>*:nth-child(2){animation-delay:.08s}.fx-rise>*:nth-child(3){animation-delay:.16s}.fx-rise>*:nth-child(4){animation-delay:.26s}
.fx-rise>*:nth-child(5){animation-delay:.36s}.fx-rise>*:nth-child(6){animation-delay:.46s}.fx-rise>*:nth-child(7){animation-delay:.56s}
.fxslide:not(.on) .fx-rise>*{animation:none}
@keyframes fx-rise{to{opacity:1;transform:none}}
@keyframes fx-sheen{0%,100%{background-position:0 0}50%{background-position:100% 0}}
@keyframes fx-pulse{0%,100%{opacity:1}50%{opacity:.35}}
@keyframes fx-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}

/* Scroll cue at the foot of a page hero. */
.fx-cue{position:absolute;left:50%;bottom:22px;z-index:3;transform:translateX(-50%);width:26px;height:42px;border:2px solid rgba(255,255,255,.35);border-radius:14px}
.fx-cue::before{content:"";position:absolute;left:50%;top:8px;width:4px;height:8px;margin-left:-2px;border-radius:2px;background:#fff;animation:fx-cue 1.8s ease-in-out infinite}
@keyframes fx-cue{0%{opacity:0;transform:translateY(0)}30%{opacity:1}100%{opacity:0;transform:translateY(14px)}}

/* ---------- the rolling hero (home) ---------- */
/* Every slide sits in the same grid cell, so the hero is as tall as its tallest slide on any screen and nothing
   jumps when the next one fades in (the Studio portfolio's rolling frames did, 28 Oct 2026). */
.fxrot{position:relative;display:grid;background:#05070f;padding:0!important;margin:0!important}
/* On a phone the slides keep their words and buttons and lose the side picture, so the shortest slide is not
   left floating in an empty screen while the tallest one sets the height; the moving canvas still fills it. */
@media (max-width:979px){.fxslide .fx-vis{display:none}.fxslide .fxh{align-items:flex-start}.fxslide .fx-in{padding-top:56px}}
.fxslide{grid-area:1/1;display:flex;flex-direction:column;opacity:0;visibility:hidden;transition:opacity .9s ease,visibility 0s linear .9s}
.fxslide.on{opacity:1;visibility:visible;transition:opacity .9s ease}
.fxslide>.fxh{flex:1}
/* The home page gives every <section> 100px top and bottom; a slide is a section too, and that was the dark band above it. */
.fxrot .fxh{padding:0!important}
.fxdots{position:absolute;left:50%;bottom:26px;z-index:5;transform:translateX(-50%);display:flex;gap:10px;align-items:center}
.fxdot{width:10px;height:10px;border-radius:50%;border:0;padding:0;cursor:pointer;background:rgba(230,236,250,.35);position:relative;transition:all .3s ease}
.fxdot::after{content:"";position:absolute;left:50%;top:50%;width:44px;height:44px;transform:translate(-50%,-50%)}
.fxdot:hover{background:rgba(230,236,250,.75)}
.fxdot.on{width:30px;border-radius:6px;background:#fff;box-shadow:0 0 12px rgba(255,255,255,.5)}
.fxnames{position:absolute;left:0;right:0;bottom:52px;z-index:5;text-align:center;font-size:11px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:rgba(230,236,250,.55);pointer-events:none}

/* ---------- Labs: the orbit ---------- */
.fx-orbit{position:relative;width:min(560px,100%);height:min(58vh,480px);min-height:300px}
.fx-orbit>img{position:absolute;left:50%;top:50%;width:84px;height:84px;border-radius:22.5%;box-shadow:0 18px 40px -12px rgba(0,0,0,.7),0 0 0 1px rgba(255,255,255,.12);will-change:transform}
.fx-core{position:absolute;left:50%;top:50%;z-index:50;display:grid;place-items:center;width:230px;height:230px;margin:-115px 0 0 -115px;border-radius:50%;
  /* the white cloud: bright in the middle, feathering out into the sparks */
  background:radial-gradient(circle,#fff 0,#fff 40%,rgba(255,255,255,.82) 52%,rgba(255,255,255,.28) 63%,rgba(255,255,255,0) 71%);
  box-shadow:0 0 120px 30px rgba(255,255,255,.14);animation:fx-breathe 5s ease-in-out infinite}
/* The FoxFace Labs lockup, the real one from /shared/logo.css: the word dark on the white cloud, the Labs sticker
   white with its dark edge. Not the fish (James, 9 Nov 2026: "That's not the logo for labs"). */
.fx-core .fx-lock{color:#0b1220;font-size:30px;margin-left:-.3em}
@media (max-width:600px){.fx-core .fx-lock{font-size:22px}}
@keyframes fx-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
@media (max-width:600px){.fx-orbit>img{width:58px;height:58px}.fx-core{width:170px;height:170px;margin:-85px 0 0 -85px}.fx-core img{width:110px}}

/* ---------- glass cards: AI post, Marketing enquiry, HVAC sides ---------- */
.fx-glass{width:min(440px,100%);background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.14);border-radius:20px;padding:24px 24px 22px;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 30px 80px -30px rgba(0,0,0,.8);animation:fx-float 7s ease-in-out infinite}
.fx-glass .k{font-size:11px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:#AEB8D6}
.tp-title{font-size:21px;font-weight:800;letter-spacing:-.02em;line-height:1.25;margin:12px 0 14px;min-height:2.5em}
.tp-title::after{content:"";display:inline-block;width:2px;height:1em;margin-left:2px;vertical-align:-2px;background:var(--c);animation:fx-pulse 1s steps(1) infinite}
.tp-body{display:grid;gap:9px;min-height:120px;align-content:start}
.tp-line{display:block;height:9px;border-radius:5px;background:linear-gradient(90deg,rgba(196,181,253,.5),rgba(196,181,253,.18));animation:fx-grow .5s ease-out both;transform-origin:0 50%}
@keyframes fx-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.tp-foot{display:flex;justify-content:space-between;align-items:center;margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.1);font-size:13px;color:#AEB8D6}
.tp-state{display:inline-flex;align-items:center;gap:8px;padding:5px 12px;border-radius:999px;font-size:12px;font-weight:700;background:rgba(124,58,237,.22);color:#DDD6FE}
.tp-state::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;animation:fx-pulse 1.2s ease-in-out infinite}
.tp-state.ok{background:rgba(255,198,26,.18);color:#FFE08A}
.tp-state.live{background:rgba(34,197,94,.2);color:#86EFAC}
.tp-state.live::before{animation:none}
[data-leads] .ld{opacity:0;transform:translateY(8px)}
[data-leads].in .ld{animation:fx-rise .6s cubic-bezier(.2,.8,.2,1) forwards}
[data-leads].in .ld:nth-child(2){animation-delay:.08s}[data-leads].in .ld:nth-child(3){animation-delay:.16s}[data-leads].in .ld:nth-child(4){animation-delay:.24s}
.ld-new{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;background:rgba(34,197,94,.16);color:#86EFAC;border:1px solid rgba(34,197,94,.3)}
.ld-new::before{content:"";width:7px;height:7px;border-radius:50%;background:#22C55E;box-shadow:0 0 10px #22C55E;animation:fx-pulse 1.4s ease-in-out infinite}
.ld-what{font-size:20px;font-weight:800;letter-spacing:-.02em;margin:14px 0 4px}
.ld-where{color:#AEB8D6;font-size:14px;margin-bottom:16px}
.ld-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid rgba(255,255,255,.1);font-size:14px;color:#CBD3EA}
.ld-row b{color:#fff;text-align:right}
.fx-note{margin-top:12px;font-size:11px;color:#8F9ABB}
.fx-pair{display:grid;gap:16px;width:min(440px,100%)}
.fx-pair .fx-glass:nth-child(2){animation-delay:-3.5s;margin-left:70px}
@media (max-width:979px){.fx-pair .fx-glass:nth-child(2){margin-left:0}}
.fx-side{display:flex;align-items:center;gap:16px}
.fx-side .n{font:800 30px/1 "FF Logo","Plus Jakarta Sans",Inter,sans-serif;letter-spacing:-.03em}
.fx-side p{margin:4px 0 0;color:#CBD3EA;font-size:14px;line-height:1.5}

@media (prefers-reduced-motion:reduce){
  .fx-rise>*{animation:none;opacity:1;transform:none}
  .fx-glass,.fx-core,.fx-copy h1 span,.fx-copy .fx-h span{animation:none}
  .fxslide{transition:none}
}
@media (max-width:600px){
  .fx-in{padding:44px 0 90px;gap:30px}
  .fx-stats{gap:14px 26px}
  .fx-btn{width:100%}
}

/* HVAC: the two sides as living cards, 9 Nov 2026 (James: "the two piles could be better"). Each carries its own
   logo; TRADE's shelf names roll past and its crates stack, CLIMB's course fills as a rig runs. */
.fx-shop{display:grid;gap:12px;padding:22px 22px 20px}
/* The TRADE and CLIMB logos in their own on-dark versions, from the TRADE and CLIMB sites' brand folders, so they
   sit straight on the card (James, 9 Nov 2026: "can't you find the logos that are on a dark background"). */
.fx-brand{height:48px;width:auto;max-width:100%;display:block;justify-self:start}
.fx-tick{height:30px;overflow:hidden;position:relative}
.fx-tick-row{display:block;font-size:20px;font-weight:800;letter-spacing:-.02em;line-height:30px;white-space:nowrap;animation:fx-tick .6s cubic-bezier(.2,.8,.2,1)}
@keyframes fx-tick{from{transform:translateY(100%);opacity:0}to{transform:none;opacity:1}}
.fx-crates{display:flex;gap:6px;align-items:flex-end;height:34px}
.fx-crates i{flex:1;border-radius:5px;background:linear-gradient(180deg,#536CFF,#00C8FF);opacity:.85;transform-origin:50% 100%;animation:fx-crate 3.2s ease-in-out infinite}
.fx-crates i:nth-child(1){height:60%}.fx-crates i:nth-child(2){height:90%;animation-delay:-.6s}.fx-crates i:nth-child(3){height:45%;animation-delay:-1.2s}
.fx-crates i:nth-child(4){height:75%;animation-delay:-1.8s}.fx-crates i:nth-child(5){height:100%;animation-delay:-2.4s}
@keyframes fx-crate{0%,100%{transform:scaleY(1)}50%{transform:scaleY(.55)}}
.fx-course-name{font-size:20px;font-weight:800;letter-spacing:-.02em;line-height:30px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fx-bar{height:10px;border-radius:6px;background:rgba(255,255,255,.1);overflow:hidden;margin-top:8px}
.fx-bar b{display:block;height:100%;width:0;border-radius:6px;background:linear-gradient(90deg,#7A3FFF,#536CFF,#00C8FF);transition:width 2.6s cubic-bezier(.2,.8,.2,1)}
.fx-rig{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:13px;font-weight:600;color:#86EFAC}
.fx-rig span{width:8px;height:8px;border-radius:50%;background:#22C55E;box-shadow:0 0 10px #22C55E;animation:fx-pulse 1.4s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.fx-crates i,.fx-tick-row{animation:none}.fx-bar b{transition:none}}

/* Phones, 9 Nov 2026. James: the heroes "look great on a computer" but on a phone "you can't really see the impact
   of it because of the way it's been cut". On a wide screen the picture has the right half; on a phone it was behind
   the words and shaded down to almost nothing. So on a phone the picture gets a clear band of its own across the
   top, unshaded, and the words start below it on a shade that only begins where they do. */
@media (max-width:979px){
  .fxh .fx-in,.fxrot .fxslide .fx-in{padding-top:260px}
  .fxh::before{background:linear-gradient(180deg,rgba(5,7,15,0) 0,rgba(5,7,15,0) 190px,rgba(5,7,15,.78) 300px,rgba(5,7,15,.62) 100%)}
  /* Even rows: three figures across, or four as two by two, never one left on its own. */
  .fx-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 18px}
  .fx-stats:has(>:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}
  /* Labs: the orbit is the picture, so it leads, and the shade waits until the words. */
  .lhero.fxh .in{display:flex;flex-direction:column;padding-top:20px}
  .lhero.fxh .in>.fx-vis{order:-1}
  .lhero.fxh::before{background:linear-gradient(180deg,rgba(5,7,15,0) 0,rgba(5,7,15,0) 360px,rgba(5,7,15,.7) 460px,rgba(5,7,15,.6) 100%)}
  .lhero.fxh .in>.fx-vis{width:100%}
  .lhero.fxh .fx-orbit{width:100%;height:340px;min-height:0}
  .lhero.fxh .lnum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  /* Studio: the drawing board takes the band across the top. */
  .hero.studio-fx>.wrap{padding-top:250px}
}
