/* =============================================================
   THE ROCK STEADY BLUEPRINT — landing page
   Rugged-premium trades aesthetic: dark neutrals, jobsite blue,
   blueprint grid, measured layout, construction texture cues.
   ============================================================= */

:root {
  /* ---- Color tokens ---- */
  --ink-0: #06090f;      /* deepest */
  --ink-1: #0a0e16;      /* page bg */
  --ink-2: #0f141d;      /* surface */
  --ink-3: #161c27;      /* card */
  --ink-4: #1f2733;      /* border-strong */
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --steel: #c7ced8;
  --cement: #8a93a1;
  --cement-2: #6a7280;

  --bp: #2b6cff;         /* jobsite/blueprint blue */
  --bp-2: #4f8bff;
  --bp-3: #87aeff;
  --bp-glow: rgba(43,108,255,.55);

  --hi: #f4f6fb;         /* near-white */
  --warn: #ff9a3c;       /* hi-vis accent */

  /* ---- Type ---- */
  --font-display: "Anton", "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-num: "Archivo", "Inter", system-ui, sans-serif;

  /* ---- Layout ---- */
  --container: 1200px;
  --pad: clamp(1rem, 3vw, 2rem);
  --radius: 14px;
  --radius-sm: 8px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-in: cubic-bezier(.6,.05,.36,1);
  --t-fast: 180ms;
  --t-med: 360ms;
  --t-slow: 720ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--steel);
  background: var(--ink-1);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.exit-overlay-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Blueprint grid background ---------- */
.bp-grid {
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, black 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 0%, black 50%, transparent 100%);
  z-index: 0;
  animation: gridDrift 80s linear infinite;
}
@keyframes gridDrift {
  to { background-position: 480px 480px, 480px 480px; }
}
.bp-noise {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 4px;
  pointer-events: none;
  background: rgba(255,255,255,.035);
}
.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--bp), var(--bp-3) 62%, var(--warn));
  box-shadow: 0 0 22px rgba(43,108,255,.68);
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem var(--pad);
  background: rgba(10,14,22,.7);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  letter-spacing: .04em;
  font-size: 1.05rem;
  color: var(--hi);
  text-transform: uppercase;
}
.nav__logo-accent { color: var(--bp-2); }
.nav__links {
  margin-left: auto;
  display: flex; gap: 1.25rem;
  font-size: .92rem; color: var(--cement);
}
.nav__links a { transition: color var(--t-fast) var(--ease); }
.nav__links a:hover { color: var(--hi); }
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__logo { font-size: .95rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease), color var(--t-fast) var(--ease);
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
.btn--sm { padding: .55rem .9rem; font-size: .85rem; margin-left: auto; }
.btn--lg { padding: 1rem 1.5rem; font-size: 1rem; }
.btn--primary {
  background: linear-gradient(180deg, var(--bp-2), var(--bp));
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 28px -10px var(--bp-glow);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 18px 38px -10px var(--bp-glow); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: rgba(255,255,255,.04);
  color: var(--hi);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--bp-2); color: var(--hi); }

.btn::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0 32%, rgba(255,255,255,.32) 48%, transparent 64% 100%);
  transform: translateX(-135%) skewX(-18deg);
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-3px) scale(1.025);
    box-shadow:
      0 1px 0 rgba(255,255,255,.2) inset,
      0 22px 44px -16px var(--bp-glow),
      0 0 0 1px rgba(79,139,255,.22);
  }
  .btn:hover::after {
    opacity: 1;
    animation: buttonSheen .72s var(--ease) both;
  }
  .btn:hover svg {
    animation: buttonArrowNudge .54s var(--ease) both;
  }
  .btn:active {
    transform: translateY(-1px) scale(1.01);
  }
}

@keyframes buttonSheen {
  from { transform: translateX(-135%) skewX(-18deg); }
  to { transform: translateX(135%) skewX(-18deg); }
}

@keyframes buttonArrowNudge {
  0%, 100% { transform: translateX(0); }
  45% { transform: translateX(4px); }
}

/* ---------- Conversion layer ---------- */
.sticky-cta {
  position: fixed;
  left: max(var(--pad), env(safe-area-inset-left));
  right: max(var(--pad), env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .72rem .78rem .72rem 1rem;
  border: 1px solid rgba(78,140,255,.36);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(8,13,24,.9), rgba(10,16,29,.76)),
    repeating-linear-gradient(90deg, rgba(78,140,255,.06) 0 1px, transparent 1px 18px);
  box-shadow:
    0 22px 64px -28px rgba(0,0,0,.95),
    0 18px 46px -32px rgba(43,108,255,.9),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 24px)) scale(.98);
  transition:
    opacity .34s var(--ease),
    transform .34s var(--ease);
}
.sticky-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.sticky-cta__copy {
  display: grid;
  gap: .08rem;
  min-width: 0;
}
.sticky-cta__copy strong {
  color: var(--hi);
  font-family: var(--font-num);
  font-size: .88rem;
  line-height: 1.1;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sticky-cta__copy span {
  color: var(--cement);
  font-size: .86rem;
  line-height: 1.2;
}
.sticky-cta .btn {
  flex: 0 0 auto;
}

.exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: var(--pad);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .32s var(--ease),
    visibility 0s linear .32s;
}
.exit-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.exit-overlay__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 70% at 50% 28%, rgba(43,108,255,.22), transparent 62%),
    rgba(3,6,12,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.exit-modal {
  position: relative;
  width: min(620px, 100%);
  padding: clamp(1.4rem, 3vw, 2.15rem);
  border: 1px solid rgba(78,140,255,.42);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(12,18,32,.96), rgba(8,13,24,.9)),
    repeating-linear-gradient(90deg, rgba(78,140,255,.07) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(0deg, rgba(78,140,255,.05) 0 1px, transparent 1px 20px);
  box-shadow:
    0 40px 120px -48px rgba(0,0,0,1),
    0 24px 80px -58px rgba(43,108,255,.95),
    inset 0 1px 0 rgba(255,255,255,.1);
  transform: translateY(18px) scale(.97);
  transition: transform .36s var(--ease);
}
.exit-overlay.is-visible .exit-modal {
  transform: translateY(0) scale(1);
}
.exit-modal__close {
  position: absolute;
  top: .8rem;
  right: .85rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--steel);
  font-size: 1.6rem;
  line-height: 1;
  transition:
    transform var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}
.exit-modal__close:hover {
  transform: rotate(8deg) scale(1.04);
  color: var(--hi);
  border-color: var(--bp-2);
  background: rgba(43,108,255,.12);
}
.exit-modal .kicker {
  margin-bottom: 1rem;
}
.exit-modal h2 {
  margin: 0 0 .7rem;
  max-width: 12ch;
  color: var(--hi);
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 400;
  line-height: .96;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.exit-modal p {
  max-width: 55ch;
  margin: 0;
  color: var(--steel);
}
.exit-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.4rem;
}
.exit-modal__fine {
  margin-top: 1rem !important;
  color: var(--cement) !important;
  font-size: .86rem;
}

@media (max-width: 720px) {
  .sticky-cta {
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
    border-radius: 22px;
    align-items: stretch;
    flex-direction: column;
    padding: .9rem;
  }
  .sticky-cta__copy strong { font-size: .78rem; }
  .sticky-cta__copy span { font-size: .8rem; }
  .sticky-cta .btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }
  .exit-overlay {
    display: none;
  }
}

.pulse::before {
  content: ""; position: absolute; inset: -3px; border-radius: 999px;
  border: 1px solid var(--bp-2); opacity: .65; z-index: -1;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .55; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .005em;
  color: var(--hi);
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: .98;
  margin: 0 0 .6em;
}
.display em {
  font-style: normal;
  color: var(--bp-2);
  text-shadow: 0 0 24px rgba(43,108,255,.35);
}
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bp-3);
  padding: .4rem .75rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: rgba(43,108,255,.06);
  margin: 0 0 1.4rem;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-num);
  font-size: clamp(.66rem, .9vw, .76rem);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bp-3);
  padding: .42rem .8rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(43,108,255,.08);
  max-width: 100%;
  line-height: 1.2;
  white-space: nowrap;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bp-2);
  box-shadow: 0 0 0 4px rgba(43,108,255,.22);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; } 50% { opacity: .35; }
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--steel); margin: 0 0 1rem; max-width: 60ch; }
.lead--muted { color: var(--cement); }
.lead strong {
  color: var(--hi);
  font-weight: 800;
  text-shadow: 0 0 18px rgba(43,108,255,.22);
}
.grad {
  background: linear-gradient(180deg, var(--bp-3) 0%, var(--bp-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 0 36px rgba(43,108,255,.18);
}

/* ===========================================================
   HERO
   Layout strategy:
   - Desktop: hero image fills the LEFT half of the canvas at
     full bleed (logo lives left-of-center on the image). Copy
     panel anchored to the RIGHT, beside the photo of the man.
     A dark mask sits ONLY on the right portion of the image so
     the logo is never touched.
   - Mobile: image shown above on its own (logo unobstructed),
     copy panel stacks below.
   =========================================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(640px, 92vh, 980px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__media {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1;
  z-index: 0;
}
.hero__media picture, .hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% center; /* keep both logo (left) and man (right) visible */
}
.hero__media img {
  position: absolute; inset: 0;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.06); filter: saturate(.92) brightness(.92); }
  to   { transform: scale(1.0);  filter: saturate(1)   brightness(1); }
}
/* Right-side mask — protects the logo on the LEFT, gives text its canvas on the RIGHT */
.hero__mask {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(6,9,15,.12) 0%,
      rgba(6,9,15,0) 30%,
      rgba(6,9,15,0) 56%,
      rgba(6,9,15,.14) 76%,
      rgba(6,9,15,.32) 100%),
    linear-gradient(180deg, rgba(6,9,15,.22) 0%, rgba(6,9,15,0) 28%, rgba(6,9,15,0) 52%, rgba(6,9,15,.68) 100%);
}
.hero__corner {
  position: absolute;
  width: 64px; height: 64px;
  stroke: var(--bp-2);
  stroke-width: 2;
  fill: none;
  opacity: .9;
  filter: drop-shadow(0 0 8px rgba(43,108,255,.5));
}
.hero__corner--tl { top: 18px; left: 18px; animation: drawIn 1.2s var(--ease) .6s both; }
.hero__corner--br { bottom: 18px; right: 18px; transform: scale(-1,-1); animation: drawIn 1.2s var(--ease) .9s both; }
@keyframes drawIn {
  from { opacity: 0; transform: translateY(-6px) scale(1); }
  to   { opacity: .9; transform: translateY(0) scale(1); }
}

.hero__mini-flow {
  position: absolute;
  right: clamp(1.2rem, 4vw, 3.2rem);
  bottom: clamp(1.35rem, 3.6vh, 2.7rem);
  z-index: 2;
  width: min(470px, 34vw);
  min-width: 390px;
  padding: .62rem .72rem;
  border: 1px solid rgba(78, 140, 255, .42);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(8, 13, 24, .74), rgba(9, 15, 26, .36)),
    repeating-linear-gradient(90deg, rgba(78,140,255,.09) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(78,140,255,.07) 0 1px, transparent 1px 18px);
  box-shadow:
    0 20px 70px -35px rgba(43,108,255,.85),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  transform: translateY(0);
  opacity: 1;
  animation: miniFloat 4.2s ease-in-out 1s infinite;
}
.hero__mini-flow::before,
.hero__mini-flow::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--bp-2);
  opacity: .95;
}
.hero__mini-flow::before {
  top: 9px;
  left: 9px;
  border-top: 1px solid;
  border-left: 1px solid;
}
.hero__mini-flow::after {
  right: 9px;
  bottom: 9px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}
.mini-flow__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .42rem;
  color: var(--cement);
  font-family: var(--font-num);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.mini-flow__rec {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--hi);
}
.mini-flow__rec span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ff4b4b;
  box-shadow: 0 0 14px rgba(255,75,75,.9);
  animation: recBlink 1.1s steps(2, end) infinite;
}
.mini-flow__phone {
  position: relative;
  height: 42px;
  margin: .05rem 0 .48rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(43,108,255,.28), transparent 42%),
    radial-gradient(circle at 78% 18%, rgba(92,158,255,.38), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
}
.mini-flow__phone::before {
  content: "Phone shot";
  position: absolute;
  top: 8px;
  left: 12px;
  color: var(--hi);
  font-family: var(--font-num);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.mini-flow__phone::after {
  content: "Hook → Post";
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: var(--bp-3);
  font-family: var(--font-num);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mini-flow__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0 52%, rgba(94,156,255,.85) 62%, transparent 73% 100%);
  mix-blend-mode: screen;
  animation: scanPass 1.65s var(--ease) infinite;
}
.mini-flow__clip {
  position: absolute;
  bottom: 5px;
  left: 12px;
  width: 42px;
  height: 6px;
  border-radius: 999px;
  background: var(--bp-2);
  box-shadow: 0 0 22px rgba(43,108,255,.9);
  animation: clipBuild 2.4s var(--ease) infinite;
}
.mini-flow__clip--two { left: 60px; width: 58px; animation-delay: .25s; opacity: .8; }
.mini-flow__clip--three { left: 124px; width: 32px; animation-delay: .5s; opacity: .65; }
.mini-flow__cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 18px;
}
.mini-flow__cards span {
  position: absolute;
  left: 1.4rem;
  top: 3.05rem;
  padding: .28rem .5rem;
  border: 1px solid rgba(104, 163, 255, .58);
  border-radius: 999px;
  background: rgba(9, 16, 31, .82);
  color: var(--hi);
  font-family: var(--font-num);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate3d(0,0,0) scale(.82);
  box-shadow: 0 0 18px rgba(43,108,255,.42);
  animation: cardLaunch 3.6s var(--ease) infinite;
}
.mini-flow__cards span:nth-child(2) { animation-delay: 1.2s; }
.mini-flow__cards span:nth-child(3) { animation-delay: 2.4s; }
.mini-flow__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
}
.mini-flow__steps li {
  min-height: 36px;
  display: grid;
  align-content: center;
  gap: .18rem;
  padding: .34rem .42rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: var(--steel);
  background: rgba(255,255,255,.04);
  font-family: var(--font-num);
  font-size: .62rem;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  animation: stepPulse 4.8s ease-in-out infinite;
}
.mini-flow__steps li:nth-child(2) { animation-delay: 1.2s; }
.mini-flow__steps li:nth-child(3) { animation-delay: 2.4s; }
.mini-flow__steps li:nth-child(4) { animation-delay: 3.6s; }
.mini-flow__steps span {
  color: var(--bp-3);
  font-size: .62rem;
  letter-spacing: .12em;
}
@keyframes miniFlowIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes miniFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes recBlink {
  50% { opacity: .25; }
}
@keyframes scanPass {
  from { transform: translateY(-80%); opacity: 0; }
  28%, 74% { opacity: .9; }
  to { transform: translateY(80%); opacity: 0; }
}
@keyframes cardLaunch {
  0%, 12% { opacity: 0; transform: translate3d(0,0,0) scale(.82); }
  24% { opacity: 1; transform: translate3d(54px,-18px,0) scale(1); }
  52% { opacity: 1; transform: translate3d(162px,-44px,0) scale(1); }
  72%, 100% { opacity: 0; transform: translate3d(210px,-54px,0) scale(.92); }
}
@keyframes clipBuild {
  0%, 15% { transform: scaleX(.18); transform-origin: left; opacity: .35; }
  45%, 82% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(.18); opacity: .35; }
}
@keyframes stepPulse {
  0%, 18%, 100% {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    color: var(--steel);
    transform: translateY(0);
    box-shadow: none;
  }
  8% {
    border-color: rgba(78,140,255,.85);
    background: rgba(43,108,255,.18);
    color: var(--hi);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -20px rgba(78,140,255,.95);
  }
}


.hero__panel {
  position: absolute;
  z-index: 2;
  left: clamp(2rem, 7vw, 7.5rem);
  top: clamp(31rem, 54vh, 35rem);
  width: min(500px, 36vw);
  padding: clamp(1rem, 1.8vw, 1.45rem);
  border: 1px solid rgba(78, 140, 255, .36);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(8, 13, 24, .82), rgba(8, 13, 24, .54)),
    repeating-linear-gradient(90deg, rgba(78,140,255,.07) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(0deg, rgba(78,140,255,.06) 0 1px, transparent 1px 20px);
  box-shadow:
    0 28px 90px -48px rgba(0,0,0,.95),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}
.hero__headline {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .005em;
  color: var(--hi);
  font-size: clamp(2rem, 3.1vw, 3.25rem);
  line-height: .92;
  margin: .78rem 0 .85rem;
}
.hero__sub {
  font-size: clamp(.95rem, 1.1vw, 1.05rem);
  color: var(--steel);
  margin: 0 0 1rem;
}
.hero__sub strong { color: var(--hi); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__panel .btn {
  min-height: 46px;
  padding-inline: 1rem;
}
.hero__bullets {
  margin: 1rem 0 0;
  padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 1rem 1.4rem;
  font-size: .82rem; color: var(--cement);
}
.hero__bullets li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__bullets span { color: var(--bp-2); }
.hero__panel [data-reveal] {
  opacity: 1;
  transform: none;
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 3;
  width: 22px; height: 36px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  display: grid; place-items: center;
  opacity: .8;
}
.hero__scroll span { width: 2px; height: 8px; background: var(--bp-2); border-radius: 2px; animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot {
  0% { transform: translateY(-6px); opacity: 0; }
  40% { opacity: 1; }
  80% { transform: translateY(6px); opacity: 0; }
  100% { transform: translateY(6px); opacity: 0; }
}

@media (min-width: 1500px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__media {
    grid-column: 1 / -1;
  }
  .hero__media picture,
  .hero__media img {
    object-fit: cover;
    object-position: center center;
  }
  .hero__mask {
    background:
      linear-gradient(90deg,
        rgba(6,9,15,.12) 0%,
        rgba(6,9,15,0) 30%,
        rgba(6,9,15,0) 56%,
        rgba(6,9,15,.14) 76%,
        rgba(6,9,15,.32) 100%),
      linear-gradient(180deg, rgba(6,9,15,.22) 0%, rgba(6,9,15,0) 28%, rgba(6,9,15,0) 52%, rgba(6,9,15,.68) 100%);
  }
  .hero__panel {
    left: clamp(4rem, 8vw, 9rem);
    top: clamp(31rem, 54vh, 37rem);
    width: min(520px, 31vw);
    padding: clamp(1rem, 1.55vw, 1.45rem);
  }
  .hero__panel .eyebrow {
    margin-bottom: .35rem;
  }
  .hero__headline {
    font-size: clamp(2.05rem, 2.45vw, 3.15rem);
    line-height: .92;
    margin: .72rem 0 .82rem;
  }
  .hero__sub {
    max-width: 32rem;
    font-size: clamp(.9rem, .82vw, 1rem);
    margin: 0 0 1rem;
  }
  .hero__cta {
    gap: .55rem;
  }
  .hero__cta .btn {
    min-height: 44px;
    padding-inline: 1rem;
    font-size: .9rem;
  }
  .hero__bullets {
    margin-top: .82rem;
    gap: .55rem .95rem;
    font-size: .78rem;
  }
  .hero__mini-flow {
    right: clamp(2rem, 5vw, 6rem);
    bottom: clamp(1.45rem, 3.2vh, 2.8rem);
    width: min(520px, 34vw);
  }
}

@media (max-width: 900px) {
  /* On mobile: stack image then copy. Image keeps its full logo visible. */
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media {
    position: relative; grid-column: 1; height: 56vw; max-height: 460px; min-height: 240px;
  }
  .hero__media img { position: relative; height: 100%; object-position: 35% center; animation: none; }
  .hero__mask {
    background:
      linear-gradient(180deg, rgba(6,9,15,0) 60%, rgba(6,9,15,.85) 100%);
  }
  .hero__panel {
    position: relative;
    grid-column: 1; grid-row: 2;
    justify-self: stretch; width: 100%;
    padding: 1.5rem var(--pad) 2.5rem;
    background: linear-gradient(180deg, rgba(6,9,15,1) 0%, rgba(10,14,22,1) 100%);
    border-top: 1px solid var(--line);
  }
  .hero__corner { width: 40px; height: 40px; }
  .hero__corner--tl { top: 10px; left: 10px; }
  .hero__corner--br { display: none; }
  .hero__mini-flow {
    display: block;
    left: 1rem;
    bottom: .8rem;
    width: min(410px, 58vw);
    min-width: 310px;
    padding: .58rem .62rem;
  }
  .mini-flow__top { font-size: .58rem; margin-bottom: .36rem; }
  .mini-flow__phone { height: 38px; margin-bottom: .42rem; }
  .mini-flow__phone::before { top: 8px; left: 10px; font-size: .62rem; }
  .mini-flow__phone::after { right: 10px; bottom: 8px; font-size: .58rem; }
  .mini-flow__steps { gap: .24rem; }
  .mini-flow__steps li { min-height: 32px; font-size: .54rem; padding: .28rem .3rem; }
  .mini-flow__steps span { font-size: .52rem; }
  .hero__scroll { display: none; }
}

@media (min-width: 901px) and (max-height: 840px) {
  .hero {
    min-height: 760px;
  }
  .hero__panel {
    top: clamp(21.5rem, 45vh, 23.5rem);
    width: min(460px, 36vw);
    padding: .82rem .92rem;
  }
  .hero__headline {
    font-size: clamp(1.65rem, 2.35vw, 2.35rem);
    margin: .48rem 0 .5rem;
  }
  .hero__sub {
    font-size: .84rem;
    line-height: 1.32;
    margin-bottom: .58rem;
  }
  .hero__panel .btn {
    min-height: 38px;
    padding-inline: .78rem;
    font-size: .82rem;
  }
  .hero__cta {
    display: none;
  }
  .hero__bullets {
    display: none;
  }
  .hero__mini-flow {
    bottom: 1.5rem;
    width: min(440px, 34vw);
    min-width: 360px;
  }
  .mini-flow__phone::before,
  .mini-flow__phone::after {
    top: auto;
    bottom: 5px;
    font-size: .62rem;
  }
  .mini-flow__clip {
    bottom: 18px;
    opacity: .75;
  }
}

@media (max-width: 620px) {
  .hero__mini-flow { display: none; }
}

/* =============================================================
   Hero left-stack override
   Self-contained CSS + JS loop: anchored in the lower-left dark
   negative space, below the image logos, without covering the
   tradesman portrait or relying on external animation libraries.
   ============================================================= */
.hero__left-stack {
  position: absolute;
  z-index: 3;
  left: clamp(1.5rem, 6vw, 7rem);
  top: clamp(18.5rem, 43vh, 25rem);
  width: min(860px, 64vw);
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(250px, 1fr);
  gap: clamp(.75rem, 1.5vw, 1.15rem);
  align-items: end;
  pointer-events: none;
}
.hero__left-stack > * {
  pointer-events: auto;
}
.hero__left-stack .hero__panel {
  position: relative;
  inset: auto;
  grid-column: auto;
  grid-row: auto;
  width: auto;
  max-width: 480px;
  padding: clamp(.9rem, 1.35vw, 1.22rem);
}
.hero__left-stack .hero__headline {
  font-size: clamp(1.8rem, 2.55vw, 2.85rem);
  margin: .58rem 0 .62rem;
}
.hero__left-stack .hero__sub {
  font-size: clamp(.86rem, .98vw, .98rem);
  line-height: 1.42;
  margin-bottom: .78rem;
}
.hero__left-stack .hero__cta {
  gap: .52rem;
}
.hero__left-stack .hero__panel .btn {
  min-height: 40px;
  padding-inline: .82rem;
  font-size: .84rem;
}
.hero__left-stack .hero__bullets {
  margin-top: .72rem;
  gap: .42rem .85rem;
  font-size: .74rem;
}
.hero__left-stack [data-reveal] {
  opacity: 1;
  transform: none;
}

.hero__left-stack .hero__mini-flow {
  --flow-progress: 0%;
  position: relative;
  inset: auto;
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 124px;
  align-self: end;
  padding: .78rem .82rem .86rem;
  border: 1px solid rgba(78, 140, 255, .42);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(8, 13, 24, .84), rgba(8, 13, 24, .54)),
    repeating-linear-gradient(90deg, rgba(78,140,255,.08) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(78,140,255,.06) 0 1px, transparent 1px 18px);
  box-shadow:
    0 24px 70px -42px rgba(43,108,255,.9),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  animation: miniFloat 4.2s ease-in-out 1s infinite;
  overflow: hidden;
}
.hero__left-stack .hero__mini-flow::before,
.hero__left-stack .hero__mini-flow::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--bp-2);
  opacity: .9;
  pointer-events: none;
}
.hero__left-stack .hero__mini-flow::before {
  top: 10px;
  left: 10px;
  border-top: 1px solid;
  border-left: 1px solid;
}
.hero__left-stack .hero__mini-flow::after {
  right: 10px;
  bottom: 10px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}
.mini-flow__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .55rem;
  color: var(--cement);
  font-family: var(--font-num);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
}
.mini-flow__top [data-flow-current] {
  color: var(--hi);
  text-align: right;
  text-shadow: 0 0 18px rgba(43,108,255,.64);
}
.mini-flow__rail {
  position: relative;
  height: 5px;
  margin: .12rem 0 .72rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
}
.mini-flow__progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--flow-progress);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bp-2), var(--bp-3));
  box-shadow: 0 0 18px rgba(78,140,255,.85);
  transition: width .42s var(--ease);
}
.hero__left-stack .mini-flow__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .32rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero__left-stack .mini-flow__steps li {
  min-height: 36px;
  display: grid;
  align-content: center;
  gap: .14rem;
  padding: .4rem .42rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: var(--steel);
  background: rgba(255,255,255,.04);
  font-family: var(--font-num);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .03em;
  line-height: 1.04;
  text-transform: uppercase;
  animation: none;
  transition:
    border-color .32s var(--ease),
    background .32s var(--ease),
    color .32s var(--ease),
    box-shadow .32s var(--ease),
    transform .32s var(--ease);
}
.hero__left-stack .mini-flow__steps li.is-active {
  border-color: rgba(78,140,255,.9);
  background: rgba(43,108,255,.2);
  color: var(--hi);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -22px rgba(78,140,255,1);
}
.hero__left-stack .mini-flow__steps span {
  color: var(--bp-3);
  font-size: .56rem;
  letter-spacing: .12em;
}
.hero__left-stack .mini-flow__phone,
.hero__left-stack .mini-flow__scan,
.hero__left-stack .mini-flow__clip,
.hero__left-stack .mini-flow__cards {
  display: none;
}

@media (min-width: 1500px) {
  .hero__left-stack {
    left: clamp(4rem, 7vw, 9rem);
    top: clamp(19rem, 41vh, 26rem);
    width: min(960px, 60vw);
    grid-template-columns: minmax(360px, 500px) minmax(320px, 1fr);
  }
  .hero__left-stack .hero__panel {
    max-width: 500px;
  }
}

@media (min-width: 901px) {
  .hero__left-stack .hero__cta,
  .hero__left-stack .hero__bullets {
    display: none;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .hero__left-stack {
    left: clamp(1.1rem, 4vw, 3rem);
    width: min(760px, 72vw);
    grid-template-columns: minmax(330px, 430px) minmax(220px, 1fr);
  }
  .hero__left-stack .hero__headline {
    font-size: clamp(1.62rem, 2.2vw, 2.1rem);
  }
  .hero__left-stack .hero__sub {
    font-size: .82rem;
  }
  .hero__left-stack .hero__cta,
  .hero__left-stack .hero__bullets {
    display: none;
  }
}

@media (min-width: 901px) and (max-height: 920px) {
  .hero {
    min-height: 760px;
  }
  .hero__left-stack {
    top: clamp(18.5rem, 45vh, 24rem);
    width: min(820px, 64vw);
  }
  .hero__left-stack .hero__panel {
    padding: .78rem .88rem;
  }
  .hero__left-stack .hero__headline {
    font-size: clamp(1.55rem, 2.25vw, 2.22rem);
    margin: .42rem 0 .46rem;
  }
  .hero__left-stack .hero__sub {
    font-size: .8rem;
    line-height: 1.32;
    margin-bottom: .46rem;
  }
  .hero__left-stack .hero__cta,
  .hero__left-stack .hero__bullets {
    display: none;
  }
  .hero__left-stack .hero__mini-flow {
    min-height: 108px;
    padding: .62rem .66rem .68rem;
  }
  .hero__left-stack .mini-flow__steps li {
    min-height: 30px;
    font-size: .52rem;
    padding: .3rem .32rem;
  }
}

@media (max-width: 900px) {
  .hero {
    overflow: visible;
  }
  .hero__left-stack {
    position: relative;
    left: auto;
    top: auto;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: linear-gradient(180deg, rgba(6,9,15,1) 0%, rgba(10,14,22,1) 100%);
    border-top: 1px solid var(--line);
    pointer-events: auto;
  }
  .hero__left-stack .hero__panel {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    max-width: none;
    padding: 1.5rem var(--pad) 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .hero__left-stack .hero__mini-flow {
    display: grid;
    grid-column: 1;
    width: auto;
    min-height: 132px;
    margin: .75rem var(--pad) 1.4rem;
    animation: miniFloat 4.2s ease-in-out 1s infinite;
  }
  .hero__left-stack .mini-flow__top {
    font-size: .6rem;
  }
  .hero__scroll {
    display: none;
  }
}

@media (max-width: 620px) {
  .hero__left-stack .hero__mini-flow {
    display: grid;
    min-height: 126px;
    margin-bottom: 1.25rem;
    padding: .68rem;
  }
  .hero__left-stack .mini-flow__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero__left-stack .mini-flow__steps li {
    min-height: 34px;
    font-size: .54rem;
    padding: .32rem .38rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__left-stack .hero__mini-flow,
  .mini-flow__rec span {
    animation: none;
  }
  .mini-flow__progress,
  .hero__left-stack .mini-flow__steps li {
    transition: none;
  }
}

@media (min-width: 901px) {
  .hero__left-stack {
    inset: 0;
    left: 0;
    top: 0;
    width: auto;
    display: block;
  }
  .hero__left-stack .hero__panel {
    position: absolute;
    left: clamp(7rem, 10.8vw, 13rem);
    top: clamp(22rem, 51vh, 29rem);
    width: min(500px, 36vw);
  }
  .hero__left-stack .hero__mini-flow {
    position: absolute;
    left: clamp(36rem, 49vw, 48rem);
    top: clamp(25rem, 56vh, 34rem);
    width: min(420px, 31vw);
  }
}

@media (min-width: 1500px) {
  .hero__left-stack .hero__panel {
    left: clamp(10rem, 10.8vw, 14rem);
    top: clamp(28rem, 54vh, 36rem);
    width: min(500px, 31vw);
  }
  .hero__left-stack .hero__mini-flow {
    left: clamp(48rem, 52vw, 62rem);
    top: clamp(32rem, 61vh, 41rem);
    width: min(500px, 28vw);
  }
}

@media (min-width: 901px) and (max-height: 840px) {
  .hero__left-stack .hero__panel {
    top: clamp(21.8rem, 48vh, 25rem);
  }
  .hero__left-stack .hero__mini-flow {
    left: clamp(36rem, 48vw, 46rem);
    top: clamp(25rem, 55vh, 31rem);
  }
}

.hero__flow-stack {
  display: grid;
  gap: .75rem;
}
.hero__flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
}
.hero__flow-actions .btn {
  min-height: 42px;
  padding-inline: .95rem;
  font-size: .86rem;
  box-shadow: 0 14px 38px -22px rgba(43,108,255,.85);
}

@media (min-width: 901px) {
  .hero__flow-stack {
    position: absolute;
    left: clamp(36rem, 49vw, 48rem);
    top: clamp(25rem, 56vh, 34rem);
    width: min(420px, 31vw);
  }
  .hero__flow-stack .hero__mini-flow {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
  }
  .hero__flow-actions {
    justify-content: center;
  }
  .hero__flow-actions .btn {
    min-height: 40px;
    padding-inline: .86rem;
    font-size: .8rem;
  }
}

@media (min-width: 1500px) {
  .hero__flow-stack {
    left: clamp(48rem, 52vw, 62rem);
    top: clamp(32rem, 61vh, 41rem);
    width: min(500px, 28vw);
  }
  .hero__flow-actions .btn {
    min-height: 42px;
    font-size: .84rem;
  }
}

@media (min-width: 901px) and (max-height: 840px) {
  .hero__flow-stack {
    left: clamp(36rem, 48vw, 46rem);
    top: clamp(25rem, 55vh, 31rem);
  }
}

@media (max-width: 900px) {
  .hero__flow-stack {
    grid-column: 1;
    width: auto;
    margin: .75rem var(--pad) 1.4rem;
  }
  .hero__flow-stack .hero__mini-flow {
    width: 100%;
    margin: 0;
  }
  .hero__flow-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
  }
  .hero__flow-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    padding-inline: .7rem;
    font-size: .78rem;
  }
}

@media (max-width: 520px) {
  .hero__flow-actions {
    grid-template-columns: 1fr;
  }
}

/* Dedicated mobile hero: image stays clean, then message, animated ribbon,
   and tap-friendly CTAs stack in the same jobsite-blue system. */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    overflow: visible;
    background:
      radial-gradient(110% 80% at 50% 0%, rgba(43,108,255,.14), transparent 58%),
      linear-gradient(180deg, var(--ink-0), var(--ink-1));
  }
  .hero__media {
    grid-row: 1;
    height: clamp(230px, 58vw, 440px);
    min-height: 230px;
    max-height: 440px;
  }
  .hero__media picture,
  .hero__media img {
    position: relative;
    height: 100%;
  }
  .hero__media img {
    object-position: 36% center;
    animation: none;
  }
  .hero__mask {
    background:
      linear-gradient(180deg, rgba(6,9,15,0) 54%, rgba(6,9,15,.78) 100%);
  }
  .hero__left-stack {
    position: relative;
    grid-row: 2;
    display: grid;
    gap: 0;
    width: 100%;
    padding: 0;
    background:
      linear-gradient(180deg, rgba(6,9,15,.98) 0%, rgba(8,13,24,1) 56%, rgba(10,14,22,1) 100%);
    border-top: 1px solid rgba(78,140,255,.22);
  }
  .hero__left-stack .hero__panel {
    width: 100%;
    max-width: none;
    padding: clamp(1rem, 4vw, 1.35rem) var(--pad) .55rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .hero__left-stack .hero__headline {
    max-width: 15ch;
    font-size: clamp(1.8rem, 8.2vw, 2.85rem);
    line-height: .92;
    margin: .55rem 0 .58rem;
  }
  .hero__left-stack .hero__sub {
    max-width: 34rem;
    font-size: clamp(.88rem, 3vw, 1rem);
    line-height: 1.38;
    margin: 0;
  }
  .hero__left-stack .hero__cta,
  .hero__left-stack .hero__bullets {
    display: none;
  }
  .hero__flow-stack {
    width: auto;
    margin: .2rem var(--pad) clamp(1.2rem, 4vw, 1.7rem);
    padding: clamp(.72rem, 2.6vw, .95rem);
    gap: .78rem;
    border: 1px solid rgba(78,140,255,.3);
    border-radius: 20px;
    background:
      linear-gradient(135deg, rgba(8,13,24,.86), rgba(8,13,24,.66)),
      repeating-linear-gradient(90deg, rgba(78,140,255,.055) 0 1px, transparent 1px 18px);
    box-shadow:
      0 24px 70px -44px rgba(43,108,255,.8),
      inset 0 1px 0 rgba(255,255,255,.07);
  }
  .hero__flow-stack .hero__mini-flow {
    width: 100%;
    min-height: 108px;
    margin: 0;
    padding: .7rem;
    border-radius: 15px;
    background:
      linear-gradient(135deg, rgba(9,16,31,.84), rgba(9,16,31,.56)),
      repeating-linear-gradient(90deg, rgba(78,140,255,.08) 0 1px, transparent 1px 16px);
  }
  .hero__flow-stack .mini-flow__top {
    font-size: .64rem;
    margin-bottom: .62rem;
  }
  .hero__flow-stack .mini-flow__rail {
    margin-bottom: .72rem;
  }
  .hero__flow-stack .mini-flow__steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .32rem;
  }
  .hero__flow-stack .mini-flow__steps li {
    min-height: 42px;
    padding: .4rem .34rem;
    font-size: clamp(.5rem, 2.15vw, .62rem);
    border-radius: 10px;
  }
  .hero__flow-stack .mini-flow__steps span {
    font-size: .5rem;
  }
  .hero__flow-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: .68rem;
  }
  .hero__flow-actions .btn {
    width: 100%;
    min-height: 50px;
    justify-content: center;
    padding-inline: 1rem;
    border-radius: 999px;
    font-size: .96rem;
    line-height: 1.1;
  }
}

/* ---------- Generic section ---------- */
.section {
  position: relative;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  z-index: 1;
}
.section + .section { border-top: 1px solid var(--line); }

/* ---------- Problem ---------- */
.section--problem { background: linear-gradient(180deg, var(--ink-1), var(--ink-2) 60%, var(--ink-1)); }
.section--problem em { font-style: italic; color: var(--warn); }
.problem__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  margin: 2rem 0 3.2rem;
  max-width: 100%;
}
@media (max-width: 720px) {
  .problem__grid { grid-template-columns: 1fr; gap: 1rem; }
}
.pain-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
@media (max-width: 900px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pain-grid { grid-template-columns: 1fr; } }
.pain {
  position: relative;
  padding: 1.4rem 1.2rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border-radius: var(--radius);
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.pain:hover { transform: translateY(-3px); border-color: var(--bp-2); box-shadow: 0 14px 40px -18px rgba(43,108,255,.55); }
.pain__num {
  display: inline-block;
  font-family: var(--font-num); font-weight: 800;
  color: var(--bp-2); letter-spacing: .08em;
  font-size: .85rem; margin-bottom: .8rem;
}
.pain h3 { margin: 0 0 .35rem; color: var(--hi); font-size: 1.1rem; }
.pain p { margin: 0; color: var(--cement); font-size: .95rem; }

/* ---------- Funnel ---------- */
.section--how { background: var(--ink-1); }
.funnel {
  list-style: none; padding: 0; margin: 2.4rem 0 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem;
  counter-reset: f;
  position: relative;
}
.funnel::before {
  content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 28px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--bp-2) 0 12px, transparent 12px 22px);
  opacity: .55;
  z-index: 0;
}
@media (max-width: 900px) {
  .funnel { grid-template-columns: 1fr 1fr; }
  .funnel::before { display: none; }
}
@media (max-width: 480px) { .funnel { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 1.2rem 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: var(--bp-2); }
.step__num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink-1);
  border: 1px solid var(--bp-2);
  color: var(--bp-3);
  font-family: var(--font-num); font-weight: 800; font-size: .82rem;
  margin-bottom: .8rem;
  box-shadow: 0 0 0 4px rgba(10,14,22,1), 0 0 18px var(--bp-glow);
}
.step h3 { margin: 0 0 .25rem; color: var(--hi); font-size: 1rem; }
.step p { margin: 0; font-size: .88rem; color: var(--cement); }

/* ---------- Feature grid (What you get) ---------- */
.section--inside { background: linear-gradient(180deg, var(--ink-1), var(--ink-2)); }
.feature-grid {
  margin-top: 2.4rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  position: relative;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(43,108,255,.08), transparent 50%),
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.feature::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(43,108,255,.06) 100%);
  opacity: 0; transition: opacity var(--t-med) var(--ease);
}
.feature:hover { transform: translateY(-3px); border-color: var(--bp-2); }
.feature:hover::before { opacity: 1; }
.feature__icon { width: 28px; height: 28px; color: var(--bp-2); margin-bottom: 1rem; }
.feature h3 { margin: 0 0 .35rem; color: var(--hi); font-size: 1.05rem; }
.feature p { margin: 0; color: var(--cement); font-size: .95rem; }

/* ---------- Modules ---------- */
.section--modules { background: var(--ink-1); }
.modules {
  margin-top: 2.4rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 900px) { .modules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .modules { grid-template-columns: 1fr; } }
.module {
  position: relative;
  padding: 1.4rem 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, var(--ink-2), var(--ink-1));
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.module::after {
  /* blueprint-grid corner motif */
  content: ""; position: absolute; right: -20px; top: -20px;
  width: 110px; height: 110px;
  background-image:
    linear-gradient(to right, rgba(43,108,255,.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43,108,255,.18) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: radial-gradient(circle at 70% 30%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, black, transparent 70%);
  opacity: .9;
  transition: opacity var(--t-med) var(--ease);
}
.module:hover { transform: translateY(-3px); border-color: var(--bp-2); }
.module:hover::after { opacity: 1; }
.module header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
  font-family: var(--font-num);
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cement);
}
.module__tag {
  display: inline-block;
  padding: .25rem .55rem;
  border: 1px solid var(--bp-2); color: var(--bp-3);
  border-radius: 4px;
}
.module h3 { margin: 0 0 .35rem; color: var(--hi); font-size: 1.1rem; }
.module p { margin: 0; color: var(--cement); font-size: .92rem; }

/* ---------- Who it's for ---------- */
.section--who { background: linear-gradient(180deg, var(--ink-2), var(--ink-1)); }
.trades {
  list-style: none; padding: 0; margin: 2.2rem 0 0;
  display: flex; flex-wrap: wrap; gap: .55rem;
}
.trades li {
  font-family: var(--font-num); font-weight: 700;
  letter-spacing: .04em;
  font-size: .92rem;
  padding: .55rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--steel);
  background: rgba(255,255,255,.02);
  transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.trades li:hover {
  transform: translateY(-2px);
  color: var(--hi);
  border-color: var(--bp-2);
  background: rgba(43,108,255,.1);
}

/* ---------- Founder ---------- */
.section--founder { background: var(--ink-1); }
.founder { display: grid; grid-template-columns: 1.4fr .9fr; gap: 2.4rem; align-items: start; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } }
.pull {
  margin: 2rem 0 0;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--bp-2);
  background: rgba(43,108,255,.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pull p {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--hi); margin: 0; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase;
}
.pull footer { margin-top: .5rem; color: var(--cement); font-family: var(--font-num); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.founder__card {
  padding: 1.6rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(43,108,255,.12), transparent 60%),
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border-radius: var(--radius);
  position: sticky; top: 92px;
}
.founder__card h3 { margin: 0 0 .9rem; color: var(--hi); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-num); }
.founder__card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.founder__card li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem 0;
  border-top: 1px dashed var(--line);
  font-size: .92rem;
  color: var(--cement);
}
.founder__card li:first-child { border-top: 0; }
.founder__card strong { color: var(--steel); font-weight: 600; }
.founder__card span { color: var(--hi); font-family: var(--font-num); font-weight: 700; }

/* ---------- FAQ ---------- */
.section--faq { background: linear-gradient(180deg, var(--ink-1), var(--ink-2)); }
.faqs { display: grid; gap: .75rem; margin-top: 2.2rem; max-width: 880px; }
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  overflow: clip;
  transition: border-color var(--t-fast) var(--ease);
}
details:hover { border-color: var(--line-2); }
details[open] { border-color: var(--bp-2); }
summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-num); font-weight: 700;
  color: var(--hi);
  font-size: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-family: var(--font-num); font-weight: 800;
  color: var(--bp-2);
  font-size: 1.4rem;
  transition: transform var(--t-fast) var(--ease);
}
details[open] summary::after { content: "−"; transform: rotate(180deg); }
details p {
  margin: 0; padding: 0 1.3rem 1.2rem;
  color: var(--cement);
}

/* ---------- Final CTA ---------- */
.section--cta {
  position: relative;
  background: radial-gradient(80% 100% at 50% 0%, rgba(43,108,255,.18), transparent 60%), var(--ink-0);
  overflow: hidden;
}
.cta { position: relative; text-align: center; max-width: 760px; margin: 0 auto; }
.cta .display em { color: var(--bp-2); }
.cta__lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
}
.cta__lines svg { width: 100%; height: 100%; }
.cta__lines .ln {
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  animation: drawLine 4s var(--ease) forwards;
}
.cta__lines .ln:nth-child(3) { animation-delay: .3s; }
.cta__lines .ln:nth-child(4) { animation-delay: .6s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.cta__form {
  margin: 2.2rem auto 1rem;
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; align-items: center;
}
.cta__form input[type="email"],
.cta__form input[type="text"] {
  flex: 1 1 300px;
  min-height: 52px;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  color: var(--hi);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.cta__form input[type="email"]::placeholder,
.cta__form input[type="text"]::placeholder { color: var(--cement-2); }
.cta__form input[type="email"]:focus,
.cta__form input[type="text"]:focus {
  border-color: var(--bp-2);
  box-shadow: 0 0 0 4px rgba(43,108,255,.18);
}
.cta__form button { min-height: 52px; }
.cta__ok { width: 100%; margin: 1rem 0 0; color: var(--bp-3); font-weight: 600; }
.cta__fine { margin-top: .7rem; color: var(--cement); font-size: .85rem; }

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  background: var(--ink-0);
  padding: 2rem 0;
  color: var(--cement);
}
.foot__inner {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  font-size: .88rem;
}
.foot__brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--steel); }
.foot__nav { display: flex; gap: 1.2rem; }
.foot__nav a { transition: color var(--t-fast) var(--ease); }
.foot__nav a:hover { color: var(--hi); }

/* =============================================================
   Scroll reveal — distinct funnel entrances
   ============================================================= */
[data-reveal] {
  --reveal-transform: translateY(18px);
  --reveal-filter: none;
  opacity: 0;
  transform: var(--reveal-transform);
  filter: var(--reveal-filter);
  transition:
    opacity .74s var(--ease),
    transform .74s var(--ease),
    filter .74s var(--ease),
    clip-path .74s var(--ease);
  will-change: opacity, transform, filter, clip-path;
}
[data-reveal].is-in {
  opacity: 1;
  transform: translate3d(0,0,0) rotate(0) rotateX(0) rotateY(0) scale(1);
  filter: none;
}
.section[data-section-in] .kicker.is-in {
  animation: sectionKickerSnap .54s var(--ease);
}

.section--problem [data-reveal] {
  --reveal-transform: translateX(-18px) rotate(-.45deg);
}
.section--problem .pain:nth-child(even) {
  --reveal-transform: translateX(18px) rotate(.45deg);
}
.section--problem .pain.is-in {
  animation: problemShakeIn .62s var(--ease);
}

.section--how .step {
  --reveal-transform: translateY(26px) scale(.96);
  transform-origin: center bottom;
}
.section--how .step.is-in {
  animation: ladderStepIn .72s var(--ease);
}
.section--how .funnel[data-stagger] .step.is-in:nth-child(1) { animation-delay: 0ms; }
.section--how .funnel[data-stagger] .step.is-in:nth-child(2) { animation-delay: 40ms; }
.section--how .funnel[data-stagger] .step.is-in:nth-child(3) { animation-delay: 80ms; }
.section--how .funnel[data-stagger] .step.is-in:nth-child(4) { animation-delay: 120ms; }
.section--how .funnel[data-stagger] .step.is-in:nth-child(5) { animation-delay: 160ms; }
.section--how .funnel[data-stagger] .step.is-in:nth-child(6) { animation-delay: 200ms; }

.section--inside .feature,
.section--founder .pull {
  transform-style: preserve-3d;
}
.section--inside .feature:nth-child(odd),
.section--founder .pull {
  --reveal-transform: perspective(900px) translateX(-34px) rotateY(-8deg);
}
.section--inside .feature:nth-child(even),
.section--founder .founder__card {
  --reveal-transform: perspective(900px) translateX(34px) rotateY(8deg);
}
.section--inside .feature.is-in,
.section--founder .pull.is-in,
.section--founder .founder__card.is-in {
  animation: cardSlideFlipIn .78s var(--ease);
}

.section--modules .module {
  --reveal-transform: perspective(900px) translateY(28px) rotateX(9deg);
  transform-origin: center top;
  transform-style: preserve-3d;
}
.section--modules .module.is-in {
  animation: blueprintCardFlipIn .82s var(--ease);
}

.section--who .trades li {
  --reveal-transform: translateY(12px) scale(.94);
}
.section--who .trades li.is-in {
  animation: tradeChipPop .52s var(--ease);
}

.section--faq details {
  --reveal-transform: translateX(-14px);
  clip-path: inset(0 8% 0 0 round var(--radius));
}
.section--faq details:nth-child(even) {
  --reveal-transform: translateX(14px);
  clip-path: inset(0 0 0 8% round var(--radius));
}
.section--faq details.is-in {
  clip-path: inset(0 0 0 0 round var(--radius));
}
.section--cta [data-reveal] {
  --reveal-transform: translateY(16px) scale(.98);
  --reveal-filter: blur(4px);
}

@keyframes sectionKickerSnap {
  0% { opacity: 0; letter-spacing: .34em; transform: translateY(10px); }
  100% { opacity: 1; letter-spacing: .22em; transform: translateY(0); }
}
@keyframes problemShakeIn {
  0% { opacity: 0; transform: translateX(-22px) rotate(-1.2deg); }
  45% { opacity: 1; transform: translateX(7px) rotate(.5deg); }
  72% { transform: translateX(-3px) rotate(-.25deg); }
  100% { opacity: 1; transform: translateX(0) rotate(0); }
}
.section--problem .pain:nth-child(even).is-in {
  animation-name: problemShakeInRight;
}
@keyframes problemShakeInRight {
  0% { opacity: 0; transform: translateX(22px) rotate(1.2deg); }
  45% { opacity: 1; transform: translateX(-7px) rotate(-.5deg); }
  72% { transform: translateX(3px) rotate(.25deg); }
  100% { opacity: 1; transform: translateX(0) rotate(0); }
}
@keyframes ladderStepIn {
  0% { opacity: 0; transform: translateY(26px) scale(.96); filter: blur(2px); }
  62% { opacity: 1; transform: translateY(-5px) scale(1.015); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: none; }
}
@keyframes cardSlideFlipIn {
  0% { opacity: 0; transform: var(--reveal-transform); filter: blur(3px); }
  100% { opacity: 1; transform: perspective(900px) translateX(0) rotateY(0); filter: none; }
}
@keyframes blueprintCardFlipIn {
  0% { opacity: 0; transform: perspective(900px) translateY(28px) rotateX(9deg); filter: blur(3px); }
  100% { opacity: 1; transform: perspective(900px) translateY(0) rotateX(0); filter: none; }
}
@keyframes tradeChipPop {
  0% { opacity: 0; transform: translateY(12px) scale(.94); }
  70% { opacity: 1; transform: translateY(-2px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress__bar { box-shadow: none; }
  [data-reveal],
  [data-reveal].is-in,
  .section--faq details,
  .section--faq details.is-in {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    animation: none !important;
  }
}
