/* =====================================================================
   HOME: scroll-craft rebuild. Engine (scrollcraft.css/js) is untouched;
   everything page-specific lives here and in home.js.
===================================================================== */
:root{
  --sc-canvas:#0b0b0c; --sc-surface:#161718;
  --sc-ink:#f4f4f2;    --sc-ink-soft:#b3b8bd;
  --sc-accent:#e31b23; --sc-accent-ink:#ffffff;
  --sc-font-display:'Saira','Eurostile','Arial Narrow',Arial,sans-serif;
  --sc-font-text:'Barlow','Helvetica Neue',Arial,sans-serif;
  --hx-header:76px;
  --hx-callbar:0px;
}
@media (max-width:640px){ :root{ --hx-callbar:56px; } }

.hx-home .site-header{z-index:70}
/* the hero sits under the solid header instead of starting below it, so its copy clears the fold */
main.hx{margin-top:calc(-1 * var(--hx-header))}
.hx .sc-display{font-weight:600;font-stretch:122%;letter-spacing:-.01em;line-height:.98}
.hx-h1{font-size:clamp(2.5rem,1.3rem + 4.4vw,5.4rem);max-width:16ch}
.hx-h2{font-size:clamp(2rem,1.3rem + 2.8vw,3.8rem);max-width:16ch}
.hx-h3{font-size:clamp(1.7rem,1.2rem + 1.8vw,2.8rem)}
.hx-sub{display:block;color:var(--sc-ink-soft);font-size:var(--sc-t-lg);line-height:1.5;max-width:40ch;text-wrap:pretty}
.hx * + .hx-sub{margin-top:var(--sc-4)}
.hx .btn-row{margin-top:var(--sc-6)}
.hx-link{display:inline-block;margin-top:var(--sc-5);color:var(--sc-ink);font-weight:700;text-decoration:underline;text-decoration-color:var(--sc-accent);text-decoration-thickness:2px;text-underline-offset:.35em}
.hx-link:hover{text-decoration-color:var(--sc-ink)}

/* ---------------------------------------------------------------- 1 HERO */
.hx-hero__stage{background:#060607}
.hx-plane{
  --W:max(100vw,75svh);
  position:absolute;width:var(--W);aspect-ratio:3/4;
  left:calc((100vw - var(--W)) * .5);
  top:calc((100svh - var(--W) * 4 / 3) * .56);
  transform-origin:50% 39.4%;
  will-change:transform;
}
.hx-plane img{width:100%;height:100%;max-width:none;object-fit:cover}
.hx-plane--room{transform:scale(calc(1.02 + var(--sc-p,0) * .06))}
.hx-plane--room img{filter:brightness(1) saturate(1.08) contrast(1.06)}
/* the lit hex ceiling, cut along the wall tops; it pushes toward the viewer faster than the room */
.hx-plane--ceil{
  transform:scale(calc(1.02 + var(--sc-p,0) * .2));
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><filter id='b'><feGaussianBlur stdDeviation='.35'/></filter><polygon filter='url(%23b)' fill='white' points='-5,-5 105,-5 105,24.2 66.7,39.3 35.5,39.3 -5,27.4'/></svg>") 0 0/100% 100% no-repeat;
          mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><filter id='b'><feGaussianBlur stdDeviation='.35'/></filter><polygon filter='url(%23b)' fill='white' points='-5,-5 105,-5 105,24.2 66.7,39.3 35.5,39.3 -5,27.4'/></svg>") 0 0/100% 100% no-repeat;
}
.hx-plane--ceil img{filter:brightness(.92) contrast(1.2) saturate(.7)}
.hx-dark{position:absolute;inset:0;background:#050506;opacity:0;pointer-events:none}
/* hex grid echoing the ceiling lights; cells near the pointer glow red (home.js) */
.hx-hex{position:absolute;inset:-60px 0 0;width:100%;height:calc(100% + 60px);pointer-events:none;mix-blend-mode:screen;
  transform:translateY(calc(var(--sc-p,0) * -60px));
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 50%,rgba(0,0,0,.35) 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 50%,rgba(0,0,0,.35) 100%)}
/* a light streak across the floor, like a car ad: once after the lights come on, then every few seconds and with scroll */
.hx-sweep{position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;overflow:hidden;
  -webkit-mask-image:linear-gradient(to bottom,transparent 42%,#000 68%);mask-image:linear-gradient(to bottom,transparent 42%,#000 68%)}
.hx-sweep::before{content:"";position:absolute;inset:0 -40%;
  background:linear-gradient(104deg,transparent 40%,rgba(255,255,255,.06) 46%,rgba(240,244,248,.3) 50%,rgba(255,255,255,.06) 54%,transparent 60%);
  transform:translateX(calc((var(--sc-p,0) * 1.2 - .7) * 100%))}
.hx-hero__copy{max-width:min(64rem,88vw);bottom:calc(clamp(2.5rem,11vh,8rem) + var(--hx-callbar))}
.hx-hero__copy .btn-row{flex-wrap:wrap}
/* lighter scrim so the floor shows; a soft text shadow keeps the copy readable instead */
.hx-hero__scrim{background:linear-gradient(to top right,rgba(8,8,9,.82) 0%,rgba(8,8,9,.5) 30%,rgba(8,8,9,.14) 52%,transparent 66%)}
.hx-hero__copy .hx-h1,.hx-hero__copy .hx-sub{text-shadow:0 2px 22px rgba(0,0,0,.6),0 1px 3px rgba(0,0,0,.5)}
.hx-l{display:block;overflow:hidden;padding-bottom:.08em;margin-bottom:-.08em}
.hx-l > span{display:block}

/* the lights-on intro (home.js adds .hx-intro, then .hx-lit once the photo has decoded) */
.hx-intro .hx-plane--ceil{opacity:0}
.hx-intro .hx-l > span{transform:translateY(108%)}
.hx-intro .hx-in{opacity:0;transform:translateY(14px)}
/* lights off at the very top: the room, grid and floor streak come up as you scroll, and go dark again at the top */
@media (prefers-reduced-motion:no-preference){
  .hx-dark{opacity:clamp(0,calc((1 - var(--sc-p,0) * 2.5) * .25),.25)}
  .hx-plane--ceil{animation:hxBuzz 5.3s 1.5s linear infinite}
  /* camera starts tilted up at the lights and tilts down to the floor as the room comes up */
  .hx-plane{translate:0 calc(clamp(0,calc(1 - var(--sc-p,0) * 2.5),1) * 22svh)}
  @media (max-width:860px){ .hx-plane{translate:0 calc(clamp(0,calc(1 - var(--sc-p,0) * 2.5),1) * 6svh)} }
  .hx-hex,.hx-sweep{opacity:clamp(0,calc(var(--sc-p,0) * 2.5),1)}
}
.hx-lit .hx-plane--ceil{animation:hxFlick 1.3s .2s linear both,hxBuzz 5.3s 1.5s linear infinite}
/* home.js adds .hx-awake once the page leaves the very top: the tubes settle and stay on */
.hx-awake .hx-plane--ceil{animation:none;opacity:1}
.hx-lit .hx-l > span{animation:hxRise .95s var(--sc-ease-out) both}
.hx-lit .hx-l:nth-child(1) > span{animation-delay:1.35s}
.hx-lit .hx-l:nth-child(2) > span{animation-delay:1.47s}
.hx-lit .hx-in{animation:hxUp .7s var(--sc-ease-out) both}
.hx-lit .hx-sub.hx-in{animation-delay:1.75s}
.hx-lit .btn-row.hx-in{animation-delay:1.9s}
.hx-lit .hx-sweep::before{animation:hxSweep 9s 2.1s var(--sc-ease-in-out) infinite}
@keyframes hxFlick{0%{opacity:0}9%{opacity:.85}12%{opacity:.08}19%{opacity:.6}23%{opacity:.12}38%{opacity:1}100%{opacity:1}}
@keyframes hxBuzz{0%,38%{opacity:1}39%{opacity:.25}40%{opacity:.95}41.5%{opacity:.1}43%{opacity:1}72%{opacity:1}73%{opacity:.45}74%{opacity:1}100%{opacity:1}}
@keyframes hxRise{from{transform:translateY(108%)}to{transform:none}}
@keyframes hxUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes hxSweep{0%{translate:-60% 0}22%{translate:60% 0}100%{translate:60% 0}}

/* ---------------------------------------------------------------- 2 QUIET */
.hx-quiet{padding-block:clamp(3rem,8vw,6.5rem) clamp(4rem,10vw,8rem)}
.hx-quiet__line{font-size:clamp(1.9rem,1.2rem + 2.6vw,3.6rem);max-width:20ch;text-transform:none;font-stretch:112%;font-weight:500}
.hx-quiet__small{color:var(--sc-ink-soft);font-size:var(--sc-t-lg);max-width:44ch}

/* ---------------------------------------------------------------- 4 PROOF */
.hx-proof__stage{background:#0d0e0f}
.hx-proof__img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 66%}
.hx-proof__after{position:absolute;inset:0;margin:0}
.hx-proof .sc-scrim--trail{background:linear-gradient(to top left,rgba(8,8,9,.95) 0%,rgba(8,8,9,.82) 28%,rgba(8,8,9,.38) 52%,transparent 72%)}
.hx-proof__copy{bottom:calc(clamp(2.5rem,11vh,8rem) + var(--hx-callbar))}

/* ---------------------------------------------------------------- TRUST: reviews */
.hx-reviews{padding-block:clamp(4rem,8vw,7.5rem)}
.hx-reviews__head{margin-bottom:var(--sc-7)}
.hx-stars{color:#f5b400;letter-spacing:.12em;font-size:1.05rem;line-height:1}
.hx-reviews__head .hx-stars{font-size:1.5rem;margin-bottom:var(--sc-4)}
.hx-reviews__grid{display:grid;grid-template-columns:1.25fr 1fr;gap:clamp(1rem,2vw,1.5rem)}
.hx-rev{margin:0;display:grid;gap:var(--sc-4);align-content:start;padding:clamp(1.25rem,2.4vw,2rem);background:#141517;border:1px solid var(--line);border-radius:var(--sc-r-md);box-shadow:var(--sc-edge)}
.hx-rev--lead{grid-row:span 3;align-content:center;background:linear-gradient(150deg,#1d0a0b 0%,#141517 55%)}
.hx-rev blockquote{margin:0;color:var(--sc-ink);font-size:var(--sc-t-base);line-height:1.6;text-wrap:pretty}
.hx-rev--lead blockquote{font-family:var(--sc-font-display);font-size:clamp(1.3rem,1rem + 1vw,1.9rem);line-height:1.35;font-weight:500;letter-spacing:-.005em}
.hx-rev blockquote::before{content:"\201C"}
.hx-rev blockquote::after{content:"\201D"}
.hx-rev figcaption{display:flex;flex-wrap:wrap;gap:.25rem .75rem;align-items:baseline;font-size:var(--sc-t-sm)}
.hx-rev figcaption b{color:var(--sc-ink)}
.hx-rev figcaption span{color:var(--sc-ink-soft)}
.hx-reviews .hx-link{margin-top:var(--sc-6)}
@media (max-width:860px){.hx-reviews__grid{grid-template-columns:1fr}.hx-rev--lead{grid-row:auto}}

/* ---------------------------------------------------------------- 5 RANGE */
.hx-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(1rem,2vw,1.75rem)}
.hx-range__note{margin-top:var(--sc-6);color:var(--sc-ink-soft);font-size:var(--sc-t-lg)}
.hx-range__note .hx-link{margin:0 0 0 .5em}
.hx-item{text-decoration:none;color:inherit;display:block}
.hx-item__ph{display:block;aspect-ratio:3/4;overflow:hidden;border-radius:var(--sc-r-md);box-shadow:var(--sc-e2)}
.hx-item__ph img{width:100%;height:100%;object-fit:cover;transition:transform 480ms var(--sc-ease-out)}
.hx-item h3{margin-top:var(--sc-4);font-size:var(--sc-t-xl);font-stretch:122%;font-weight:600}
.hx-item p{margin-top:var(--sc-1);color:var(--sc-ink-soft);font-size:var(--sc-t-base)}
@media (hover:hover) and (pointer:fine){
  .hx-item:hover .hx-item__ph img{transform:scale(1.04)}
  .hx-item:hover h3{color:#fff;text-decoration:underline;text-decoration-color:var(--sc-accent);text-underline-offset:.25em}
}
.hx-item:active .hx-item__ph{transform:scale(.99)}

/* ---------------------------------------------------------------- 6 PRACTICAL */
.hx-flow{padding-block:clamp(3.5rem,7vw,7rem);position:relative;z-index:1}
.hx-flow--alt{background:#121315}
.hx-flow__head{margin-bottom:var(--sc-6);max-width:46rem}
.hx-flow__row{display:flex;justify-content:space-between;align-items:end;gap:var(--sc-5) var(--sc-7);flex-wrap:wrap;margin-bottom:var(--sc-6)}
.hx-flow__row .hx-flow__head{margin-bottom:0}
.hx-duo{display:grid;grid-template-columns:1.15fr 1fr;gap:clamp(1rem,2vw,1.5rem)}
.hx-duo__card{position:relative;display:grid;min-height:27rem;overflow:hidden;border:1px solid var(--line);border-radius:var(--sc-r-md);background:var(--bg-3);text-decoration:none;color:inherit}
.hx-duo__ph{position:absolute;inset:0}
.hx-duo__ph img{width:100%;height:100%;object-fit:cover;object-position:center 70%;filter:brightness(.62);transition:transform 480ms var(--sc-ease-out)}
.hx-duo__ph::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(8,8,9,.92) 0%,rgba(8,8,9,.55) 45%,transparent 75%)}
.hx-duo__card--fin{background:linear-gradient(140deg,#2b0a0c 0%,#141516 62%)}
.hx-duo__body{position:relative;align-self:end;display:grid;gap:var(--sc-4);padding:clamp(1.25rem,3vw,2.25rem);justify-items:start}
.hx-duo__body .btn-row{margin-top:var(--sc-2)}
.hx-duo__body small{font-size:13px;color:var(--sc-ink-soft);max-width:52ch}
@media (hover:hover) and (pointer:fine){ a.hx-duo__card:hover .hx-duo__ph img{transform:scale(1.03)} }
.hx-area{display:grid;grid-template-columns:1fr 1.1fr;gap:clamp(2rem,5vw,4.5rem);align-items:start}
.hx-area .hx-flow__head{margin-bottom:0}
.hx-home .reviews-gate{border-radius:var(--sc-r-md)}

/* ---------------------------------------------------------------- 7 CLOSE */
.hx-close__stage{background:#0b0b0c}
.hx-close__bg{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;filter:brightness(.6) saturate(.85)}
.hx-close__scrim{position:absolute;inset:0;z-index:1;pointer-events:none;
  background:radial-gradient(62% 58% at 50% 52%,rgba(9,9,10,.86) 0%,rgba(9,9,10,.62) 55%,rgba(9,9,10,.4) 100%)}
.hx-close__inner{position:absolute;inset:0;z-index:20;display:grid;align-content:center;justify-items:center;text-align:center;gap:var(--sc-4);padding:calc(var(--hx-header) + 2rem) var(--sc-gutter) calc(2rem + var(--hx-callbar))}
.hx-close__inner .hx-sub{margin-inline:auto}
.hx-close__cta{display:grid;justify-items:center;gap:var(--sc-4);margin-top:var(--sc-4)}
.hx-close__phones{display:flex;gap:var(--sc-5);flex-wrap:wrap;justify-content:center}
.hx-close__phones a{font-weight:700;font-size:var(--sc-t-lg);text-decoration:none;color:var(--sc-ink)}
.hx-close__phones a:hover{text-decoration:underline;text-decoration-color:var(--sc-accent)}
.hx-close + .marquee,.hx ~ .marquee{position:relative;z-index:2}

/* ---------------------------------------------------------------- mobile */
@media (max-width:860px){
  .hx-proof .sc-scrim--trail{background:linear-gradient(to top,rgba(8,8,9,.96) 0%,rgba(8,8,9,.86) 34%,rgba(8,8,9,.5) 56%,transparent 74%)}
  .hx-hero__scrim{background:linear-gradient(to top,rgba(8,8,9,.86) 0%,rgba(8,8,9,.55) 28%,rgba(8,8,9,.16) 48%,transparent 62%)}
  .hx-duo,.hx-area{grid-template-columns:1fr}
  .hx-duo__card{min-height:22rem}
  .hx-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.hx-short{display:none}
@media (max-width:640px){
  .hx-h1{font-size:clamp(2.3rem,10.5vw,3rem)}
  .hx-sub{font-size:var(--sc-t-base)}
  /* calmer phone hero: no hex/sweep overlay, short line, one button (sticky bar already has Call) */
  .hx-hex,.hx-sweep{display:none}
  .hx-long{display:none}
  .hx-short{display:inline}
  .hx-hero__copy .btn-ghost{display:none}
  .hx-hero__copy .btn-primary{width:100%}
  /* phones: no red glow, no slide/rise motion (before/after wipe stays) */
  [data-sc-spotlight]::after{display:none}
  .hx-plane{translate:none !important}
  .hx-plane--room{transform:none}
  .hx-plane--ceil{display:none}
  .hx-l > span,.hx-in{animation:none !important;transform:none !important;opacity:1 !important}
  [data-sc-in],[data-sc-stagger] > *{opacity:1;transform:none;transition:none}
  /* scroll-cued copy is there when you arrive, not after a screen of empty photo */
  [data-sc-cue]{opacity:1 !important;transform:none !important;pointer-events:auto !important}
  /* 44px tap targets (HIG accessibility) */
  .hx-link,.hx-close__phones a{display:inline-flex;align-items:center;min-height:44px}
  /* reviews: swipe sideways instead of four stacked screens */
  .hx-reviews__grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding-bottom:8px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .hx-reviews__grid::-webkit-scrollbar{display:none}
  .hx-rev{flex:0 0 86%;scroll-snap-align:start}
  .hx-rev--lead blockquote{font-size:1.15rem}
}

/* ---------------------------------------------------------------- TRUST: client strip */
.hx-clients{padding-block:clamp(2.5rem,5vw,4rem);border-block:1px solid var(--line);background:#0e0f10;position:relative;z-index:1}
.hx-clients__h{font-family:var(--sc-font-text);font-size:var(--sc-t-sm);font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--sc-ink-soft);margin-bottom:var(--sc-6);text-align:center}
.hx-clients__view{display:flex;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.hx-clients__track{display:flex;flex:none;align-items:center;gap:clamp(2.5rem,5vw,4.5rem);padding:0 clamp(1.25rem,2.5vw,2.25rem);margin:0;list-style:none;animation:hxClients 42s linear infinite}
.hx-clients__view:hover .hx-clients__track{animation-play-state:paused}
.hx-clients li{flex:none;display:flex;align-items:center;height:56px}
.hx-clients li span{font-family:var(--sc-font-display);font-stretch:118%;font-weight:600;font-size:clamp(1.05rem,.9rem + .6vw,1.45rem);text-transform:uppercase;letter-spacing:.02em;color:#c9cdd1;white-space:nowrap}
/* logos are pre-rendered white (lab/logo-white.mjs), so only their brightness changes */
.hx-clients li img{height:40px;width:auto;max-width:210px;object-fit:contain;opacity:.72;transition:opacity 160ms var(--sc-ease-out)}
.hx-clients li:hover img{opacity:1}
/* round badge logos need more height to read at the same weight as the flat wordmarks */
.hx-clients li img.hx-clients__badge{height:56px;opacity:.85}
.hx-clients li span{opacity:.72}
@keyframes hxClients{to{transform:translateX(-100%)}}
@media (prefers-reduced-motion:reduce){
  .hx-clients__view{flex-wrap:wrap;justify-content:center;-webkit-mask-image:none;mask-image:none}
  .hx-clients__track{animation:none;flex-wrap:wrap;justify-content:center;row-gap:var(--sc-4)}
  .hx-clients__track[aria-hidden]{display:none}
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion:reduce){
  .hx-plane--room,.hx-plane--ceil{transform:scale(1.02)}
  .hx-hex,.hx-sweep::before{transform:none}
  .hx-sweep{display:none}
}

/* short phones: the hero copy is most of the screen, so no tilt and a taller dark band behind it */
@media (max-width:860px) and (max-height:720px){
  .hx-plane{translate:none}
  .hx-hero__scrim{background:linear-gradient(to top,rgba(8,8,9,.9) 0%,rgba(8,8,9,.66) 34%,rgba(8,8,9,.22) 56%,transparent 72%)}
}
