/* Parallax hero prototype. Tokens and rules from BRAND.md. */

:root {
  /* Color (BRAND.md section 4) */
  --bg: #0C0C0E;
  --surface: #141416;
  --line: #27272A;
  --line-strong: #3F3F46;
  --text: #FAFAFA;
  --muted: #A1A1AA;
  --accent: #FF4B1F;
  --on-accent: #0C0C0E;
  /* Blue team fixes only. A second accent: BRAND.md section 4 allows one.
     Kept to this single token so it is easy to drop. 5.7:1 on --surface. */
  --fix: #4D8DF7;

  /* Type (section 5) */
  --font-sans: "Geist", "Outfit", system-ui, sans-serif;
  --font-display: "Unbounded", var(--font-sans);

  /* Layout (section 6) */
  --container: 1320px;
  --pad: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 136px);
  --header-h: 72px;

  /* Motion (section 7) */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.skip {
  position: absolute;
  left: var(--pad);
  top: -100px;
  z-index: 20;
  padding: 12px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* Brand: the Clasp mark file plus the wordmark as live Unbounded 800 text.
   Proportions follow parallax-lockup-on-dark.svg (mark 100 x 80.3 units,
   wordmark at x 126, baseline 63.15, size 61.33). */
.brand {
  --h: 24px;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--h) * .3238);
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: calc(var(--h) * 1.2453);
  height: var(--h);
  flex: none;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: calc(var(--h) * .7638);
  line-height: 1;
  letter-spacing: .013em; /* matches the outlined wordmark's ink width */
}
.brand:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 6px; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nav {
  display: none;
  gap: 4px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { color: var(--text); }
.site-nav a:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
@media (min-width: 960px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .header-inner .brand { justify-self: start; }
  .header-inner .header-cta { justify-self: end; }
  .site-nav { display: flex; }
}

/* Buttons: one primary action per view */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .5s var(--spring);
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn:hover { transform: translateY(-1px); }
.btn:active {
  transform: translateY(2px);
  transition-duration: .06s;
  transition-timing-function: ease-out;
}
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* The header button only shows once the hero button has scrolled away, and
   hides again while the form's own button is on screen, so a view never
   holds two primary actions. */
.header-cta {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
/* Phones: lockup at its 120px minimum so the logo and the button both fit */
@media (max-width: 440px) {
  .site-header .brand { --h: 17.5px; }
  .header-inner { gap: 12px; }
  .header-cta { padding: 0 12px; font-size: 14px; }
}
.show-cta:not(.cta-suppressed):not(.cta-story) .header-cta {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity .3s var(--ease), transform .5s var(--spring), visibility 0s;
}

/* Hero. The base layout is static (no JS, or reduced motion).
   The pinned, scroll-driven stage is layered on top further down. */
.hero-stage {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px));
  padding-bottom: var(--section);
}
.hero-intro-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.hero-title {
  margin: 0;
  font-size: clamp(40px, 5.6vw, 84px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -.04em;
}
.hero-title span { display: block; }
.t-muted { color: var(--muted); }
.lede {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.55;
  text-wrap: pretty;
}

/* Pixel field: full bleed, edge to edge */
.field-wrap {
  position: relative;
  height: clamp(320px, 52vw, 680px);
  margin-top: clamp(40px, 6vw, 72px);
}
.field-wrap canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.field-labels {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.field-label {
  position: absolute;
  left: 0;
  top: 0;
  padding: 3px 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

/* Blue team fixes: buttons over the closed gates and one callout.
   Only in the pinned, scroll-driven stage. */
.fix-layer { display: none; }
.fix-gate {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0 0 8px;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.fix-layer.is-active .fix-gate { opacity: 1; pointer-events: auto; }
.fix-gate:focus-visible { outline: 2px solid var(--fix); outline-offset: 0; }
.fix-badge {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--bg);
  border: 1.5px solid var(--fix);
  border-radius: 50%;
  color: var(--fix);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.fix-gate[aria-expanded="true"] .fix-badge { background: var(--fix); color: var(--on-accent); }
.fix-layer.no-badges .fix-badge { display: none; }
.fix-callout {
  position: absolute;
  left: 0;
  top: 0;
  width: 264px;
  padding: 14px 18px 18px;
  background: var(--surface);
  border: 1px solid var(--fix);
  border-radius: 20px;
}
.fix-callout.corner-bl { border-bottom-left-radius: 4px; }
.fix-callout[hidden] { display: none; }
.fix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fix-kicker { margin: 0; color: var(--fix); font-size: 14px; font-weight: 500; }
.fix-close {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.fix-close::after { content: ""; position: absolute; inset: -6px; }
.fix-close:hover { color: var(--text); }
.fix-close:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.fix-title {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.fix-body {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Caption panel: the story's chapters. The base layout is static
   (no JS, or reduced motion): every chapter is shown, one after another. */
.hero-caption-wrap { margin-top: 24px; }
.hero-caption {
  position: relative;
  padding: 22px 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.chapters { display: grid; gap: 28px; }
.chapter { scroll-margin-top: calc(var(--header-h) + 16px); }
.chapter + .chapter { padding-top: 28px; border-top: 1px solid var(--line); }
.chapter-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
.step-marker { flex: none; width: 8px; height: 8px; background: var(--accent); }
.step-marker.is-fix { background: var(--fix); }
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text);
}
.chapter-title {
  margin: 14px 0 0;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.chapter-text {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}
.chapter-cta { margin-top: 22px; }
.chapter-text { max-width: 62ch; }
.ch-hops, .ch-points, .ch-steps { max-width: 760px; }
.ch-hops, .ch-points, .ch-steps { margin: 18px 0 0; padding: 0; list-style: none; }
.ch-hops li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.ch-hops .glyph { width: 36px; height: 31px; margin-top: 2px; }
.ch-hops h3, .ch-steps h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.ch-hops p, .ch-steps p { margin: 3px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.ch-points li {
  position: relative;
  padding: 9px 0 9px 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
}
.ch-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(9px + .725em - 4px);
  width: 8px;
  height: 8px;
  background: var(--fix);
}
.ch-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.ch-steps .step-num { color: var(--muted); line-height: 1.75; }
.step-hint { margin: 12px 0 0; color: var(--fix); font-size: 14px; line-height: 1.4; }
.step-hint[hidden] { display: none; }
.caption-progress { display: none; }

/* Pinned stage: one continuous story, scrubbed by the scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-track { height: 760vh; }
  .js .hero-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    padding: 0;
    overflow: hidden;
  }
  .js .hero-intro {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--header-h) + clamp(28px, 6vh, 72px));
    pointer-events: none;
  }
  .js .hero-intro-inner { pointer-events: auto; }
  .js .field-wrap {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    height: auto;
    margin: 0;
  }
  .js .hero-caption-wrap {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }
  .js .hero-caption { width: min(460px, 37vw); padding-bottom: 30px; }
  .js .hero-caption-wrap.is-live .hero-caption { pointer-events: auto; }
  .js .chapters { gap: 0; }
  .js .chapter { grid-area: 1 / 1; opacity: 0; padding: 0; border: 0; }
  .js .ch-hops li, .js .ch-steps li { opacity: .42; transition: opacity .35s var(--ease); }
  .js .ch-hops li.is-on, .js .ch-hops li.is-done,
  .js .ch-steps li.is-on, .js .ch-steps li.is-done { opacity: 1; }
  .js .ch-steps li.is-on .step-num { color: var(--fix); }
  .js .caption-progress {
    display: block;
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 14px;
    height: 2px;
    background: var(--line);
    overflow: hidden;
  }
  .js .caption-progress span {
    display: block;
    height: 100%;
    background: var(--accent);
    transform-origin: 0 50%;
    transform: scaleX(0);
  }
  .js .fix-layer {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    z-index: 3;
    pointer-events: none;
  }
  .js .fix-callout { pointer-events: auto; }
}
/* Phones: the panel sits along the bottom and the system fills the space above */
/* Portrait phones and small tablets: the panel sits along the bottom and the
   system fills the space above. Each chapter is its own card, sitting on the
   same bottom edge, so a short chapter doesn't leave an empty box. Keep the
   query in step with stackMQ in field.js. */
@media (prefers-reduced-motion: no-preference) and (max-width: 899px) and (orientation: portrait) {
  .js .hero-caption-wrap { align-items: flex-end; padding-bottom: 12px; }
  .js .hero-caption { width: 100%; padding: 0; background: none; border: 0; border-radius: 0; }
  .js .chapter {
    align-self: end;
    padding: 16px 18px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
  }
  .js .chapter-title { margin-top: 10px; font-size: 21px; }
  .js .chapter-text { margin-top: 8px; font-size: 14.5px; line-height: 1.5; }
  .js .ch-hops, .js .ch-points, .js .ch-steps { margin-top: 10px; }
  .js .ch-hops p, .js .ch-steps p { display: none; }
  .js .ch-hops li { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 7px 0; }
  .js .ch-hops .glyph { width: 28px; height: 24px; margin-top: 0; }
  .js .ch-points li { padding: 6px 0 6px 20px; font-size: 14px; }
  .js .ch-points li::before { top: calc(6px + .725em - 4px); }
  .js .ch-steps li { padding: 6px 0; }
  .js .chapter-cta { margin-top: 14px; }
  .js .caption-progress { left: 18px; right: 18px; bottom: 12px; }
}

/* Short portrait screens (small phones): tighter type so the system keeps room */
@media (prefers-reduced-motion: no-preference) and (max-width: 899px) and (orientation: portrait) and (max-height: 740px) {
  .js .chapter { padding: 14px 16px 26px; }
  .js .chapter-title { margin-top: 8px; font-size: 19px; }
  .js .chapter-text { margin-top: 6px; font-size: 14px; line-height: 1.45; }
  .js .ch-hops, .js .ch-points, .js .ch-steps { margin-top: 8px; }
  .js .ch-hops li { padding: 5px 0; }
  .js .ch-points li { padding: 5px 0 5px 20px; font-size: 13.5px; }
  .js .ch-points li::before { top: calc(5px + .725em - 4px); }
  .js .ch-steps li { padding: 5px 0; }
  .js .step-hint { margin-top: 8px; font-size: 13px; }
  .js .chapter-cta { margin-top: 12px; }
  .js .caption-progress { left: 16px; right: 16px; }
}

/* Short screens with the panel beside the system (small laptops, tablets in
   landscape): a tighter panel so every chapter fits the height */
@media (prefers-reduced-motion: no-preference) and (max-height: 760px) and (min-width: 900px),
       (prefers-reduced-motion: no-preference) and (max-height: 760px) and (orientation: landscape) {
  .js .hero-caption { padding: 18px 20px 26px; }
  .js .chapter-title { margin-top: 10px; font-size: 22px; }
  .js .chapter-text { margin-top: 10px; font-size: 15px; line-height: 1.5; }
  .js .ch-hops, .js .ch-points, .js .ch-steps { margin-top: 12px; }
  .js .ch-hops li { padding: 8px 0; }
  .js .ch-hops p, .js .ch-steps p { font-size: 14px; }
  .js .ch-points li { padding: 6px 0 6px 22px; font-size: 14px; }
  .js .ch-points li::before { top: calc(6px + .725em - 4px); }
  .js .ch-steps li { padding: 6px 0; }
  .js .chapter-cta { margin-top: 16px; }
}

/* Phones held sideways: the panel stays beside the system, compact */
@media (max-height: 560px) and (orientation: landscape) {
  :root { --header-h: 56px; }
}
@media (prefers-reduced-motion: no-preference) and (max-height: 560px) and (orientation: landscape) {
  .js .hero-intro { padding-top: calc(var(--header-h) + 20px); }
  .js .hero-intro-inner { gap: 14px; }
  .js .lede { font-size: 15px; line-height: 1.5; }
  .js .hero-caption { width: min(400px, 46vw); padding: 14px 16px 24px; }
  .js .chapter-kicker { font-size: 13px; }
  .js .chapter-title { margin-top: 8px; font-size: 18px; }
  .js .chapter-text { margin-top: 6px; font-size: 13.5px; line-height: 1.45; }
  .js .ch-hops, .js .ch-points, .js .ch-steps { margin-top: 8px; }
  .js .ch-hops p, .js .ch-steps p { display: none; }
  .js .ch-hops li { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 5px 0; }
  .js .ch-hops .glyph { width: 28px; height: 24px; margin-top: 0; }
  .js .ch-hops h3, .js .ch-steps h3 { font-size: 14px; }
  .js .ch-points li { padding: 4px 0 4px 20px; font-size: 13px; }
  .js .ch-points li::before { top: calc(4px + .725em - 4px); }
  .js .ch-steps li { padding: 4px 0; }
  .js .step-hint { margin-top: 6px; font-size: 13px; }
  .js .chapter-cta { margin-top: 12px; }
  .js .chapter-cta .btn { min-height: 44px; }
  .js .caption-progress { left: 16px; right: 16px; bottom: 10px; }
}

/* Side layout: the chapter text sits straight on the field, like the
   headline. The field thins out around it, so it needs no card. */
@media (prefers-reduced-motion: no-preference) and (min-width: 900px),
       (prefers-reduced-motion: no-preference) and (orientation: landscape) {
  .js .hero-caption { padding: 0 0 22px; background: none; border: 0; border-radius: 0; }
  .js .caption-progress { left: 0; right: 0; bottom: 0; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) and (min-height: 761px) {
  .js .chapter-title { font-size: clamp(26px, 2.5vw, 38px); }
  .js .chapter-text { font-size: 17px; }
}

/* Sections after the hero */
.section {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: clamp(40px, 6vw, 64px);
}
.label {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
.h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 60px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -.035em;
}
.h2 span { display: block; }
.h3 {
  margin: 14px 0 0;
  font-size: clamp(22px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.section-intro {
  margin: 24px 0 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.55;
}
.lead {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.02em;
}

/* Panels: for the few things that need emphasis */
.panel {
  padding: clamp(24px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.panel-text {
  margin: 12px 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.step-marker.is-accent { background: var(--accent); }

.attacks {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.attack {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 20px;
  align-items: start;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.attack:first-child { margin-top: 0; }
.attack h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.attack p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}
.glyph { display: block; width: 56px; height: 48px; }
.glyph svg { display: block; width: 100%; height: 100%; }

.offer {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.offer p {
  margin: 10px 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.offer-minor .h3 { font-size: 19px; }

/* Divided rows */
.rows {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px 32px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
}
.row:last-child { padding-bottom: 0; }
.row-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.row p {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
@media (min-width: 640px) {
  .row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}

/* Founders: large type on divided rows, not cards */
.big-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.big-list li {
  padding-block: clamp(18px, 2vw, 26px);
  border-top: 1px solid var(--line);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.big-list li:last-child { padding-bottom: 0; }
.founders-label { margin-top: clamp(40px, 5vw, 64px); }

/* Logo band: a full-bleed scrolling row, one colour, hard edges (no fades) */
.band {
  padding-block: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--line);
}
.band-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.band-head .label { margin: 0; }
.marquee-toggle {
  min-height: 44px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.marquee-toggle:hover { color: var(--text); }
.marquee-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  width: max-content;
  margin: 0;
  padding: 0 0 0 var(--pad);
  list-style: none;
  animation: marquee var(--duration, 40s) linear infinite;
}
.marquee:hover .marquee-track,
.marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(var(--shift, 0px) * -1), 0, 0); }
}
.logo {
  display: flex;
  align-items: center;
  height: 48px;
  flex: none;
}
.logo img { display: block; height: var(--logo-h, 28px); width: auto; }
.logo-name {
  color: var(--muted);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -.02em;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-toggle { display: none; }
  .marquee-track {
    flex-wrap: wrap;
    width: auto;
    max-width: calc(var(--container) + var(--pad) * 2);
    margin-inline: auto;
    padding-inline: var(--pad);
    row-gap: 16px;
    animation: none;
  }
}

/* Request form */
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.form-field { display: grid; gap: 8px; }
.form-field label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
.optional { margin-left: 6px; color: var(--muted); font-weight: 400; }
.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  line-height: 1.4;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-color: var(--muted);
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
}
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.form-status:empty { display: none; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-field-wide { grid-column: 1 / -1; }
}

/* Desktop: unequal split, headings alternate sides and stay pinned */
@media (min-width: 1024px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(48px, 6vw, 112px);
  }
  .split-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split-rev .section-head { grid-column: 2; grid-row: 1; }
  .split-rev .section-body { grid-column: 1; grid-row: 1; }
  .section-head {
    position: sticky;
    top: calc(var(--header-h) + 48px);
    align-self: start;
  }
  .section-head-static { position: static; }
}

/* ---------- Services: a pinned dot-matrix display beside four services ---------- */
.services-head { max-width: 860px; margin-bottom: clamp(40px, 6vw, 88px); }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.svc-display { display: none; }
.svc-screen { position: relative; }
.svc-screen canvas { display: block; }
.svc-labels { position: absolute; inset: 0; pointer-events: none; }
.svc-label {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.svc-label.is-on { opacity: 1; }
.svc-labels[hidden] { display: none; }
.svc-inline .svc-label { font-size: 11.5px; }
.svc-label.is-fix { color: var(--fix); }
.svc-now {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
.svc-dots { display: inline-flex; gap: 4px; }
.svc-dots i { width: 8px; height: 8px; background: var(--line-strong); }
.svc-dots i.is-on { background: var(--text); }

.svc { padding-block: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.svc:first-child { padding-top: 0; border-top: 0; }
.svc:last-child { padding-bottom: 0; }
.svc-inline { margin-bottom: 28px; }
.svc-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
.svc-title {
  margin: 14px 0 0;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.svc-lead {
  margin: 16px 0 0;
  max-width: 44ch;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
  text-wrap: pretty;
}
.svc-rows { margin: 28px 0 0; padding: 0; list-style: none; }
.svc-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 32px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.svc-rows li:last-child { padding-bottom: 0; }
.svc-rows h4 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.svc-rows p { margin: 0; max-width: 46ch; color: var(--muted); font-size: 16px; line-height: 1.5; }
@media (min-width: 640px) {
  .svc-rows li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}
@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(48px, 6vw, 112px); }
  .svc-display { display: block; position: sticky; top: calc(var(--header-h) + 56px); align-self: start; }
  .svc-inline { display: none; }
  .svc { min-height: 64vh; padding-block: 0 clamp(72px, 12vh, 136px); border-top: 0; }
  .svc:last-child { min-height: 0; }
}

/* ---------- How it works: a column of cells that fills as the steps pass ---------- */
.psteps { position: relative; margin: 0; padding: 0; list-style: none; }
.pstep { padding: 0 0 clamp(40px, 5vw, 64px) 40px; }
.pstep:nth-last-child(2) { padding-bottom: 0; }
.pstep .step-num { display: block; color: var(--muted); }
.pstep.is-on .step-num { color: var(--fix); }
.pstep-title { margin: 10px 0 0; font-size: clamp(24px, 2.2vw, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.pstep p { margin: 8px 0 0; max-width: 46ch; color: var(--muted); font-size: 17px; line-height: 1.55; }
.prail, .prail-on {
  background-repeat: repeat-y;
  background-size: 8px 8px;
}
.prail {
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 8px;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='5' height='5' fill='%233F3F46'/%3E%3C/svg%3E");
}
/* The blue cells are revealed by two opposite translates, so only transform moves */
.prail-clip { position: absolute; inset: 0; overflow: hidden; transform: translateY(-100%); }
.prail-on {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='5' height='5' fill='%234D8DF7'/%3E%3C/svg%3E");
}
html:not(.js) .prail-clip, html:not(.js) .prail-on { transform: none; }

/* ---------- What you get ---------- */
.rows-flush { margin-top: 0; }
.rows-flush .row:first-child { padding-top: 0; border-top: 0; }

/* ---------- The field returns under the page ---------- */
.ground { position: relative; height: clamp(180px, 24vw, 320px); }
.ground canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

/* Footer */
.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.footer-note { margin: 0; font-size: 14px; color: var(--muted); }

/* Reveal: rise 18px and fade, staggered 160ms */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js.is-ready .reveal {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 160ms);
}

/* Scroll reveal for the sections below the hero */
.js .rv { opacity: 0; transform: translateY(18px); }
.js .rv.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 160ms);
}

@media (prefers-reduced-motion: reduce) {
  .svc-label { transition: none; }
  .prail-clip, .prail-on { transform: none; }
  .js .reveal, .js.is-ready .reveal { opacity: 1; transform: none; transition: none; }
  .js .rv, .js .rv.is-in { opacity: 1; transform: none; transition: none; }
  .btn, .header-cta, .show-cta .header-cta, .step-marker::after { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}
