/* ==========================================================================
   Substrate — "Nightshift" build in the Robotflow idiom.

   Robotflow's mechanism, translated to Substrate's earth:
     · a three-step near-black ladder, each step a few RGB points apart
     · one family (Inter Tight), 500 for every heading, sentence case
     · 16 / 32 / 64 / 200 radii, pill buttons, no shadows anywhere
     · body copy one step below heading colour — never paper-white
     · one saturated slap of colour, used once
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  /* the ladder — floor, band, card. 5–13 RGB points apart, green cast kept. */
  --floor:      #05100b;
  --band:       #0a1811;
  --card:       #12241b;
  --card-lift:  #182d23;
  --ghost:      #16291f;   /* the barely-there wordmark */

  --line:       #2a4235;   /* hairlines, pill outlines */
  --line-soft:  #1b2f24;
  --muted:      #7c9184;   /* dates, struck values, captions */
  --body:       #b3c7b8;   /* BODY TEXT — deliberately not paper */
  --paper:      #f4efe3;   /* headings, paper pills, icons */

  --amber:      #f0a92c;   /* the one saturated colour */
  --amber-deep: #d18f1c;
  --ink:        #140f06;   /* text on amber / paper */

  --container: 1280px;
  --gutter: 24px;

  --r-img: 16px;
  --r-card: 32px;
  --r-section: 64px;
  --r-pill: 200px;

  --nav-h: 105px;
  --shelf-h: 46px;

  --e-hover: cubic-bezier(.25,.1,.25,1);
}

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

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

body {
  margin: 0;
  background: var(--floor);
  color: var(--body);
  font-family: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--paper);
  font-weight: 500;
  letter-spacing: -0.005em;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--amber); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--paper); color: var(--ink);
  padding: 12px 20px; border-radius: var(--r-pill);
  font-size: 16px; font-weight: 700;
}
.skip:focus { left: 16px; top: 16px; }

/* ------------------------------------------------------------ type scale -- */
.d1 { font-size: 72px; line-height: 1.25; }
.d2 { font-size: 48px; line-height: 1.25; }
.d3 { font-size: 36px; line-height: 1.25; }
.d4 { font-size: 24px; line-height: 1.25; }

.lede { font-size: 18px; line-height: 1.5; color: var(--body); }
.small { font-size: 16px; line-height: 1.5; }

/* the only uppercase on the page: micro-labels, footer columns, telemetry */
.label {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--amber { color: var(--amber); }

.num { font-variant-numeric: tabular-nums; }

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

.section { padding-block: 160px; }
.section--tight { padding-block: 120px; }

.band {
  background: var(--band);
  border-radius: var(--r-section);
}

/* Robotflow's structural signature: heading + lede hard left, one pill hard
   right, ~700px of deliberate nothing between them. */
.splithead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 80px;
}
.splithead__text { max-width: 560px; }
.splithead__text .lede { margin-top: 20px; max-width: 520px; }
.splithead__action { flex: none; padding-top: 26px; }

.centrehead {
  max-width: 700px;
  margin: 0 auto 80px;
  text-align: center;
}
.centrehead .lede { margin-top: 20px; max-width: 520px; margin-inline: auto; }

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: var(--r-pill);
  padding: 15px 28px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.125;
  cursor: pointer;
  transition: transform .3s var(--e-hover), background-color .3s var(--e-hover), color .3s var(--e-hover);
  will-change: transform;
}
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { transform: scale(1.045); background: #fff; }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { transform: scale(1.045); background: #ffc25c; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { transform: scale(1.045); background: #241a0b; }
.btn--ghost {
  background: transparent; color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover { transform: scale(1.045); background: var(--card); }
.btn:active { transform: scale(.985); }

/* text link with an arrow that slides in from the left of its slot */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--paper);
  transition: color .3s var(--e-hover);
}
.tlink__arrow {
  display: inline-block;
  color: var(--amber);
  transition: transform .3s var(--e-hover);
}
.tlink:hover { color: var(--amber); }
.tlink:hover .tlink__arrow { transform: translateX(5px); }

.btnrow { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* ------------------------------------------------------------------- nav -- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: height .3s var(--e-hover), background-color .3s var(--e-hover),
              border-color .3s var(--e-hover), transform .4s var(--e-hover);
  will-change: transform;
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}
.nav.is-solid {
  height: 76px;
  /* near-opaque fill — never backdrop-filter on a fixed bar */
  background: #050f0af5;
  border-bottom-color: var(--line-soft);
}
.nav.is-hidden { transform: translateY(-100%); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  display: grid; place-items: center;
  transition: transform .3s var(--e-hover), background-color .3s var(--e-hover);
}
.brand:hover .brand__mark { transform: scale(1.08); background: var(--amber); }
.brand__word { font-size: 20px; font-weight: 500; color: var(--paper); }

.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link {
  position: relative;
  font-size: 18px;
  line-height: 1.25;
  color: var(--paper);
  padding-block: 6px;
  transition: color .3s var(--e-hover);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--e-hover);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__spacer { flex: 1 1 auto; }

/* desktop dropdown */
.nav__menu { position: relative; }
.nav__toggle {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; padding: 6px 0;
  font: inherit; font-size: 18px; color: var(--paper); cursor: pointer;
}
.nav__toggle svg { transition: transform .3s var(--e-hover); }
.nav__menu.is-open .nav__toggle svg { transform: rotate(180deg); }
.nav__drop {
  position: absolute;
  top: calc(100% + 14px); left: -20px;
  min-width: 210px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-img);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s var(--e-hover), transform .3s var(--e-hover), visibility .3s;
}
.nav__menu.is-open .nav__drop { opacity: 1; visibility: visible; transform: none; }
.nav__drop a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 16px;
  color: var(--body);
  transition: background-color .3s var(--e-hover), color .3s var(--e-hover);
}
.nav__drop a:hover { background: var(--card-lift); color: var(--paper); }

/* mobile trigger + panel */
.nav__burger {
  display: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  cursor: pointer;
  place-items: center;
  transition: background-color .3s var(--e-hover), transform .3s var(--e-hover);
}
.nav__burger:hover { background: var(--card); transform: scale(1.05); }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--floor);
  padding: 24px 24px 40px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--e-hover), visibility .35s;
}
.sheet.is-open { opacity: 1; visibility: visible; }
.sheet__top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.sheet__close {
  width: 56px; height: 56px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line);
  color: var(--paper); display: grid; place-items: center; cursor: pointer;
}
.sheet__links { margin-top: 48px; display: flex; flex-direction: column; gap: 4px; }
.sheet__links a {
  font-size: 36px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--paper);
  padding-block: 6px;
}
.sheet__links a[aria-current="page"] { color: var(--amber); }
.sheet__foot { margin-top: auto; padding-top: 40px; }
.sheet__foot .btn { width: 100%; justify-content: center; }
.sheet__meta { margin-top: 24px; }

/* ------------------------------------------------------------------ hero -- */
.hero {
  position: relative;
  min-height: 720px;
  height: clamp(720px, 100svh, 1025px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--floor);
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 54% 42%;
  will-change: transform;
}
/* the subject is FOUND, not presented: every edge dissolves back to floor */
.hero__veil {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 88% at 46% 34%, rgba(5,16,11,0) 0%, rgba(5,16,11,0) 34%, rgba(5,16,11,.62) 74%, var(--floor) 100%),
    linear-gradient(to bottom, rgba(5,16,11,.62) 0%, rgba(5,16,11,.05) 24%, rgba(5,16,11,.10) 42%, rgba(5,16,11,.88) 74%, var(--floor) 100%),
    linear-gradient(to right, var(--floor) 0%, rgba(5,16,11,0) 20%, rgba(5,16,11,0) 80%, var(--floor) 100%);
}
.hero__inner {
  position: relative;
  padding-bottom: 120px;
  text-align: center;
}
.hero h1 {
  max-width: 740px;
  margin: 0 auto;
  text-wrap: balance;
}
.hero__lede { margin: 28px auto 0; max-width: 540px; }
.hero .btnrow { justify-content: center; margin-top: 40px; }

/* --------------------------------------------------------- capability 3up - */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
/* no card container, no border, no background — the image IS the card */
.plate { display: block; }
.plate__fig {
  display: block;
  border-radius: var(--r-img);
  overflow: hidden;
  background: var(--card);
  aspect-ratio: 392 / 390;
}
.plate__fig svg { width: 100%; height: 100%; }
.plate__fig > * { transition: transform .3s var(--e-hover); will-change: transform; }
.plate:hover .plate__fig > * { transform: scale(1.06); }
.plate h3 { margin-top: 32px; font-size: 36px; line-height: 1.25; }
.plate p { margin-top: 16px; color: var(--body); max-width: 38ch; }
/* icon-last — the reference's small unusual signature */
.plate__icon { display: inline-block; margin-top: 28px; color: var(--paper); transition: transform .3s var(--e-hover); }
.plate:hover .plate__icon { transform: translateX(5px); }

/* --------------------------------------------------------- the ghost act -- */
.ghost { position: relative; overflow: hidden; }
.ghost__stage {
  position: relative;
  margin-top: 24px;
  min-height: 520px;
  display: grid;
  place-items: center;
}
.ghost__word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(46px, 14vw, 212px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ghost);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.ghost__word span { display: inline-block; will-change: transform, opacity; }
.ghost__front { position: relative; width: 100%; }

/* the instrument */
.rig {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 28px;
}
.rig__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.rig__title { display: flex; align-items: center; gap: 10px; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  flex: none;
}
.rig__stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
}
.stage__name { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stage__bar {
  display: block;
  margin-top: 10px;
  height: 3px;
  background: var(--card-lift);
  border-radius: 2px;
  overflow: hidden;
}
.stage__fill {
  display: block; height: 100%; width: 0;
  background: var(--line);
  transition: width .6s linear;
}
.stage.is-active .stage__name { color: var(--paper); }
.stage.is-active .stage__fill { background: var(--amber); }
.stage.is-done .stage__fill { background: var(--line); width: 100%; }

.feed { padding-top: 8px; }
.feed li {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.feed li:last-child { border-bottom: 0; }
.feed__ref { color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.feed__what { color: var(--body); }
.feed__what em { font-style: normal; color: var(--muted); }
.feed__val { color: var(--amber); font-variant-numeric: tabular-nums; }
.rig__foot { padding-top: 18px; }

/* counter-drift telemetry rows — scroll-mapped, not a marquee */
.drift { margin-top: 72px; display: grid; gap: 14px; overflow: hidden; }
.drift__row {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
}
.chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.chip b { color: var(--body); font-weight: 400; }

/* --------------------------------------------------- annotated spec plate - */
.spec { position: relative; }
.spec__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 56px;
  row-gap: 120px;
  align-items: start;
}
.spec__subject {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: min(460px, 34vw);
}
.spec__subject img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: var(--r-card);
  will-change: transform;
}
.callout { max-width: 330px; }
.callout__icon { color: var(--paper); }
/* the hairline leader, terminating in a 4px dot */
.callout__rule {
  position: relative;
  height: 1px;
  background: var(--line);
  margin: 22px 0 26px;
}
.callout__rule::after {
  content: "";
  position: absolute; top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber);
  transform: translateY(-50%);
}
.callout h4 { font-size: 36px; line-height: 1.2; }
.callout p { margin-top: 16px; font-size: 18px; color: var(--body); }

.callout--l { justify-self: end; text-align: left; }
.callout--l .callout__rule::after { right: -2px; }
.callout--r { justify-self: start; }
.callout--r .callout__rule::after { left: -2px; }
.callout--tl { grid-column: 1; grid-row: 1; }
.callout--tr { grid-column: 3; grid-row: 1; }
.callout--bl { grid-column: 1; grid-row: 2; }
.callout--br { grid-column: 3; grid-row: 2; }

.spec__foot { margin-top: 96px; text-align: center; }

/* ------------------------------------------------------ the client band --- */
.diag {
  position: relative;
  background: var(--band);
  border-radius: 0 0 var(--r-section) var(--r-section);
  overflow: hidden;
}
.diag::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 120% at 12% 50%, rgba(240,169,44,.14) 0%, rgba(240,169,44,.04) 38%, rgba(10,24,17,0) 70%);
  pointer-events: none;
}
.diag .container { position: relative; padding-block: 140px; }
.diag__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.diag__bank { margin-top: 96px; }
.diag__findings { display: grid; gap: 18px; }
.diag__findings li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 16px;
  font-size: 18px;
  color: var(--body);
}
.diag__findings li::before {
  content: "";
  margin-top: 12px;
  width: 20px; height: 1px;
  background: var(--amber);
}
.diag__copy .lede { margin-top: 24px; max-width: 46ch; }
.diag__copy .btnrow { margin-top: 44px; }

/* the hairline metric bank — verticals between cells, no boxes */
.bank {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
}
.bank__cell {
  padding: 34px 28px 30px 0;
  border-left: 1px solid var(--line-soft);
  padding-left: 28px;
}
.bank__cell:first-child { border-left: 0; padding-left: 0; }
.bank__val {
  display: block;
  font-size: 56px;
  line-height: 1.1;
  font-weight: 500;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.bank__label { display: block; margin-top: 12px; font-size: 16px; color: var(--body); }
.bank__framing { display: block; margin-top: 14px; }

/* ---------------------------------------------------------- split cards --- */
.splits { display: grid; gap: 32px; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.split__panel {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 64px;
  display: flex;
  flex-direction: column;
  min-height: 470px;
  transition: background-color .3s var(--e-hover);
}
.split:hover .split__panel { background: var(--card-lift); }
.split__spec { margin-top: 18px; color: var(--body); max-width: 42ch; }
.split__gap { flex: 1 1 auto; min-height: 72px; }
.split__cluster { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.split__val {
  font-size: 56px; line-height: 1;
  font-weight: 500; color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.split__unit { font-size: 20px; color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--body);
}
.badge--amber { border-color: rgba(240,169,44,.42); color: var(--amber); }
.split__sub { margin-top: 16px; font-size: 16px; color: var(--muted); }
.split__link { margin-top: 30px; }
.split__art {
  background: var(--card);
  border-radius: var(--r-card);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 40px;
  min-height: 470px;
}
.split__art svg { width: 100%; height: auto; max-height: 100%; }

/* --------------------------------------------------------------- honesty -- */
.honesty {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--line-soft);
}
.honesty h3 { font-size: 24px; line-height: 1.25; }
.honesty p { max-width: 60ch; }

/* ------------------------------------------------------------- accordion -- */
.faq { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: start; }
.faq__rail .btn { margin-top: 40px; }
.faq__list { display: grid; gap: 16px; }
.acc {
  background: var(--card);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: background-color .3s var(--e-hover);
}
.acc:hover { background: var(--card-lift); }
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: none; border: 0;
  padding: 40px 40px;
  font: inherit;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--paper);
  text-align: left;
  cursor: pointer;
}
.acc__idx { color: var(--muted); font-size: 16px; margin-right: 4px; font-variant-numeric: tabular-nums; }
.acc__chev {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--card-lift);
  color: var(--paper);
  display: grid; place-items: center;
  transition: transform .3s var(--e-hover), background-color .3s var(--e-hover);
}
.acc[open] .acc__chev, .acc.is-open .acc__chev { transform: rotate(90deg); background: var(--amber); color: var(--ink); }
.acc__panel { overflow: hidden; height: 0; }
.acc__inner { padding: 0 40px 40px; max-width: 62ch; color: var(--body); }

/* ------------------------------------------------------------ amber band -- */
.slap {
  background: var(--amber);
  border-radius: var(--r-section);
  color: var(--ink);
  padding-block: 110px;
  overflow: hidden;
}
.slap h2 { color: var(--ink); max-width: 16ch; }
.slap p { margin-top: 22px; color: #3a2c11; max-width: 46ch; font-size: 18px; }
.slap .btnrow { margin-top: 44px; }
.slap .tlink { color: var(--ink); }
.slap .tlink:hover { color: #5a410f; }
.slap .tlink__arrow { color: var(--ink); }
.slap__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: end; }
.slap__mark { justify-self: end; opacity: .2; }

/* ---------------------------------------------------------------- footer -- */
.foot { background: var(--floor); padding-top: 140px; padding-bottom: 40px; }
.foot__top { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.foot h2 { font-size: 48px; line-height: 1.25; max-width: 13ch; }
.foot__social { display: flex; gap: 20px; margin-top: 32px; }
.foot__social a {
  color: var(--body);
  transition: color .3s var(--e-hover), transform .3s var(--e-hover);
  display: inline-block;
}
.foot__social a:hover { color: var(--amber); transform: translateY(-3px); }
.foot__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.foot__col ul { margin-top: 24px; display: grid; gap: 14px; }
.foot__col a { font-size: 18px; color: var(--body); transition: color .3s var(--e-hover); }
.foot__col a:hover { color: var(--paper); }
.foot__mid {
  margin-top: 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.foot__note { max-width: 44ch; font-size: 16px; color: var(--muted); }
/* the email, treated as a display element */
.foot__email {
  justify-self: end;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--paper);
  transition: color .3s var(--e-hover);
}
.foot__email:hover { color: var(--amber); }
.foot__rule { margin-top: 56px; height: 1px; background: var(--line-soft); }
.foot__bottom {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 16px;
  color: var(--muted);
}

/* --------------------------------------------------------- status shelf --- */
.shelf {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 88;
  height: var(--shelf-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding-inline: 24px;
  background: #071410;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  will-change: transform;
}
.shelf__label { letter-spacing: .12em; text-transform: uppercase; font-size: 11px; color: var(--amber); flex: none; }
.shelf__line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.shelf__line b { color: var(--body); font-weight: 400; }
.shelf__sep { color: var(--line); padding-inline: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* --------------------------------------------------------------- reveals -- */
/* JS removes .pre once it has taken ownership; if JS never runs, nothing hides */
.pre [data-reveal] { opacity: 0; transform: translateY(50px); }
.pre [data-img], .pre [data-load-img] { opacity: .01; }

/* -------------------------------------------------------------- sub-hero -- */
.subhero {
  position: relative;
  padding-top: calc(var(--nav-h) + 120px);
  padding-bottom: 120px;
  overflow: hidden;
}
.subhero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 90%;
  background: radial-gradient(46% 60% at 50% 60%, rgba(240,169,44,.10) 0%, rgba(240,169,44,.03) 42%, rgba(5,16,11,0) 72%);
  pointer-events: none;
}
.subhero__inner { position: relative; max-width: 900px; }
.subhero h1 { font-size: 72px; line-height: 1.15; max-width: 16ch; }
.subhero .lede { margin-top: 28px; max-width: 60ch; }

/* --------------------------------------------------------------- ledger --- */
.rows { border-top: 1px solid var(--line-soft); }
.row {
  display: grid;
  grid-template-columns: 200px 1fr 340px;
  gap: 40px;
  padding-block: 48px;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
  transition: background-color .3s var(--e-hover);
}
.row:hover { background: var(--band); }
.row h3 { font-size: 30px; line-height: 1.25; }
.row p { margin-top: 14px; color: var(--body); max-width: 52ch; }
.row__metrics { display: grid; gap: 14px; }
.row__metric { display: flex; align-items: baseline; gap: 12px; }
.row__metric b { font-size: 30px; font-weight: 500; color: var(--paper); font-variant-numeric: tabular-nums; }
.row__metric span { font-size: 15px; color: var(--muted); }

/* ------------------------------------------------------------ node chain -- */
.chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.node {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 32px 28px;
  position: relative;
  transition: background-color .3s var(--e-hover);
}
.node:hover { background: var(--card-lift); }
.node__idx { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.node h4 { margin-top: 18px; font-size: 20px; }
.node p { margin-top: 12px; font-size: 15px; color: var(--body); }

/* --------------------------------------------------------------- stages --- */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line-soft); }
.step {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 48px;
  padding-block: 64px;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.step__n { font-size: 20px; color: var(--muted); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 36px; line-height: 1.2; }
.step__timing { margin-top: 16px; }
.step p { color: var(--body); }
.step__keep {
  border-left: 1px solid var(--line-soft);
  padding-left: 32px;
}
.step__keep .label { margin-bottom: 14px; display: block; }

/* ================================================================ tablet == */
@media (max-width: 1120px) {
  :root { --container: 960px; }
  .d1 { font-size: 56px; }
  .hero h1 { font-size: 56px; max-width: 600px; }
  .subhero h1 { font-size: 56px; }
  .section { padding-block: 110px; }
  .section--tight { padding-block: 88px; }
  .grid3 { grid-template-columns: 1fr 1fr; gap: 24px; }
  .grid3 .plate:last-child { grid-column: 1 / -1; max-width: 480px; }
  .plate h3 { font-size: 30px; }
  .split { grid-template-columns: 1fr; }
  .split__panel, .split__art { min-height: 0; }
  .split__panel { padding: 44px; }
  .split__art { padding: 40px 44px; }
  .diag .container { padding-block: 100px; }
  .diag__inner { grid-template-columns: 1fr; gap: 56px; }
  .diag__bank { margin-top: 64px; }
  .faq { grid-template-columns: 1fr; gap: 40px; }
  .chain { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: 64px 1fr; }
  .step__keep { grid-column: 2; border-left: 0; padding-left: 0; padding-top: 8px; }
  .row { grid-template-columns: 140px 1fr; }
  .row__metrics { grid-column: 2; }
  .slap__inner { grid-template-columns: 1fr; }
  .slap__mark { display: none; }
  .spec__grid { column-gap: 32px; row-gap: 80px; }
  .callout h4 { font-size: 28px; }
  .spec__subject { width: min(320px, 30vw); }
}

/* ================================================================ mobile == */
@media (max-width: 780px) {
  :root { --gutter: 20px; --nav-h: 84px; }

  body { font-size: 17px; }

  .nav__links, .nav__menu, .nav__inner .btn { display: none; }
  .nav__burger { display: grid; }
  .nav.is-solid { height: 72px; }

  .d1 { font-size: 44px; }
  .d2 { font-size: 34px; line-height: 1.2; }
  .d3 { font-size: 28px; }
  .lede { font-size: 17px; }

  .section { padding-block: 72px; }
  .section--tight { padding-block: 56px; }
  .band, .slap { border-radius: 32px; }
  .diag { border-radius: 0 0 32px 32px; }

  /* centred hero, left-aligned everything below it — the reference's rule */
  .hero { height: auto; min-height: 100svh; padding-top: calc(var(--nav-h) + 24px); }
  .hero__inner { padding-bottom: 88px; }
  .hero h1 { font-size: 44px; line-height: 1.15; max-width: 12ch; }
  .hero__lede { font-size: 17px; }
  .hero .btnrow { gap: 18px; }
  .hero .btn { padding: 14px 22px; font-size: 15px; }
  .hero__media img { object-position: 40% 44%; }

  .splithead { flex-direction: column; gap: 28px; margin-bottom: 48px; }
  .splithead__action { padding-top: 0; }
  .centrehead { text-align: left; margin-bottom: 48px; }
  .centrehead .lede { margin-inline: 0; }

  .grid3 { grid-template-columns: 1fr; gap: 72px; }
  .grid3 .plate:last-child { max-width: none; }
  .plate__fig { border-radius: var(--r-card); }
  .plate h3 { font-size: 32px; margin-top: 28px; }
  .plate p { max-width: none; }

  .ghost__stage { min-height: 380px; margin-top: 8px; }
  .rig { padding: 20px; }
  .rig__stages { grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 18px 0; }
  .stage__name { font-size: 10px; letter-spacing: .02em; }
  .feed li { grid-template-columns: 62px 1fr; gap: 10px; font-size: 13px; }
  .feed__val { grid-column: 2; }
  .drift { margin-top: 48px; }

  /* spec plate: subject first, then callouts stacked with short leaders */
  .diag .container { padding-block: 72px; }
  .spec__grid { grid-template-columns: 1fr; row-gap: 48px; }
  .spec__subject { grid-column: 1; grid-row: 1; width: 100%; justify-self: center; }
  .spec__subject img { aspect-ratio: 4 / 3; }
  .callout--tl, .callout--tr, .callout--bl, .callout--br { grid-column: 1; grid-row: auto; }
  .callout { max-width: none; }
  .callout--l { justify-self: start; }
  .callout__rule { margin: 18px 0 20px; }
  .callout--l .callout__rule::after { right: auto; left: -2px; }
  .callout h4 { font-size: 26px; }
  .spec__foot { margin-top: 56px; text-align: left; }

  .bank { grid-template-columns: 1fr; }
  .bank__cell { border-left: 0; padding: 26px 0; border-top: 1px solid var(--line-soft); }
  .bank__cell:first-child { border-top: 0; padding-top: 26px; }
  .bank__val { font-size: 44px; }

  .split__panel { padding: 32px 24px; }
  .split__art { padding: 28px 24px; }
  .split__val { font-size: 44px; }
  .splits { gap: 24px; }
  .split { gap: 16px; }

  .honesty { grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }

  .acc__btn { padding: 28px 24px; font-size: 20px; gap: 16px; }
  .acc__chev { width: 40px; height: 40px; }
  .acc__inner { padding: 0 24px 28px; }

  .slap { padding-block: 72px; }
  .slap h2 { max-width: none; }

  .foot { padding-top: 88px; }
  .foot__top { grid-template-columns: 1fr; gap: 48px; }
  .foot h2 { font-size: 34px; max-width: none; }
  .foot__mid { grid-template-columns: 1fr; margin-top: 64px; gap: 32px; }
  .foot__email { justify-self: start; font-size: 26px; word-break: break-word; }

  .shelf { gap: 10px; padding-inline: 16px; font-size: 12px; }
  .shelf__label { font-size: 10px; }

  .subhero { padding-top: calc(var(--nav-h) + 64px); padding-bottom: 64px; }
  .subhero h1 { font-size: 44px; }

  .row { grid-template-columns: 1fr; gap: 20px; padding-block: 36px; }
  .row__metrics { grid-column: 1; }
  .chain { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 20px; padding-block: 44px; }
  .step__keep { grid-column: 1; }
  .sheet__links a { font-size: 30px; }
}

/* ------------------------------------------------------- reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .pre [data-reveal], .pre [data-img] { opacity: 1; transform: none; }
}
