/* ============================
   0todeploy — home.css  (homepage redesign, phase 1)
   Editorial type, one orange accent on black, scroll-driven motion.
   Loaded only on index.html, after styles.css. Every animated state is
   gated on html.js-reveal (set pre-paint by theme-init.js, skipped for
   reduced motion), so without JS or with reduced motion the page is static
   and complete.
   ============================ */

/* Tokens, grain, buttons and links live in site.css (loaded first). */

/* Inline icon sprite: kept out of layout without an inline style (CSP: style-src 'self') */
.svg-sprite{ position:absolute; width:0; height:0; overflow:hidden; }

/* ---------- Shared atoms ---------- */
.h-dot{
  display:inline-block;
  width:.55em; height:.55em;
  margin-right:.45em;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 0 rgba(34,197,94,.55);
  animation:h-pulse 2.2s ease-out infinite;
  vertical-align:.05em;
}
@keyframes h-pulse{
  70%{ box-shadow:0 0 0 .6em rgba(34,197,94,0); }
  100%{ box-shadow:0 0 0 0 rgba(34,197,94,0); }
}

.h-section{ padding:clamp(5rem,12vw,10rem) var(--gutter); position:relative; }

.h-head{ max-width:1400px; margin:0 auto clamp(2.5rem,6vw,5rem); }
.h-head .h-mono{ display:block; margin-bottom:1.25rem; }
.h-head--row{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap:2rem; flex-wrap:wrap;
}
.h-head__lead{
  max-width:34ch;
  margin:1.5rem 0 0;
  color:var(--text-muted);
  font-size:clamp(1rem,1.3vw,1.15rem);
  line-height:1.55;
}
.h-head--row .h-head__lead{ margin:0; }

.h-title{
  font-size:clamp(2.4rem,6.4vw,6.5rem);
  font-weight:700;
  line-height:.95;
  letter-spacing:-.04em;
  color:var(--text);
  margin:0;
  max-width:16ch;
  text-wrap:balance;
}

/* ============ HERO ============ */
.h-hero{
  position:relative;
  min-height:calc(100svh - var(--header-offset));
  padding:1.25rem var(--gutter) 1.5rem;
  display:flex; flex-direction:column;
  overflow:clip;
  isolation:isolate;
}
.h-hero::after{
  /* soft orange bloom behind the title */
  content:"";
  position:absolute;
  left:-10%; bottom:-30%;
  width:70%; height:80%;
  background:radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  filter:blur(40px);
  z-index:-2;
  pointer-events:none;
}
:root[data-theme="light"] .h-hero::after{ opacity:.55; }

.h-hero__field{
  position:absolute; inset:0;
  width:100%; height:100%;
  z-index:-1;
  pointer-events:none;
}

.h-hero__meta{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:1rem;
  padding-bottom:1rem;
  border-bottom:1px solid var(--rule);
}
.h-hero__meta-end{ justify-self:end; }
.h-clock{ font-variant-numeric:tabular-nums; color:var(--text); }

.h-hero__grid{
  flex:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,40%);
  grid-template-areas:
    "title title"
    "foot  stage";
  align-content:end;
  column-gap:clamp(1.5rem,4vw,4rem);
  row-gap:clamp(1.25rem,3vw,2.5rem);
  padding-top:clamp(2rem,6vh,5rem);
}
.h-hero__copy{ display:contents; }

.h-hero__title{
  grid-area:title;
  margin:0;
  font-size:clamp(3.1rem,11.6vw,12.5rem);
  font-weight:700;
  line-height:.86;
  letter-spacing:-.055em;
  color:var(--hero-ink);
}
.h-line{ display:block; overflow:hidden; padding-bottom:.06em; margin-bottom:-.06em; }
.h-line > span{ display:inline-block; }
.h-line:nth-child(2){ padding-left:clamp(0rem,9vw,10rem); }

.h-hero__foot{
  grid-area:foot;
  align-self:end;
  display:flex; flex-direction:column; gap:1.75rem;
  padding-bottom:.5rem;
}
.h-hero__lead{
  max-width:38ch;
  margin:0;
  color:var(--text-muted);
  font-size:clamp(1rem,1.25vw,1.15rem);
  line-height:1.55;
}

.h-hero__stage{
  grid-area:stage;
  position:relative;
  align-self:end;
  aspect-ratio:1376 / 768;
  border-radius:clamp(14px,1.6vw,24px);
  overflow:hidden;
  background:#0a0a0c;
  border:1px solid var(--rule);
}
.h-hero__stage picture, .h-hero__stage img{
  display:block; width:100%; height:100%; object-fit:cover;
}
.h-hero__stage img{ transform:scale(1.04); transition:transform 1.2s var(--ease-out); }
.h-hero__stage:hover img{ transform:scale(1.08); }
.h-hero__stage .intro-play{ right:1rem; bottom:1rem; }

.h-scroll{
  display:inline-flex; align-items:center; gap:.75rem;
  margin-top:1.5rem;
  text-decoration:none;
  align-self:flex-start;
}
.h-scroll:hover{ color:var(--accent); }
.h-scroll__bar{
  position:relative;
  width:1px; height:2.25rem;
  background:var(--rule);
  overflow:hidden;
}
.h-scroll__bar::after{
  content:"";
  position:absolute; left:0; top:0;
  width:100%; height:40%;
  background:var(--accent);
  animation:h-drip 1.8s var(--ease-io) infinite;
}
@keyframes h-drip{ from{ transform:translateY(-100%); } to{ transform:translateY(260%); } }

/* ============ MARQUEE ============ */
.h-marquee{
  border-block:1px solid var(--rule);
  overflow:hidden;
  padding:1.1rem 0;
  background:var(--bg);
}
.h-marquee__track{
  display:flex; align-items:center; gap:2rem;
  width:max-content;
  animation:h-marquee 38s linear infinite;
  font-family:var(--font-heading);
  font-size:clamp(1.4rem,3vw,2.6rem);
  font-weight:600;
  letter-spacing:-.02em;
  text-transform:uppercase;
  white-space:nowrap;
}
.h-marquee__track i{ font-style:normal; color:var(--accent); font-size:.6em; }
.h-marquee__track span:nth-of-type(even){
  color:transparent;
  -webkit-text-stroke:1px var(--text);
}
.h-marquee:hover .h-marquee__track{ animation-play-state:paused; }
@keyframes h-marquee{ to{ transform:translateX(-50%); } }

/* ============ SERVICES ============ */
.h-svc{
  list-style:none;
  margin:0 auto;
  padding:0;
  max-width:1400px;
  border-top:1px solid var(--rule);
}
.h-svc__row{ border-bottom:1px solid var(--rule); }
.h-svc__link{
  position:relative;
  display:grid;
  grid-template-columns:4rem minmax(0,1.2fr) minmax(0,1fr) 3.5rem;
  align-items:center;
  gap:1.5rem;
  padding:clamp(1.4rem,2.8vw,2.4rem) .25rem;
  color:var(--text);
  text-decoration:none;
  isolation:isolate;
}
.h-svc__link::before{
  /* orange wipe from the bottom on hover */
  content:"";
  position:absolute; inset:0;
  z-index:-1;
  background:var(--brand);
  transform:scaleY(0);
  transform-origin:bottom;
  transition:transform .55s var(--ease-out);
}
.h-svc__name{
  font-family:var(--font-heading);
  font-size:clamp(1.7rem,4.2vw,4rem);
  font-weight:600;
  letter-spacing:-.035em;
  line-height:1;
  transition:transform .55s var(--ease-out);
}
.h-svc__desc{
  color:var(--text-muted);
  font-size:.98rem;
  max-width:36ch;
  transition:color .3s ease;
}
.h-svc__arrow{
  justify-self:end;
  display:grid; place-items:center;
  width:3.25rem; height:3.25rem;
  border-radius:50%;
  border:1px solid var(--rule);
  transition:transform .55s var(--ease-out), background-color .3s, border-color .3s, color .3s;
}
.h-svc__arrow .h-ico{ transform:rotate(-45deg); transition:transform .55s var(--ease-out); }
.h-svc__thumb{ display:none; }

@media(hover:hover){
  .h-svc__link:hover::before,
  .h-svc__link:focus-visible::before{ transform:scaleY(1); }
  .h-svc__link:hover, .h-svc__link:focus-visible{ color:#0a0a0c; }
  .h-svc__link:hover .h-svc__name{ transform:translateX(1.25rem); }
  .h-svc__link:hover .h-svc__desc,
  .h-svc__link:hover .h-svc__num{ color:#0a0a0c; }
  .h-svc__link:hover .h-svc__arrow{ background:#0a0a0c; border-color:#0a0a0c; color:var(--brand); }
  .h-svc__link:hover .h-svc__arrow .h-ico{ transform:none; }
}
.h-svc__link:focus-visible{ outline:2px solid var(--accent); outline-offset:-2px; }

/* Floating preview that trails the cursor over the list */
.h-preview{
  position:fixed;
  left:0; top:0;
  width:clamp(240px,22vw,360px);
  aspect-ratio:16 / 10;
  border-radius:14px;
  overflow:hidden;
  pointer-events:none;
  z-index:5;
  background:#0a0a0c;
  opacity:0;
  transform:translate(-50%,-50%);
  scale:.6;
  rotate:-4deg;
  transition:opacity .35s var(--ease-out), scale .5s var(--ease-out), rotate .6s var(--ease-out);
  box-shadow:0 30px 60px -20px rgba(0,0,0,.6);
}
.h-preview.is-on{ opacity:1; scale:1; rotate:0deg; }
@media(hover:none), (max-width:900px){ .h-preview{ display:none; } }
.h-preview video{ width:100%; height:100%; object-fit:cover; display:block; }

/* ============ STATS ============ */
.h-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  max-width:1400px;
  margin:0 auto;
  padding:0 var(--gutter) clamp(5rem,10vw,8rem);
}
.h-stat{
  padding:2rem 1.5rem 0 0;
  border-top:1px solid var(--rule);
}
.h-stat + .h-stat{ padding-left:1.5rem; border-left:1px solid var(--rule); }
.h-stat strong{
  display:block;
  font-family:var(--font-heading);
  font-size:clamp(2.8rem,7vw,6.5rem);
  font-weight:600;
  letter-spacing:-.05em;
  line-height:1;
  color:var(--text);
  font-variant-numeric:tabular-nums;
}
.h-stat strong span{ color:var(--accent); }
.h-stat .h-mono{ display:block; margin-top:1rem; }

/* ============ PRODUCTS ============ */
.h-products{ position:relative; }
.h-products__pin{
  padding:clamp(4rem,8vw,7rem) var(--gutter) 3rem;
  overflow:hidden;
}
.h-products__track{
  display:flex;
  gap:clamp(1rem,2vw,2rem);
  will-change:transform;
}
.h-prod{
  flex:0 0 clamp(300px,42vw,640px);
  display:flex; flex-direction:column;
  border:1px solid var(--rule);
  border-radius:clamp(16px,1.6vw,26px);
  overflow:hidden;
  background:var(--bg-soft);
  transition:border-color .4s ease;
}
.h-prod:hover{ border-color:var(--accent); }
.h-prod__media{ aspect-ratio:16 / 10; background:#0a0a0c; overflow:hidden; }
.h-prod__media video,
.h-prod__media img{
  display:block; width:100%; height:100%; object-fit:cover;
  transition:transform 1.2s var(--ease-out);
}
.h-prod__media img{ object-position:top left; }
.h-prod:hover .h-prod__media video,
.h-prod:hover .h-prod__media img{ transform:scale(1.05); }
.h-prod__body{ padding:clamp(1.25rem,2.4vw,2.25rem); display:flex; flex-direction:column; gap:.75rem; flex:1; }
.h-prod__body h3{
  margin:0;
  font-size:clamp(1.6rem,2.8vw,2.6rem);
  letter-spacing:-.035em;
  line-height:1;
  color:var(--text);
}
.h-prod__body p{ margin:0 0 .75rem; color:var(--text-muted); max-width:46ch; flex:1; }
.h-prod__body .h-link{ align-self:flex-start; }

.h-products__progress{
  margin-top:2rem;
  height:2px;
  background:var(--rule);
  overflow:hidden;
  display:none;
}
.h-products__progress span{
  display:block; height:100%;
  background:var(--accent);
  transform-origin:left;
  transform:scaleX(var(--p,0));
}

/* Desktop: the section gets tall, the inner pins and the track slides sideways.
   home.js sets --pin-h (section height) and --x (track offset). */
@media(min-width:900px){
  .h-products.is-pinned{ height:var(--pin-h,auto); }
  .h-products.is-pinned .h-products__pin{
    position:sticky;
    top:var(--header-offset);
    height:calc(100svh - var(--header-offset));
    display:flex; flex-direction:column;
    /* "safe": if the content is ever taller than the screen it starts at the
       top instead of being clipped on both ends (the heading used to be cut) */
    justify-content:safe center;
    padding-top:clamp(1rem,3vh,2rem); padding-bottom:clamp(1rem,3vh,2rem);
  }
  .h-products.is-pinned .h-head{ margin-bottom:clamp(1rem,3vh,2.5rem); }
  .h-products.is-pinned .h-title{ font-size:clamp(2.4rem,min(5.4vw,9vh),5.5rem); }
  .h-products.is-pinned .h-products__track{ transform:translate3d(var(--x,0px),0,0); }
  .h-products.is-pinned .h-prod{ flex-basis:clamp(300px,min(44vw,calc((100svh - var(--header-offset) - 29rem) * 1.78)),760px); }
  .h-products.is-pinned .h-prod__body{ padding:clamp(1rem,2.2vh,1.75rem) clamp(1.25rem,2vw,2rem); gap:.5rem; }
  .h-products.is-pinned .h-prod__body p{ margin-bottom:.25rem; }
  .h-products.is-pinned .h-prod__media{ aspect-ratio:16 / 9; }
  .h-products.is-pinned .h-products__progress{ display:block; }
}
/* Desktop without the pin (no JS / reduced motion): a plain 3-up grid */
@media(min-width:900px){
  .h-products:not(.is-pinned) .h-products__track{ flex-wrap:wrap; }
  .h-products:not(.is-pinned) .h-prod{ flex:1 1 300px; }
}
/* Mobile: swipeable row */
@media(max-width:899px){
  .h-products__track{
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    padding-bottom:1rem;
    margin-inline:calc(var(--gutter) * -1);
    padding-inline:var(--gutter);
    scrollbar-width:none;
  }
  .h-products__track::-webkit-scrollbar{ display:none; }
  .h-prod{ flex-basis:82vw; scroll-snap-align:center; }
}

/* ============ PROCESS: Zero's deploy pipeline ============
   --pp (0..1) is the scene's progress, --st (0..1) each station's build-up.
   Both default to 1 (registered below), so without JS or with reduced
   motion everything shows finished. js/home.js drives them: pinned and
   scroll-linked on desktop, revealed on scroll on phones. */
@property --st{ syntax:"<number>"; inherits:true; initial-value:1; }
@property --pp{ syntax:"<number>"; inherits:true; initial-value:1; }

.h-pipe{ position:relative; padding:clamp(5rem,12vw,10rem) var(--gutter) clamp(3rem,6vw,5rem); }
.h-pipe__pin{ max-width:1400px; margin:0 auto; display:flex; flex-direction:column; gap:clamp(2rem,4vw,3.5rem); }
.h-pipe__head .h-mono{ display:block; margin-bottom:1.25rem; }
.h-pipe__head .h-title{ font-size:clamp(2.4rem,5vw,5rem); max-width:18ch; }
.h-pipe__body{
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,2fr);
  gap:clamp(1.5rem,4vw,4rem);
  align-items:center;
}

/* step list (real text for everyone; desktop highlights the active one) */
.h-pipe__steps{ list-style:none; margin:0; padding:0; display:grid; gap:1.25rem; }
.h-pipe__step{
  display:grid; grid-template-columns:2.25rem 1fr; gap:.75rem;
  padding-left:1rem;
  border-left:2px solid var(--rule);
  transition:opacity .45s ease, border-color .45s ease;
}
.h-pipe__step h3{ margin:0 0 .3rem; font-size:clamp(1.2rem,1.8vw,1.6rem); letter-spacing:-.02em; color:var(--text); }
.h-pipe__step p{ margin:0; color:var(--text-muted); font-size:.95rem; line-height:1.55; max-width:40ch; }
.h-pipe__num{ font-family:var(--font-mono); font-size:.74rem; color:var(--accent); padding-top:.4rem; }
/* inactive steps are shown muted (colour), not faded, so text keeps its contrast */
.h-pipe.is-pinned .h-pipe__step h3{ color:var(--text-muted); transition:color .45s ease; }
.h-pipe.is-pinned[data-active="1"] .h-pipe__step[data-step="1"],
.h-pipe.is-pinned[data-active="2"] .h-pipe__step[data-step="2"],
.h-pipe.is-pinned[data-active="3"] .h-pipe__step[data-step="3"],
.h-pipe.is-pinned[data-active="4"] .h-pipe__step[data-step="4"]{ border-color:var(--accent); }
.h-pipe.is-pinned[data-active="1"] .h-pipe__step[data-step="1"] h3,
.h-pipe.is-pinned[data-active="2"] .h-pipe__step[data-step="2"] h3,
.h-pipe.is-pinned[data-active="3"] .h-pipe__step[data-step="3"] h3,
.h-pipe.is-pinned[data-active="4"] .h-pipe__step[data-step="4"] h3{ color:var(--text); }

/* stage: four stations, a track and Zero */
.h-pipe__stage{ position:relative; padding-bottom:clamp(110px,10vw,150px); }
.h-pipe__stations{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(.6rem,1.4vw,1.25rem); }
.pst{ margin:0; }
.pst svg{ display:block; width:100%; height:auto; overflow:visible; }
.pst figcaption{ margin-top:.7rem; text-align:center; transition:color .3s ease; }
.pst-frame{
  fill:var(--bg-soft);
  stroke:color-mix(in srgb, var(--accent) calc(var(--st) * 100%), var(--rule));
  stroke-width:1.5;
}
.pst [class*="pst-"]{ transform-box:fill-box; transform-origin:center; }

/* 01 design: the mark draws itself, then swatches pop in */
.pst-ring{
  fill:none; stroke:var(--brand); stroke-width:7; stroke-linecap:round;
  stroke-dasharray:100;
  stroke-dashoffset:calc(100 - clamp(0, var(--st) * 1.6, 1) * 100);
}
.pst-arrow{ fill:var(--brand); opacity:clamp(0, var(--st) * 4 - 2, 1); scale:clamp(.4, var(--st) * 4 - 2, 1); }
.pst-sw--1{ fill:var(--brand);      scale:clamp(0, var(--st) * 4 - 1, 1); }
.pst-sw--2{ fill:#fff4ea;           scale:clamp(0, var(--st) * 4 - 1.6, 1); stroke:var(--rule); }
.pst-sw--3{ fill:var(--text-muted); scale:clamp(0, var(--st) * 4 - 2.2, 1); }

/* 02 build: code lines type out */
.pst-bar-top{ fill:var(--panel-2); }
.pst-dot{ fill:var(--rule); }
.pst-code{ fill:var(--text-muted); opacity:.55; transform-origin:left center; }
.pst-code--1{ fill:var(--brand); opacity:1; scale:clamp(0, var(--st) * 6 - 0, 1) 1; }
.pst-code--2{ scale:clamp(0, var(--st) * 6 - 1, 1) 1; }
.pst-code--3{ scale:clamp(0, var(--st) * 6 - 2, 1) 1; }
.pst-code--4{ scale:clamp(0, var(--st) * 6 - 3, 1) 1; }
.pst-code--5{ fill:var(--brand); opacity:1; scale:clamp(0, var(--st) * 6 - 4, 1) 1; }
.pst-caret{ fill:var(--brand); opacity:clamp(0, var(--st) * 6 - 4.5, 1); }

/* 03 automate: gears turn, pipeline nodes light up, check passes */
.pst-gear circle:first-child{ fill:none; stroke:var(--brand); stroke-width:7; stroke-dasharray:4 2; }
.pst-hub{ fill:var(--text); }
.pst-gear--a{ rotate:calc(var(--st) * 270deg); }
.pst-gear--b{ rotate:calc(var(--st) * -390deg); }
.pst-flow{ fill:none; stroke:var(--rule); stroke-width:3; }
.pst-node{ stroke:var(--brand); stroke-width:2; fill:var(--brand); }
.pst-node--1{ fill-opacity:clamp(0, var(--st) * 4 - .5, 1); }
.pst-node--2{ fill-opacity:clamp(0, var(--st) * 4 - 1.5, 1); }
.pst-node--3{ fill-opacity:clamp(0, var(--st) * 4 - 2.5, 1); }
.pst-tag{ fill:#22c55e; opacity:clamp(0, var(--st) * 4 - 3, 1); }

/* 04 deploy: servers come up, rocket launches, LIVE switches on */
.pst-rack{ fill:var(--panel-2); stroke:var(--rule); stroke-width:1.5; }
.pst-led{ fill:#22c55e; }
.pst-led--1{ opacity:clamp(.15, var(--st) * 4 - .5, 1); }
.pst-led--2{ opacity:clamp(.15, var(--st) * 4 - 1, 1); }
.pst-led--3{ opacity:clamp(.15, var(--st) * 4 - 1.5, 1); }
.pst-rocket{ translate:0 calc(clamp(0, var(--st) * 2 - 1, 1) * -58px); }
.pst-body{ fill:var(--text); }
.pst-window, .pst-fin{ fill:var(--brand); }
.pst-flame{ fill:#ffb27a; transform-origin:top center; scale:1 clamp(0, var(--st) * 3 - 1, 1.4); }
.pst-live{ opacity:clamp(0, var(--st) * 4 - 3, 1); }
.pst-live rect{ fill:#22c55e; }
.pst-live text{ fill:#0a0a0c; font:700 10px var(--font-mono); letter-spacing:.12em; }

/* track and Zero */
.h-pipe__track{
  position:absolute; left:12.5%; right:12.5%; bottom:20px;
  height:4px; border-radius:2px;
  background:var(--rule);
}
.h-pipe__track span{ display:block; height:100%; border-radius:inherit; background:var(--brand); transform-origin:left; scale:var(--pp) 1; }
.h-pipe__zero{
  position:absolute; bottom:24px;
  left:calc(12.5% + var(--pp) * 75%);
  width:clamp(70px,7vw,100px); height:auto;
  translate:-50% 0;
}
.h-pipe.is-moving .h-pipe__zero{ animation:zero-walk .36s ease-in-out infinite; }
.h-pipe.is-done .h-pipe__zero{ animation:zero-cheer .8s var(--ease-out); }
@keyframes zero-walk{ 50%{ transform:translateY(-6px) rotate(-4deg); } }
@keyframes zero-cheer{ 35%{ transform:translateY(-28px) rotate(8deg); } 70%{ transform:translateY(0) rotate(-3deg); } }

.h-pipe__hint{ display:none; margin:0; text-align:center; }

/* desktop: pinned, scroll-linked */
@media(min-width:900px){
  .h-pipe.is-pinned{ height:360svh; padding:0; }
  .h-pipe.is-pinned .h-pipe__pin{
    position:sticky;
    top:var(--header-offset);
    height:calc(100svh - var(--header-offset));
    justify-content:center;
    padding:clamp(1rem,3vh,2rem) var(--gutter);
    gap:clamp(1.25rem,3vh,2.5rem);
  }
  .h-pipe.is-pinned .h-pipe__head .h-title{ font-size:clamp(2.2rem,min(4.6vw,8vh),4.6rem); }
  .h-pipe.is-pinned .h-pipe__hint{ display:block; opacity:clamp(0, 1 - var(--pp) * 5, 1); }
}

/* phones: stack, no walker; each station builds as it scrolls in */
@media(max-width:899px){
  .h-pipe__body{ grid-template-columns:1fr; }
  .h-pipe__stations{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .h-pipe__stage{ padding-bottom:0; }
  .h-pipe__track, .h-pipe__zero{ display:none; }
}
/* reset to empty instantly, build up with a transition only once seen */
.h-pipe.is-reveal .pst{ --st:0; }
.h-pipe.is-reveal .pst.is-in{ --st:1; transition:--st 1.6s var(--ease-out); }

/* ============ CTA ============ */
.h-cta{
  padding:0 var(--gutter) clamp(3rem,6vw,5rem);
}
.h-cta__inner{
  position:relative;
  max-width:1600px;
  margin:0 auto;
  padding:clamp(2.5rem,6vw,6rem) clamp(1.5rem,5vw,5rem);
  border-radius:clamp(20px,2.4vw,40px);
  background:var(--brand);
  color:#0a0a0c;
  overflow:hidden;
  isolation:isolate;
}
.h-cta__inner::before{
  /* big ghost zero in the corner, echoing the mark */
  content:"0";
  position:absolute;
  right:-.08em; top:-.28em;
  z-index:-1;
  font-family:var(--font-heading);
  font-weight:700;
  font-size:clamp(16rem,38vw,40rem);
  line-height:1;
  color:transparent;
  -webkit-text-stroke:2px rgba(10,10,12,.16);
  pointer-events:none;
}
.h-cta .h-mono{ color:#0a0a0c; } /* solid: 6.9:1 on brand orange */
.h-cta__title{
  margin:1rem 0 clamp(2rem,4vw,3.5rem);
  font-size:clamp(3.4rem,13vw,13rem);
  font-weight:700;
  letter-spacing:-.06em;
  line-height:.85;
  color:#0a0a0c;
}
.h-cta__row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:end;
  gap:clamp(1.25rem,3vw,3rem);
  padding-top:clamp(1.5rem,3vw,2.5rem);
  border-top:1px solid rgba(10,10,12,.25);
}
.h-cta__row p{ margin:0; max-width:36ch; font-size:clamp(1.05rem,1.4vw,1.25rem); font-weight:500; line-height:1.45; }
.h-cta__zero{
  width:clamp(140px,16vw,240px);
  aspect-ratio:1;
  border-radius:50%;
  overflow:hidden;
  background:#0a0a0c;
}
.h-cta__zero video{ width:100%; height:100%; object-fit:cover; display:block; }

.h-orb{
  display:grid; place-items:center;
  width:clamp(140px,16vw,240px);
  aspect-ratio:1;
  border-radius:50%;
  /* a lit sphere: soft highlight (moves with the cursor), core shading, rim glow */
  background:
    radial-gradient(circle at var(--hx,36%) var(--hy,30%), rgba(255,255,255,.2), rgba(255,255,255,0) 42%),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%),
    radial-gradient(circle at 50% 115%, rgba(255,107,0,.32), rgba(255,107,0,0) 55%),
    #16161a;
  box-shadow:0 28px 50px -22px rgba(0,0,0,.55), 0 6px 14px -6px rgba(0,0,0,.35);
  color:var(--brand);
  text-align:center;
  text-decoration:none;
  font-family:var(--font-heading);
  font-weight:600;
  font-size:clamp(1.05rem,1.5vw,1.4rem);
  line-height:1.15;
  transition:background-color .4s var(--ease-out), color .4s var(--ease-out), transform .35s var(--ease-out);
  will-change:transform;
}
.h-orb:hover{
  background:
    radial-gradient(circle at var(--hx,36%) var(--hy,30%), #fff, rgba(255,255,255,0) 45%),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 60%, rgba(0,0,0,.14) 100%),
    #f2f2f4;
  color:#0a0a0c;
}
.h-orb:focus-visible{ outline:3px solid #0a0a0c; outline-offset:4px; }
.h-link--dark{ margin-top:2rem; color:#0a0a0c; }
.h-link--dark:hover{ color:#0a0a0c; }

/* ============ MOTION (only with JS + motion allowed) ============ */
/* Hero title: lines rise out of their masks */
.js-reveal .h-line > span{
  transform:translate3d(0,105%,0);
  transition:transform 1.1s var(--ease-out);
}
.js-reveal .h-line:nth-child(2) > span{ transition-delay:.09s; }
.js-reveal.is-loaded .h-line > span{ transform:none; }

/* The lead paragraph and buttons are never hidden: the lead is the page's
   largest text block (its LCP element), so it paints straight away. */
.js-reveal .h-hero__meta,
.js-reveal .h-scroll{
  opacity:0;
  transform:translate3d(0,14px,0);
  transition:opacity .9s var(--ease-out) .35s, transform .9s var(--ease-out) .35s;
}
.js-reveal .h-hero__meta{ transition-delay:.05s; }
.js-reveal.is-loaded .h-hero__meta,
.js-reveal.is-loaded .h-scroll{ opacity:1; transform:none; }

.js-reveal .h-hero__stage{
  clip-path:inset(100% 0 0 0 round 24px);
  transition:clip-path 1.2s var(--ease-io) .2s;
}
.js-reveal.is-loaded .h-hero__stage{ clip-path:inset(0 0 0 0 round 24px); }

/* Section titles split into words by home.js */
.js-reveal [data-split] .h-w{
  display:inline-block;
  overflow:hidden;
  vertical-align:top;
  padding-bottom:.08em; margin-bottom:-.08em;
}
.js-reveal [data-split] .h-w > span{
  display:inline-block;
  transform:translate3d(0,110%,0);
  transition:transform 1s var(--ease-out);
  transition-delay:calc(var(--i,0) * 55ms);
}
.js-reveal [data-split].is-in .h-w > span{ transform:none; }


/* ---------- Loader (first visit per session, JS-inserted) ---------- */
.h-loader{
  position:fixed; inset:0;
  z-index:5000;
  display:flex; flex-direction:column; justify-content:space-between;
  padding:var(--gutter);
  background:#0a0a0c;
  color:#eeeef0;
  transition:transform .7s var(--ease-io);
}
.h-loader.is-done{ transform:translate3d(0,-100%,0); }
.h-loader__top{ display:flex; justify-content:space-between; }
.h-loader__top .h-mono{ color:#9d9da6; }
.h-loader__mark{ width:clamp(56px,6vw,84px); height:auto; }
.h-loader__count{
  font-family:var(--font-heading);
  font-size:clamp(5rem,22vw,22rem);
  font-weight:700;
  letter-spacing:-.06em;
  line-height:.8;
  font-variant-numeric:tabular-nums;
  display:flex; align-items:flex-end; justify-content:space-between; gap:1rem;
}
.h-loader__count small{
  font-size:.14em;
  letter-spacing:-.02em;
  color:#ff6b00;
  padding-bottom:.3em;
}
.h-loader__bar{ height:2px; background:rgba(255,255,255,.12); margin-top:1.5rem; }
.h-loader__bar span{ display:block; height:100%; background:#ff6b00; transform-origin:left; transform:scaleX(0); }

/* ---------- Magnetic + cursor label ---------- */
[data-magnetic]{ transition:transform .5s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out), background-color .4s var(--ease-out); }

/* ============ RESPONSIVE ============ */
@media(max-width:1100px){
  .h-svc__link{ grid-template-columns:3rem minmax(0,1fr) 3rem; }
  .h-svc__desc{ grid-column:2; grid-row:2; }
  .h-svc__arrow{ grid-column:3; grid-row:1 / span 2; }
}

@media(max-width:900px){
  .h-hero{ min-height:auto; }
  .h-hero__meta{ grid-template-columns:1fr auto; }
  .h-hero__meta > :nth-child(2){ display:none; }
  .h-hero__grid{
    grid-template-columns:1fr;
    grid-template-areas:"title" "foot" "stage";
    padding-top:2.5rem;
  }
  .h-line:nth-child(2){ padding-left:0; }
  .h-hero__title{ font-size:min(15vw,7.5rem); }
  .h-hero__stage{ aspect-ratio:4 / 3; }
  .h-hero__stage .intro-play{
    position:absolute; right:.75rem; bottom:.75rem; left:auto;
    width:auto; margin:0;
  }
  .h-scroll{ display:none; }


  .h-cta__row{ grid-template-columns:1fr auto; }
  .h-cta__zero{ display:none; }
}

@media(max-width:700px){
  .h-svc__link{ grid-template-columns:2.25rem minmax(0,1fr); gap:.4rem 1rem; }
  .h-svc__arrow{ display:none; }
  .h-svc__thumb{
    display:block;
    grid-column:2;
    width:100%; height:auto;
    aspect-ratio:16 / 9;
    object-fit:cover;
    border-radius:12px;
    margin-top:.75rem;
    background:#0a0a0c;
  }
  .h-stats{ grid-template-columns:1fr; }
  .h-stat, .h-stat + .h-stat{ padding:1.5rem 0; border-left:0; }
  .h-stat strong{ font-size:clamp(3rem,16vw,4.5rem); }
  .h-head--row{ flex-direction:column; align-items:flex-start; gap:1.25rem; }
  .h-cta__row{ grid-template-columns:1fr; justify-items:start; }
  .h-btn{ padding:.9rem 1.3rem; }
}

@media(prefers-reduced-motion:reduce){
  .h-marquee__track{ animation:none; }
  .h-dot, .h-scroll__bar::after{ animation:none; }
}

/* Products head: lead + case-studies link stacked on the right */
.h-head__side{ display:flex; flex-direction:column; align-items:flex-start; gap:1rem; }

/* Live 3D Zero (js/zero3d.js) — positioned by JS right of "From zero" */
.h-zero3d{
  position:absolute;
  z-index:0;
  cursor:pointer;
  animation:h-zero-in .8s var(--ease-out) both;
}
@keyframes h-zero-in{ from{ opacity:0; } }
.has-zero3d .h-hero__grid, .has-zero3d .h-hero__meta{ position:relative; z-index:1; }
/* the title row must not swallow clicks meant for Zero */
.has-zero3d .h-hero__grid{ pointer-events:none; }
.has-zero3d .h-hero__grid a, .has-zero3d .h-hero__grid button, .has-zero3d .h-hero__stage{ pointer-events:auto; }

/* Compact 3D Zero (phones/tablets): fills the hero card over the static render,
   under the "Watch the intro" button; a finger can steer while the page
   still scrolls vertically. */
.h-zero3d--card{
  inset:0;
  width:100%; height:100%;
  z-index:1;
  border-radius:inherit;
  background:radial-gradient(circle at 50% 42%, #24242a 0%, #0a0a0c 70%);
  touch-action:pan-y;
}
.has-zero3d-card .h-hero__stage .intro-play{ z-index:2; }

/* Easter-egg toast (five quick clicks on Zero) */
.h-toast{
  position:absolute; z-index:3;
  right:var(--gutter); top:4.5rem;
  padding:.6rem 1rem;
  border-radius:999px;
  border:1px solid var(--brand);
  background:#0a0a0c;
  color:#fff;
  font:500 .8rem/1.2 var(--font-mono);
  box-shadow:0 12px 30px -12px rgba(0,0,0,.6);
  animation:h-toast-in .4s var(--ease-out) both;
  transition:opacity .5s ease, transform .5s ease;
}
.h-hero__stage .h-toast{ right:auto; left:12px; top:12px; }
.h-toast.is-out{ opacity:0; transform:translateY(-6px); }
@keyframes h-toast-in{ from{ opacity:0; transform:translateY(-8px); } }
