/* =========================================================================
   Rheo Labs — marketing site
   Tokens are sampled from Design/*.png. Change them here, nowhere else.
   ========================================================================= */

/* ---------- Fonts ------------------------------------------------------- */

@font-face {
  font-family: "Satoshi";
  src: url("../assets/fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../assets/fonts/Satoshi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ------------------------------------------------------ */

:root {
  --bg: #faf9f7;
  --ink: #0a0a0a;
  --blue: #003bfc;
  --lime: #d0fc0a;

  --ink-70: rgba(10, 10, 10, 0.7);
  --ink-55: rgba(10, 10, 10, 0.55);
  --hairline: rgba(10, 10, 10, 0.16);

  --font-sans: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;

  /* Fluid type. Sizes are measured off the boards (1635–1644px wide) and
     scaled by 1440/1640 ≈ 0.876, so 1440 reproduces them. */
  --fs-display: clamp(2.25rem, 3.9vw, 3.5rem); /* board 386px "Your backlog," -> 338px */
  /* Section H2s run larger than the Hero H1 on the boards — deliberately.
     The boards disagree on exactly how much (cap heights imply 72–87px at
     1440), so this is two tiers rather than seven one-offs. */
  --fs-h2: clamp(2rem, 5vw, 4.5rem); /* 72px */
  --fs-h2-lg: clamp(2.25rem, 5.9vw, 5.375rem); /* 85px — About, How it works */
  --fs-h3: clamp(1.25rem, 1.5vw, 1.4375rem);
  --fs-body: clamp(1rem, 1.25vw, 1.125rem); /* 18px */
  --fs-small: clamp(0.9375rem, 1.08vw, 1rem); /* 15.5px */
  --fs-eyebrow: 0.75rem;

  --gutter: clamp(1.25rem, 4.4vw, 4rem);
  --col-gap: clamp(1.75rem, 5.5vw, 5rem);
  --maxw: 1440px;

  --section-y: clamp(3.5rem, 6.5vw, 6rem);
  --speed: 120ms;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
}

/* ---------- Base -------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  /* The edge-bleed decorations extend past the right edge by design;
     clip (not hidden) removes the phantom horizontal scroll range. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.ambient-shader {
  position: fixed;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
  contain: strict;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

/* Visible, consistent focus for keyboard users only. */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--bg);
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-120%);
}
.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Layout primitives ------------------------------------------ */

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.rule {
  border: 0;
  border-top: 1px solid var(--ink);
  margin: 0;
}

.section {
  padding-block: var(--section-y);
}

/* Italic display words: "autopilot.", "work.", "Let it run." … */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Em-dash + uppercase label */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--ink);
  flex: none;
}

.lede {
  font-size: var(--fs-body);
  line-height: 1.6;
  max-width: 42ch;
}

/* Lime bullet + line, e.g. "Designed to run for about $200/month…" */
.dot-line {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.dot-line::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  transform: translateY(-1px);
}

/* ---------- Controls ---------------------------------------------------- */

/* Round arrow chip used inside buttons and links */
.chip {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  transition: transform var(--speed) var(--ease);
}
.chip svg {
  width: 11px;
  height: 11px;
}

/* Solid black CTA — "BOOK A CALL" */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.0625rem 1.25rem 1.0625rem 1.75rem;
  background: var(--ink);
  color: var(--bg);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.btn:hover {
  background: var(--blue);
  border-color: var(--blue);
}
.btn:hover .chip {
  transform: translate(2px, -2px);
}
.btn:active {
  transform: translateY(1px);
}

/* Fully rounded header pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.5rem 0.5rem 0.5rem 1.375rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.pill .chip {
  width: 30px;
  height: 30px;
}
.pill:hover {
  background: var(--ink);
  color: var(--bg);
}
.pill:hover .chip {
  transform: translate(2px, -2px);
}

/* Square black arrow button (hero, how-it-works) */
.square-btn {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--speed) var(--ease);
}
.square-btn svg {
  width: 20px;
  height: 20px;
  transition: transform var(--speed) var(--ease);
}
.square-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
}

/* Underlined text link with a lime arrow — "Watch it work ↗" */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.arrow-link span {
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.arrow-link svg {
  width: 15px;
  height: 15px;
  color: var(--lime);
  transition: transform var(--speed) var(--ease);
}
.arrow-link:hover span {
  color: var(--blue);
  border-color: var(--blue);
}
.arrow-link:hover svg {
  transform: translate(2px, -2px);
}

/* Small outlined badge — "RUNS FOR ~$40/MO" */
.badge {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Header ------------------------------------------------------ */

.header {
  position: relative;
  z-index: 20;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.375rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--blue);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark__mark {
  display: block;
  flex: 0 0 auto;
  width: 2.842rem;
  height: 2rem;
}
.nav {
  display: flex;
  gap: clamp(1.5rem, 3.4vw, 3.25rem);
}
.nav a {
  position: relative;
  font-size: var(--fs-small);
  text-decoration: none;
  padding-block: 0.25rem;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

/* Desktop uses the header pill; this duplicate only appears in the mobile menu. */
.nav__cta {
  display: none;
}
.nav__cta::after {
  display: none;
}

/* Mobile menu toggle */
.menu-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Hero -------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(2rem, 4vw, 3.25rem) clamp(2rem, 3vw, 3rem);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 27%) minmax(0, 1fr) minmax(0, 21%);
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  min-height: min(60vh, 520px);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}
.hero__title {
  font-size: var(--fs-display);
  line-height: 1.08; /* board line pitch 70px @1644 -> 61px @1440 */
  white-space: nowrap;
}
.hero__rotating-word {
  display: inline-block;
}
.hero__title .serif {
  /* optical match: the serif italic reads smaller at the same px size */
  font-size: 1.08em;
}
/* The Hero lede is set noticeably larger and airier than body copy elsewhere:
   board measures 25px on 45px leading, i.e. ~22px/1.72 at 1440. */
.hero__copy .lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  line-height: 1.72;
  max-width: 13.5em;
}

/* Custom AI agent orchestration map */
.agent-map {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  aspect-ratio: 1;
}
.agent-map__stage {
  position: absolute;
  inset: 5%;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 25% 25%;
}
.agent-map__stage::before,
.agent-map__stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.agent-map__stage::before {
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 59, 252, 0.075), transparent 42%);
}
.agent-map__stage::after {
  inset: 12px;
  width: 22px;
  height: 22px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.agent-map__legend {
  position: absolute;
  z-index: 5;
  top: 4.5%;
  left: 5%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-55);
  font-size: clamp(0.5625rem, 1.25vw, 0.6875rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.agent-map__legend span {
  width: 22px;
  height: 1px;
  background: var(--ink);
}
.agent-card,
.agent-core {
  position: absolute;
  z-index: 4;
  background: var(--bg);
  border: 1px solid var(--ink);
}
.agent-card {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 1vw, 0.5625rem);
  min-height: 13%;
  padding: clamp(0.4rem, 1.1vw, 0.5625rem);
}
.agent-card__index {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(1.3rem, 3.6vw, 1.625rem);
  aspect-ratio: 1;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-size: clamp(0.5rem, 1.1vw, 0.5625rem);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.agent-card__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.08rem;
  line-height: 1.15;
}
.agent-card__copy b,
.agent-core b {
  font-size: clamp(0.6875rem, 1.7vw, 0.875rem);
  letter-spacing: -0.02em;
}
.agent-card__copy small,
.agent-core small {
  overflow: hidden;
  color: var(--ink-55);
  font-size: clamp(0.5rem, 1.2vw, 0.625rem);
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
}
.agent-card--lead {
  left: 2%;
  top: 43.5%;
  width: 26%;
}
.agent-card--tool {
  right: 2%;
  width: 26%;
}
.agent-card--crm {
  top: 17%;
}
.agent-card--email {
  top: 43.5%;
}
.agent-card--calendar {
  top: 70%;
}
.agent-core {
  left: 36%;
  top: 36%;
  display: flex;
  width: 28%;
  height: 28%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  /* top padding reserves the status-pill strip so the centred stack can
     never collide with it, at any stage size */
  padding: clamp(1.05rem, 3vw, 1.35rem) clamp(0.4rem, 1.2vw, 0.625rem) clamp(0.4rem, 1.2vw, 0.625rem);
  border-color: var(--blue);
  box-shadow: 0 0 30px rgba(0, 59, 252, 0.1);
  text-align: center;
}
.agent-core__status {
  position: absolute;
  top: clamp(0.3rem, 1vw, 0.5rem);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--blue);
  font-size: clamp(0.4375rem, 1.1vw, 0.5625rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}
.agent-core__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(208, 252, 10, 0.24);
}
.agent-core__title {
  font-size: clamp(0.8125rem, 2vw, 1.0625rem);
}
.agent-team {
  display: grid;
  width: 96%;
  grid-template-columns: minmax(0, 1fr) 6px minmax(0, 1fr) 6px minmax(0, 1fr);
  align-items: center;
}
.agent-unit {
  display: flex;
  min-width: 0;
  min-height: clamp(1.9rem, 5.5vw, 2.5rem);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  border: 1px solid var(--blue);
  background: var(--bg);
  color: var(--blue);
}
.agent-unit i {
  font-size: clamp(0.375rem, 0.9vw, 0.5rem);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.agent-unit b {
  overflow: hidden;
  max-width: 100%;
  font-size: clamp(0.4375rem, 1.05vw, 0.5625rem);
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agent-team__link {
  display: block;
  height: 1px;
  background: var(--blue);
}
/* The caption is wider than the core at a readable size — let it wrap in
   balanced lines instead of ellipsizing. */
.agent-core > small {
  overflow: visible;
  white-space: normal;
  text-wrap: balance;
  text-overflow: clip;
  line-height: 1.35;
  font-size: clamp(0.4375rem, 1.1vw, 0.5625rem);
  letter-spacing: 0.02em;
}
.agent-card--result {
  left: 33%;
  bottom: 3%;
  width: 34%;
  min-height: 12%;
  border-color: var(--blue);
}
.agent-card__complete {
  position: relative;
  flex: 0 0 auto;
  width: clamp(1.3rem, 3.6vw, 1.625rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lime);
}
.agent-card__complete::after {
  content: "";
  position: absolute;
  left: 29%;
  top: 24%;
  width: 34%;
  height: 20%;
  border-left: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(-45deg);
}
.agent-line {
  position: absolute;
  z-index: 2;
  display: block;
  background: var(--blue);
}
/* Line geometry. Cards: lead 2–28, core 36–64, tools 72–98 (LTR).
   The trunk sits in the 8%-wide gap between core and tools; branches run
   from the trunk to the card edge so nothing overlaps a card. */
.agent-line--lead {
  left: 28%;
  top: 50%;
  width: 8%;
  height: 1px;
}
.agent-line--out {
  left: 64%;
  top: 50%;
  width: 4%;
  height: 1px;
}
.agent-line--trunk {
  left: 68%;
  top: 23.5%;
  width: 1px;
  height: 53%;
}
.agent-line--crm,
.agent-line--email,
.agent-line--calendar {
  left: 68%;
  width: 4%;
  height: 1px;
}
.agent-line--crm { top: 23.5%; }
.agent-line--email { top: 50%; }
.agent-line--calendar { top: 76.5%; }
.agent-line--result {
  left: 50%;
  top: 64%;
  width: 1px;
  height: 21%;
}
.agent-map--reverse .agent-card--lead {
  right: 2%;
  left: auto;
}
.agent-map--reverse .agent-card--tool {
  right: auto;
  left: 2%;
}
.agent-map--reverse .agent-line--lead {
  left: 64%;
}
.agent-map--reverse .agent-line--out {
  left: 32%;
}
.agent-map--reverse .agent-line--trunk {
  left: 32%;
}
.agent-map--reverse .agent-line--crm,
.agent-map--reverse .agent-line--email,
.agent-map--reverse .agent-line--calendar {
  left: 28%;
}
.agent-map__signal {
  position: absolute;
  z-index: 6;
  left: 28%;
  top: 50%;
  width: 9px;
  height: 9px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 1px var(--blue), 0 0 14px rgba(0, 59, 252, 0.45);
  transform: translate(-50%, -50%);
}

.hero__rail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.hero__rail-copy {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.hero__rail h2 {
  font-size: clamp(1.375rem, 1.9vw, 1.75rem);
}
.hero__rail p {
  font-size: var(--fs-small);
  color: var(--ink-70);
  max-width: 24ch;
}

/* Vertical 01–03 index pinned to the right edge */
.hero__index {
  position: absolute;
  right: calc(var(--gutter) / 3);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-55);
}
/* vertical-rl belongs on the numerals, not the container: in a vertical
   writing mode the flex column axis turns horizontal and 01/03 sit side by side. */
.hero__index span {
  writing-mode: vertical-rl;
}
.hero__index i {
  width: 1px;
  height: 54px;
  background: var(--hairline);
}

.hero__note {
  justify-content: center;
  text-align: center;
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* ---------- Section head (shared) --------------------------------------- */

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
}
.section__head h2 {
  font-size: var(--fs-h2);
  margin-top: 1.25rem;
}
.section__head-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 0.375rem;
}

/* Systems reads as one left-aligned block (eyebrow, H2, then its paragraphs),
   with only the $40/month line set to the right. */
.section__head--systems {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
.section__head--systems .section__head-copy h2 {
  margin-bottom: 0.5rem;
}
.section__head--systems .lede {
  max-width: 46ch;
}
.section__head--systems .dot-line {
  font-size: var(--fs-small);
  justify-content: flex-end;
}

/* ---------- Systems (Watch the systems work) ---------------------------- */

/* Equal columns with the divider centred in the gap: every thumbnail is the
   same width and the outer cards stay flush with the page margin. */
.systems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--col-gap);
}
.system {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-block: clamp(1.5rem, 2.2vw, 2rem);
}
.system + .system::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--col-gap) / -2);
  width: 1px;
  background: var(--ink);
}
.system__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-55);
}

/* Thumbnail: line-art in a tinted frame with a centred play control */
/* Board 8 measures the frame at 418x232 with a cool blue-white fill — set
   opaque, not as an alpha wash, which the warm page turns muddy. */
.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 418 / 232;
  border: 1px solid rgba(0, 59, 252, 0.14);
  background: linear-gradient(180deg, #f1f4fe, #fafbfe);
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* the boards' depth comes from a blue glow, not a shadow */
  filter: drop-shadow(0 0 6px rgba(0, 59, 252, 0.28));
}
.thumb__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--ink);
  border: 0;
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease);
}
.thumb__play svg {
  width: 15px;
  height: 15px;
  margin-left: 2px;
}
.thumb__play:hover {
  background: var(--blue);
  transform: translate(-50%, -50%) scale(1.06);
}
.system__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
/* On the boards the card text sits in a narrower measure than the thumbnail. */
.system h3 {
  font-size: var(--fs-h3);
  line-height: 1.15;
  max-width: 11.5em;
}
.system p {
  font-size: var(--fs-small);
  color: var(--ink-70);
  max-width: 34ch;
}
.system .badge {
  margin-top: 0.25rem;
}

/* ---------- Costs (The bill after the build) ---------------------------- */

.costs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2rem, 4vw, 3.5rem);
}
.cost__label {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.cost__label--blue {
  color: var(--blue);
}
/* fit-content, so the arrow chip anchors to the numerals rather than to the
   far edge of the grid column (which pushes it off-screen). */
.cost__figure {
  position: relative;
  display: flex;
  width: fit-content;
  align-items: baseline;
  gap: 0.375rem;
  font-size: clamp(3.25rem, 8.5vw, 7.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.cost__figure--blue {
  color: var(--blue);
}
.cost__per {
  font-size: 0.19em;
  font-weight: 400;
  letter-spacing: 0;
  align-self: flex-end;
  padding-bottom: 0.4em;
}
.cost__caption {
  margin-top: 1.25rem;
  font-size: var(--fs-body);
  color: var(--ink-70);
  max-width: 26ch;
}
/* Board 7: 52px chip sitting just above/right of the figure. */
.cost__chip {
  position: absolute;
  top: -0.12em;
  right: -0.4em;
  width: 0.45em;
  height: 0.45em;
}
.cost__chip .chip {
  width: 100%;
  height: 100%;
}
.cost__chip .chip svg {
  width: 42%;
  height: 42%;
}

/* Vertical divider with the arrow crossing it */
.costs__mid {
  position: relative;
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 90px;
}
.costs__mid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--hairline);
}
.costs__mid svg {
  position: relative;
  width: 100%;
  height: 12px;
  color: var(--ink);
}

.costs__close {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding-top: clamp(2rem, 3.5vw, 3rem);
  text-align: center;
}
.costs__close p {
  max-width: 62ch;
}

/* ---------- How it works ------------------------------------------------ */

.how__head h2 {
  font-size: var(--fs-h2-lg);
  margin-top: 1.25rem;
}
/* short rule under "Let it run." — board 6 has it flush left, not centred */
.how__head hr {
  width: 148px;
  margin: 1.5rem 0 0;
  border: 0;
  border-top: 1px solid var(--ink);
}

.timeline {
  position: relative;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  height: 66px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--hairline);
  transform: translateY(-50%);
}
.timeline__progress {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  transform: translateY(-50%);
  transform-origin: left center;
}
/* One node centred over each step column. The boards space these unevenly
   (11% / 45% / 86% of the rail), which reads as noise in the render — only
   the third lands on its column centre. Regular beats reproducing the wobble. */
.timeline ol {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--col-gap);
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}
.timeline li {
  display: grid;
  place-items: center;
  height: 100%;
}
.node {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--bg);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.node--active {
  background: var(--lime);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--col-gap);
  margin-top: clamp(1.5rem, 2.5vw, 2.25rem);
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.step + .step::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--col-gap) / -2);
  width: 1px;
  background: var(--hairline);
}
.step__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.step h3 {
  font-size: var(--fs-h3);
}
.step p {
  font-size: var(--fs-body);
  color: var(--ink-70);
}
.how__end {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* ---------- About ------------------------------------------------------- */

.about {
  position: relative;
}
.about__head {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.about__head h2 {
  font-size: var(--fs-h2-lg);
  margin-top: 1.5rem;
  max-width: 18ch;
}
.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--col-gap);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
}
.col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.col + .col::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--col-gap) / -2);
  width: 1px;
  background: var(--hairline);
}
.col__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.col p {
  font-size: var(--fs-body);
  color: var(--ink-70);
}
.about__close {
  justify-content: center;
  text-align: center;
  font-size: clamp(1.0625rem, 1.7vw, 1.5rem);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
}

/* Decorative background art — never interactive, hidden from AT */
.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
/* Opacities keep these at the boards' whisper level — they sit under the
   copy and must never compete with it. */
.deco--about {
  top: -6%;
  right: -2%;
  width: min(52%, 720px);
  opacity: 0.75;
}
.deco--faq-net {
  top: -2%;
  right: -2%;
  width: min(26%, 330px);
  opacity: 0.8;
}

/* ---------- FAQ --------------------------------------------------------- */

.faq {
  position: relative;
}
.faq__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.faq__intro h2 {
  font-size: clamp(1.875rem, 3.6vw, 3.25rem);
  margin-top: 1.5rem;
}
.faq__intro p {
  margin-top: 1.5rem;
  font-size: var(--fs-small);
  color: var(--ink-70);
  max-width: 34ch;
}

.faq__list {
  border-top: 1px solid var(--ink);
}
.faq__item {
  border-bottom: 1px solid var(--ink);
}
.faq__q {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.5rem);
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker {
  display: none;
}
.faq__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-55);
}
.faq__q h3 {
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  letter-spacing: -0.02em;
  transition: color var(--speed) var(--ease);
}
.faq__q:hover h3 {
  color: var(--blue);
}
.faq__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.faq__icon svg {
  width: 12px;
  height: 12px;
}
/* Closed rows use an outlined plus; the open row uses a filled lime minus. */
.faq__icon .minus {
  display: none;
}
.faq__item[open] .faq__icon {
  background: var(--lime);
  border-color: var(--lime);
}
.faq__item[open] .faq__icon .minus {
  display: block;
}
.faq__item[open] .faq__icon .plus {
  display: none;
}

/* No height here: closed rows are hidden natively by <details>, so the panel
   still works with JS off. site.js sets an inline height only while animating. */
.faq__a {
  overflow: hidden;
  transition: height 180ms var(--ease);
}
.faq__a p {
  padding: 0 4.25rem 1.75rem calc(0.75rem + 2.5rem);
  font-size: var(--fs-body);
  color: var(--ink-70);
  max-width: 62ch;
}
.faq__foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  font-size: var(--fs-small);
}

/* ---------- Closing CTA ------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
}
.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.cta__eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.cta h2 {
  font-size: clamp(2.125rem, 4.6vw, 4rem);
  max-width: 18ch;
}
.cta h2 .serif {
  display: block;
  color: var(--blue);
  font-size: 1.12em;
  margin-top: 0.1em;
}
.cta__sub {
  font-size: var(--fs-small);
  color: var(--ink-70);
  max-width: 52ch;
}
.cta__foot {
  font-size: var(--fs-small);
  color: var(--ink-55);
}

/* ---------- Footer ------------------------------------------------------ */

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 1.75rem;
  font-size: var(--fs-small);
  color: var(--ink-70);
}
.footer__nav {
  display: flex;
  gap: 1.75rem;
}
.footer__nav a {
  text-decoration: none;
}
.footer__nav a:hover {
  color: var(--blue);
}

/* ---------- Chat bubble ------------------------------------------------- */

.chat {
  position: fixed;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: 30;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--ink);
  border: 0;
  color: var(--bg);
  cursor: pointer;
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease);
}
.chat:hover {
  transform: scale(1.05);
}
.chat svg {
  width: 24px;
  height: 24px;
}
.chat::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid var(--ink);
}

/* ---------- Video dialog ------------------------------------------------ */

.dialog {
  width: min(1040px, 92vw);
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--bg);
}
.dialog::backdrop {
  background: rgba(10, 10, 10, 0.72);
}
.dialog video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}
.dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem 0.875rem 1.25rem;
  border-bottom: 1px solid var(--ink);
}
.dialog__bar strong {
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dialog__close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.dialog__close svg {
  width: 12px;
  height: 12px;
}

/* =========================================================================
   Responsive — the boards' intent held at every width
   ========================================================================= */

@media (max-width: 1100px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 2.5rem;
  }
  .agent-map {
    order: -1;
    grid-column: 1 / -1;
    max-width: 440px;
  }
  .hero__index {
    display: none;
  }
  .faq__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .section__head {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .header .pill {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }

  /* Stacked disclosure menu — no overlay, no pop-up */
  .nav.is-open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--ink);
  }
  .nav.is-open a {
    padding-block: 0.875rem;
    border-top: 1px solid var(--hairline);
    font-size: 1rem;
  }
  .nav.is-open .nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    margin-top: 0.875rem;
    padding: 0.5rem 0.5rem 0.5rem 1.375rem;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-weight: 700;
    align-self: flex-start;
  }

  /* Stacked: the vertical dividers become horizontal ones between rows. */
  .systems,
  .steps,
  .cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .system + .system::before,
  .col + .col::before {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
  }
  /* Steps reuse ::before for the number circle on mobile (see below), so
     their divider is a border instead. */
  .step + .step {
    border-top: 1px solid var(--hairline);
  }
  .system,
  .step,
  .col {
    padding-block: 2rem;
  }
  .system + .system::before {
    background: var(--ink);
  }
  .system h3,
  .system p {
    max-width: 40ch;
  }

  .costs__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2rem;
  }
  .costs__mid {
    min-height: 72px;
  }
  .costs__mid::before {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    width: 100%;
    height: 1px;
  }
  .costs__mid svg {
    width: 46px;
    height: 12px;
    transform: rotate(90deg);
  }
  .cost__chip {
    right: -1.6em;
  }

  /* Timeline turns vertical so 01/02/03 still lead their columns */
  .timeline {
    display: none;
  }
  .step {
    position: relative;
    padding-left: 4.5rem;
  }
  /* .steps .step outranks the desktop `.step + .step::before` divider,
     which would otherwise crush the 02/03 circles into a 1px line. */
  .steps .step::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 2rem;
    bottom: auto;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: none;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
  }
  .step:last-child::before {
    background: var(--lime);
  }
  .how__end {
    justify-content: flex-start;
  }

  .about__close {
    padding-left: 0;
  }
  .faq__a p {
    padding-right: 0;
    padding-left: 2.5rem;
  }
  .faq__q {
    gap: 1rem;
  }
}

@media (max-width: 620px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .agent-map__stage {
    inset: 2%;
  }
  .agent-card {
    gap: 0.35rem;
    padding: 0.35rem;
  }
  .agent-card__index,
  .agent-card__complete {
    width: 1.2rem;
  }
  .agent-card__copy b,
  .agent-core b {
    font-size: 0.625rem;
  }
  .agent-card__copy small {
    display: none;
  }
  .agent-core small {
    max-width: 9ch;
    font-size: 0.5rem;
    white-space: normal;
  }
  .agent-core > small {
    display: none;
  }
  .agent-team {
    width: 94%;
    grid-template-columns: minmax(0, 1fr) 4px minmax(0, 1fr) 4px minmax(0, 1fr);
  }
  .agent-unit {
    min-height: 1.55rem;
  }
  .agent-unit i {
    font-size: 0.35rem;
  }
  .agent-unit b {
    font-size: 0.4rem;
  }
  .agent-core__status {
    font-size: 0;
  }
  .hero__rail {
    padding-top: 0.5rem;
  }
  .hero__note {
    justify-content: center;
    text-align: center;
  }
  .btn {
    width: 100%;
    justify-content: space-between;
  }
  .chat {
    width: 54px;
    height: 54px;
  }
  .chat svg {
    width: 21px;
    height: 21px;
  }
  .faq__q {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .faq__num {
    display: none;
  }
  .faq__a p {
    padding-left: 0;
  }
}

/* =========================================================================
   Reduced motion — no orchestration sequence, transitions, or movement
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .agent-map__signal {
    display: none;
  }
}

@media print {
  .ambient-shader {
    display: none;
  }
}
