/* Homepage hero: "Signal", in the Hammer Brand Identity palette.
   One screen. The fixed site header floats over the top; an LED wall in the
   brand blues (assets/js/hero.js) lights the upper right and dims itself
   behind the copy; the headline and the two actions are centred between the
   header and the logo band; the partner logos, drawn in the
   brand's light colour #F2F2F2, are the hero's own base, so they are on
   screen on landing without scrolling.
   Brand: hero ground Secondary BG #101315; headline Montserrat Bold in
   #F2F2F2; the italic accent is the brand's "iconic text", Georgia Italic in
   Hammer Secondary #2E8ED1 with an outer glow (AA on every dark ground; matches the accents sitewide).
   One orchestrated moment: the headline rises line by line, then the actions
   fade in. Without WebGL a still CSS dot grid stands in for the wall; under
   reduced motion everything rests in place; the copy never needs JS.
   Shared by index.html and the hero lab (hero.html, + hero-lab.css). */
.hx{--hx-gutter:max(24px,6vw);--hx-ground:#101315;--hx-hdr:102px;position:relative;height:100svh;min-height:600px;display:flex;flex-direction:column;
  overflow:hidden;isolation:isolate;color:#f2f2f2;background:var(--hx-ground)}
.hx[hidden]{display:none}
.hx-bg{position:absolute;inset:0;z-index:0;pointer-events:none}
/* the copy is centred in the space between the fixed header (--hx-hdr: its
   bottom edge) and the logo band */
.hx-body{position:relative;z-index:2;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:18px;
  padding:calc(var(--hx-hdr) + 20px) var(--hx-gutter) 20px}
/* shrink-wrapped, so hero.js can dim the LED wall behind exactly this block */
.hx-copy{position:relative;width:fit-content;max-width:100%}
.hx-title{margin:0;font:700 clamp(2.6rem,min(6.9vw,12.6svh),8.6rem)/.9 var(--heading);letter-spacing:-.05em}
/* each line is its own mask; the padding keeps descenders ("g") inside it */
.hx-title .l{display:block;overflow:hidden;padding-bottom:.17em;margin-bottom:-.17em}
.hx-title .l>span{display:block;transform:translateY(112%);animation:hxRise 1.15s cubic-bezier(.2,.75,.12,1) .15s forwards}
/* the accent line's mask reaches past the glyphs on every side so the glow
   isn't cut off; it starts further down to stay hidden inside that taller mask */
.hx-title .l+.l{padding:.35em .4em .6em;margin:-.35em -.4em -.6em}
.hx-title .l+.l>span{transform:translateY(175%);animation-delay:.3s}
.hx-title em{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-weight:400;letter-spacing:-.025em;color:#2e8ed1;
  text-shadow:0 0 .18em rgba(46,142,209,.45),0 0 .6em rgba(9,107,159,.45)}
@keyframes hxRise{to{transform:none}}
@keyframes hxFade{to{opacity:1}}
.hx-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px 26px;margin-top:clamp(26px,4svh,44px);
  opacity:0;animation:hxFade .9s var(--ease) .75s forwards}
/* the link's underline sits 9px below its text: drop the box by that much so
   the words, not the underline box, line up with the button's centre */
.hx-actions .text-link{margin-top:9px}
/* main.js turns the primary .button into the shimmer pill; these cover no-JS */
.hx--dark .button{border-color:#f2f2f2;color:#f2f2f2}
.hx--dark .button:hover{background:#f2f2f2;color:#101315}
.hx--dark .text-link{border-color:rgba(242,242,242,.5);color:#f2f2f2}
.hx--dark .text-link i{color:#2e8ed1}
.hx--dark .text-link:hover{border-color:#2e8ed1;color:#2e8ed1}

/* partner logos: the hero's own base, a band of dark-tinted liquid glass
   (65% tint over a blurred, darkened view of the LED wall) with no border or
   shadow: all four edges are feathered so the glass melts into the wall around
   it. Every logo is #F2F2F2 (filters in the markup): line-art logos turn
   light, badge logos (img.is-badge) keep their light parts */
.hx-defs{position:absolute;width:0;height:0;overflow:hidden}
.hx-logos{position:relative;z-index:3;flex:0 0 auto;margin:0 16px 16px;padding:22px 0 20px;
  background:rgba(16,19,21,.65);
  -webkit-backdrop-filter:blur(22px) saturate(1.6) brightness(.9);backdrop-filter:blur(22px) saturate(1.6) brightness(.9);
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 18px,#000 calc(100% - 14px),transparent),linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(180deg,transparent,#000 18px,#000 calc(100% - 14px),transparent),linear-gradient(90deg,transparent,#000 48px,#000 calc(100% - 48px),transparent);
  mask-composite:intersect}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.hx-logos{background:rgba(16,19,21,.9)}}
/* logo carousel (assets/js/logo-carousel.js): one row of columns, each shows
   one client, one column changes at a time (shuffled). --slot-min/--slot-gap/
   --edge are read by the JS to decide how many columns fit.
   .hx-logo-list is the real list: a still, sideways-scrolling row without JS;
   with JS (.is-carousel) it stays for screen readers only */
.hx-logos{--slot-w:150px;--slot-min:112px;--slot-h:52px;--slot-gap:24px;--edge:48px}
.hx-logo-list{list-style:none;margin:0;padding:0 var(--edge);display:flex;align-items:center;gap:var(--slot-gap);overflow-x:auto;scrollbar-width:none}
.hx-logo-list::-webkit-scrollbar{display:none}
.hx-logo-list li{flex:0 0 auto}
.hx-logo-list img,.hx-logo-slot img{display:block;height:var(--slot-h);width:var(--slot-w);object-fit:contain;filter:url(#hx-logo-tint)}
.hx-logo-list img.is-badge,.hx-logo-slot img.is-badge{filter:url(#hx-logo-badge)}
.hx-logos.is-carousel .hx-logo-list{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.hx-logo-grid{display:grid;grid-template-columns:repeat(var(--cols,7),minmax(0,var(--slot-w)));justify-content:space-evenly;column-gap:var(--slot-gap);padding:0 var(--edge)}
/* each column is a soft window, not a hard box: it reaches --fade above/below
   and --bleed left/right of the logo (negative margins keep the layout) and
   fades out over that margin, so a logo blurring in or out dissolves at the
   edges instead of being cut along a straight line */
.hx-logos{--fade:12px;--bleed:14px}
.hx-logo-col{position:relative;height:calc(var(--slot-h) + 2*var(--fade));margin:calc(-1*var(--fade)) calc(-1*var(--bleed));
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 var(--fade),#000 calc(100% - var(--fade)),transparent),linear-gradient(90deg,transparent,#000 var(--bleed),#000 calc(100% - var(--bleed)),transparent);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(180deg,transparent,#000 var(--fade),#000 calc(100% - var(--fade)),transparent),linear-gradient(90deg,transparent,#000 var(--bleed),#000 calc(100% - var(--bleed)),transparent);
  mask-composite:intersect}
.hx-logo-slot{position:absolute;inset:var(--fade) var(--bleed);display:flex;align-items:center;justify-content:center}
.hx-logo-slot img{width:100%;max-width:var(--slot-w)}

/* the LED wall */
.hx--signal,.hx--signal .hx-bg{background:var(--hx-ground)}
/* the same wall as a still CSS dot grid, anchored bottom left like the WebGL
   grid: it shows before WebGL starts, and stays if WebGL is unavailable */
.hx--signal .hx-bg::before{content:"";position:absolute;inset:0;
  background-image:radial-gradient(circle,rgba(46,142,209,.62) 0 1.2px,transparent 1.7px);background-size:9px 9px;background-position:0 100%;
  -webkit-mask-image:radial-gradient(70% 78% at 80% 24%,#000 0%,rgba(0,0,0,.3) 55%,rgba(0,0,0,.08) 85%);
  mask-image:radial-gradient(70% 78% at 80% 24%,#000 0%,rgba(0,0,0,.3) 55%,rgba(0,0,0,.08) 85%)}
.hx--signal .hx-bg canvas{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity 1.4s var(--ease)}
.hx--signal .hx-bg.is-on canvas{opacity:1}

@media (max-width:900px){.hx{--hx-hdr:84px}}
@media (max-width:1023px){
  .hx-title{font-size:clamp(2.6rem,min(9vw,8.2svh),5rem)}
}
@media (max-width:640px){
  .hx{min-height:560px}
  .hx-body{gap:14px;padding-top:calc(var(--hx-hdr) + 14px);padding-bottom:14px}
  .hx-title{font-size:clamp(2.3rem,11.2vw,3.3rem);line-height:.92}
  .hx-actions{margin-top:22px;gap:12px 20px}
  .hx-logos{margin:0 10px 10px;padding:16px 0 14px;--slot-w:100px;--slot-min:96px;--slot-h:36px;--slot-gap:14px;--edge:16px;--fade:10px;--bleed:7px;
    -webkit-mask-image:linear-gradient(180deg,transparent,#000 14px,#000 calc(100% - 12px),transparent),linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 16px),transparent);
    mask-image:linear-gradient(180deg,transparent,#000 14px,#000 calc(100% - 12px),transparent),linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 16px),transparent)}
}
@media (max-width:640px) and (max-height:700px){
  .hx-title{font-size:clamp(2.1rem,10vw,2.8rem)}
}
@media (prefers-reduced-motion:reduce){
  .hx-title .l>span,.hx-actions{animation:none;transform:none;opacity:1}
}
