/* HERO: vortex-hero.js draws the WebGL spiral into .hero-bg as a <canvas>; the headline, text and buttons sit above it. */
.hero{position:relative;min-height:100vh;min-height:100svh;display:flex;align-items:center;background:#1B1838;color:var(--mist);isolation:isolate;overflow:hidden}

/* the background slot: always the full hero, edge to edge */
.hero-bg{position:absolute;inset:0;z-index:0;background:#1B1838}   /* plain night until the spiral draws: no old poster frame */
.hero-bg>canvas{position:absolute;inset:0;width:100%;height:100%;display:block}

/* readability only (no motion): a soft dark behind the nav and the text, and a fade to night at the bottom
   so the hero flows into the page */
.hero-bg::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;
  background:
    radial-gradient(ellipse 48% 52% at 16% 46%,rgba(12,10,30,.5),rgba(12,10,30,0) 72%),
    linear-gradient(rgba(27,24,56,.5),rgba(27,24,56,0) 18%,rgba(27,24,56,0) 80%,rgba(27,24,56,.4) 90%,#1B1838)}

/* the copy */
.hero-copy{position:relative;z-index:2;text-align:left;padding:76px 0 18vh;display:grid;justify-items:start;align-content:center;
  text-shadow:0 1px 2px rgba(5,5,10,.9),0 4px 18px rgba(5,5,10,.6),0 10px 44px rgba(5,5,10,.6)}
.hero .hero-copy{width:auto;margin:0 auto 0 clamp(24px,6.5vw,128px)}
.hero .hero-title,.hero .hl-live{font-size:clamp(48px,min(6vw,10vh),92px);line-height:.98;margin:0}
.hero .hero-title .ln{display:block}

/* the living headline: words cycle over the second line (site.js builds each word as letters and places the layer on
   the line). The h1 keeps its real text "a website." in place, invisible, so the line keeps its size and screen
   readers and search engines read the heading as it is. */
.hl-live{position:absolute;left:0;top:0;white-space:nowrap;perspective:600px;pointer-events:none;font-weight:500;letter-spacing:-.015em}
.hero-copy.is-live .hl-line{color:transparent;text-shadow:none;user-select:none;-webkit-user-select:none}
.hl-word{position:absolute;left:0;top:0;display:inline-block}
.hl-word.gold{font-family:var(--serif);font-style:italic;font-weight:400;letter-spacing:0;color:var(--gold)}
.hl-word .ch{display:inline-block;transform-origin:50% 100%;will-change:transform,opacity,filter}
/* in: each letter rises out of a soft blur with a slight tilt; out: lifts away and blurs */
.hl-word.in .ch{animation:hlIn .9s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(var(--i) * 28ms)}
.hl-word.out .ch{animation:hlOut .5s cubic-bezier(.55,0,.75,.2) both;animation-delay:calc(var(--i) * 18ms)}
@keyframes hlIn{from{opacity:0;transform:translate3d(0,.42em,0) rotateX(-75deg);filter:blur(8px)}to{opacity:1;transform:none;filter:blur(0)}}
@keyframes hlOut{to{opacity:0;transform:translate3d(0,-.32em,0) rotateX(55deg);filter:blur(6px)}}
/* as a gold word lands: a glint of light runs across it, and a thin gold line draws itself underneath, then fades */
.hl-word.gold.landed .ch{animation:hlGlint .9s ease-in-out both;animation-delay:calc(var(--i) * 40ms)}
@keyframes hlGlint{50%{color:#FFF1C8}}
.hl-word.gold::after{content:"";position:absolute;left:.02em;right:.16em;bottom:-.04em;height:max(1.5px,.032em);border-radius:2px;pointer-events:none;
  background:linear-gradient(90deg,rgba(216,179,90,0),var(--gold) 14%,#F3D27E 50%,var(--gold) 86%,rgba(216,179,90,0));transform:scaleX(0);transform-origin:left center;opacity:0}
.hl-word.gold.landed::after{animation:hlLine 1.6s cubic-bezier(.65,0,.35,1) forwards}   /* done before the next word comes */
@keyframes hlLine{0%{transform:scaleX(0);opacity:1}40%{transform:scaleX(1);opacity:1}70%{transform:scaleX(1);opacity:1}100%{transform:scaleX(1);opacity:0}}
.hero-sub{margin-top:20px;font-size:clamp(17px,1.35vw,20px);color:#E2E0EA;max-width:33ch}
.hero-sub strong{font-weight:600;color:#F3D27E;white-space:nowrap}
/* "Get a free audit" is a little longer than the old label: keep both buttons on one row on a 390px phone */
@media (max-width:420px){.hero-ctas .btn{padding-left:20px;padding-right:20px}}
.hero-ctas{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:12px;margin-top:28px;text-shadow:none}
.hero-copy>*{opacity:0;transform:translateY(16px);animation:rise 1.1s cubic-bezier(.16,1,.3,1) forwards}
.hero-copy>.hero-title{animation-delay:.3s}.hero-copy>.hero-sub{animation-delay:.5s}.hero-copy>.hero-ctas{animation-delay:.65s}
@keyframes rise{to{opacity:1;transform:none}}

/* vortex: the script pins the hero and wraps its contents in a sticky 100vh .vh-frame,
   so the frame (not the section) lays out the copy */
.hero.vh-pinned{display:block;height:160vh}   /* a shorter pin than the vortex default (250vh); hero-tune.js ends the dive early */
.hero.vh-pinned>.vh-frame{display:flex;align-items:center;width:100%}
/* a device too slow for the spiral (hero-tune.js): a still picture of it instead of the canvas */
.vh.vh-still .vh-canvas{visibility:hidden}
.vh.vh-still .hero-bg{background:#0b0d22 var(--vh-still) center/cover no-repeat}

/* your services orbiting the spiral on two tilted orbits: site.js moves the chips (bright in front, dim and soft behind)
   and draws the rings (brighter on their front half). A pointer shortcut into the contact form; only with the pin
   (not with reduced motion). */
.hero-orbit{display:none;margin:0;font:inherit}   /* the page's h1: the search keywords, as chips orbiting the spiral */
.vh .vh-frame>.hero-orbit{display:block;position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.ho-rings{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.ho-ring{fill:none;stroke-width:1;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1}
.ho-ring.back{stroke:rgba(216,179,90,.14)}
.ho-ring.front{stroke:rgba(216,179,90,.5)}
.ho-item{position:absolute;left:0;top:0;display:inline-flex;align-items:center;gap:8px;padding:7px 12px 7px 10px;border-radius:999px;background:rgba(20,17,48,.66);border:1px solid rgba(216,179,90,.32);box-shadow:0 8px 20px -10px rgba(5,5,20,.8);font:400 11px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--mist);white-space:nowrap;opacity:0;will-change:transform,opacity;pointer-events:auto;cursor:pointer;margin:0}
.ho-item::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--gold);box-shadow:0 0 10px rgba(216,179,90,.9)}
/* with a mouse: chips behind the spiral go softly out of focus, and pointing at one lights it up. (Phones skip the
   blur and the transitions: restyling them on moving chips every frame cost more than the look was worth there.) */
@media (hover:hover){
  .ho-item{transition:filter .6s var(--ease-out),border-color .3s,background-color .3s,color .3s,box-shadow .3s}
  .ho-item::before{transition:transform .3s var(--ease-out)}
  .ho-item.is-back{filter:blur(.8px)}
  .ho-item:hover{border-color:var(--gold);background:rgba(27,24,56,.9);color:#fff;box-shadow:0 0 0 3px rgba(216,179,90,.14),0 10px 26px -10px rgba(5,5,20,.9);filter:none}
  .ho-item:hover::before{transform:scale(1.5)}
}
@media (min-width:1024px){.ho-item{font-size:12.5px;padding:8px 14px 8px 12px}}

/* squarer landscape screens (tablets, small laptops): the text sits higher so the spiral has room below it */
@media (orientation:landscape) and (max-aspect-ratio:3/2){
  .hero,.hero.vh-pinned>.vh-frame{align-items:flex-start}
  .hero .hero-copy{padding:clamp(92px,13vh,140px) 0 0}
  .hero .hero-title,.hero .hl-live{font-size:clamp(44px,min(5.4vw,8.4vh),80px)}
}

/* portrait screens (phones, upright tablets): text at the top, the spiral below it */
@media (orientation:portrait){
  .hero,.hero.vh-pinned>.vh-frame{align-items:flex-start}
  .hero .hero-copy{margin:0 auto;width:var(--wrap,min(1200px,100% - 48px));padding:clamp(100px,13vh,170px) 0 0}
  .hero-bg::after{background:
    radial-gradient(ellipse 90% 34% at 30% 22%,rgba(12,10,30,.5),rgba(12,10,30,0) 72%),
    linear-gradient(rgba(27,24,56,.45),rgba(27,24,56,0) 16%,rgba(27,24,56,0) 84%,rgba(27,24,56,.4) 92%,#1B1838)}
}
@media (max-width:720px){.hero .hero-title,.hero .hl-live{font-size:clamp(44px,13vw,64px)}.hero-sub{max-width:34ch}}

@media (prefers-reduced-motion:reduce){
  .hero-copy>*{opacity:1;transform:none;animation:none}
  .hl-live{display:none}
  /* no orbit: the keywords (the h1) sit still as a row of chips at the bottom of the hero */
  .hero>.hero-orbit,.vh>.hero-orbit,.vh .vh-frame>.hero-orbit{display:flex;flex-wrap:wrap;gap:8px;position:absolute;inset:auto var(--side) clamp(24px,6vh,56px);z-index:2;pointer-events:none}
  .ho-rings{display:none}
  .ho-item{position:static;opacity:1;transform:none}
  .hero-copy.is-live .hl-line{color:inherit;text-shadow:inherit}
}
