#page-hero {
  padding: 0 !important;
  min-height: 440vh;
  overflow: visible;
}

/* hero is transparent so the site-wide waves animation shows through
   behind it edge-to-edge, blending with the rest of the page. */
#page-hero {
  background: transparent !important;
  position: relative;
  z-index: 1;
}

/* ---- scroll hero shell ---- */
.scrollhero {
  position: relative;
  width: 100%;
}

.scrollhero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* body zoom:0.9 shrinks 100vh to 90% of the actual screen height on desktop  
   compensate so the stage truly fills the viewport and bottom-anchored ctas
   land at the real bottom edge. */
@media (min-width: 1367px) {
  .scrollhero-stage {
    height: calc(100vh / 0.9);
  }
}

.scrollhero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .scrollhero-canvas {
    display: none !important;
  }
}
body.reduced-motion .scrollhero-canvas {
  display: none !important;
}

/* scroll hero skin */
.scrollhero {
  --sh-ink: #0F1419;
  
  --sh-ink-2: #3A4250;
  --sh-ink-3: #4b5563;
  --sh-accent: #1d4ed8;
  
  --sh-accent-dark: #1e40af;
  --sh-rule: rgba(15, 20, 25, 0.12);
  --sh-mono: 'Hanken Grotesk', sans-serif;
  --sh-display: 'Bricolage Grotesque', sans-serif;
  --c-green: #15803d;
  --c-blue: #1d4ed8;
  --c-orange: #c2410c;
  --c-pink: #be185d;
  background: transparent;
}

/* ---- intro overlay ---- */
.sh-intro {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  max-width: 1000px;
  padding: 0 24px;
  will-change: opacity, transform;
  pointer-events: auto;
}

.sh-eyebrow {
  display: inline-block;
  font-family: var(--sh-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sh-ink);
  margin-bottom: 26px;
  padding: 7px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff;
}

.sh-intro h1 {
  font-family: var(--sh-display);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 150px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--sh-ink);
  text-wrap: balance;
}

.sh-cue {
  margin-top: 38px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sh-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sh-ink);
}

.sh-cue .sh-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(15, 20, 25, 0.45);
  border-radius: 50%;
  animation: shBob 1.8s ease-in-out infinite;
}

@keyframes shBob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

/* ---- ghost number (first digit outlined blue, second digit filled blue) ---- */
.sh-ghostnum {
  position: absolute;
  left: clamp(12px, 5vw, 80px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sh-display);
  font-weight: 800;
  font-size: clamp(90px, 20vw, 280px);
  line-height: 0.8;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: baseline;
  gap: 0.04em;   /* absorbs the outward bleed from -webkit-text-stroke: 12px on .sh-gn-a */
}

.sh-ghostnum .sh-gn-a {
  color: transparent;
  -webkit-text-stroke: 12px #2563EB;
}

.sh-ghostnum .sh-gn-b {
  color: #2563EB;
  -webkit-text-stroke: 3px #2563EB;
}

/* ---- step panels ---- */
.sh-steps {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.sh-step {
  position: absolute;
  right: clamp(24px, 7vw, 120px);
  top: 50%;
  width: min(400px, 40vw);
  transform: translateY(-50%) translateX(36px);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: left;
}

.sh-step.active {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.sh-k {
  font-family: var(--sh-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--sh-accent-dark);
}

.sh-step h3 {
  font-family: var(--sh-display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 60px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: var(--sh-ink);
}

.sh-step p {
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.55;
  color: color-mix(in oklab, var(--sh-ink) 85%, white);
  margin: 0;
}

/* ---- progress rail ---- */
.sh-rail {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 4;
}

.sh-rail .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(15, 20, 25, 0.35);
  transition: all 0.35s;
}

.sh-rail .dot.on {
  background: var(--dot-on, var(--sh-ink));
  transform: scale(1.7);
}

/* ---- step counter ---- */
.sh-counter {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-family: var(--sh-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--sh-ink);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 4;
}

.sh-counter.show {
  opacity: 1;
}

/* ---- end ctas ---- */
.sh-cta {
  position: absolute;
  left: 50%;
  bottom: 75px;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s, transform 0.6s;
}

.sh-cta.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.sh-cta .sh-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--sh-ink);
  color: #fff;
  font-family: var(--sh-display);
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.sh-cta .sh-btn-primary:hover {
  opacity: 0.85;
}

.sh-cta .sh-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #fff;
  color: var(--sh-ink);
  font-family: var(--sh-display);
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.sh-cta .sh-btn-ghost:hover {
  opacity: 0.85;
}

.sh-cta .sh-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(15, 20, 25, 0.3);
  border-radius: 50%;
  font-size: 12px;
}

/* ---- cartoon backdrop ---- */
.mb-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  isolation: isolate;
  transition: opacity 0.2s linear;
}

.mb-item {
  position: absolute;
  will-change: transform;
}

.mb-bob {
  width: 100%;
  animation: mbBob 7s ease-in-out infinite;
}

.mb-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.mb-item.mb-blob {
  opacity: 0.5;
  filter: blur(2px);
}

@keyframes mbBob {

  0%,
  100% {
    transform: translateY(0) rotate(-1.5deg);
  }

  50% {
    transform: translateY(-14px) rotate(1.5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mb-bob {
    animation: none;
  }
}

/* mobile hero (≤1366px) single fullscreen stage that auto-cycles */
@media (max-width: 1366px) {
  #page-hero     { min-height: 100vh !important; min-height: 100dvh !important; background: #fafafa !important; padding: 0 !important; }
  .scrollhero    {
    display: none !important;
  }

  .scrollhero-stage {
    position: relative;
    top: auto;
    height: 100vh;
    height: 100svh; /* svh trims mobile browser chrome */
    min-height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* top clears the floating header; bottom keeps ctas off the os bar */
    padding: 5rem 1.1rem 1.5rem;
    gap: 0;
  }

  /* ghost number + counter are hidden on mobile the dots carry progress */
  .sh-ghostnum,
  .sh-counter { display: none !important; }

  /*  1. headline  */
  .sh-intro {
    order: 1;
    position: static;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    text-align: center;
    padding: 0 0.25rem;
    max-width: 100%;
    flex-shrink: 0;
    z-index: 2;
  }
  .sh-intro h1 { font-size: clamp(34px, 9.5vw, 50px); }
  .sh-cue { display: none; }

  /*  2. 3d key flexible middle that soaks up free space  */
  .scrollhero-canvas {
    display: none !important;
  }

  /*  3. progress dots  */
  .sh-rail {
    display: flex !important;
    order: 3;
    position: static;
    transform: none;
    flex-direction: row;
    gap: 12px;
    margin: 0 0 0.9rem;
    flex-shrink: 0;
    z-index: 2;
  }
  .sh-rail .dot { width: 7px; height: 7px; }

  /*  4. step card fixed-height stage, one card cross-fades in  */
  .sh-steps {
    order: 4;
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: 150px;
    flex-shrink: 0;
    pointer-events: auto;
    z-index: 2;
  }
  .sh-step {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1.1rem 1.3rem;
    opacity: 0 !important;
    transform: translateY(10px) !important;
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    text-align: center;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(15, 20, 25, 0.08);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .sh-step.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  .sh-step h3 { font-size: clamp(18px, 5vw, 25px); margin: 0 0 0.4rem; }
  .sh-step p  { font-size: 13px; line-height: 1.5; margin: 0 auto; max-width: 92%; }
  .sh-k       { margin-bottom: 8px; font-size: 11px; }

  /*  5. ctas bottom row, always visible  */
  .sh-cta {
    order: 5;
    position: static;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    margin-top: 0.9rem;
    flex-shrink: 0;
    z-index: 2;
  }
  .sh-cta .sh-btn-primary,
  .sh-cta .sh-btn-ghost {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 13px 14px;
    font-size: 13px;
  }
  .sh-cta .sh-circle { display: none; }

  .mb-item.mb-blob { width: 92% !important; }
}

/* very small phones: tighten further */
@media (max-width: 480px) {
  .sh-intro h1       { font-size: clamp(28px, 9vw, 40px); }
  .scrollhero-canvas { min-height: 150px; }
  .sh-steps          { height: 138px; }
  .sh-step h3        { font-size: 17px; }
  .sh-step p         { font-size: 12px; }
}