/* Adwiz Hero. Every rule is scoped to .adwiz-hero so nothing leaks into the
   theme. Device rules are the subset of scrollcraft.css this hero uses. */

.elementor-widget-adwiz-hero,
.elementor-widget-adwiz-hero > .elementor-widget-container { margin: 0; padding: 0; }

.adwiz-hero {
  --sc-canvas:      #06090d;
  --sc-ink:         #f2f6f8;
  --sc-ink-soft:    #a9b8c2;
  --sc-accent:      #5fd4ff;
  --sc-accent-ink:  #04121a;
  --sc-font-display: "Archivo", system-ui, sans-serif;
  --sc-font-text:    "Geist", system-ui, sans-serif;

  --sc-t-xs:   clamp(12px, 11.52px + 0.15vw, 13.12px);
  --sc-t-base: clamp(16px, 15.36px + 0.22vw, 18px);
  --sc-t-xl:   clamp(25.6px, 21.6px + 1.2vw, 36px);
  --sc-t-2xl:  clamp(33.6px, 25.6px + 2.4vw, 54.4px);
  --sc-t-3xl:  clamp(44.8px, 30.4px + 4.2vw, 80px);
  --sc-t-4xl:  clamp(54.4px, 30.4px + 6.6vw, 120px);
  --sc-3: 12px; --sc-4: 16px; --sc-5: 24px;
  --sc-gutter: clamp(20px, 5vw, 88px);
  --sc-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --sc-z-stage: 1; --sc-z-copy: 20;

  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  background: var(--sc-canvas);
  color: var(--sc-ink);
  font-family: var(--sc-font-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.adwiz-hero,
.adwiz-hero *,
.adwiz-hero *::before,
.adwiz-hero *::after { box-sizing: border-box; }
.adwiz-hero img,
.adwiz-hero video { display: block; max-width: none; border: 0; border-radius: 0; box-shadow: none; }

/* ---- engine devices ---- */
.adwiz-hero.sc-act--pinned { position: relative; }
.adwiz-hero .sc-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: clip;
  z-index: var(--sc-z-stage);
}
.adwiz-hero .sc-stage :is(video[data-sc-scrub], .sc-stage__poster) {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.adwiz-hero video[data-sc-scrub] { opacity: 0; transition: opacity 380ms var(--sc-ease-out); }
.adwiz-hero .sc-has-clip video[data-sc-scrub],
.adwiz-hero video[data-sc-scrub].sc-has-clip { opacity: 1; }
.adwiz-hero .sc-stage__poster { z-index: 0; transition: opacity 380ms var(--sc-ease-out); }
.adwiz-hero .sc-has-clip .sc-stage__poster { opacity: 0; }

.adwiz-hero .sc-scrim { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
/* Bottom stop is solid canvas so the stage's bottom edge is exactly the colour
   the .hx-tail fade starts from: no visible seam where the video ends. */
.adwiz-hero .sc-scrim--band {
  background: linear-gradient(to top,
    var(--sc-canvas) 0%,
    color-mix(in oklab, var(--sc-canvas) 94%, transparent) 6%,
    color-mix(in oklab, var(--sc-canvas) 74%, transparent) 22%,
    color-mix(in oklab, var(--sc-canvas) 30%, transparent) 42%,
    transparent 58%);
}
/* The hero block is tall, so its eyebrow sits above the band's reach and lands
   on the tunnel's light streaks. JS fades this in step with the hero cue. */
.adwiz-hero .hx-scrim-hero {
  background: linear-gradient(to top right,
    color-mix(in oklab, var(--sc-canvas) 88%, transparent) 0%,
    color-mix(in oklab, var(--sc-canvas) 70%, transparent) 32%,
    color-mix(in oklab, var(--sc-canvas) 30%, transparent) 56%,
    transparent 74%);
}

/* Both edges and the margin are set explicitly: with left AND right set and a
   max-width, any theme `margin: auto` would centre the block instead. */
.adwiz-hero .sc-copy {
  position: absolute; z-index: var(--sc-z-copy);
  margin: 0; padding: 0; width: auto;
  max-width: min(704px, 76vw);
  will-change: opacity, transform;
}
.adwiz-hero .sc-copy--lead  { left: var(--sc-gutter); right: auto; bottom: clamp(48px, 12vh, 144px); text-align: left; }
.adwiz-hero .sc-copy--trail { left: auto; right: var(--sc-gutter); bottom: clamp(48px, 12vh, 144px); text-align: right; }
.adwiz-hero [data-sc-cue] { opacity: 0; will-change: opacity, transform; }
.sc-ready .adwiz-hero [data-sc-cue] { transition: none; }

/* ---- hero type (fully specified so theme h1/h2/p/a rules can't bleed in) ---- */
.adwiz-hero .hx-eyebrow {
  font-family: var(--sc-font-text); font-size: var(--sc-t-xs); font-weight: 500;
  line-height: 1.4; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sc-accent); margin: 0 0 var(--sc-3); padding: 0;
}
.adwiz-hero .hx-display {
  font-family: var(--sc-font-display); font-weight: 600; font-stretch: 112%;
  line-height: 0.98; letter-spacing: -0.02em; text-transform: none;
  color: var(--sc-ink); margin: 0; padding: 0; text-wrap: balance;
  /* The theme lets headings break mid-word; keep words whole here. */
  word-break: normal; overflow-wrap: normal; hyphens: manual;
}
.adwiz-hero .hx-display--xl { font-size: var(--sc-t-4xl); }
.adwiz-hero .hx-display--lg { font-size: var(--sc-t-3xl); }
.adwiz-hero .hx-display--md { font-size: var(--sc-t-2xl); }
.adwiz-hero .hx-display--sm { font-size: var(--sc-t-xl); }
.adwiz-hero .hx-sub {
  font-family: var(--sc-font-text); font-size: var(--sc-t-base); font-weight: 400;
  line-height: 1.6; color: var(--sc-ink-soft);
  max-width: 544px; margin: var(--sc-4) 0 0; padding: 0; text-wrap: pretty;
}

/* Closing question sits under the logo baked into the end card. */
.adwiz-hero .hx-final {
  position: absolute; left: 50%; right: auto; bottom: clamp(48px, 11vh, 128px);
  margin: 0; padding: 0;
  translate: -50% 0; width: min(704px, calc(100% - 2 * var(--sc-gutter)));
  text-align: center; z-index: var(--sc-z-copy);
}

.adwiz-hero .hx-btn {
  display: inline-flex; align-items: center; gap: 9.6px;
  margin-top: var(--sc-5);
  font-family: var(--sc-font-text); font-size: 15.2px; font-weight: 600; line-height: 1;
  color: var(--sc-accent-ink); background: var(--sc-accent);
  border: 0; border-radius: 999px; padding: 13.6px 22.4px;
  text-decoration: none; box-shadow: none;
  transition: transform 160ms var(--sc-ease-out), background 160ms var(--sc-ease-out);
}
.adwiz-hero .hx-btn:hover,
.adwiz-hero .hx-btn:focus { color: var(--sc-accent-ink); background: var(--sc-accent); text-decoration: none; }
.adwiz-hero .hx-btn:active { transform: scale(0.97); }
.adwiz-hero .hx-btn:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .adwiz-hero .hx-btn:hover { transform: translateY(-1px); }
}

/* ---- blend into the white section that follows ----
   The stage's bottom edge is the dark band scrim. Instead of a hard dark/white
   seam, the wrapper ends in a strip that eases from the hero canvas to white.
   Several stops so the middle doesn't go muddy grey. */
.adwiz-hero-wrap { position: relative; display: block; margin: 0; padding: 0; }
.adwiz-hero-wrap .hx-tail {
  --hx-from: #06090d;
  --hx-to:   #ffffff;
  display: block; height: clamp(160px, 32vh, 352px); margin: 0; padding: 0;
  background: linear-gradient(to bottom,
    var(--hx-from) 0%,
    color-mix(in oklab, var(--hx-from) 82%, var(--hx-to)) 18%,
    color-mix(in oklab, var(--hx-from) 50%, var(--hx-to)) 42%,
    color-mix(in oklab, var(--hx-from) 18%, var(--hx-to)) 70%,
    var(--hx-to) 100%);
}

/* ---- theme menu bar: hidden while the hero is pinned ----
   html.adwiz-hh is only ever set by adwiz-hero.js, which only loads on pages
   with the hero, so the header on every other page is untouched. Opacity only:
   visibility:hidden would drop the links from the Tab order (keyboard users
   could never reach the menu), and a transform would break the theme's fixed
   sticky bar. The JS reveals the bar when a link inside it takes focus. */
html.adwiz-hh header.wraper_header {
  opacity: 0; pointer-events: none;
  transition: opacity 320ms cubic-bezier(0.23, 1, 0.32, 1);
}
html.adwiz-hh.adwiz-hh--show header.wraper_header {
  opacity: 1; pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  html.adwiz-hh header.wraper_header { transition: none; }
}

/* ---- editor still preview ---- */
.adwiz-hero--static { min-height: 80vh; overflow: hidden; }
.adwiz-hero--static .hx-static-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.adwiz-hero--static .hx-static-copy { position: relative; padding: 112px var(--sc-gutter) 64px; max-width: 832px; }
.adwiz-hero--static .hx-static-copy > * + * { margin-top: 9.6px; }
.adwiz-hero--static .hx-static-copy .hx-eyebrow { margin-top: 25.6px; }
.adwiz-hero--static .hx-static-note { font-size: 12.8px; color: var(--sc-ink-soft); border-left: 2px solid var(--sc-accent); padding-left: 9.6px; margin: 0 0 16px; }

/* ---- reduced motion & small screens ---- */
@media (prefers-reduced-motion: reduce) {
  .adwiz-hero .hx-btn { transition: none; }
}
@media (max-width: 860px) {
  .adwiz-hero .sc-copy { inset-inline: var(--sc-gutter); max-width: none; }
  .adwiz-hero .sc-copy--trail { text-align: left; }
}
@media (max-width: 700px) {
  .adwiz-hero .hx-display--xl { font-size: var(--sc-t-2xl); }
  .adwiz-hero .hx-display--lg { font-size: var(--sc-t-xl); }
}
