/* Okto Nexus landing page - Pulse-aligned static site */

:root {
  --bg: #050509;
  --bg-alt: #080a12;
  --surface: #0d111c;
  --surface-2: #121827;
  --surface-3: #182133;
  --ink: #f7f7fb;
  --ink-soft: #c9ccda;
  --ink-dim: #8b92a7;
  --ink-faint: #5d657a;
  --hair: rgba(255, 255, 255, 0.08);
  --hair-strong: rgba(255, 255, 255, 0.16);

  /* Brand — Nexus icon ramp (blue -> mid -> violet) */
  --nexus-blue: #2438f0;
  --nexus-mid: #5b32f4;
  --nexus-violet: #9b2cf0;

  /* Functional signal colors that mirror the live dashboard */
  --signal-direct: #3d7bf5;
  --signal-cyan: #0ea5e9;
  --signal-magenta: #ec4899;
  --signal-amber: #f59e0b;
  --signal-emerald: #10b981;

  /* Brand gradients (follow the Nexus icon: blue -> violet diagonal) */
  --gradient-nexus: linear-gradient(100deg, #2438f0 0%, #5b32f4 52%, #9b2cf0 100%);
  --gradient-nexus-soft: linear-gradient(
    100deg,
    rgba(36, 56, 240, 0.16) 0%,
    rgba(91, 50, 244, 0.14) 52%,
    rgba(155, 44, 240, 0.12) 100%
  );

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1500px;
  --gutter: clamp(1.1rem, 3vw, 3rem);
  --radius: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

code,
pre {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 1px solid var(--nexus-mid);
  outline-offset: 3px;
}

::selection {
  background: rgba(91, 50, 244, 0.42);
  color: #fff;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(36, 56, 240, 0.18), transparent 52%),
    linear-gradient(180deg, #050509 0%, #080910 100%);
}

.ambient__grid {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.ambient__scan {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 9px,
    rgba(255, 255, 255, 0.12) 10px
  );
}

.ambient__edge {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(5, 5, 9, 0.96), transparent 18%, transparent 82%, rgba(5, 5, 9, 0.96)),
    linear-gradient(to bottom, transparent 58%, rgba(5, 5, 9, 0.98));
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--hair);
  background: rgba(5, 5, 9, 0.74);
  backdrop-filter: blur(18px) saturate(140%);
}

.nav__inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  padding: 0 var(--gutter);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

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

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
  color: var(--ink-dim);
  font-size: 0.86rem;
}

.nav__links a,
.nav__ext {
  position: relative;
  transition: color 160ms ease;
}

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

.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--gradient-nexus);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav__ext {
  color: var(--ink-dim);
  font-size: 0.86rem;
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}

.nav__toggle span {
  display: block;
  width: 17px;
  height: 1px;
  background: var(--ink);
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.nav__toggle span + span {
  margin-top: 6px;
}

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

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

.nav__progress {
  display: block;
  height: 1px;
  width: calc(var(--scroll-progress, 0) * 100%);
  background: var(--gradient-nexus);
}

.mobile-menu {
  position: fixed;
  z-index: 35;
  inset: 64px 0 auto 0;
  padding: 1rem var(--gutter) 1.25rem;
  border-bottom: 1px solid var(--hair);
  background: rgba(5, 5, 9, 0.94);
  backdrop-filter: blur(18px);
}

.mobile-menu a {
  display: block;
  padding: 0.85rem 0;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--hair);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--hair-strong);
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1;
  transition: transform 180ms var(--ease), border-color 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  border-color: rgba(91, 50, 244, 0.55);
  background: var(--gradient-nexus);
  box-shadow: 0 18px 44px rgba(91, 50, 244, 0.28);
}

.btn--quiet {
  background: rgba(255, 255, 255, 0.045);
}

.btn--quiet:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.075);
}

.hero {
  position: relative;
  min-height: calc(86svh - 64px);
  overflow: hidden;
  display: grid;
  align-items: end;
  border-bottom: 1px solid var(--hair);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 44%;
  filter: saturate(1.08) contrast(1.04);
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 5, 9, 0.98) 0%, rgba(5, 5, 9, 0.86) 32%, rgba(5, 5, 9, 0.38) 64%, rgba(5, 5, 9, 0.78) 100%),
    linear-gradient(180deg, rgba(5, 5, 9, 0.62) 0%, rgba(5, 5, 9, 0.12) 46%, rgba(5, 5, 9, 0.92) 100%);
}

.hero__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8rem) var(--gutter) clamp(2.8rem, 5vw, 5rem);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(8, 10, 18, 0.64);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.tag--live::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--signal-emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

.hero__title {
  max-width: 1060px;
  font-size: clamp(3.2rem, 8.4vw, 8rem);
  line-height: 0.94;
  font-weight: 600;
  letter-spacing: 0;
}

.hero__title span {
  display: block;
}

.hero__title span:last-child {
  color: transparent;
  background: linear-gradient(96deg, #ffffff 0%, #c4c9ff 30%, #7c6cff 64%, #b06cf4 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__lead {
  max-width: 770px;
  margin-top: 1.45rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

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

.terminal {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(4, 6, 13, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.terminal--inline {
  min-width: min(100%, 360px);
}

.terminal__sigil {
  color: var(--nexus-mid);
  font-family: var(--font-mono);
}

.terminal code {
  color: var(--ink);
  font-size: 0.86rem;
  white-space: nowrap;
}

.terminal__copy {
  margin-left: auto;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--hair);
  border-radius: 6px;
  color: var(--ink-dim);
  font-size: 0.72rem;
  transition: color 160ms ease, border-color 160ms ease;
}

.terminal[data-copied="1"] .terminal__copy {
  color: var(--signal-emerald);
  border-color: rgba(16, 185, 129, 0.42);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 160px));
  gap: 0.8rem;
  margin-top: 2.4rem;
}

.hero__stats div {
  padding-top: 0.9rem;
  border-top: 1px solid var(--hair-strong);
}

.hero__stats dt {
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.hero__stats dd {
  color: var(--ink-dim);
  font-size: 0.83rem;
}

.section {
  padding: clamp(4.5rem, 7vw, 7rem) 0;
  border-bottom: 1px solid var(--hair);
}

.section--tight {
  padding: clamp(3.8rem, 6vw, 5.8rem) 0;
}

.section--band {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent),
    rgba(255, 255, 255, 0.018);
}

.section__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section__header {
  max-width: 920px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section__header--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  max-width: none;
}

.section__title {
  max-width: 970px;
  font-size: clamp(2rem, 4.8vw, 4.9rem);
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: 0;
}

.section__title em {
  font-style: normal;
  background: var(--gradient-nexus);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__lede,
.section__copy {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.section__lede {
  max-width: 760px;
  margin-top: 1rem;
}

.section__lede--right {
  max-width: 46ch;
  margin-top: 0;
  justify-self: end;
}

.section__copy {
  display: grid;
  gap: 1rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* ---------- contextual icons (Nexus brand ramp) ---------- */
.context-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: #aeb8ff;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--gradient-nexus) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 48px -34px rgba(91, 50, 244, 0.85);
  transition: box-shadow 200ms var(--ease), color 200ms ease;
}

.context-icon::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  background: var(--gradient-nexus-soft);
  opacity: 0.72;
}

.context-icon svg {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  overflow: visible;
}

.context-icon svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- provocation cards ---------- */
.provocation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.2rem, 4vw, 3.5rem);
}

.provocation-card,
.verb-card,
.audit-row {
  position: relative;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: rgba(13, 17, 28, 0.74);
  overflow: hidden;
}

.provocation-card::before,
.verb-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-nexus);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 360ms var(--ease);
  transition-delay: calc(var(--reveal-i, 0) * 75ms);
}

.provocation-card.is-in::before,
.verb-card.is-in::before,
.provocation-card:hover::before,
.verb-card:hover::before {
  transform: scaleX(1);
}

.provocation-card {
  min-height: 250px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms var(--ease);
}

.provocation-card:hover,
.verb-card:hover,
.audit-row:hover {
  border-color: var(--hair-strong);
  background: rgba(18, 24, 39, 0.82);
}

.provocation-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
}

.card-index {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.provocation-card h3,
.verb-card h3,
.audit-row h3 {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 500;
}

.provocation-card > h3 {
  margin-top: 0.4rem;
}

.provocation-card p,
.verb-card p,
.audit-row p {
  color: var(--ink-dim);
}

/* keep card content above the pointer glow */
.provocation-card > *,
.verb-card > *,
.audit-row > * {
  position: relative;
  z-index: 1;
}

/* ---------- communication verbs ---------- */
.verbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.verb-card {
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
  align-content: start;
  transition: border-color 200ms ease, background 200ms ease;
}

.verb-card__top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.verb-card__head {
  display: grid;
  gap: 0.2rem;
}

.verb-card__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

/* per-verb accent colors that mirror the live dashboard edges */
.verb-card[data-verb="direct"] .context-icon {
  color: #bcd0ff;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, var(--nexus-blue), var(--signal-direct)) border-box;
}

.verb-card[data-verb="handoff"] .context-icon {
  color: #f7b9da;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, var(--nexus-violet), var(--signal-magenta)) border-box;
}

.verb-card[data-verb="broadcast"] .context-icon {
  color: #fcd79a;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, var(--signal-amber), #fbbf24) border-box;
}

.verb-card[data-verb="direct"] .verb-card__tag {
  color: #7f9bff;
}

.verb-card[data-verb="handoff"] .verb-card__tag {
  color: #e87cb6;
}

.verb-card[data-verb="broadcast"] .verb-card__tag {
  color: #d6a55a;
}

.verb-card[data-verb="direct"]::before {
  background: linear-gradient(120deg, var(--nexus-blue), var(--signal-direct));
}

.verb-card[data-verb="handoff"]::before {
  background: linear-gradient(120deg, var(--nexus-violet), var(--signal-magenta));
}

.verb-card[data-verb="broadcast"]::before {
  background: linear-gradient(120deg, var(--signal-amber), #fbbf24);
}

.verb-card ul {
  display: grid;
  gap: 0.5rem;
  color: var(--ink-dim);
  font-size: 0.92rem;
}

.verb-card li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.verb-card li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.verb-card[data-verb="direct"] li::before {
  background: var(--signal-direct);
  opacity: 1;
}

.verb-card[data-verb="handoff"] li::before {
  background: var(--signal-magenta);
  opacity: 1;
}

.verb-card[data-verb="broadcast"] li::before {
  background: var(--signal-amber);
  opacity: 1;
}

/* ---------- evidence: sticky scroll-driven stage ---------- */
.stage-ev {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: start;
}

.stage-ev__frame {
  position: sticky;
  top: 92px;
  margin: 0;
  border: 1px solid var(--hair-strong);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 70px 150px -60px rgba(3, 4, 10, 0.92),
    0 36px 110px -44px rgba(91, 50, 244, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.showcase__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--hair);
  background: rgba(4, 6, 13, 0.6);
}

.showcase__bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.showcase__bar .dot:nth-child(1) {
  background: rgba(236, 72, 153, 0.6);
}

.showcase__bar .dot:nth-child(2) {
  background: rgba(245, 158, 11, 0.6);
}

.showcase__bar .dot:nth-child(3) {
  background: rgba(61, 123, 245, 0.6);
}

.showcase__path {
  margin-left: 0.6rem;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-ev__shots {
  position: relative;
}

.stage-ev__shots img {
  width: 100%;
  display: block;
}

html.js-stage .stage-ev__shots {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(91, 50, 244, 0.1), transparent 58%),
    var(--bg-alt);
}

html.js-stage .stage-ev__shots picture {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 520ms var(--ease), transform 700ms var(--ease);
}

html.js-stage .stage-ev__shots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

html.js-stage .stage-ev__shots[data-active="0"] picture[data-shot="0"],
html.js-stage .stage-ev__shots[data-active="1"] picture[data-shot="1"],
html.js-stage .stage-ev__shots[data-active="2"] picture[data-shot="2"],
html.js-stage .stage-ev__shots[data-active="3"] picture[data-shot="3"] {
  opacity: 1;
  transform: none;
}

.stage-ev__copy {
  display: grid;
  gap: clamp(2.5rem, 9vh, 5rem);
  padding-block: clamp(1rem, 5vh, 3rem);
}

.stage-ev__chapter {
  max-width: 44ch;
}

html.js-stage .stage-ev__chapter {
  min-height: clamp(220px, 42vh, 380px);
  display: grid;
  align-content: center;
  opacity: 0.32;
  transition: opacity 420ms var(--ease);
}

html.js-stage .stage-ev__chapter.is-active {
  opacity: 1;
}

.stage-ev__label {
  display: inline-flex;
  margin-bottom: 1rem;
  color: #aeb8ff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stage-ev__chapter h3 {
  margin-bottom: 0.9rem;
  color: var(--ink);
  font-size: clamp(1.4rem, 2.2vw, 2.4rem);
  font-weight: 500;
  line-height: 1.06;
}

.stage-ev__chapter p {
  color: var(--ink-dim);
  line-height: 1.65;
}

/* ---------- audit ---------- */
.audit-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
}

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

.audit-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 1.05rem;
  padding: 1.05rem 1.15rem;
  align-items: start;
  transition: border-color 200ms ease, background 200ms ease;
}

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

/* ---------- thesis ---------- */
.section--thesis {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(91, 50, 244, 0.1), transparent 60%),
    transparent;
}

.thesis__statement {
  max-width: 24ch;
  margin: 0 auto;
  text-align: center;
  color: var(--ink);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 3.5rem);
  line-height: 1.12;
}

.thesis__statement strong {
  display: block;
  margin-top: 0.25em;
  font-weight: 600;
  background: var(--gradient-nexus);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.thesis__pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 960px;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}

.thesis__pillars li {
  display: grid;
  gap: 1rem;
  padding: 1.5rem 1.4rem;
  background: var(--bg);
  transition: background 200ms ease;
}

.thesis__pillars li:hover {
  background: var(--surface);
}

.thesis__pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.thesis__pillar-k {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: transparent;
  background: var(--gradient-nexus);
  -webkit-background-clip: text;
  background-clip: text;
}

.thesis__pillar-v {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* ---------- install ---------- */
.section--install {
  background:
    linear-gradient(135deg, rgba(36, 56, 240, 0.14), transparent 42%),
    linear-gradient(315deg, rgba(155, 44, 240, 0.12), transparent 48%),
    #070811;
}

.install {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.install__terminal {
  display: grid;
  gap: 0.7rem;
}

/* ---------- footer ---------- */
.footer {
  padding: 1.6rem 0;
  color: var(--ink-dim);
}

.footer__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.footer__inner a {
  margin-left: auto;
  color: var(--ink-soft);
}

/* ---------- pointer-tracking glow (desktop) ---------- */
.glow-track {
  position: relative;
}

.glow-spot {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(91, 50, 244, 0.18),
    rgba(36, 56, 240, 0.08) 42%,
    transparent 68%
  );
  mix-blend-mode: screen;
  transition: opacity 320ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .glow-track:hover .glow-spot {
    opacity: 1;
  }
}

/* ---------- scroll reveals (JS-gated; no-JS sees the final layout) ---------- */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}

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

/* ---------- kinetic type (word-by-word statement) ---------- */
html.js-reveal [data-reveal][data-kinetic] {
  opacity: 1;
  transform: none;
}

.kword {
  font-style: normal;
}

html.js-reveal [data-kinetic] .kword:not(.kword--unit) {
  display: inline-block;
}

html.js-reveal [data-kinetic] .kword {
  opacity: 0;
  transform: translateY(0.55em);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
  transition-delay: calc(var(--w, 0) * 42ms);
}

html.js-reveal [data-kinetic].is-in .kword {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .nav__links,
  .nav__ext,
  .nav__actions .btn {
    display: none;
  }

  .nav__actions {
    margin-left: auto;
  }

  .nav__toggle {
    display: grid;
  }

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

  .section__lede--right {
    justify-self: start;
    max-width: 760px;
  }

  .provocation-grid,
  .verbs {
    grid-template-columns: 1fr;
  }

  .provocation-card {
    min-height: 0;
  }

  .stage-ev {
    grid-template-columns: 1fr;
  }

  .stage-ev__frame {
    position: sticky;
    top: 64px;
    z-index: 10;
    order: 0;
  }

  .stage-ev__copy {
    order: 1;
  }

  html.js-stage .stage-ev__chapter {
    min-height: clamp(180px, 32vh, 280px);
  }
}

@media (max-width: 720px) {
  .nav__inner {
    height: 58px;
  }

  .nav__logo {
    width: 136px;
  }

  .mobile-menu {
    inset-block-start: 58px;
  }

  .hero {
    min-height: calc(82svh - 58px);
  }

  .hero__media img {
    object-position: 66% 44%;
  }

  .hero__veil {
    background:
      linear-gradient(90deg, rgba(5, 5, 9, 0.98), rgba(5, 5, 9, 0.74)),
      linear-gradient(180deg, rgba(5, 5, 9, 0.42), rgba(5, 5, 9, 0.92));
  }

  .hero__inner {
    padding-top: 4.2rem;
  }

  .hero__title {
    font-size: clamp(2.65rem, 13vw, 4.4rem);
  }

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

  .terminal {
    width: 100%;
    min-width: 0;
  }

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

  .hero__actions .btn {
    width: 100%;
  }

  .section__title {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

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

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

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

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