/* ============================================================
   Momentum — marketing site, v3
   Layout, motion and type modeled on scale.com: a white page that
   goes dark as the hero card recedes into a 3D panel, regular-weight
   grotesk headlines, mono labels, light-gray sheets with white cards,
   a dark-green statement panel, a taupe CTA and a black footer.
   ============================================================ */

/* ---- Fonts (self-hosted) ------------------------------------
   Display/body: General Sans (Fontshare, ITF Free Font License).
   Mono: JetBrains Mono (OFL) — variable file covering 400–500.
   ------------------------------------------------------------- */
@font-face {
  font-family: "General Sans";
  src: url("../fonts/general-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/general-sans-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/general-sans-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/general-sans-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  font-weight: 400 500; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --white:    #ffffff;
  --black:    #000000;
  --ink:      #0a0a0a;
  --gray-50:  #f7f7f7;
  --gray-100: #f2f2f2;
  --gray-200: #eaeaea;
  --gray-300: #d9d9d9;
  --gray-400: #c7c7c7;
  --gray-500: #929292;
  --gray-600: #7f7f7f;
  --gray-700: #575757;

  --green:      #193a29;
  --green-deep: #0c1d14;
  --green-soft: #8fb9a0;
  --taupe:      #54493e;
  --taupe-soft: #8a7968;
  --sand:       #a99a85;
  --warn:       #e9c46a;
  --neg:        #b5483a;

  --on-dark:       #f5f5f4;
  --on-dark-dim:   rgba(245, 245, 244, 0.62);
  --on-dark-faint: rgba(245, 245, 244, 0.38);

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);   /* text column gutter */
  --edge: 24px;                     /* outer margin of full-bleed cards */
  --edge-b: 24px;                   /* hero card bottom margin */
  --bar-h: 40px;                    /* announcement bar (JS sets 0 once dismissed) */
  --nav-h: 88px;
  --r-card: 24px;

  --font-display: "General Sans", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 900px) {
  :root { --edge: 12px; --edge-b: 16px; --nav-h: 64px; --r-card: 18px; }
}

/* ---- Reset / base -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  font-family: var(--font-display);
  font-size: 16px; line-height: 1.5; font-weight: 400;
  background: var(--white); color: var(--ink);
  overflow-x: hidden;
}
body.page-home { background: var(--black); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--green); color: var(--white); }
:focus-visible { outline: 2px solid var(--green-soft); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { position: relative; padding-block: clamp(72px, 10vw, 150px); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Type ------------------------------------------------------ */
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
.display { font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.025em; }
.h2 { font-size: clamp(2.1rem, 4.6vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; }
.h3 { font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.2; letter-spacing: -0.015em; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--gray-700); max-width: 46ch; }
.label {
  font-family: var(--font-mono); font-size: 11px; line-height: 1.5;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-500);
}
.dim { color: var(--gray-500); }
[data-theme="dark"] .lede, .theme-dark .lede { color: var(--on-dark-dim); }
code { font-family: var(--font-mono); font-size: 0.88em; background: rgba(0,0,0,0.06); padding: 1px 5px; border-radius: 4px; }

/* ---- Buttons (Scale: 40px tall, 8px radius, regular weight) ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 40px; padding: 0 16px; border-radius: 8px;
  font-size: 15px; font-weight: 400; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn .chev { width: 12px; height: 12px; flex: none; transition: transform .25s var(--ease); }
.btn:hover .chev { transform: translateX(2px); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: #222; }
.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { background: var(--gray-100); }
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: #22503a; }
.btn--gray { background: rgba(0,0,0,0.07); color: var(--ink); }
.btn--gray:hover { background: rgba(0,0,0,0.12); }
.btn--outline { border: 1px solid var(--gray-400); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--outline-dark { border: 1px solid rgba(255,255,255,0.28); color: var(--on-dark); }
.btn--outline-dark:hover { border-color: rgba(255,255,255,0.7); }

/* ============================================================
   ANNOUNCEMENT BAR + NAV
   The bar sits at the very top of the page and scrolls away; the
   fixed nav starts just under it and slides up to top:0 as it goes
   (JS sets `top`). The nav takes its colors from whatever section
   is under it (data-theme="light|dark"), hides while scrolling down
   and comes back on the way up.
   ============================================================ */
.bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 101;
  height: var(--bar-h); display: flex; align-items: center; justify-content: center;
  padding: 0 48px; background: var(--black); color: var(--white);
  font-size: 14px; text-align: center;
}
.bar p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar a { display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; color: var(--white); }
.bar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bar__close { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; color: rgba(255,255,255,0.7); }
.bar__close:hover { color: var(--white); }
.bar-hidden .bar { display: none; }
@media (max-width: 600px) { .bar { font-size: 12.5px; padding: 0 40px 0 14px; } .bar a { margin-left: 6px; } }

.nav {
  position: fixed; top: var(--bar-h); left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 36px;
  padding: 0 var(--edge);
  color: var(--ink);
  transition: transform .45s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-scrolled { background: rgba(255,255,255,0.82); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: rgba(0,0,0,0.06); }
.nav--dark { color: var(--on-dark); }
.nav--dark.is-scrolled { background: rgba(0,0,0,0.6); border-bottom-color: rgba(255,255,255,0.06); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; flex: none; }
.nav__logo { height: 22px; width: auto; transition: filter .35s var(--ease); }
/* the logo is white/silver: flip it to dark on light backgrounds (hue-rotate keeps the bronze) */
.nav:not(.nav--dark) .nav__logo, .on-light-logo { filter: invert(1) hue-rotate(180deg); }
.nav__links { display: flex; align-items: center; gap: 28px; flex: 1; }
.nav__links a { font-size: 14px; opacity: 0.9; transition: opacity .2s; }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
/* Temporarily hidden from the nav (not deleted — product.html itself is untouched).
   Remove this rule to bring it back. */
.nav__docs-link { display: none !important; }
.nav__cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav .btn--solid { background: var(--black); color: var(--white); }
.nav--dark .btn--solid { background: var(--white); color: var(--black); }
.nav__burger { display: none; width: 40px; height: 40px; border-radius: 8px; background: rgba(0,0,0,0.06); position: relative; }
.nav--dark .nav__burger { background: rgba(255,255,255,0.12); }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 23px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.nav__mobile { display: none; }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__mobile {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    padding: 12px var(--edge) 28px;
    background: var(--white); color: var(--ink);
    border-bottom: 1px solid var(--gray-200);
    opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open .nav__mobile { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .nav.is-open { background: var(--white); color: var(--ink); }
  .nav.is-open .nav__logo { filter: invert(1) hue-rotate(180deg); }
  .nav.is-open .btn--solid { background: var(--black); color: var(--white); }
  .nav__mobile a { padding: 14px 0; font-size: 20px; border-bottom: 1px solid var(--gray-200); }
}

/* ============================================================
   HERO → 3D PANEL (index)
   The stage pins for ~4.6 viewports (GSAP). At rest: a white page and a
   full-width photo card under the nav, headline centered on it. On
   scroll the page goes black, the card shrinks into a tilted panel and
   pulls apart into layers — photo, glass panes, and drawn overlays at
   different depths — and three chapters play out:
     1  decisions   overlay traces the robots (boxes, joints, path)
     2  complexity  log panes fan out behind the photo
     3  clarity     the fan collapses; a clean trace card names the cause
   All geometry is driven by JS (see buildHero in main.js); the CSS
   here is the at-rest state, which is also the reduced-motion view.
   ============================================================ */
.hero { position: relative; background: var(--black); }
.hero__stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--white); }
.hero__card {
  position: absolute;
  left: var(--edge); right: var(--edge);
  top: calc(var(--bar-h) + var(--nav-h)); bottom: var(--edge-b);
  perspective: 1000px;
}
.hero__rotor { position: absolute; inset: 0; transform-style: preserve-3d; }
.layer { position: absolute; inset: 0; border-radius: var(--r-card); }
.layer--photo { overflow: hidden; background: #111; }
.layer--photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__veil { position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, rgba(0,0,0,0.5), rgba(0,0,0,0.3)); }
.layer--glass { border: 1px solid rgba(255,255,255,0.34); opacity: 0; }
.layer--ov { opacity: 0; pointer-events: none; }

/* drawn overlays — SVG in the photo's own coordinates (1000×563,
   "slice" = object-fit:cover), so the lines stay on the robots at any size */
.ov-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ov-svg * { vector-effect: non-scaling-stroke; }
.ov-svg .ln { fill: none; stroke: rgba(255,255,255,0.92); stroke-width: 1.3; }
.ov-svg .ln--thin { stroke-width: 1; stroke: rgba(255,255,255,0.6); }
.ov-svg .ln--warn { stroke: var(--warn); stroke-width: 1.5; }
.ov-svg .dots { fill: none; stroke: rgba(255,255,255,0.7); stroke-width: 1; stroke-dasharray: 1.5 5; stroke-linecap: round; }
.ov-svg .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ov-svg .joint { fill: var(--white); }
.ov-svg .tri { fill: rgba(255,255,255,0.85); }
.ov-chip {
  position: absolute; transform: translate(0, -100%);
  font-family: var(--font-mono); font-size: 10px; line-height: 1; letter-spacing: 0.02em;
  color: var(--white); background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 4px; padding: 4px 6px;
  white-space: nowrap; backdrop-filter: blur(3px);
}
.ov-chip--below { transform: translate(0, 6px); }
.ov-chip--warn { color: var(--warn); border-color: rgba(233,196,106,0.55); }

/* chapter 2: log panes that fan out behind the photo */
.fan {
  position: absolute; inset: 0; opacity: 0;
  border-radius: var(--r-card); border: 1px solid rgba(255,255,255,0.3);
  background: rgba(12,12,12,0.35);
  padding: 5% 6%; overflow: hidden;
  font-family: var(--font-mono); font-size: 10px; line-height: 1.8; color: rgba(255,255,255,0.72);
}
.fan p { white-space: nowrap; }
/* each pane's text sits in its own band, so the fanned stack reads as a cascade */
.fan:nth-child(1) { padding-top: 3%; }
.fan:nth-child(2) { padding-top: 12%; }
.fan:nth-child(3) { padding-top: 21%; }
.fan:nth-child(4) { padding-top: 30%; }
.fan:nth-child(5) { padding-top: 39%; }
.fan .w { color: var(--warn); }
.fan .n { color: #e07a6a; }
.fan .t { color: rgba(255,255,255,0.38); }

/* depth connectors: dashed lines turned 90° so they run through the layers */
.zline {
  position: absolute; width: var(--len, 240px); height: 0; opacity: 0;
  border-top: 1px dashed rgba(255,255,255,0.6);
  transform-origin: 0 0;
}

/* chapter 3: one clean trace, the root cause called out */
.tcard {
  position: absolute; left: 50%; top: 9%; width: 47%;
  background: rgba(6,6,6,0.82); border: 1px solid rgba(255,255,255,0.22); border-radius: 12px;
  padding: 11px 12px 12px; backdrop-filter: blur(6px);
  font-family: var(--font-mono); font-size: 9.5px; line-height: 1.35; color: rgba(255,255,255,0.7);
}
.tcard__head { display: flex; justify-content: space-between; gap: 8px; color: rgba(255,255,255,0.45); margin-bottom: 8px; }
.tcard__head b { color: rgba(255,255,255,0.85); font-weight: 500; }
.lane { display: grid; grid-template-columns: 56% 1fr; align-items: center; gap: 8px; padding: 3px 0; }
.lane span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lane i { display: block; height: 7px; border-radius: 3px; background: rgba(143,185,160,0.6); margin-left: var(--l); width: var(--w); }
.lane--warn span { color: var(--warn); }
.lane--warn i { background: var(--warn); box-shadow: 0 0 0 3px rgba(233,196,106,0.18); }
.lane--neg span { color: #f08c7a; }
.lane--neg i { background: #e07a6a; }
.tcard__cause { margin-top: 9px; padding-top: 8px; border-top: 1px dashed rgba(255,255,255,0.18); color: var(--white); }
.tcard__cause em { font-style: normal; color: var(--warn); }

.hero__title {
  position: absolute; z-index: 3; pointer-events: none;
  left: var(--edge); right: var(--edge);
  top: calc(var(--bar-h) + var(--nav-h)); bottom: var(--edge-b);
  display: flex; align-items: center; justify-content: center;
  padding: 0 6%; text-align: center; color: var(--white);
}
.hero__title h1 { max-width: 16ch; text-shadow: 0 2px 40px rgba(0,0,0,0.25); }

.hero__copy { position: absolute; inset: 0; z-index: 3; pointer-events: none; color: var(--on-dark); }
/* positioned by JS (placeCopy in main.js); this is the pre-JS default */
.chapter { position: absolute; left: 4vw; right: 4vw; top: 64%; visibility: hidden; text-align: center; }
.chapter .label { color: var(--on-dark-faint); }
.chapter h2 { margin: 14px auto 0; max-width: 24ch; font-size: clamp(1.45rem, 2.5vw, 2.2rem); line-height: 1.2; letter-spacing: -0.015em; }
.chapter .btn { margin-top: 26px; pointer-events: auto; }
/* chapters 2–3 on desktop: a left-aligned column beside the panel */
.chapter--side { text-align: left; }
.chapter--side h2 { margin-left: 0; max-width: 18ch; font-size: clamp(1.5rem, 2.2vw, 2.1rem); }

/* static fallback: reduced motion, or GSAP missing (JS adds .no-hero-anim) */
.hero-static { display: none; background: var(--black); color: var(--on-dark); padding: clamp(64px, 9vw, 120px) 0; text-align: center; }
.hero-static__ch { padding: clamp(28px, 4vw, 48px) 0; }
.hero-static__ch h2 { margin-top: 14px; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.2; }
.hero-static__ch .btn { margin-top: 24px; }
.hero-static .label { color: var(--on-dark-faint); }
@media (prefers-reduced-motion: reduce) {
  .hero-static { display: block; }
  .hero__copy { display: none; }
}
.no-hero-anim .hero-static { display: block; }
.no-hero-anim .hero__copy { display: none; }

@media (max-width: 900px) {
  .hero__card { perspective: 1000px; }
  .fan { font-size: 7.5px; line-height: 1.7; padding-inline: 5%; }
  .fan p:nth-of-type(n+3) { display: none; }
  .ov-chip { font-size: 8.5px; padding: 3px 4px; }
  .ov-chip--sm-hide { display: none; }
  .tcard { left: 44%; width: 53%; top: 8%; padding: 8px; font-size: 7.5px; }
  .lane { grid-template-columns: 1fr; gap: 3px; padding: 2px 0; }
  .tcard__head span { display: none; }
}

/* ============================================================
   STATEMENT PANEL — taupe (same as the CTA), offset right; words light up with scroll
   ============================================================ */
.statement { background: var(--black); color: var(--on-dark); padding: clamp(80px, 11vw, 160px) var(--edge) clamp(48px, 7vw, 96px); }
.statement__panel {
  margin-left: 27%; min-height: min(84vh, 720px);
  background: var(--taupe); border-radius: var(--r-card);
  padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 64px;
}
.statement__text { font-size: clamp(2rem, 4.4vw, 4rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; max-width: 17ch; }
.statement__text .w { opacity: 0.22; }
.statement__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.statement__stats div { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 18px; }
.statement__stats dt { font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; }
.statement__stats dd { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--on-dark-dim); max-width: 28ch; }
.statement__stats code { background: rgba(255,255,255,0.08); color: var(--on-dark); }
@media (max-width: 900px) {
  .statement__panel { margin-left: 0; min-height: 0; gap: 48px; }
  .statement__stats { grid-template-columns: 1fr; }
}

/* ============================================================
   LIGHT SHEET — the gray part of the page. It enters as a card inset
   from the edges with rounded top corners and widens to full bleed
   (JS animates --sx / --sr).
   ============================================================ */
.sheet {
  background: var(--gray-200); color: var(--ink);
  clip-path: inset(0 var(--sx, 0px) 0 var(--sx, 0px) round var(--sr, 0px) var(--sr, 0px) 0 0);
}

/* centered section head */
.head { max-width: 920px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.head .label { margin-bottom: 18px; }
.head .lede { margin: 22px auto 0; }

/* white rounded container on the gray sheet */
.panel { margin-inline: var(--edge); background: var(--white); border-radius: var(--r-card); padding-block: clamp(56px, 8vw, 110px); }

/* ============================================================
   PIPELINE PANEL (#pipeline) — white card on the gray sheet.
   Instrumented code fans out into evidence chips, evidence converges
   into the agent, the agent hands back a root cause + fix.
   Fans/link are decorative, desktop-only; mobile stacks the stages.
   ============================================================ */
.pipe {
  --pipe-line: rgba(7,7,8,0.55);
  --pipe-dim: #5f5f5f;
  --capH: 58px;
  background: var(--white); color: var(--ink);
  border-radius: var(--r-card);
  padding: clamp(26px, 4.5vw, 50px) clamp(20px, 3.6vw, 46px);
  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr) clamp(26px, 3.5vw, 54px) auto
    clamp(26px, 3.5vw, 54px) auto clamp(26px, 3.5vw, 54px) minmax(0, 1.2fr);
  align-items: stretch;
}
.pipe__stage { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.pipe__viz { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; }
.pipe__cap { text-align: center; margin-top: 16px; min-height: var(--capH); }
.pipe__cap b { display: block; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.pipe__cap span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--pipe-dim); max-width: 24ch; margin-inline: auto; }
.pipe__fan { width: 100%; height: calc(100% - var(--capH) - 16px); align-self: start; display: block; }
.pipe__fan path { fill: none; stroke: var(--pipe-line); stroke-width: 1.5; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.pipe__link { position: relative; align-self: start; height: calc(100% - var(--capH) - 16px); }
.pipe__link::before { content: ""; position: absolute; left: 4px; right: 8px; top: 50%; border-top: 1px dashed var(--pipe-line); }
.pipe__link::after { content: ""; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); border-left: 6px solid rgba(10,10,11,0.5); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.pipe__code { width: 100%; max-width: 300px; background: #0d0d0f; border-radius: 12px; overflow: hidden; font-family: var(--font-mono); font-size: 11px; line-height: 1.7; box-shadow: 0 22px 44px rgba(10,10,11,0.18); }
.pipe__codebar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.pipe__codebar i { width: 8px; height: 8px; border-radius: 50%; background: #2a2a2e; }
.pipe__codebar span { margin-left: 6px; font-size: 10.5px; color: rgba(245,244,241,0.34); }
.pipe__code pre { padding: 12px 14px; overflow-x: auto; color: #9aa0ad; }
.pipe__code .k { color: #c9a7e0; }
.pipe__code .fn { color: var(--green-soft); }
.pipe__code .s { color: #d9b98a; }
.pipe__chips { display: flex; flex-direction: column; gap: 10px; }
.pipe__chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 9px; background: var(--gray-100); border: 1px solid rgba(10,10,11,0.08); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.pipe__chip svg { width: 14px; height: 14px; flex: none; opacity: 0.7; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pipe__agent { position: relative; display: flex; align-items: center; justify-content: center; }
.pipe__alert { position: absolute; bottom: calc(100% + 24px); left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; color: var(--neg); background: rgba(181,72,58,0.07); border: 1px solid rgba(181,72,58,0.4); border-radius: 6px; padding: 4px 10px; }
.pipe__drop { position: absolute; bottom: 100%; left: 50%; width: 0; height: 22px; border-left: 1px dashed var(--pipe-line); }
.pipe__core { position: relative; width: 94px; height: 94px; border-radius: 50%; background: var(--black); display: flex; align-items: center; justify-content: center; box-shadow: 0 22px 46px rgba(10,10,11,0.28); }
.pipe__core::before { content: ""; position: absolute; inset: -9px; border: 1px dashed var(--pipe-line); border-radius: 50%; }
.pipe__core img { width: 56px; height: auto; }
.pipe__verdict { width: 100%; max-width: 330px; background: var(--gray-50); border: 1px solid rgba(10,10,11,0.1); border-radius: 14px; padding: 16px 18px; box-shadow: 0 24px 50px rgba(10,10,11,0.12); }
.pipe__vhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 11px; }
.pipe__vhead .neg { color: var(--neg); }
.pipe__vhead .run { color: var(--pipe-dim); }
.pipe__verdict h4 { font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; margin: 10px 0 6px; }
.pipe__vwhy { font-size: 13px; line-height: 1.55; color: var(--pipe-dim); }
.pipe__vfix { font-size: 13px; line-height: 1.5; margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(10,10,11,0.15); }
.pipe__vfix b { color: var(--green); font-weight: 500; }
.pipe__vmore { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--taupe-soft); }
@media (max-width: 960px) {
  .pipe { display: flex; flex-direction: column; }
  .pipe__fan, .pipe__link { display: none; }
  .pipe__cap { min-height: 0; }
  .pipe__stage:not(:last-child)::after { content: ""; width: 0; height: 26px; border-left: 1px dashed var(--pipe-line); margin: 16px 0 18px; }
  .pipe__agent { margin-top: 56px; }
  .pipe__chips { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: 340px; }
}

/* ============================================================
   SPLIT (text + media) and code window
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split > * { min-width: 0; }
.split--reverse { grid-template-columns: 1.1fr 1fr; }
.split--reverse .split__media { order: -1; }
.split__body .label { margin-bottom: 18px; }
.split__body .h2 { margin-bottom: 22px; }
@media (max-width: 900px) {
  .split, .split--reverse { grid-template-columns: 1fr; gap: 44px; }
  .split--reverse .split__media { order: 0; }
}
.code { background: #0d0d0f; color: #e8e8e8; border-radius: 16px; overflow: hidden; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; box-shadow: 0 30px 70px rgba(0,0,0,0.18); }
.code__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.code__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a2e; }
.code__bar span { margin-left: 8px; font-size: 12px; color: rgba(245,244,241,0.34); }
.code pre { padding: 20px 22px; overflow-x: auto; }
.code .k { color: #c9a7e0; }
.code .fn { color: var(--green-soft); }
.code .s { color: #d9b98a; }
.code .c { color: #62626c; }
.split__body code { background: rgba(0,0,0,0.07); }

/* ============================================================
   VALUE TRACK CARD (#value) — three steps on a dashed rail, each with
   the action and a small result card. Gray card inside the white panel.
   ============================================================ */
.vtrack { --vt-dim: #5f5f5f; background: var(--gray-100); color: var(--ink); border-radius: var(--r-card); padding: clamp(26px, 3.4vw, 40px) clamp(22px, 3.2vw, 38px); }
.vtrack__step { position: relative; padding-left: 34px; }
.vtrack__step + .vtrack__step { margin-top: 28px; }
.vtrack__step:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 20px; bottom: -26px; border-left: 1px dashed rgba(7,7,8,0.3); }
.vtrack__node { position: absolute; left: 0; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--gray-100); border: 2px solid var(--green); }
.vtrack__step--now .vtrack__node { background: var(--green); }
.vtrack__step--now .vtrack__node::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(25,58,41,0.55); animation: nodepulse 2.4s var(--ease) infinite; }
@keyframes nodepulse { 0% { transform: scale(0.55); opacity: 1; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
.vtrack__when { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.vtrack__what { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; margin: 5px 0 12px; }
.vtrack__out { background: var(--white); border: 1px solid rgba(10,10,11,0.08); border-radius: 12px; padding: 12px 15px; box-shadow: 0 14px 30px rgba(10,10,11,0.06); font-size: 14px; line-height: 1.5; }
.vtrack__out p + p { margin-top: 5px; }
.vtrack__out code { color: var(--ink); background: rgba(10,10,11,0.06); }
.vtrack__file { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; padding-bottom: 9px; margin-bottom: 9px; border-bottom: 1px dashed rgba(10,10,11,0.15); }
.vtrack__file svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; opacity: 0.7; }
.vtrack__file span { margin-left: auto; font-size: 11px; color: var(--vt-dim); }
.vtrack__line b, .vtrack__verdict b { font-weight: 500; }
.vtrack__verdict { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.vtrack__neg { color: var(--neg); font-weight: 500; }
.vtrack__ok { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--green); border: 1px solid rgba(25,58,41,0.3); background: rgba(25,58,41,0.06); border-radius: 6px; padding: 2px 8px; }
.vtrack__meta { font-size: 12.5px; color: var(--vt-dim); }
.vtrack__ask { font-family: var(--font-mono); font-size: 12.5px; color: var(--vt-dim); }

/* ============================================================
   BENTO (The latest from Momentum)
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bcard {
  position: relative; overflow: hidden; min-height: clamp(280px, 26vw, 360px);
  border-radius: 16px; background: var(--gray-100); color: var(--ink);
  padding: 24px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .35s var(--ease);
}
a.bcard:hover { transform: translateY(-2px); }
.bcard--wide { grid-column: span 2; }
.bcard__tag { position: absolute; top: 20px; left: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-700); }
.bcard h3 { position: relative; z-index: 2; font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.22; letter-spacing: -0.015em; max-width: 22ch; }
.bcard p { position: relative; z-index: 2; margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--gray-700); max-width: 44ch; }
.bcard__more { position: relative; z-index: 2; margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.bcard__more .chev { width: 11px; height: 11px; }
.bcard--green { background: var(--green); color: var(--on-dark); }
.bcard--green .bcard__tag { color: var(--on-dark-dim); }
.lockup { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 36px); padding-bottom: 60px; }
.lockup__m { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 500; letter-spacing: -0.02em; }
.lockup__m img { height: clamp(30px, 3.6vw, 46px); width: auto; }
.lockup i { width: 1px; height: clamp(40px, 5vw, 64px); background: rgba(255,255,255,0.4); }
.lockup__b { height: clamp(28px, 3.2vw, 40px); width: auto; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bcard--wide { grid-column: auto; }
}

/* ============================================================
   CTA (taupe) and FOOTER (black, closing statement)
   ============================================================ */
.cta-sec { padding: clamp(48px, 7vw, 96px) var(--edge) var(--edge); }
.cta {
  position: relative; overflow: hidden; min-height: min(78vh, 640px);
  background: var(--taupe); color: var(--on-dark); border-radius: var(--r-card);
  display: flex; align-items: flex-end;
  padding: clamp(28px, 6vw, 96px) clamp(24px, 7vw, 110px);
}
.cta__texture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; mix-blend-mode: overlay; pointer-events: none; }
.cta__body { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); line-height: 1.04; max-width: 14ch; }
.cta p { margin: 20px 0 30px; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; color: rgba(245,244,241,0.76); max-width: 40ch; }

.footer { background: var(--black); color: var(--on-dark); padding: clamp(80px, 10vw, 150px) var(--edge) 24px; }
.footer__top { display: grid; grid-template-columns: 117px 1fr; gap: 24px; }
.footer__mark img { width: 44px; height: auto; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 233px)); gap: 32px 24px; }
.footer .label { color: var(--gray-700); font-size: 12px; margin-bottom: 14px; }
.footer__cols a { display: block; padding: 3px 0; font-size: 14px; font-weight: 500; color: var(--on-dark); opacity: 0.92; }
.footer__cols a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer__blaze span { display: block; font-size: 14px; color: var(--on-dark-dim); }
.footer__blaze img { margin-top: 12px; height: 26px; width: auto; opacity: 0.85; }
.footer__statement { margin-top: clamp(80px, 12vw, 200px); font-size: clamp(2.6rem, 8vw, 8.2rem); line-height: 1; letter-spacing: -0.035em; color: var(--gray-600); max-width: 17ch; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(48px, 6vw, 80px); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-600); }
.footer__legal a:hover { color: var(--on-dark); }
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__blaze { grid-column: 1 / -1; }
}

/* ============================================================
   SUBPAGES — white page, rounded photo card with the title in the
   bottom-left (Scale's About pattern), content on white below.
   ============================================================ */
.page-hero { padding: calc(var(--bar-h) + var(--nav-h)) var(--edge) 0; }
.page-hero__card {
  position: relative; overflow: hidden; border-radius: var(--r-card);
  height: min(64svh, 640px); min-height: 380px;
  background: #111; color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 5vw, 64px);
}
.page-hero__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.7)); }
.page-hero__card > :not(img) { position: relative; z-index: 1; }
.page-hero__card .label { color: rgba(255,255,255,0.72); margin-bottom: 14px; }
.page-hero__card h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: 1.04; max-width: 17ch; }
.page-hero__card .lede { margin-top: 18px; color: rgba(255,255,255,0.78); }
.page-hero__card--plain { background: var(--gray-100); color: var(--ink); height: auto; min-height: 380px; }
.page-hero__card--plain::after { display: none; }
.page-hero__card--plain .label { color: var(--gray-500); }
.page-hero__card--plain .lede { color: var(--gray-700); }

.prose { max-width: 66ch; }
.prose p { color: var(--gray-700); margin-bottom: 18px; font-size: 1.05rem; line-height: 1.6; }
.prose h2 { margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul { color: var(--gray-700); margin: 0 0 18px 20px; list-style: disc; }

/* team */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.member { background: var(--gray-100); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; min-height: 300px; }
.member__avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--sand), var(--green)); display: grid; place-items: center; font-size: 20px; font-weight: 500; color: var(--white); margin-bottom: auto; }
.member h3 { margin-top: 40px; font-size: 1.4rem; letter-spacing: -0.015em; }
.member .role { margin: 8px 0 18px; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--gray-700); }
.member a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.member a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .team { grid-template-columns: 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-700); }
.field input, .field textarea {
  width: 100%; background: var(--gray-100); border: 1px solid var(--gray-300); border-radius: 8px;
  padding: 12px 14px; color: var(--ink); font: inherit; font-size: 15px;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { margin-top: 16px; font-size: 14px; color: var(--gray-700); }
.aside-card { background: var(--gray-100); border-radius: 16px; padding: clamp(24px, 3vw, 36px); }
.aside-card .h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 14px; }
.aside-card p { color: var(--gray-700); line-height: 1.6; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* docs */
.spec-table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.spec-table th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-500); font-weight: 400; }
.spec-table td { color: var(--gray-700); }
.spec-table td:first-child { font-family: var(--font-mono); color: var(--green); white-space: nowrap; }
.spec-table .tier { font-family: var(--font-mono); font-size: 11px; color: var(--gray-500); }
.spec-table .tier::before { content: "tier "; }
.spec-table tbody tr:hover { background: var(--gray-50); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.card { background: var(--gray-100); border-radius: 16px; padding: 28px; }
.card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.card p { color: var(--gray-700); font-size: 15px; line-height: 1.6; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

/* ============================================================
   Motion helpers
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* SplitText line masks: each masked line clips at its line box, and
   headings run a tight line-height, so descenders (g, y, p) got cut.
   Extend the clip below the line and pull the next line back up. The
   masks are the only div children .split-lines ever has. */
.split-lines > div { padding-bottom: 0.18em; margin-bottom: -0.18em; }

html.lenis, html.lenis body { scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.42s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
