/* Okto Neuron · landing page. Sibling of the Nexus and Pulse pages: same
   skeleton, same type scale, amber accent. Static, dark-only, no build step. */

:root {
  color-scheme: dark;
  --bg: #030308;
  --bg-deep: #010104;
  --panel: rgba(7, 8, 18, 0.78);
  --panel-strong: rgba(9, 10, 23, 0.94);
  --panel-soft: rgba(12, 13, 29, 0.58);
  --ink: #f5f4ff;
  --ink-soft: #b9b7cb;
  --ink-dim: #77758b;
  --hair: rgba(206, 201, 255, 0.14);
  --hair-bright: rgba(206, 201, 255, 0.28);
  --amber: #f5b942;
  --amber-bright: #ffd166;
  --amber-deep: #c98a12;
  --amber-pale: #ffe9b8;
  --contrast: #7fb8ff;
  --labs-cyan: #36e0f5;
  --labs-violet: #7b4eff;
  --scene-accent: var(--amber);
  --local-accent: var(--amber);
  --scroll-progress: 0;
  --max: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --nav-h: 72px;
  --radius: 18px;
  --radius-sm: 10px;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(245, 185, 66, 0.6) #06060c;
  scrollbar-width: thin;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: rgba(245, 185, 66, 0.42);
  color: #fff;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure,
blockquote,
pre,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--amber-pale);
}

:focus-visible {
  outline: 2px solid var(--amber-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--amber-bright);
  border-radius: 999px;
  background: #080914;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- fixed backdrop (static; the Nexus canvas scene is not used) ---------- */
.backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 20%, #0a0914 0%, var(--bg) 55%, var(--bg-deep) 100%);
  pointer-events: none;
}

.backdrop__bloom {
  position: absolute;
  top: -20vh;
  right: -10vw;
  width: 70vw;
  height: 70vh;
  background: radial-gradient(circle, rgba(245, 185, 66, 0.11), transparent 62%);
  filter: blur(40px);
}

.backdrop__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(206, 201, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(206, 201, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 65% 30%, rgba(0, 0, 0, 0.55), transparent 70%);
  opacity: 0.5;
}

.backdrop__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(1, 1, 4, 0.72) 100%);
}

/* ---------- global navigation ---------- */
.nav {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(207, 201, 255, 0.08);
  background: linear-gradient(180deg, rgba(3, 3, 9, 0.94), rgba(3, 3, 9, 0.58));
  backdrop-filter: blur(18px) saturate(140%);
}

.nav__inner {
  display: flex;
  align-items: center;
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav__brand {
  flex: 0 0 auto;
}

.nav__logo {
  width: 184px;
  height: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
  margin-left: clamp(2rem, 5vw, 5rem);
}

.nav__links a,
.nav__ext {
  position: relative;
  padding: 0.4rem 0;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 200ms ease;
}

.nav__links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--scene-accent);
  box-shadow: 0 0 8px var(--scene-accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}

.nav__links a:hover,
.nav__ext:hover {
  color: var(--ink);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.nav__toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.nav__toggle span {
  grid-area: 1 / 1;
  width: 16px;
  height: 1px;
  background: var(--ink);
  transform: translateY(-3px);
  transition: transform 220ms ease;
}

.nav__toggle span + span {
  transform: translateY(3px);
}

.nav__toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.nav__progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber), var(--amber-bright));
  box-shadow: 0 0 10px var(--scene-accent);
  transform: scaleX(var(--scroll-progress));
  transform-origin: left;
}

.mobile-menu {
  position: fixed;
  z-index: 55;
  inset: var(--nav-h) 0 auto;
  display: grid;
  gap: 1px;
  padding: 0.75rem var(--gutter) 1.25rem;
  border-bottom: 1px solid var(--hair);
  background: rgba(4, 4, 11, 0.97);
  backdrop-filter: blur(18px);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(205, 199, 255, 0.08);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- reusable controls ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border: 1px solid var(--hair-bright);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 240ms ease, background 240ms ease, transform 240ms var(--ease), box-shadow 240ms ease;
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.btn--primary {
  border-color: rgba(255, 209, 102, 0.7);
  background: linear-gradient(115deg, rgba(245, 185, 66, 0.96), rgba(201, 138, 18, 0.96));
  color: var(--bg);
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(245, 185, 66, 0.22), inset 0 1px rgba(255, 255, 255, 0.28);
}

.btn--primary:hover {
  border-color: #ffe3a1;
  background: linear-gradient(115deg, #ffd166, #e0a027);
  color: var(--bg);
  box-shadow: 0 16px 48px rgba(245, 185, 66, 0.32), inset 0 1px rgba(255, 255, 255, 0.32);
}

.btn--quiet {
  color: var(--ink-soft);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.62rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(7, 7, 17, 0.54);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.tag--live::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber-bright);
  box-shadow: 0 0 10px var(--amber-bright);
  content: "";
}

.terminal {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.72rem;
  min-height: 56px;
  padding: 0.72rem 0.78rem 0.72rem 0.95rem;
  overflow: hidden;
  border: 1px solid var(--hair-bright);
  border-radius: var(--radius-sm);
  background: linear-gradient(110deg, rgba(12, 12, 27, 0.94), rgba(6, 7, 17, 0.82));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 20px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.terminal::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(transparent, var(--local-accent), transparent);
  content: "";
}

.terminal__sigil {
  color: var(--amber-bright);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.terminal code {
  overflow: hidden;
  color: #ddd9ff;
  font-family: var(--font-mono);
  font-size: clamp(0.67rem, 1vw, 0.78rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal__copy {
  padding: 0.42rem 0.58rem;
  border: 1px solid var(--hair);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.terminal__copy:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.terminal[data-copied="1"] .terminal__copy {
  border-color: rgba(255, 209, 102, 0.5);
  color: var(--amber-bright);
}

.chapter-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chapter-mark i {
  width: clamp(38px, 6vw, 82px);
  height: 1px;
  background: linear-gradient(90deg, var(--local-accent), transparent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--local-accent) 45%, transparent);
}

.chapter-mark span:first-child {
  color: color-mix(in srgb, var(--local-accent) 72%, white);
}

/* ---------- hero / origin ---------- */
main {
  position: relative;
  z-index: 2;
}

.hero {
  --local-accent: var(--amber);
  --prov-w: clamp(300px, 34vw, 520px);
  --prov-gap: 3rem;
  position: relative;
  display: grid;
  align-items: center;
  min-height: 110svh;
  padding: calc(var(--nav-h) + 5vh) 0 8vh;
  overflow: clip;
  overflow-x: clip;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 3, 8, 0.98) 0%, rgba(3, 3, 8, 0.84) 36%, rgba(3, 3, 8, 0.18) 66%, rgba(3, 3, 8, 0.48) 100%),
    linear-gradient(180deg, rgba(3, 3, 8, 0.5), transparent 45%, rgba(3, 3, 8, 0.94));
  content: "";
}

.hero__veil {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 78% 44%, rgba(245, 185, 66, 0.07) 0, rgba(3, 3, 8, 0.12) 23%, transparent 46%);
}

.hero__inner {
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero__inner > * {
  position: relative;
  z-index: 2;
  /* Text column stops before the diagram column, whatever the viewport. */
  max-width: min(780px, calc(100% - var(--prov-w) - var(--prov-gap)));
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero__title {
  max-width: min(12ch, calc(100% - var(--prov-w) - var(--prov-gap)));
  margin-top: clamp(1.6rem, 3vw, 2.7rem);
  font-size: clamp(3.6rem, 7.6vw, 8.3rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.hero__title span {
  display: block;
}

.hero__title span:first-child {
  color: #fff;
  text-shadow: 0 0 42px rgba(245, 185, 66, 0.12);
}

.hero__title span:last-child {
  margin-top: 0.11em;
  background: linear-gradient(105deg, #ffd166 0%, #fff4dc 42%, #f5b942 82%, #c98a12 112%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.57em;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero__lead {
  max-width: min(690px, calc(100% - var(--prov-w) - var(--prov-gap)));
  margin-top: clamp(1.4rem, 2.6vw, 2.1rem);
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.58;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.hero__continue {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.35rem;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 200ms ease;
}

.hero__continue i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--hair);
  border-radius: 50%;
}

.hero__continue svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.hero__continue:hover {
  color: var(--ink);
}

.hero__continue:hover i {
  border-color: var(--amber-bright);
  box-shadow: 0 0 18px rgba(245, 185, 66, 0.24);
}

.hero__assurance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__assurance i,
.install__assurance i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-bright);
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.85);
}

.hero__assurance span {
  color: var(--hair-bright);
}

/* provenance figure: the PROV-O chain, inline SVG, decorative but true */
.prov {
  position: absolute;
  z-index: 1;
  top: 50%;
  /* Right-aligned to the same content edge .hero__inner uses. */
  right: max(var(--gutter), calc((100% - var(--max)) / 2));
  width: var(--prov-w);
  transform: translateY(-50%);
  pointer-events: none;
}

.prov__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.prov__page rect:first-child {
  fill: rgba(9, 10, 23, 0.86);
  stroke: var(--hair-bright);
  stroke-width: 1;
}

.prov__path,
.prov__bytes,
.prov__rel,
.prov__foot,
.prov__sub {
  font-family: var(--font-mono);
  fill: var(--ink-dim);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.prov__path {
  fill: var(--ink-soft);
}

.prov__bytes {
  fill: var(--amber-bright);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.prov__lines rect {
  fill: rgba(206, 201, 255, 0.16);
}

.prov__lines--hot rect {
  fill: rgba(255, 209, 102, 0.62);
}

.prov__range {
  fill: rgba(245, 185, 66, 0.08);
  stroke: rgba(245, 185, 66, 0.55);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.prov__edge {
  fill: none;
  stroke: rgba(206, 201, 255, 0.28);
  stroke-width: 1.2;
}

.prov__edge--main {
  stroke: var(--amber);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 6px rgba(245, 185, 66, 0.55));
}

.prov__head {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prov__claim rect {
  fill: rgba(245, 185, 66, 0.12);
  stroke: var(--amber);
  stroke-width: 1.2;
}

.prov__node rect {
  fill: rgba(9, 10, 23, 0.9);
  stroke: var(--hair-bright);
  stroke-width: 1;
}

.prov__label {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  fill: #fff;
  letter-spacing: -0.02em;
}

.prov__label--sm {
  font-size: 12.5px;
  fill: var(--ink-soft);
}

.prov__rel {
  font-size: 9.5px;
  fill: var(--amber-pale);
  opacity: 0.8;
}

.prov__foot {
  fill: var(--ink-soft);
  font-size: 8.8px;
  letter-spacing: 0.02em;
}

.prov__foot--dim {
  fill: var(--ink-dim);
}

/* ---------- Pulse / Nexus / Okto Neuron positioning bridge ---------- */
.product-bridge {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background:
    linear-gradient(90deg, rgba(6, 6, 16, 0.98), rgba(10, 9, 24, 0.88) 50%, rgba(5, 7, 17, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(123, 78, 255, 0.12), transparent 52%);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.24);
  isolation: isolate;
}

.product-bridge__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(480px, 1.2fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(2.2rem, 4.5vw, 4rem) var(--gutter);
}

.product-bridge__eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--labs-cyan);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-bridge__statement h2 {
  max-width: 22ch;
  color: var(--ink-soft);
  font-size: clamp(1.45rem, 2.3vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.product-bridge__statement strong {
  display: block;
  background: linear-gradient(105deg, var(--amber-bright), #fff4dc 72%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}

.product-bridge__grafx {
  max-width: 40ch;
  margin-top: 1rem;
  color: var(--ink-dim);
  font-size: 0.86rem;
  line-height: 1.55;
}

.product-bridge__products {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr) 30px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.product-bridge__products article {
  min-height: 142px;
  padding: 1.25rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(14, 14, 31, 0.82), rgba(6, 7, 16, 0.75));
}

.product-bridge__products article > a > span,
.product-bridge__products article > span {
  color: var(--labs-violet);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.product-bridge__products article > a:hover > span {
  color: var(--ink);
}

.product-bridge__self {
  border-color: rgba(245, 185, 66, 0.28);
  box-shadow: inset 0 0 30px rgba(245, 185, 66, 0.04);
}

.product-bridge__products article.product-bridge__self > span {
  color: var(--amber-bright);
}

.product-bridge__products p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.product-bridge__products p a {
  color: var(--amber-pale);
  border-bottom: 1px solid rgba(255, 233, 184, 0.35);
}

.product-bridge__products > i {
  color: var(--ink-dim);
}

.product-bridge__products svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

/* ---------- shared chapter structure ---------- */
.section {
  --local-accent: var(--amber);
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: clamp(6rem, 12vh, 10rem) 0;
  isolation: isolate;
  scroll-margin-top: var(--nav-h);
}

.section::before {
  position: absolute;
  z-index: -1;
  inset: 3% 0;
  content: "";
  pointer-events: none;
}

.section--left::before {
  background:
    linear-gradient(90deg, rgba(3, 3, 9, 0.96), rgba(3, 3, 9, 0.79) 50%, rgba(3, 3, 9, 0.14) 78%, transparent),
    radial-gradient(circle at 10% 50%, color-mix(in srgb, var(--local-accent) 8%, transparent), transparent 35%);
}

.section--right::before {
  background:
    linear-gradient(270deg, rgba(3, 3, 9, 0.96), rgba(3, 3, 9, 0.79) 50%, rgba(3, 3, 9, 0.14) 78%, transparent),
    radial-gradient(circle at 90% 50%, color-mix(in srgb, var(--local-accent) 8%, transparent), transparent 35%);
}

#problem { --local-accent: var(--contrast); }
#what { --local-accent: var(--amber); }
#grounded { --local-accent: var(--amber-bright); }
#how { --local-accent: var(--amber); }
#tools { --local-accent: var(--amber); }
#local { --local-accent: var(--amber-pale); }
#install { --local-accent: var(--amber); }

.section__inner {
  position: relative;
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section__header {
  max-width: 920px;
  margin-bottom: clamp(2.5rem, 5vw, 4.8rem);
}

.section__header--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.7fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  max-width: none;
}

.section__title {
  max-width: 14ch;
  font-size: clamp(2.7rem, 5.4vw, 6.1rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.96;
  text-wrap: balance;
}

.section__title em {
  display: block;
  margin-bottom: -0.13em;
  padding-bottom: 0.13em;
  background: linear-gradient(105deg, color-mix(in srgb, var(--local-accent) 85%, white), #f2efff 72%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
  line-height: 1.04;
  overflow: visible;
}

.section__lede,
.section__copy {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

.section__lede {
  max-width: 680px;
  margin-top: 1.6rem;
}

.section__lede--right {
  max-width: 500px;
  margin-top: 0;
}

.section__copy {
  max-width: 620px;
}

.section__copy p + p {
  margin-top: 1.25rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: start;
}

.context-icon {
  --icon-a: var(--amber);
  --icon-b: var(--amber-bright);
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--icon-a) 35%, transparent);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--icon-a) 18%, transparent), transparent 70%);
  color: color-mix(in srgb, var(--icon-b) 70%, white);
  box-shadow: inset 0 0 16px color-mix(in srgb, var(--icon-a) 8%, transparent);
}

.context-icon::after {
  position: absolute;
  inset: -3px;
  border-top: 1px solid color-mix(in srgb, var(--icon-b) 72%, transparent);
  border-right: 1px solid transparent;
  border-radius: 50%;
  content: "";
  opacity: 0.55;
}

.context-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

/* ---------- 01 problem ---------- */
.section--tight {
  padding-top: clamp(7rem, 14vh, 12rem);
}

.provocation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--hair);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.24);
}

.provocation-card,
.audit-row,
.surface,
.tool,
.honesty__card {
  position: relative;
  background: linear-gradient(145deg, rgba(12, 12, 27, 0.9), rgba(5, 6, 14, 0.88));
  backdrop-filter: blur(14px);
}

.provocation-card {
  min-height: 250px;
  padding: clamp(1.25rem, 2vw, 1.8rem);
  overflow: hidden;
  transition: background 300ms ease, transform 400ms var(--ease), box-shadow 300ms ease;
}

.provocation-card::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 72%, rgba(127, 184, 255, 0.05));
  content: "";
  opacity: 0;
  transition: opacity 300ms ease;
}

.provocation-card::after {
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(127, 184, 255, 0.14);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 14px rgba(127, 184, 255, 0.025), 0 0 0 28px rgba(127, 184, 255, 0.015);
}

.provocation-card:hover {
  z-index: 2;
  background: linear-gradient(145deg, rgba(13, 16, 33, 0.98), rgba(7, 7, 17, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(127, 184, 255, 0.24);
  transform: translateY(-5px);
}

.provocation-card:hover::before {
  opacity: 1;
}

.provocation-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.provocation-card .context-icon {
  --icon-a: var(--contrast);
  --icon-b: #b8d6ff;
}

.card-index {
  color: rgba(127, 184, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.provocation-card h3,
.audit-row h3,
.surface h3,
.tool h3,
.honesty__card h3,
.pipeline__step h3 {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.provocation-card > h3 {
  position: relative;
  z-index: 1;
  max-width: 17ch;
  margin-top: 2.5rem;
  font-size: clamp(1.22rem, 1.75vw, 1.6rem);
}

.provocation-card p,
.audit-row p,
.surface p,
.tool p,
.honesty__card p,
.pipeline__step p {
  position: relative;
  z-index: 1;
  color: var(--ink-dim);
}

.provocation-card p {
  max-width: 34ch;
  margin-top: 0.8rem;
  font-size: 0.92rem;
}

/* ---------- 02 what it is ---------- */
.surfaces {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--hair);
}

.surface {
  min-height: 200px;
  padding: 1.35rem 1.25rem;
  transition: background 300ms ease;
}

.surface:hover {
  background: linear-gradient(145deg, rgba(16, 16, 33, 0.98), rgba(7, 7, 17, 0.96));
}

.surface--accent {
  box-shadow: inset 0 0 0 1px rgba(245, 185, 66, 0.28), inset 0 0 40px rgba(245, 185, 66, 0.04);
}

.surface__k {
  display: block;
  color: var(--amber-bright);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.surface h3 {
  margin-top: 1.6rem;
  font-size: 1.12rem;
}

.surface p {
  margin-top: 0.5rem;
  font-size: 0.86rem;
  line-height: 1.5;
}

.surface code {
  font-size: 0.8em;
}

.grafx-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 720px;
  margin-top: 1.5rem;
  color: var(--ink-dim);
  font-size: 0.92rem;
}

.grafx-line strong {
  color: var(--ink);
  font-weight: 500;
}

.capability-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(90deg, transparent, rgba(8, 9, 21, 0.72), transparent);
}

.capability-strip div {
  position: relative;
  padding: 1.25rem;
}

.capability-strip div:not(:last-child)::after {
  position: absolute;
  top: 22%;
  right: 0;
  bottom: 22%;
  width: 1px;
  background: var(--hair);
  content: "";
}

.capability-strip dt {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 400;
  line-height: 1;
}

.capability-strip dd {
  margin-top: 0.42rem;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- 03 grounded (centrepiece) ---------- */
.section--grounded {
  background:
    radial-gradient(circle at 20% 40%, rgba(255, 209, 102, 0.07), transparent 30%),
    linear-gradient(180deg, transparent, rgba(3, 3, 9, 0.5));
}

.grounded {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.response {
  overflow: hidden;
  border: 1px solid rgba(245, 185, 66, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(10, 10, 24, 0.96), rgba(5, 5, 14, 0.94));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.response__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.02);
}

.response__bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(206, 201, 255, 0.2);
}

.response__path {
  margin-left: 0.6rem;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.response__body {
  margin: 0;
  padding: 1.25rem 1.35rem;
  overflow-x: auto;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 0.95vw, 0.8rem);
  line-height: 1.6;
  tab-size: 2;
}

.response__body code {
  color: inherit;
  font-size: inherit;
}

.response__body .c { color: var(--ink-dim); }
.response__body .k { color: var(--amber-bright); }
.response__body .p { color: #cfcaff; }
.response__body .s { color: var(--amber-pale); }
.response__body .n { color: #b8d6ff; }

.response__note {
  padding: 0.95rem 1.35rem 1.1rem;
  border-top: 1px solid var(--hair);
  color: var(--ink-dim);
  font-size: 0.82rem;
  line-height: 1.55;
}

.grounded__copy {
  position: sticky;
  top: calc(var(--nav-h) + 10vh);
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.65;
}

.grounded__frame {
  margin-bottom: 1.1rem;
  background: linear-gradient(105deg, var(--amber-bright), #fff 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.honesty {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.4vw, 1.2rem);
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.honesty__card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.3rem, 2.2vw, 1.8rem);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
  transition: border-color 300ms ease, transform 400ms var(--ease);
}

.honesty__card:hover {
  border-color: rgba(255, 209, 102, 0.4);
  transform: translateY(-6px);
}

.honesty__k {
  color: var(--amber-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.honesty__card h3 {
  margin-top: 1.4rem;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
}

.honesty__card p {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.honesty__values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.honesty__values code {
  padding: 0.18rem 0.42rem;
  border: 1px solid var(--hair);
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.honesty__card blockquote {
  margin-top: 1.4rem;
  padding-top: 0;
  padding-left: 0.9rem;
  border-left: 1px solid var(--amber);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.5;
}

.honesty__card cite {
  display: block;
  margin-top: 0.4rem;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- 04 how it works ---------- */
.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.6rem;
  counter-reset: step;
}

.pipeline::before {
  position: absolute;
  top: 22px;
  right: 8%;
  left: 8%;
  z-index: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber) 15%, var(--amber) 85%, transparent);
  box-shadow: 0 0 10px rgba(245, 185, 66, 0.35);
  content: "";
}

.pipeline__step {
  position: relative;
  z-index: 1;
  padding: 0 0.2rem;
}

.pipeline__n {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 185, 66, 0.45);
  border-radius: 50%;
  background: #08091a;
  color: var(--amber-bright);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  box-shadow: 0 0 0 6px var(--bg);
}

.pipeline__step--gate .pipeline__n {
  background: var(--amber);
  color: var(--bg);
  font-weight: 600;
  box-shadow: 0 0 0 6px var(--bg), 0 0 24px rgba(245, 185, 66, 0.5);
}

.pipeline__step h3 {
  margin-top: 1.1rem;
  font-size: 1.05rem;
}

.pipeline__step h3 small {
  display: block;
  margin-top: 0.25rem;
  color: var(--amber-bright);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pipeline__step p {
  margin-top: 0.45rem;
  font-size: 0.83rem;
  line-height: 1.5;
}

.schema {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: linear-gradient(90deg, transparent, rgba(8, 9, 21, 0.72), transparent);
}

.schema__col {
  position: relative;
  padding: 1.5rem 1.35rem 1.6rem 0;
}

.schema__col + .schema__col {
  padding-left: 1.35rem;
}

.schema__col:not(:last-child)::after {
  position: absolute;
  top: 18%;
  right: 0;
  bottom: 18%;
  width: 1px;
  background: var(--hair);
  content: "";
}

.schema__k {
  display: block;
  color: var(--amber-bright);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.schema__col p {
  max-width: 42ch;
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- 05 tools ---------- */
.tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.4vw, 1.2rem);
}

.tool {
  padding: clamp(1.3rem, 2.2vw, 1.7rem);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
  transition: border-color 300ms ease, transform 400ms var(--ease);
}

.tool:hover {
  border-color: rgba(245, 185, 66, 0.38);
  transform: translateY(-6px);
}

.tool--offline {
  box-shadow: inset 0 0 0 1px rgba(245, 185, 66, 0.22), 0 30px 90px rgba(0, 0, 0, 0.2);
}

.tool__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.tool__name {
  color: var(--amber-bright);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
}

.tool__meta {
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool__doc {
  margin-top: 1.2rem;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.tool > p:last-child {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ---------- 06 local-first ---------- */
.audit-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.audit-layout > div:first-child {
  position: sticky;
  top: calc(var(--nav-h) + 10vh);
}

.egress {
  display: grid;
  gap: 0.7rem;
  max-width: 520px;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hair);
}

.egress li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.egress i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-pale);
  box-shadow: 0 0 10px rgba(255, 233, 184, 0.6);
}

.audit-list {
  position: relative;
  display: grid;
  gap: 0.75rem;
}

.audit-list::before {
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 35px;
  width: 1px;
  background: linear-gradient(transparent, rgba(255, 233, 184, 0.45), transparent);
  content: "";
  box-shadow: 0 0 10px rgba(255, 233, 184, 0.15);
}

.audit-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  min-height: 126px;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 14px;
  transition: border-color 250ms ease, background 250ms ease, transform 360ms var(--ease);
}

.audit-row::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 233, 184, 0.5));
  content: "";
}

.audit-row:hover {
  z-index: 2;
  border-color: rgba(255, 233, 184, 0.3);
  background: linear-gradient(145deg, rgba(22, 19, 14, 0.94), rgba(8, 7, 12, 0.94));
  transform: translateX(-8px);
}

.audit-row .context-icon {
  --icon-a: var(--amber-pale);
  --icon-b: var(--amber-bright);
  z-index: 1;
  width: 44px;
  height: 44px;
  background: #0f0d0a;
}

.audit-row h3 {
  font-size: 1.12rem;
}

.audit-row p {
  margin-top: 0.38rem;
  font-size: 0.9rem;
}

/* ---------- 08 install ---------- */
.section--install {
  min-height: 105svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 73% 50%, rgba(245, 185, 66, 0.1), transparent 25%),
    linear-gradient(90deg, rgba(3, 3, 9, 0.96), rgba(3, 3, 9, 0.72) 55%, rgba(3, 3, 9, 0.42));
}

.section--install::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 8%;
  width: min(45vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(245, 185, 66, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 185, 66, 0.08), transparent 62%);
  content: "";
  box-shadow: 0 0 0 45px rgba(245, 185, 66, 0.012), 0 0 0 90px rgba(123, 78, 255, 0.012);
  transform: translateY(-50%);
}

.install {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.install__steps {
  display: grid;
  gap: 0.55rem;
  max-width: 520px;
  margin-top: 1.6rem;
  padding-left: 0;
  counter-reset: installer;
}

.install__steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.6rem;
  align-items: baseline;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
  counter-increment: installer;
}

.install__steps li::before {
  color: var(--amber-bright);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  content: counter(installer, decimal-leading-zero);
}

.install__note {
  margin-top: 1rem;
  color: var(--ink-dim);
  font-size: 0.88rem;
}

.install__assurance {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  margin-top: 1.25rem;
  color: var(--amber-bright);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.install__terminal {
  position: relative;
  display: grid;
  gap: 0.5rem;
}

.install__terminal::before {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: -1.5rem;
  width: 1px;
  background: linear-gradient(transparent, var(--amber), transparent);
  content: "";
  box-shadow: 0 0 12px rgba(245, 185, 66, 0.35);
}

.install__terminal .terminal {
  min-height: 68px;
  transition: border-color 260ms ease, box-shadow 260ms ease;
}

.install__terminal .terminal code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.install__terminal .terminal:hover {
  z-index: 2;
  border-color: rgba(245, 185, 66, 0.4);
  box-shadow: 0 18px 65px rgba(0, 0, 0, 0.32), 0 0 24px rgba(245, 185, 66, 0.06);
}

.install__os {
  margin-bottom: 0.8rem;
  padding-left: 0.2rem;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.install__footnote {
  margin-top: 0.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--hair);
  color: var(--ink-dim);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ---------- footer (matches the Pulse / Nexus .foot pattern) ---------- */
.foot {
  position: relative;
  z-index: 3;
  padding: clamp(4rem, 7vw, 6rem) var(--gutter) 3rem;
  width: 100%;
  max-width: none;
  margin: 0;
  border-top: 1px solid var(--hair);
  background: rgba(3, 3, 8, 0.94);
}

.foot__inner {
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

.foot__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.foot__logo {
  width: 240px;
  height: auto;
  display: block;
}

.foot__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  max-width: 34ch;
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.foot__cols h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 1rem;
  font-weight: 400;
}

.foot__cols ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.foot__cols a {
  font-size: 0.935rem;
  color: var(--ink-dim);
  transition: color 180ms var(--ease);
}

.foot__cols a:hover {
  color: var(--ink);
}

.foot__rule {
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  height: 1px;
  margin: 3rem auto 1.6rem;
  background: var(--hair);
}

.foot__base {
  width: min(100%, calc(var(--max) + 2 * var(--gutter)));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.foot__labs {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.foot__labs:hover {
  color: var(--ink);
}

.foot__labs img {
  width: 20px;
  height: 20px;
  display: block;
}

.foot__labs strong {
  color: var(--ink);
  font-weight: 500;
}

.foot__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}

/* ---------- scroll reveals (JS-gated; content is fully visible without JS) ---------- */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
}

html.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 760ms var(--ease), transform 900ms var(--ease);
  transition-delay: calc(var(--reveal-i, 0) * 65ms);
}

/* ---------- responsive ---------- */
@media (max-width: 1260px) {
  .hero__inner > * {
    max-width: min(720px, calc(100% - var(--prov-w) - var(--prov-gap)));
  }

  .hero__title {
    font-size: clamp(3.5rem, 7.2vw, 7rem);
  }

  .surfaces {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 1rem;
  }

  .pipeline::before {
    display: none;
  }
}

@media (max-width: 1060px) {
  :root {
    --nav-h: 64px;
  }

  .nav__links,
  .nav__ext,
  .nav__actions .btn {
    display: none;
  }

  .nav__actions {
    margin-left: auto;
  }

  .nav__toggle {
    display: grid;
  }

  /* Stack the diagram below the hero text as a full-width, centred block. */
  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    row-gap: clamp(2rem, 5vw, 3.5rem);
  }

  .hero__inner > * {
    max-width: 780px;
  }

  .hero__title {
    max-width: 12ch;
  }

  .hero__lead {
    max-width: 690px;
  }

  .prov {
    position: static;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    transform: none;
    opacity: 1;
  }

  .prov__svg {
    width: 100%;
    height: auto;
    max-width: 720px;
  }

  .product-bridge__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-bridge__statement h2 {
    max-width: 30ch;
  }

  .product-bridge__products {
    max-width: 760px;
  }

  .split,
  .audit-layout,
  .install,
  .grounded,
  .section__header--split {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 2rem;
  }

  .section__copy,
  .section__lede--right {
    max-width: 760px;
  }

  .provocation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .honesty,
  .tools {
    grid-template-columns: 1fr;
  }

  .grounded__copy,
  .audit-layout > div:first-child {
    position: relative;
    top: auto;
  }

  .audit-list {
    margin-top: 1rem;
  }

  .schema {
    grid-template-columns: 1fr;
  }

  .schema__col,
  .schema__col + .schema__col {
    padding: 1.25rem 0;
  }

  .schema__col:not(:last-child)::after {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: 1px;
  }

  .install {
    gap: 3rem;
  }

  .install__terminal {
    width: min(100%, 720px);
  }
}

@media (max-width: 900px) {
  .foot__inner {
    grid-template-columns: 1fr;
  }

  .surfaces {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 1.15rem;
    --radius: 14px;
  }

  .backdrop__grid {
    opacity: 0.2;
  }

  .nav__logo {
    width: 160px;
  }

  .hero {
    min-height: 100svh;
    padding-top: calc(var(--nav-h) + 3rem);
    padding-bottom: 4.5rem;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(3, 3, 8, 0.96), rgba(3, 3, 8, 0.64)),
      linear-gradient(180deg, transparent 40%, rgba(3, 3, 8, 0.96));
  }

  .chapter-mark {
    margin-bottom: 1.25rem;
    font-size: 0.55rem;
  }

  .hero__meta .tag:last-child {
    font-size: 0.56rem;
  }

  .hero__assurance {
    font-size: 0.57rem;
  }

  .hero__title {
    max-width: 10ch;
    margin-top: 1.4rem;
    font-size: clamp(3.2rem, 16vw, 5.2rem);
    line-height: 0.88;
  }

  .hero__title span:last-child {
    font-size: 0.58em;
  }

  .hero__lead {
    margin-top: 1.2rem;
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .hero__actions {
    align-items: stretch;
    margin-top: 1.25rem;
  }

  .hero__actions .btn {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 0;
    padding-inline: 0.55rem;
    font-size: 0.59rem;
  }

  .product-bridge__inner {
    padding-block: 2.5rem;
  }

  .product-bridge__products {
    grid-template-columns: 1fr;
  }

  .product-bridge__products > i {
    justify-self: center;
    transform: rotate(90deg);
  }

  .product-bridge__products article {
    min-height: 0;
  }

  .section {
    min-height: 0;
    padding: 6rem 0;
  }

  .section--install {
    min-height: 100svh;
  }

  .section__title {
    font-size: clamp(2.7rem, 12vw, 4.4rem);
  }

  .section__lede,
  .section__copy {
    font-size: 0.98rem;
  }

  .provocation-grid {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
  }

  .provocation-card {
    min-height: 210px;
  }

  .capability-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-strip div:nth-child(2)::after {
    display: none;
  }

  .capability-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--hair);
  }

  .response__body {
    padding: 1rem;
    font-size: 0.66rem;
  }

  .pipeline {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .pipeline__step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.4rem 1rem;
    align-items: start;
  }

  .pipeline__n {
    grid-row: 1 / span 2;
    box-shadow: none;
  }

  .pipeline__step h3 {
    margin-top: 0.7rem;
  }

  .pipeline__step p {
    margin-top: 0;
  }

  .audit-row {
    padding: 1rem;
  }

  .section--install::before {
    right: -50%;
    width: 120vw;
  }

  .install__terminal::before {
    left: -0.45rem;
  }

  .terminal {
    min-width: 0;
  }

  .terminal code {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 640px) {
  .foot__cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .surfaces {
    grid-template-columns: 1fr;
  }

  .surface {
    min-height: 0;
  }
}

@media (max-width: 420px) {
  .hero__actions .btn {
    flex-basis: 100%;
  }

  .terminal__copy {
    padding-inline: 0.42rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .provocation-card:hover,
  .honesty__card:hover,
  .tool:hover,
  .audit-row:hover,
  .btn:hover {
    transform: none;
  }

  html.js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav,
  .mobile-menu,
  .tag,
  .terminal,
  .provocation-card,
  .audit-row,
  .surface,
  .tool,
  .honesty__card {
    backdrop-filter: none;
  }

  .nav {
    background: #05050c;
  }

  .mobile-menu {
    background: #05050c;
  }
}
