/* Hestia by Pantheon Intelligence — landing page v2
   Tokens, base, chrome (nav, rail, stage), then sections top to bottom. */

:root {
  --linen: #EDE8E0;
  --paper: #F7F6F3;
  --sunk: #F1EFEA;
  --raised: #FDFCFA;
  --ink: #16161A;
  --ink-2: #1F1F24;
  --ink-3: #2A2A30;
  --graphite: #3A3A40;
  --grey: #5E5E66;          /* darker than the brand grey so small text passes AA on linen */
  --rule: #DDDAD2;
  --rule-2: #C4C0B6;
  --rule-ink: #33333A;
  --ember: #C4432B;         /* graphics */
  --ember-text: #B23A24;    /* small text on light grounds */
  --ember-dark: #E8735C;    /* accent on ink */
  --indigo: #2E3A8C;
  --indigo-hover: #26307A;
  --ink-muted: #B9B5AC;
  --ink-faint: #8A867F;

  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --serif: 'IBM Plex Serif', Georgia, serif;

  --pad-x: clamp(16px, 3.4vw, 48px);
  --content: 1120px;
  --label-col: 200px;
  --section-y: clamp(88px, 11vw, 144px);
  --radius: 2px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
::selection { background: var(--ember); color: #fff; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.dark :focus-visible, .nav[data-theme="ink"] :focus-visible { outline-color: var(--ember-dark); }

.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 {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  border-radius: var(--radius); text-decoration: none; font-size: 14px;
}
.skip:focus { top: 16px; }

.wrap {
  width: min(var(--content), 100% - 2 * var(--pad-x));
  margin-inline: auto;
}

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

.label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-text);
}
.dark .label { color: var(--ember-dark); }

h2 {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -0.028em;
  max-width: 17em;
}

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--graphite);
  max-width: 620px;
}
.dark .lede { color: var(--ink-muted); }

.dark { background: var(--ink); color: var(--paper); }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s;
  will-change: transform;
}
.btn--lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn--primary { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn--primary:hover { background: var(--indigo-hover); border-color: var(--indigo-hover); color: #fff; }
.btn--quiet { background: transparent; border-color: var(--rule-2); color: var(--indigo); }
.btn--quiet:hover { background: var(--sunk); border-color: var(--indigo); }
.dark .btn--quiet { border-color: #5C5C64; color: var(--paper); }
.dark .btn--quiet:hover { background: var(--ink-3); border-color: var(--paper); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--indigo);
  text-decoration: none;
}
.link-arrow svg { transition: transform .35s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Lockup (product first, company beneath) ---------- */

.lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.lockup__mark { width: 40px; height: 40px; }
.lockup__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1;
  text-transform: uppercase;
}
.lockup__text b { font-size: 14px; font-weight: 600; letter-spacing: 0.16em; }
.lockup__text small {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--grey);
}
.mark--paper { display: none; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: background-color .45s, color .45s, border-color .45s;
}
.nav.is-scrolled { background: var(--linen); border-color: var(--rule-2); }
.nav.is-scrolled[data-theme="paper"] { background: var(--paper); border-color: var(--rule); }
.nav.is-scrolled[data-theme="sunk"] { background: var(--sunk); border-color: var(--rule); }
.nav[data-theme="ink"] { color: var(--paper); }
.nav.is-scrolled[data-theme="ink"] { background: var(--ink); border-color: var(--rule-ink); }
.nav[data-theme="ink"] .mark--ink { display: none; }
.nav[data-theme="ink"] .mark--paper { display: block; }
.nav[data-theme="ink"] .lockup__text small { color: var(--ink-faint); }

.nav__inner {
  height: 72px;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__links {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 16px;
}
.nav__links a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
  opacity: .78;
  transition: opacity .2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__menu {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  cursor: pointer;
  opacity: .8;
}

/* ---------- Section rail ---------- */

.rail {
  position: fixed;
  left: 22px;
  top: 50%;
  z-index: 40;
  display: none;
  align-items: center;
  gap: 14px;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  mix-blend-mode: difference;
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
}
.rail__line { width: 1px; height: 56px; background: currentColor; opacity: .6; }
@media (min-width: 1360px) { .rail { display: flex; } }

/* ---------- Stage (WebGL hearth) ---------- */

.stage {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
}
#hearth { display: block; width: 100%; height: 100%; }
.is-static .stage { position: absolute; height: 100vh; }
.no-webgl .stage { display: none; }

.orbit-labels span {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}
.orbit-labels span::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}
.orbit-labels span.is-left { flex-direction: row-reverse; }

main { position: relative; z-index: 1; }

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 108px var(--pad-x) clamp(28px, 4vh, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero__kicker {
  align-self: center;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.hero__fallback { display: none; }
.no-webgl .hero__fallback { display: block; width: min(340px, 60vw); margin: auto; }

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 32px;
}
.hero__lede p {
  max-width: 290px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}
.hero__proof li { display: flex; align-items: center; gap: 8px; }
.hero__proof li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
}
.hero__title {
  font-size: clamp(64px, 11.4vw, 184px);
  line-height: .9;
  font-weight: 500;
  letter-spacing: -0.052em;
  text-align: center;
  white-space: nowrap;
}
.hero__title .line {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0 .02em .06em;
  margin-bottom: -.06em;
}
.hero__title .line > span { display: inline-block; }
.hero__ctas {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* Intro states exist only while motion is pending (see the inline head script) */
.motion [data-intro] { opacity: 0; transform: translateY(18px); }
.motion .hero__title .line > span { transform: translateY(108%); }

/* ---------- The problem ---------- */

.problem {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}
.problem__inner {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr);
  row-gap: 28px;
}
.problem__inner > :not(.label) { grid-column: 2; }
.problem__inner > .label { padding-top: 8px; }
.problem__intro {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--graphite);
}
.questions { display: grid; gap: 56px; }
/* A soft linen halo keeps the words in front of the drifting sparks */
.problem__intro, .q__text, .q__note, .problem__coda, .manifesto, .hearthsec__coda {
  text-shadow: 0 0 18px var(--linen), 0 0 6px var(--linen), 0 0 2px var(--linen);
}
.is-motion .questions { gap: 0; }
.is-motion .q { grid-area: 1 / 1; }
.q__num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ember-text);
}
.q__text {
  margin-top: 14px;
  max-width: 13.5em;
  font-size: clamp(34px, min(5vw, 7.4vh), 72px);
  line-height: 1.03;
  font-weight: 300;
  letter-spacing: -0.035em;
}
.q__note {
  margin-top: 22px;
  max-width: 520px;
  font-size: 17px;
  color: var(--graphite);
}
.q__note b { font-weight: 600; color: var(--ink); }
.problem__coda {
  max-width: 560px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  font-size: 19px;
  line-height: 1.45;
}

/* ---------- The idea (hearth) ---------- */

.hearthsec {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}
.hearthsec__copy { max-width: 540px; }
.manifesto {
  margin-top: 24px;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.28;
  font-weight: 300;
  letter-spacing: -0.018em;
}
.manifesto em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ember-text);
}
.manifesto .w { display: inline; }
.hearthsec__coda {
  margin-top: 32px;
  font-size: 19px;
  line-height: 1.45;
}
.hearthsec__coda strong { font-weight: 600; }
.triad {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.triad span { color: var(--ember-text); margin-right: 8px; }

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  background: var(--linen);
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 300;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.marquee__group i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ember);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Generic sections ---------- */

.section { position: relative; padding: var(--section-y) 0; }
.section--paper { background: var(--paper); }
.section--rule { border-top: 1px solid var(--rule); }

.sec-head {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr);
  row-gap: 20px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.sec-head > .label { padding-top: 12px; padding-right: 24px; }
.sec-head > :not(.label) { grid-column: 2; }

/* ---------- Architecture ---------- */

.arch {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 1.1fr);
  column-gap: 88px;
  min-height: 460px;
  padding: 64px 32px 36px;
}
.arch__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.arch__col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.arch__col--core { gap: 44px; }
.arch__col--engines { gap: 14px; }
.arch__head {
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.arch__head span { letter-spacing: 0.06em; text-transform: none; color: var(--ink-muted); }
.node {
  position: relative;
  z-index: 1;
  padding: 12px 14px;
  background: var(--ink-2);
  border: 1px solid var(--rule-ink);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.3;
  transition: border-color .4s, color .4s;
}
.node--siem { text-align: center; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--paper); }
.node--siem span { color: var(--ink-faint); font-size: 11px; }
.node--engine { padding: 18px 18px 16px; }
.engine__title { font-size: 15px; font-weight: 500; }
.engine__meta { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }

.core {
  position: relative;
  z-index: 1;
  padding: 20px 20px 16px;
  background: var(--ink-2);
  border: 1px solid var(--ember-dark);
  border-radius: var(--radius);
}
.core__head { display: flex; align-items: center; gap: 14px; }
.core__head img { width: 44px; height: 44px; flex-shrink: 0; }
.core__name { font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: 0.02em; }
.core__sub { margin-top: 2px; font-size: 12.5px; color: var(--ink-muted); }
.core__stages {
  margin-top: 16px;
  border-top: 1px solid var(--rule-ink);
  counter-reset: none;
}
.core__stages li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule-ink);
  font-size: 13.5px;
  color: var(--ink-muted);
  transition: color .4s;
}
.core__stages li:last-child { border-bottom: 0; }
.core__stages span { width: 14px; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); transition: color .4s; }
.core__stages em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember-dark);
}

.wire { fill: none; stroke: #3E3E46; stroke-width: 1; transition: stroke .5s; }
.boundary { fill: none; stroke: #4C4C54; stroke-dasharray: 6 6; transition: stroke .5s; }
.boundary-label { fill: var(--ink-faint); font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; }
.packet { fill: var(--ember-dark); }
.packet--redact { fill: var(--ink); stroke: var(--ember-dark); stroke-width: 1.6; }
.packet--deny { fill: #6E6E76; }
.packet--log { fill: var(--ink-faint); }
.ping { fill: none; stroke: #8A867F; stroke-width: 1; }

/* Focus follows the selected step */
#arch[data-focus="deploy"] .boundary { stroke: var(--ember-dark); }
#arch[data-focus="connect"] .wire--in { stroke: var(--ember-dark); }
#arch[data-focus="connect"] :is([data-stage="auth"], [data-stage="authz"], [data-stage="route"]),
#arch[data-focus="govern"] :is([data-stage="budget"], [data-stage="retrieve"], [data-stage="guard"], [data-stage="guard-out"]),
#arch[data-focus="audit"] :is([data-stage="meter"], [data-stage="audit"]) { color: var(--paper); }
#arch[data-focus="connect"] :is([data-stage="auth"], [data-stage="authz"], [data-stage="route"]) span,
#arch[data-focus="govern"] :is([data-stage="budget"], [data-stage="retrieve"], [data-stage="guard"], [data-stage="guard-out"]) span,
#arch[data-focus="audit"] :is([data-stage="meter"], [data-stage="audit"]) span { color: var(--ember-dark); }
#arch[data-focus="audit"] .wire--log { stroke: var(--ember-dark); }
#arch[data-focus="audit"] .node--siem { border-color: var(--ember-dark); }

.arch__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 8px;
  padding: 0 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.arch__legend li { display: flex; align-items: center; gap: 10px; }
.lg { width: 9px; height: 9px; border-radius: 50%; }
.lg--allow { background: var(--ember-dark); }
.lg--redact { border: 1.6px solid var(--ember-dark); }
.lg--deny { background: #6E6E76; }

.arch__notes {
  display: grid;
  grid-template-columns: minmax(0, 780px);
  gap: 32px;
  margin-top: 28px;
  padding: 20px 24px 0;
  border-top: 1px solid var(--rule-ink);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.arch__notes b { font-weight: 600; color: var(--paper); }

/* "Coming soon" and "Later" lines: the only forward-looking claims on the page */
.soon {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.soon span, .is-soon span {
  display: inline-block;
  margin-right: 12px;
  vertical-align: 1px;
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember-dark);
}
.soon--inline { margin: 0; }

.dark code, .checks code, .steps__caption code { font-family: var(--mono); font-size: .92em; }

.steps { margin-top: clamp(72px, 9vw, 112px); }
.steps__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule-ink);
}
.steps__tab {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 24px 0;
  background: transparent;
  border: 0;
  color: var(--ink-faint);
  text-align: left;
  cursor: pointer;
  transition: color .3s;
}
.steps__tab:hover { color: var(--ink-muted); }
.steps__num { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; }
.steps__title { font-size: 24px; font-weight: 400; letter-spacing: -0.01em; }
.steps__desc { font-size: 14px; line-height: 1.55; color: var(--ink-faint); transition: color .3s; }
.steps__tab[aria-selected="true"] { color: var(--paper); }
.steps__tab[aria-selected="true"] .steps__num { color: var(--ember-dark); }
.steps__tab[aria-selected="true"] .steps__desc { color: var(--ink-muted); }
.steps__tab::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 2px;
  width: calc(100% - 24px);
  background: var(--ember-dark);
  transform: scaleX(0);
  transform-origin: left;
}

/* Panels share one grid cell, so switching tabs never changes the page height */
.steps__panels { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
.steps__panel { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.steps__panel[hidden] { display: flex; visibility: hidden; }
.steps__caption { max-width: 780px; font-size: 14px; line-height: 1.6; color: var(--ink-muted); }
.steps__tab[aria-selected="true"]::after { transform: scaleX(1); }
.steps__list.is-auto .steps__tab[aria-selected="true"]::after { animation: stepfill 7s linear; }
@keyframes stepfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.code {
  background: var(--ink-2);
  border: 1px solid var(--rule-ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.code__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule-ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink-faint);
}
.code__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.code__bar span { margin-left: 10px; }
.code pre {
  margin: 0;
  padding: 22px 20px 26px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #E4E1DA;
}
.code pre:focus-visible { outline-offset: -2px; }
.tk-p, .tk-c { color: var(--ink-faint); }
.tk-s { color: var(--ember-dark); }
.tk-k { color: #A8B2EE; }
.tk-ok { color: var(--ember-dark); }

/* ---------- Ledger ---------- */

.ledger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
}
.ledger__viewport { height: 424px; overflow: hidden; border-bottom: 1px solid var(--rule); }
.ledger__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.ledger__table th {
  white-space: nowrap;
  padding: 0 14px 12px 0;
  border-bottom: 1px solid var(--ink);
  text-align: left;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}
.ledger__table td {
  padding: 13px 14px 13px 0;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
  color: var(--graphite);
}
.ledger__table .c-num { text-align: right; }
.ledger__table tr.is-new td { animation: rowin 1.6s var(--ease-out); }
@keyframes rowin {
  0% { background: rgba(196, 67, 43, .12); }
  100% { background: transparent; }
}
.dec { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.dec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.dec--deny { color: var(--grey); }
.dec--deny::before { background: #9A968F; }
.ledger__guarantee {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--graphite);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.ledger__side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}
.stat__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}
.stat__value {
  margin-top: 4px;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat--spend { padding-top: 18px; border-top: 1px solid var(--rule); }
.bars { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.bars li {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 62px;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--graphite);
}
.bars .amt { text-align: right; font-variant-numeric: tabular-nums; }
.bar { display: flex; height: 6px; background: var(--rule); }
.bar i { display: block; height: 100%; transition: width .8s var(--ease-out); }
.bar .act, .gpu-key .k-act { background: var(--ink); }
.bar .idle, .gpu-key .k-idle { background: var(--ember); opacity: .55; }
.gpu-key {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--grey);
}
.gpu-key i { width: 10px; height: 6px; }
.gpu-key .k-idle { margin-left: 10px; }
.ledger__note {
  margin: 20px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- Outcomes ---------- */

.outcomes { margin-left: var(--label-col); border-top: 1px solid var(--ink); }
.outcome {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 360px);
  gap: 24px;
  align-items: center;
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--rule-2);
}
.outcome::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease-out);
}
.outcome:hover::after { transform: scaleX(1); }
.outcome__num { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--ember-text); }
.outcome__word {
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.04em;
  transition: transform .7s var(--ease-out);
}
.outcome:hover .outcome__word { transform: translateX(14px); }
.outcome p { font-size: 16px; line-height: 1.55; color: var(--graphite); }

/* ---------- Use cases ---------- */

.cases {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--sunk);
  border-top: 1px solid var(--rule);
  padding: clamp(72px, 12vh, 128px) 0 clamp(48px, 8vh, 80px);
}
.cases__track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: max-content;
  padding-left: max(var(--pad-x), calc((100vw - var(--content)) / 2));
  padding-right: var(--pad-x);
}
.cases__intro {
  width: 360px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 40px;
}
.cases__intro h2 { font-size: clamp(32px, 3.6vw, 48px); }
.case {
  width: min(540px, 82vw);
  min-height: min(520px, 62vh);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.case__top { display: flex; justify-content: space-between; align-items: baseline; }
.case__idx { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--grey); }
.case__big {
  margin-top: 12px;
  font-size: clamp(28px, 2.9vw, 40px);
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -0.025em;
}
.case__title { font-size: 17px; font-weight: 500; }
.case__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.case__cols h4 {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}
.case__cols p { font-size: 14px; line-height: 1.55; color: var(--graphite); }
.cases__progress {
  width: min(var(--content), 100% - 2 * var(--pad-x));
  height: 1px;
  margin: 48px auto 0;
  background: var(--rule-2);
}
.cases__progress i {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Trust ---------- */

.trust {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  margin-left: var(--label-col);
}
.trust__head {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}
.deploy__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}
.deploy__tab {
  padding: 16px 16px 14px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--ink);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.deploy__tab:last-child { border-right: 0; }
.deploy__tab:hover { background: var(--sunk); }
.deploy__tab b { display: block; font-size: 16px; font-weight: 500; }
.deploy__tab span {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey);
}
.deploy__tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.deploy__tab[aria-selected="true"] span { color: var(--ink-muted); }
.deploy__panel { margin-top: 8px; }
.deploy__panel li, .checks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.45;
  color: var(--graphite);
}
.deploy__panel li::before {
  content: "";
  width: 10px;
  height: 1px;
  margin-top: 11px;
  background: var(--ember);
}
.checks ul { border-top: 1px solid var(--ink); }
.deploy__panel li.is-soon { display: block; }
.deploy__panel li.is-soon::before { display: none; }
.deploy__panel li.is-soon span { display: inline-block; margin-right: 10px; color: var(--ember-text); }
.checks li::before {
  content: "";
  width: 10px;
  height: 6px;
  margin-top: 6px;
  border-left: 1.5px solid var(--ember);
  border-bottom: 1.5px solid var(--ember);
  transform: rotate(-45deg);
}

/* ---------- Pricing ---------- */

.pricing { margin-left: var(--label-col); }
.asks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.asks li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 28px 28px 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--graphite);
}
.asks__num { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--ember-text); }
.asks__title { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; font-weight: 300; letter-spacing: -0.025em; color: var(--ink); }
.pricing__cta { margin-top: 32px; }

/* ---------- Final CTA ---------- */

.cta { position: relative; overflow: hidden; padding: clamp(112px, 14vw, 176px) 0; }
.cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta__emblem { position: relative; width: 160px; height: 160px; margin-bottom: 72px; }
.cta__emblem img { position: relative; width: 160px; height: 160px; }
.cta__orbit {
  position: absolute;
  inset: -64px;
  width: calc(100% + 128px);
  height: calc(100% + 128px);
  animation: spin 80s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta__title {
  margin-top: 20px;
  max-width: none;
  font-size: clamp(52px, 8.4vw, 128px);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -0.05em;
}
.cta__sub { margin-top: 28px; max-width: 520px; font-size: 18px; color: var(--ink-muted); }
/* ---------- Contact form ---------- */

.contact {
  scroll-margin-top: 104px;   /* clears the fixed nav when scrolled to without Lenis */
  width: min(760px, 100%);
  margin-top: 56px;
  padding: 36px 40px 32px;
  background: var(--ink-2);
  border: 1px solid var(--rule-ink);
  border-radius: var(--radius);
  text-align: left;
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field label span { margin-left: 6px; letter-spacing: 0.06em; text-transform: none; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 0 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #4A4A52;
  border-radius: 0;
  color: var(--paper);
  font: 400 17px/1.4 var(--sans);
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none;
  padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23B9B5AC' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 4px center / 12px 8px no-repeat;
  cursor: pointer;
}
.field select option { background: var(--ink-2); color: var(--paper); }
.field ::placeholder { color: var(--ink-faint); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ember-dark); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 var(--ember-dark); }
.field__error { display: none; font-size: 13px; color: var(--ember-dark); }
.field.is-invalid input { border-color: var(--ember-dark); }
.field.is-invalid .field__error { display: block; }

.contact__foot { display: flex; align-items: center; gap: 20px; margin-top: 32px; }
.contact__foot .btn[disabled] { opacity: .6; cursor: progress; }
.contact__status { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.contact__status.is-ok { color: var(--paper); }
.contact__status.is-error { color: var(--ember-dark); }
.contact__alt { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule-ink); font-size: 14px; color: var(--ink-faint); }
.contact__alt a { color: var(--ink-muted); text-underline-offset: 3px; }
.contact__alt a:hover { color: var(--paper); }

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

.footer { position: relative; z-index: 1; background: var(--paper); border-top: 1px solid var(--rule); }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
  padding: 64px 0 56px;
}
.footer__brand { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.footer__company { max-width: 380px; font-size: 14px; line-height: 1.6; color: var(--graphite); }
.footer__company span { font-weight: 600; color: var(--ink); }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__head {
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}
.footer__col a { font-size: 14px; color: var(--graphite); text-decoration: none; }
.footer__col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--grey);
}
.footer__legal { display: flex; gap: 24px; }
.footer__legal a { color: var(--grey); text-decoration: none; }
.footer__legal a:hover { color: var(--ink); }

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .hero__foot { grid-template-columns: minmax(0, 1fr) auto; }
  .hero__title { grid-column: 1 / -1; order: -1; text-align: left; }
  .hero__lede p { max-width: 420px; }
  .arch { column-gap: 44px; padding-inline: 16px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 1023px) {
  :root { --label-col: 0px; }
  .sec-head, .problem__inner { grid-template-columns: minmax(0, 1fr); }
  .sec-head > :not(.label), .problem__inner > :not(.label) { grid-column: 1; }
  .sec-head > .label, .problem__inner > .label { padding-top: 0; }
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger__side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat--spend { grid-column: 1 / -1; }
  .trust { grid-template-columns: minmax(0, 1fr); gap: 48px; }

  /* Use cases stack when not pinned */
  .cases__track { flex-direction: column; width: auto; padding: 0 var(--pad-x); }
  .cases__intro { width: auto; padding-right: 0; margin-bottom: 16px; }
  .case { width: auto; min-height: 0; }
  .case__cols { margin-top: 12px; }
  .cases__progress { display: none; }
}

/* ---------- Mobile ---------- */

@media (max-width: 899px) {
  .nav__inner { height: 64px; }
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__menu { display: flex; }
  .nav[data-open="true"] { background: var(--paper); color: var(--ink); border-color: var(--rule); }
  .nav[data-open="true"] .mark--ink { display: block; }
  .nav[data-open="true"] .mark--paper { display: none; }
  .nav[data-open="true"] .nav__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px var(--pad-x) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .nav[data-open="true"] .nav__links a {
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 18px;
    opacity: 1;
  }
  .nav[data-open="true"] .nav__links a::after { display: none; }
  .lockup__text b { font-size: 13px; }
  .lockup__text small { font-size: 9px; }
  .lockup__mark { width: 36px; height: 36px; }

  .hero { padding-top: 88px; }
  .hero__kicker { font-size: 14px; }
  .hero__foot { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero__title { white-space: normal; }
  .hero__ctas { justify-self: start; align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 4px 20px; }

  .problem { padding: 96px 0 56px; }
  .q__note { font-size: 15px; }
  .problem__coda { font-size: 17px; }

  .hearthsec { align-items: flex-end; padding: 96px 0 48px; }
  .manifesto { font-size: 22px; }
  .hearthsec__coda { margin-top: 20px; font-size: 16px; }
  .triad { margin-top: 20px; font-size: 11px; }

  .arch {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    row-gap: 44px;
    min-height: 0;
    padding: 48px 12px 24px;
  }
  .arch__col[data-col="apps"], .arch__col--engines {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .arch__col[data-col="apps"] .node:last-child { grid-column: 1 / -1; }
  .arch__col--core { display: contents; }
  .arch__col[data-col="apps"] { order: 1; }
  .core { order: 2; }
  .arch__col--engines { order: 3; }
  .node--siem { order: 4; }
  .arch__head { grid-column: 1 / -1; }
  .node { font-size: 13px; padding: 10px 12px; }
  .node--engine { padding: 14px 12px; }
  .engine__title { font-size: 14px; }
  .engine__meta { font-size: 12px; }
  .arch__legend { padding: 0 12px; }
  .arch__notes { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px 12px 0; }
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps__tab { padding: 16px 12px 18px 0; }
  .steps__title { font-size: 20px; }
  .steps__desc { font-size: 13px; }
  .code pre { font-size: 11px; padding: 18px 14px 20px; }
  .asks { grid-template-columns: minmax(0, 1fr); }
  .asks li { padding: 20px 0; border-bottom: 1px solid var(--rule); }

  .ledger__viewport { height: 380px; }
  .ledger__table { font-size: 11px; }
  .ledger__table .c-time, .ledger__table .c-model, .ledger__table .c-lat { display: none; }
  .ledger__table td { padding: 12px 10px 12px 0; }
  .ledger__table th { white-space: normal; }
  .ledger__table td:last-child, .ledger__table th:last-child { padding-right: 0; }
  .dec__why { display: none; }
  .orbit-labels span { font-size: 10px; letter-spacing: 0.08em; gap: 6px; }
  .orbit-labels span::before { width: 10px; }
  .ledger__side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stat__value { font-size: 28px; }

  .outcome { grid-template-columns: 40px minmax(0, 1fr); padding: 26px 0 22px; row-gap: 12px; }
  .outcome p { grid-column: 2; font-size: 15px; }

  .case { padding: 24px; }
  .case__cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }

  .deploy__tab { padding: 12px 10px; }
  .deploy__tab b { font-size: 14px; }
  .deploy__tab span { font-size: 9.5px; }

  .cta__emblem { width: 112px; height: 112px; margin-bottom: 56px; }
  .cta__emblem img { width: 112px; height: 112px; }
  .cta__orbit { inset: -44px; width: calc(100% + 88px); height: calc(100% + 88px); }
  .cta__sub { font-size: 16px; }
  .contact { margin-top: 40px; padding: 24px 18px 22px; }
  .contact__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .contact__foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .contact__foot .btn { width: 100%; }

  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 48px 0 40px; }
  .footer__cols { gap: 16px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__legal { gap: 20px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .marquee__track, .cta__orbit, .pulse { animation: none; }
  .steps__list.is-auto .steps__tab[aria-selected="true"]::after { animation: none; }
  * { transition-duration: .01ms !important; }
}
