/* ==========================================================================
   RAMP SMART
   Deep slate ground, two instrument accents: cyan for the machine side,
   amber for the human side. Light "paper" bands break up the dark.
   ========================================================================== */

:root {
  /* ground */
  --void:    #0F1620;   /* full-bleed sections, hero */
  --carbon:  #131B26;   /* page background */
  --tint:    #1C2634;   /* the lifted band */
  --surface: #1A2432;   /* cards, tiles */
  --raised:  #212C3B;   /* wells, code */

  /* structure */
  --line:   #2A3648;
  --line-2: #3A4A63;

  /* text on dark */
  --text:   #FFFFFF;
  --text-2: #A8B6C8;   /* 8.4:1 on carbon */
  --text-3: #8FA2B8;   /* 5.9:1 on carbon */

  /* accents */
  --signal:     #2AD4F0;   /* cyan, machine */
  --signal-dim: #12667A;
  --ember:      #FFB547;   /* amber, human */
  --ember-dim:  #6E4A16;

  /* paper bands */
  --inv-ground: #EEF3F9;
  --inv-text:   #0F1620;
  --inv-text-2: #4A5A6E;
  --inv-line:   #DCE3EC;
  --inv-line-2: #C2CCDA;
  --inv-signal: #0E6D80;
  --inv-ember:  #A05F00;

  /* type */
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* rhythm */
  --radius:  2px;
  --maxw:    1180px;
  --gutter:  28px;
  --section: clamp(72px, 9vw, 132px);
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--signal); color: #04141A; padding: 12px 18px;
  font-weight: 600; font-size: 13px; text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }

.h-hero { font-size: clamp(38px, 6.4vw, 76px); line-height: 0.98; letter-spacing: -0.042em; }
.h-1    { font-size: clamp(32px, 5vw, 56px);   line-height: 1.02; letter-spacing: -0.038em; }
.h-2    { font-size: clamp(25px, 3.2vw, 36px); line-height: 1.08; letter-spacing: -0.03em; }
.h-3    { font-size: clamp(19px, 2vw, 22px);   line-height: 1.24; letter-spacing: -0.018em; }
.h-4    { font-size: 17px; line-height: 1.32; letter-spacing: -0.012em; }

.display {
  font-weight: 600;
  font-size: clamp(38px, min(8.2vw, 10.4vh), 112px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
}
.display--md { font-size: clamp(34px, 6vw, 82px); line-height: 0.98; letter-spacing: -0.04em; }

.numeral {
  font-weight: 600;
  font-size: clamp(90px, 21vw, 300px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.numeral span[data-count] { color: var(--signal); }

.hl      { color: var(--signal); }
.hl-warm { color: var(--ember); }

.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--text-2); max-width: 58ch; margin: 0; }
.sub  { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--text-2); max-width: 50ch; margin: 0; }
.body-2 { color: var(--text-2); }

p { margin: 0; max-width: 66ch; }
.stack > * + * { margin-top: 18px; }
.stack-lg > * + * { margin-top: 28px; }

.eyebrow {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-3); display: block;
}
.label {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
}
.pull {
  font-size: clamp(21px, 2.8vw, 30px);
  line-height: 1.28; letter-spacing: -0.025em;
  max-width: 24ch; margin: 0;
}

/* System labels */

.sys {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex; align-items: center; gap: 9px;
  white-space: nowrap;
}
.sys--dim { color: #7C8EA4; }
.sys .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--signal); flex: none;
  box-shadow: 0 0 0 0 rgba(42,212,240,0.5);
}
.sys .dot.live { animation: pulse 2600ms ease-out infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(42,212,240,0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(42,212,240,0); }
  100% { box-shadow: 0 0 0 0 rgba(42,212,240,0); }
}
@media (prefers-reduced-motion: reduce) { .sys .dot.live { animation: none; } }

.sysbar {
  display: flex; flex-wrap: wrap; gap: 14px 34px; padding: 15px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Motion primitives. Hidden states sit behind html.js so nothing
   disappears when JavaScript is off.
   -------------------------------------------------------------------------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
html.js .reveal.is-in { opacity: 1; transform: none; }

.mask { display: block; overflow: hidden; }
html.js .mask > span {
  display: block;
  transform: translateY(108%);
  transition: transform 1000ms var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
  will-change: transform;
}
html.js .is-in > .mask > span,
html.js .mask.is-in > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .mask > span,
  html.js .os { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* --------------------------------------------------------------------------
   Landing sections
   -------------------------------------------------------------------------- */

.stage { position: relative; padding: clamp(96px, 14vh, 190px) 0; }
.stage--tall { min-height: 88vh; display: flex; align-items: center; }
.stage--tall > .wrap { width: 100%; }
.stage--void { background: var(--void); }

.stage--tint { background: var(--tint); position: relative; overflow: hidden; }
.stage--tint > .wrap { position: relative; z-index: 1; }
.stage--tint::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 120% at 88% 0%, rgba(42,212,240,0.09), transparent 62%);
}

.stage--edge { border-top: 1px solid var(--line); position: relative; }
.stage--edge::after {
  content: "";
  position: absolute; left: 0; top: -1px; height: 1px; width: 168px;
  background: linear-gradient(90deg, var(--signal), transparent);
}

/* Paper band: the whole system inverted onto light ground */

.stage--paper {
  background: var(--inv-ground);
  color: var(--inv-text);
  position: relative;
  overflow: hidden;
}
.stage--paper > .wrap { position: relative; z-index: 1; }
.stage--paper::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(85% 70% at 96% 4%, rgba(42,212,240,0.16), transparent 58%),
    radial-gradient(70% 60% at 2% 98%, rgba(255,181,71,0.15), transparent 60%);
}
.stage--paper .display,
.stage--paper .display--md,
.stage--paper .numeral,
.stage--paper h2,
.stage--paper h3 { color: var(--inv-text); }
.stage--paper .sub,
.stage--paper p { color: var(--inv-text-2); }
.stage--paper .sys { color: #5D7086; }
.stage--paper .sys--dim { color: #566A84; }
.stage--paper .sys .dot { background: var(--inv-signal); box-shadow: none; }
.stage--paper .hl { color: var(--inv-signal); }
.stage--paper .hl-warm { color: var(--inv-ember); }
.stage--paper .spec { background: var(--inv-line); border-color: var(--inv-line); }
.stage--paper .spec > div { background: var(--inv-ground); }
.stage--paper .spec .k { color: var(--inv-signal); }
.stage--paper .spec .v { color: var(--inv-text); }
.stage--paper .alink { background: var(--inv-text); color: var(--inv-ground); border-color: var(--inv-text); }
.stage--paper .alink:hover { background: transparent; color: var(--inv-text); }
.stage--paper .tlink { color: var(--inv-text-2); }
.stage--paper .tlink:hover { color: var(--inv-text); }
.stage--paper .traj path.track { stroke: var(--inv-line-2); }
.stage--paper .traj path.draw { stroke: var(--inv-signal); }
.stage--paper .traj circle.head { fill: var(--inv-ember); }

/* Interior page sections */

.section { padding: var(--section) 0; }
.section--tight { padding: clamp(52px, 6vw, 84px) 0; }
.section--void { background: var(--void); }
.section--rule { border-top: 1px solid var(--line); }

.section--inverse { background: var(--inv-ground); color: var(--inv-text); }
.section--inverse .lede,
.section--inverse .body-2,
.section--inverse p { color: var(--inv-text-2); }
.section--inverse .eyebrow,
.section--inverse .label { color: var(--inv-text-2); }
.section--inverse .h-hero,
.section--inverse .h-1,
.section--inverse .h-2,
.section--inverse .h-3,
.section--inverse .h-4,
.section--inverse .pull { color: var(--inv-text); }
.section--inverse .grid-block { background: var(--inv-line); border-color: var(--inv-line); }
.section--inverse .grid-block__cell { background: var(--inv-ground); }
.section--inverse .grid-block__cell h3,
.section--inverse .grid-block__cell h4 { color: var(--inv-text); }
.section--inverse .grid-block__cell p { color: var(--inv-text-2); }
.section--inverse .grid-block__cell .idx { color: var(--inv-signal); }
.section--inverse .btn--primary { background: var(--inv-text); color: var(--inv-ground); }
.section--inverse .btn--primary:hover { background: var(--inv-text-2); }
.section--inverse .btn--secondary { color: var(--inv-text); border-color: var(--inv-line-2); }
.section--inverse .btn--secondary:hover { border-color: var(--inv-text); color: var(--inv-text); }
.section--inverse .btn--quiet { color: var(--inv-text-2); border-bottom-color: var(--inv-line-2); }
.section--inverse .btn--quiet:hover { color: var(--inv-text); border-bottom-color: var(--inv-text); }
.section--inverse .rule { background: var(--inv-line); }
.section--inverse .num-list li { border-color: var(--inv-line); }
.section--inverse .num-list .n { color: var(--inv-signal); }
.section--inverse .divider-head { border-color: var(--inv-text); }
.section--inverse .railed > .col { border-top-color: var(--inv-line); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.railed {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 0 36px;
  align-items: start;
}
.railed > .rail {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
  padding-top: 12px;
  border-top: 1px solid currentColor;
}
.railed > .col { border-top: 1px solid var(--line); padding-top: 12px; min-width: 0; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--void);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px;
}

.site-header.is-float {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent;
  border-bottom-color: transparent;
  transition: background 380ms ease, border-color 380ms ease;
}
.site-header.is-float .site-header__inner { min-height: 84px; transition: min-height 380ms var(--ease); }
.site-header.is-stuck {
  background: rgba(15,22,32,0.76);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.site-header.is-stuck .site-header__inner { min-height: 64px; }

.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.lockup__mark { width: 24px; height: 24px; flex: none; }
.lockup__name {
  font-size: 15px; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.2em;
  white-space: nowrap; color: var(--text);
}
.lockup__name .a { font-weight: 600; }
.lockup__name .b { font-weight: 400; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-2); text-decoration: none;
  transition: color 140ms ease; white-space: nowrap;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--signal); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--text);
  padding: 9px 13px;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--void);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 22px;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .nav .nav__cta { margin-top: 18px; border-bottom: none; padding: 0; }
}

/* --------------------------------------------------------------------------
   Actions
   -------------------------------------------------------------------------- */

.alink {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  color: #04141A; background: var(--signal); border: 1px solid var(--signal);
  padding: 16px 24px;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}
.alink .arw { transition: transform 260ms var(--ease); display: block; }
.alink:hover { background: transparent; color: var(--signal); }
.alink:hover .arw { transform: translateX(5px); }

.tlink {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--sans); font-weight: 500; font-size: 12.5px;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  color: var(--text-2); padding: 7px 0; position: relative;
  transition: color 220ms ease;
}
.tlink::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 320ms var(--ease);
}
.tlink:hover { color: var(--text); }
.tlink:hover::after { transform: scaleX(1); }
.tlink .arw { transition: transform 260ms var(--ease); }
.tlink:hover .arw { transform: translateX(5px); }

.btn {
  display: inline-block;
  font-family: var(--sans); font-weight: 600; font-size: 12.5px; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none;
  padding: 15px 26px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn--primary { background: var(--signal); color: #04141A; }
.btn--primary:hover { background: #7BE6FA; }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--secondary:hover { border-color: var(--signal); color: var(--signal); }
.btn--quiet {
  background: transparent; color: var(--text-2);
  border: 0; border-bottom: 1px solid var(--line-2);
  border-radius: 0; padding: 7px 0;
}
.btn--quiet:hover { color: var(--text); border-bottom-color: var(--signal); }
.btn--sm { padding: 11px 18px; font-size: 11px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.site-header .nav__cta { display: none; }
.site-header .header-cta { display: inline-flex; }
@media (max-width: 900px) {
  .site-header .header-cta { display: none; }
  .site-header .nav__cta { display: inline-flex; margin-top: 20px; }
}

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

.hero-stage {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  background: var(--void);
  overflow: hidden;
  padding: 132px 0 56px;
}
.hero-stage::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(115% 78% at 12% 6%, rgba(42,212,240,0.13), transparent 58%),
    radial-gradient(95% 70% at 92% 96%, rgba(255,181,71,0.075), transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(120,180,220,0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120,180,220,0.055) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 20%, transparent 78%);
}
.hero-field {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 2200ms ease; pointer-events: none;
}
.hero-field.is-in { opacity: 1; }
.hero-stage .wrap { position: relative; z-index: 1; width: 100%; }
.hero-body { display: grid; gap: clamp(18px, 2.9vh, 36px); max-width: 1020px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center; }

/* Hero layout: copy left, workforce chart right */
.hero-layout { display: grid; gap: clamp(28px, 4vh, 44px) 56px; }
@media (min-width: 1100px) {
  .hero-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; }
  .hero-layout > .sysbar { grid-column: 1 / -1; }
  .hero-stage .display { font-size: clamp(38px, 5.1vw, 82px); }
}

.hero-visual {
  margin: 0;
  max-width: 560px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(28,39,53,0.78) 0%, rgba(18,26,36,0.78) 100%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero-visual__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.traj.hero-chart { height: auto; padding: 14px 12px 0; overflow: visible; }
.hero-chart .grid line { stroke: var(--line); stroke-width: 1; }
.hero-chart .ax { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; fill: var(--text-3); }
.hero-chart .perm { fill: none; stroke: var(--text-3); stroke-width: 1.5; stroke-dasharray: 5 5; }
.hero-chart .mile { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 4; }
/* Chart draws only once the panel has faded in, slowly and evenly, left to right */
.traj.hero-chart path.draw { stroke-width: 2; }
html.js .traj.hero-chart.is-in path.draw { transition: stroke-dashoffset 4200ms cubic-bezier(0.45, 0, 0.3, 1) 1300ms; }
.hero-chart .origin { fill: var(--signal); opacity: 0; transition: opacity 500ms ease 1000ms; }
.hero-chart.is-in .origin { opacity: 1; }
.hero-chart .gap { fill: rgba(255,181,71,0.14); opacity: 0; transition: opacity 1600ms ease 3000ms; }
.hero-chart.is-in .gap { opacity: 1; }
.traj.hero-chart circle.head { transition: opacity 500ms ease 5400ms; }
@media (prefers-reduced-motion: reduce) {
  .hero-chart .origin, .hero-chart .gap, .traj.hero-chart circle.head { opacity: 1; transition: none; }
}

.hero-legend, .traj-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 10px 16px 16px; }
.hero-legend i, .traj-legend i { display: block; width: 16px; height: 0; flex: none; }
.traj-legend .k-total { border-top: 2px solid var(--signal); }
.hero-legend .k-total { border-top: 2px solid var(--signal); }
.hero-legend .k-perm  { border-top: 2px dashed var(--text-3); }
.hero-legend .k-gap   { height: 9px; background: rgba(255,181,71,0.35); }

.page-head {
  background: var(--void);
  padding: clamp(56px, 8vw, 104px) 0 clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.page-head__inner { display: grid; gap: 22px; }

/* --------------------------------------------------------------------------
   Trajectory
   -------------------------------------------------------------------------- */

.traj { display: block; width: 100%; height: clamp(90px, 13vw, 168px); overflow: visible; }
.traj--exit { height: clamp(130px, 19vw, 250px); }
.traj path.track { stroke: var(--line); stroke-width: 1; fill: none; }
.traj path.demand { stroke: var(--text-3); stroke-width: 1.5; stroke-dasharray: 6 6; fill: none; opacity: 0; transition: opacity 900ms ease 400ms; }
.traj.is-in path.demand { opacity: 1; }
.traj-legend { padding: 14px 0 0; }
.traj-legend .k-demand { border-top: 2px dashed var(--text-3); }
.traj path.draw { stroke: var(--signal); stroke-width: 1.5; fill: none; stroke-linecap: round; }
/* Hidden state only with JS. The long gap stops the dash wrapping around and
   appearing mid-path, and the transition only exists once .is-in is set, so the
   jump from the placeholder length to the measured length is never animated. */
html.js .traj path.draw {
  stroke-dasharray: var(--len, 2000) 99999;
  stroke-dashoffset: calc(var(--len, 2000) + 4);
}
html.js .traj.is-in path.draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1800ms var(--ease); }
.traj circle.head { fill: var(--ember); opacity: 0; transition: opacity 500ms ease 1400ms; }
.traj.is-in circle.head { opacity: 1; }
html:not(.js) .traj circle.head { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html.js .traj path.draw { stroke-dashoffset: 0 !important; transition: none !important; }
  .traj circle.head { opacity: 1; transition: none; }
}

/* --------------------------------------------------------------------------
   Diagnostic rows
   -------------------------------------------------------------------------- */

.diag { border-top: 1px solid var(--line); }
.diag__row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 0 24px; align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 300ms ease, padding-left 400ms var(--ease);
}
.diag__row::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: var(--signal);
  transform: scaleY(0); transform-origin: top;
  transition: transform 380ms var(--ease);
}
.diag__row:hover { padding-left: 18px; background: rgba(255,255,255,0.022); }
.diag__row:hover::before { transform: scaleY(1); }
.diag__n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--text-3); }
.diag__t { font-size: clamp(19px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.024em; line-height: 1.15; }
.diag__code {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ember); white-space: nowrap;
}
.diag__more {
  grid-column: 2 / -1;
  max-height: 0; overflow: hidden; opacity: 0;
  color: var(--text-2); font-size: 15px; line-height: 1.55; max-width: 60ch;
  transition: max-height 460ms var(--ease), opacity 320ms ease, margin-top 460ms var(--ease);
}
.diag__row:hover .diag__more,
.diag__row:focus-within .diag__more { max-height: 140px; opacity: 1; margin-top: 12px; }

.diag__row--answer .diag__n { color: var(--signal); }
.diag__row--answer .diag__code { color: var(--signal); }
.diag.is-in .diag__row:not(.diag__row--answer) { opacity: 0.62; transition: opacity 700ms ease 900ms; }
.diag.is-in .diag__row:not(.diag__row--answer):hover { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .diag.is-in .diag__row { opacity: 1; } }

/* ---- two workforces ---------------------------------------------- */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 720px) { .duo { grid-template-columns: 1fr; } }
.duo > div {
  background: var(--carbon);
  padding: 34px 26px 38px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.duo .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
}
.duo > div:nth-child(2) .k { color: var(--ember); }
.duo .h {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.14;
}
.duo p { color: var(--text-2); font-size: 15.5px; line-height: 1.62; max-width: 42ch; }
.stage--void .duo > div { background: var(--void); }
.stage--tint .duo > div { background: var(--tint); }

.claims { display: grid; gap: clamp(56px, 11vh, 132px); }
.claim { max-width: 24ch; }
.claim--wide { max-width: 20ch; }

/* --------------------------------------------------------------------------
   Ramp OS panel
   -------------------------------------------------------------------------- */

.os {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1C2735 0%, #121A24 100%);
}
html.js .os {
  transform: scale(0.985); opacity: 0;
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
html.js .os.is-in { opacity: 1; transform: none; }

.os__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
}
.os__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line);
}
.os__metric { background: #141D29; padding: 22px 20px 24px; display: grid; gap: 9px; }
.os__metric .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--signal); }
.os__metric .v { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }

.os__lower {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px; background: var(--line); border-top: 1px solid var(--line);
}
.os__block { background: #141D29; padding: 24px 20px 26px; display: grid; gap: 16px; align-content: start; }
.os__block h4 { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }

.meter { display: grid; gap: 9px; }
.meter__row { display: flex; align-items: center; gap: 14px; }
.meter__label { font-size: 13.5px; color: var(--text-2); flex: 1; min-width: 0; }
.meter__pct { font-family: var(--mono); font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; }
.meter__track { height: 2px; background: var(--line); position: relative; overflow: hidden; flex: 0 0 96px; }
.meter__fill {
  position: absolute; inset: 0 auto 0 0; height: 100%;
  background: linear-gradient(90deg, var(--signal-dim), var(--signal));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1300ms var(--ease);
}
.is-in .meter__fill { transform: scaleX(var(--p, 0)); }
@media (prefers-reduced-motion: reduce) { .meter__fill { transform: scaleX(var(--p, 0)); transition: none; } }

.blocks { display: flex; gap: 3px; align-items: center; }
.blocks i {
  width: 9px; height: 15px; background: var(--line); display: block;
  transition: background 420ms ease;
  transition-delay: calc(var(--i) * 55ms);
}
.is-in .blocks i.on { background: var(--signal); }
.blocks .cap { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--ember); margin-left: 10px; }

/* --------------------------------------------------------------------------
   Pipeline
   -------------------------------------------------------------------------- */

.pipe { position: relative; margin-top: 44px; }
.pipe__track { position: absolute; left: 0; right: 0; top: 21px; height: 1px; background: var(--line); }
.pipe__fill {
  position: absolute; left: 0; top: 21px; height: 1px; width: 0;
  background: linear-gradient(90deg, var(--signal-dim), var(--signal) 72%, var(--ember));
  transition: width 2200ms var(--ease);
}
.pipe.is-in .pipe__fill { width: 100%; }
.pipe__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; list-style: none; margin: 0; padding: 0; }
.pipe__step { display: grid; gap: 16px; justify-items: start; }
.pipe__node {
  width: 9px; height: 9px; border: 1px solid var(--line-2); background: var(--void);
  border-radius: 50%; margin-top: 17px;
  transition: border-color 420ms ease, background 420ms ease, box-shadow 420ms ease;
  transition-delay: calc(var(--i) * 260ms);
}
.pipe.is-in .pipe__node { border-color: var(--signal); background: var(--signal); box-shadow: 0 0 10px rgba(42,212,240,0.45); }
.pipe.is-in .pipe__step:last-child .pipe__node { border-color: var(--ember); background: var(--ember); box-shadow: 0 0 12px rgba(255,181,71,0.5); }
.pipe__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); line-height: 1.6; }
.pipe__step:last-child .pipe__label { color: var(--ember); }
@media (prefers-reduced-motion: reduce) { .pipe__fill { width: 100%; transition: none; } }

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */

.tl { position: relative; margin-top: 48px; }
.tl__line { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl__prog {
  position: absolute; left: 0; top: 0; width: 1px;
  background: linear-gradient(180deg, var(--signal), var(--ember));
  height: calc(var(--p, 0) * 100%);
  transition: height 220ms linear, width 220ms linear;
}
.tl__stage { position: relative; padding: 0 0 52px 40px; display: grid; gap: 12px; }
.tl__stage:last-child { padding-bottom: 0; }
.tl__dot {
  position: absolute; left: -4px; top: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--void); border: 1px solid var(--line-2);
  transition: background 420ms ease, border-color 420ms ease, box-shadow 420ms ease;
}
.tl__stage.on .tl__dot { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 10px rgba(42,212,240,0.5); }
.tl__stage:last-child.on .tl__dot { background: var(--ember); border-color: var(--ember); box-shadow: 0 0 12px rgba(255,181,71,0.5); }
.tl__n { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--text-3); transition: color 420ms ease; }
.tl__stage.on .tl__n { color: var(--text); }
.tl__h { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.026em; }
.tl__p { color: var(--text-2); font-size: 15.5px; line-height: 1.55; max-width: 56ch; }
.tl__sys {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #7C8EA4; opacity: 0; transform: translateY(6px);
  transition: opacity 520ms ease, transform 520ms var(--ease), color 520ms ease;
}
.tl__stage.on .tl__sys { opacity: 1; transform: none; color: var(--signal); }
.tl__stage:last-child.on .tl__sys { color: var(--ember); }

@media (min-width: 901px) {
  .tl__line { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
  .tl__prog {
    left: 0; top: 0; height: 1px; width: calc(var(--p, 0) * 100%);
    background: linear-gradient(90deg, var(--signal), var(--ember));
  }
  .tl__stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 30px; }
  .tl__stage { padding: 38px 20px 0 0; }
  .tl__dot { left: 0; top: -4px; }
  .tl__p { font-size: 15px; }
}

/* --------------------------------------------------------------------------
   Specification grid
   -------------------------------------------------------------------------- */

.spec { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 1080px) { .spec { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spec > div { background: var(--void); padding: 30px 22px 32px; display: grid; gap: 12px; align-content: start; }
.spec .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--signal); }
.spec .v { font-size: clamp(19px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.028em; line-height: 1.1; }

/* --------------------------------------------------------------------------
   Interior page components
   -------------------------------------------------------------------------- */

.grid-block { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; }
.grid-block--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-block--3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
@media (min-width: 720px) { .grid-block--2x2 { grid-template-columns: repeat(2, 1fr); } }
.grid-block--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid-block__cell { background: var(--carbon); padding: 30px 26px 32px; display: grid; gap: 12px; align-content: start; }
.section--void .grid-block__cell { background: var(--void); }
.stage--tint .grid-block__cell { background: var(--tint); }
.stage--tint .spec > div { background: var(--tint); }
.grid-block__cell .idx { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--signal); text-transform: uppercase; }
.grid-block__cell h3, .grid-block__cell h4 { color: var(--text); }
.grid-block__cell p { font-size: 15px; line-height: 1.55; color: var(--text-2); max-width: 42ch; }

.num-list { list-style: none; margin: 0; padding: 0; display: grid; }
.num-list li {
  display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 0 22px;
  padding: 26px 0; border-top: 1px solid var(--line); align-items: start;
}
.num-list li:last-child { border-bottom: 1px solid var(--line); }
.num-list .n { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; color: var(--signal); padding-top: 6px; }
.num-list .t { display: grid; gap: 8px; }
.num-list .t p { font-size: 15.5px; color: var(--text-2); max-width: 62ch; }

.steps { display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 0 36px;
  padding: 38px 0; border-top: 1px solid var(--line); align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__meta { display: grid; gap: 6px; padding-top: 4px; }
.step__meta .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--signal); }
.step__meta .when { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--text-3); text-transform: uppercase; }
.step__body { display: grid; gap: 12px; }
.step__body p { color: var(--text-2); font-size: 16px; }

.model { display: grid; gap: 16px; padding: 34px 28px 36px; background: var(--carbon); }
.section--void .model { background: var(--void); }
.model__head { display: grid; gap: 8px; }
.model__price { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--ember); text-transform: uppercase; }
.model ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.model li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 15px; color: var(--text-2); line-height: 1.5; }
.model li::before { content: "-"; color: var(--signal); font-family: var(--mono); font-size: 12px; line-height: 1.7; }
.model .btn { justify-self: start; margin-top: 6px; }

.form { display: grid; gap: 20px; max-width: 520px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 15px; color: var(--text);
  background: var(--void); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 13px 14px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #64748B; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--signal); outline: none; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8FA2B8 50%), linear-gradient(135deg, #8FA2B8 50%, transparent 50%);
  background-position: calc(100% - 19px) center, calc(100% - 13px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.form__note { font-size: 13.5px; color: var(--text-3); max-width: 46ch; }
.form-status { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--signal); }
.form-status[hidden] { display: none !important; }

.cta-band {
  background: var(--inv-ground); color: var(--inv-text);
  padding: clamp(60px, 8vw, 104px) 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(80% 70% at 96% 6%, rgba(42,212,240,0.16), transparent 58%),
    radial-gradient(65% 60% at 3% 96%, rgba(255,181,71,0.15), transparent 60%);
}
.cta-band__inner { display: grid; gap: 26px; position: relative; z-index: 1; }
.cta-band h2 { color: var(--inv-text); }
.cta-band p { color: var(--inv-text-2); max-width: 52ch; font-size: 17px; }
.cta-band .eyebrow { color: var(--inv-text-2); }
.cta-band .btn--primary { background: var(--inv-text); color: var(--inv-ground); }
.cta-band .btn--primary:hover { background: var(--inv-text-2); }
.cta-band .btn--secondary { color: var(--inv-text); border-color: var(--inv-line-2); }
.cta-band .btn--secondary:hover { border-color: var(--inv-text); color: var(--inv-text); }

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

.site-footer { background: var(--void); border-top: 1px solid var(--line); padding: 56px 0 34px; }
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: 40px; padding-bottom: 44px;
}
.site-footer h4 {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--signal); margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer a { color: var(--text-2); text-decoration: none; font-size: 14.5px; transition: color 140ms ease; }
.site-footer a:hover { color: var(--text); }
.site-footer__blurb { color: var(--text-2); font-size: 14.5px; max-width: 34ch; margin-top: 18px; }
.site-footer__bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3);
}
.site-footer__bottom a { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.measure { max-width: 62ch; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 14px; }
.mt-2 { margin-top: 26px; }
.mt-3 { margin-top: 40px; }
.mt-4 { margin-top: 56px; }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.divider-head {
  border-top: 1px solid var(--signal);
  padding-top: 14px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-3);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .pipe__steps { grid-template-columns: 1fr; gap: 26px; }
  .pipe__track, .pipe__fill { display: none; }
  .pipe__step { grid-template-columns: 9px 1fr; gap: 0 16px; align-items: center; }
  .pipe__node { margin-top: 0; }
  .hero-stage { min-height: 92svh; padding-top: 112px; }
}

@media (max-width: 760px) {
  .railed { grid-template-columns: 1fr; }
  .railed > .rail { border-top: 1px solid currentColor; margin-bottom: 8px; }
  .railed > .col { border-top: 0; padding-top: 0; }
  .step { grid-template-columns: 1fr; gap: 14px; }
  .num-list li { grid-template-columns: 44px minmax(0, 1fr); gap: 0 16px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .sys { white-space: normal; flex-wrap: wrap; letter-spacing: 0.16em; }
  .sysbar { gap: 12px 22px; }
  .diag__row { grid-template-columns: 40px minmax(0, 1fr); gap: 0 16px; }
  .diag__code { grid-column: 2; margin-top: 8px; }
  .diag__more { max-height: none; opacity: 1; margin-top: 10px; overflow: visible; }
  .diag.is-in .diag__row:not(.diag__row--answer) { opacity: 1; }
  .os__metric .v { font-size: 26px; }
  .meter__track { flex-basis: 64px; }
  .hero-grid { background-size: 64px 64px; }
}

@media (max-width: 460px) {
  body { font-size: 16px; }
  .lockup__name { font-size: 13px; letter-spacing: 0.16em; }
  .site-footer__top { grid-template-columns: 1fr; gap: 32px; }
}
