/* INTEKO CMV — V3 Light (blanco + negro + signal) */

:root {
  --color-black: #f7f8f4;
  --color-black-soft: #eceee8;
  --color-white: #090b0b;
  --color-grey: #5a615e;
  --color-grey-dark: #d4d7d2;
  --color-signal: #b7ff2a;
  --color-line: rgba(9, 11, 11, 0.14);
  --color-ink: #090b0b;
  --color-paper: #ffffff;
  --color-paper-soft: #f7f8f4;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --pad-x: clamp(24px, 4vw, 72px);
  --max-w: 1600px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: auto;
}

html.lenis,
html.lenis body {
  height: auto;
}

body {
  margin: 0;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-nav-open {
  overflow: hidden;
}

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

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

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

::selection {
  background: var(--color-signal);
  color: var(--color-black);
}

.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;
}

.wrap {
  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-signal);
  margin: 0 0 1.25rem;
}

.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

.lede {
  max-width: 38rem;
  color: rgba(241, 242, 238, 0.78);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  margin: 0;
}

.section {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) 0;
  border-top: 1px solid var(--color-line);
}

.section--flush {
  padding-bottom: 0;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.sim-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-grey);
  border: 1px solid var(--color-line);
  padding: 0.35rem 0.55rem;
  margin-bottom: 1rem;
}

.instrument.is-live .instrument__item strong,
[data-instrument-live].is-live .instrument__item strong {
  color: var(--color-signal);
}

[data-instrument-live].is-live {
  border-color: rgba(183, 255, 42, 0.45);
}

/* ——— Custom cursor ——— */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-signal);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.cursor.is-on {
  opacity: 1;
}

.cursor.is-view {
  width: auto;
  height: auto;
  border-radius: 0;
  padding: 0.35rem 0.5rem;
  background: transparent;
  border: 1px solid var(--color-signal);
  color: var(--color-signal);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  mix-blend-mode: normal;
}

.cursor.is-view::after {
  content: attr(data-label);
}

@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(9, 11, 11, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1;
}

.logo__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.logo__cmv {
  color: var(--color-signal);
}

.logo__sub {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  color: var(--color-grey);
}

.nav {
  display: none;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

.nav a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(241, 242, 238, 0.72);
  position: relative;
  padding-bottom: 0.2rem;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-active {
  color: var(--color-white);
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav__loc {
  color: var(--color-signal) !important;
  margin-left: 0.5rem;
}

.nav-toggle {
  display: grid;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--color-white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-header.is-open {
  height: 100dvh;
  height: 100vh;
  max-height: 100dvh;
  max-height: 100vh;
  flex-direction: column;
  align-items: stretch;
  background: var(--color-black);
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
}

.site-header.is-scrolled.is-open {
  background: var(--color-black);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

.site-header.is-open .site-header__inner {
  flex: 0 0 var(--header-h);
  height: var(--header-h);
  align-items: center;
  border-bottom: 1px solid var(--color-line);
}

.nav-mobile {
  display: none;
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  background: var(--color-black);
  padding: 1.25rem var(--pad-x) 2.5rem;
  flex-direction: column;
  gap: 0;
  z-index: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.site-header.is-open .nav-mobile {
  display: flex;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 6vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-white);
  border-bottom: 1px solid var(--color-line);
  padding: 0.95rem 0;
  flex-shrink: 0;
}

.nav-mobile a:hover,
.nav-mobile a:focus-visible {
  color: var(--color-signal);
}

@media (min-width: 980px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* ——— Scroll progress ——— */
.scroll-rail {
  display: none;
  position: fixed;
  top: 50%;
  right: clamp(12px, 2vw, 28px);
  transform: translateY(-50%);
  z-index: 90;
  height: min(42vh, 320px);
  width: 24px;
  align-items: center;
  justify-content: center;
}

.scroll-rail__track {
  position: absolute;
  width: 1px;
  height: 100%;
  background: var(--color-line);
}

.scroll-rail__thumb {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 28px;
  background: var(--color-signal);
  transform: translateX(-50%);
  will-change: transform;
}

.scroll-rail__meta {
  position: absolute;
  left: 10px;
  top: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--color-grey);
}

.scroll-rail__num {
  position: absolute;
  left: 10px;
  bottom: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-signal);
}

@media (min-width: 1100px) {
  .scroll-rail {
    display: flex;
  }
}

/* ——— Hero ——— */
.hero {
  min-height: 100svh;
  display: grid;
  align-items: stretch;
  padding-top: var(--header-h);
  background:
    radial-gradient(ellipse 80% 50% at 70% 40%, rgba(183, 255, 42, 0.04), transparent 60%),
    linear-gradient(180deg, var(--color-black) 0%, var(--color-black-soft) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding: 2rem var(--pad-x) 3rem;
  min-height: calc(100svh - var(--header-h));
  align-items: center;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.5rem, 14vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  perspective: 600px;
  overflow: hidden;
}

.hero__brand > span {
  display: block;
  overflow: hidden;
}

.hero__brand .char {
  display: inline-block;
  will-change: transform, opacity;
}

.section,
.close,
.split__visual,
.process__step,
.system,
.verify-item,
.principle {
  will-change: transform, opacity;
}

.hero__brand .cmv {
  color: var(--color-signal);
}

.hero__claim {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  max-width: 28ch;
}

@media (max-width: 980px) {
  .hero__claim {
    font-size: clamp(1.45rem, 3.6vw, 2.1rem);
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero__claim {
    font-size: clamp(1.25rem, 5.2vw, 1.65rem);
  }
}

.hero h1.subhead {
  margin: 0 0 1rem;
  max-width: 36rem;
}

.hero__desc {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--color-grey);
  margin: 0 0 2rem;
  max-width: 36rem;
}

.hero__verbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(241, 242, 238, 0.55);
}

.hero__visual {
  position: relative;
  min-height: 280px;
  border: 1px solid var(--color-line);
  background:
    linear-gradient(rgba(241, 242, 238, 0.03) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(241, 242, 238, 0.03) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--color-black);
}

.hero__visual svg {
  width: 100%;
  height: auto;
}

.hero-particles {
  pointer-events: none;
}

.hero__visual-label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--color-grey);
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 0.42fr 0.58fr;
    gap: 3rem;
  }

  .hero__visual {
    min-height: 520px;
    align-self: stretch;
    display: grid;
    place-items: center;
  }
}

/* ——— Split sticky sections ——— */
.split {
  display: grid;
  gap: 2.5rem;
}

.split__sticky {
  position: relative;
}

.split__visual {
  border: 1px solid var(--color-line);
  background: var(--color-black-soft);
  padding: 1rem;
  min-height: 320px;
}

.split__visual svg {
  width: 100%;
  height: auto;
}

.field-prop .prop-well {
  transition: r 0.15s ease;
}

.field-prop .prop-dust {
  pointer-events: none;
}

[data-instrument-live].is-prop .prop-well {
  filter: drop-shadow(0 0 8px rgba(183, 255, 42, 0.55));
}

[data-axon-live].is-axon .axon-node {
  filter: drop-shadow(0 0 6px rgba(183, 255, 42, 0.5));
}

.axon-scene {
  transform-box: fill-box;
  transform-origin: center;
}

.axon-flow {
  pointer-events: none;
}

.instrument {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
  border-top: 1px solid var(--color-line);
  padding-top: 1rem;
}

.instrument__item {
  font-family: var(--font-mono);
}

.instrument__item span {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--color-grey);
  margin-bottom: 0.25rem;
}

.instrument__item strong {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--color-signal);
}

@media (min-width: 1200px) {
  .split {
    grid-template-columns: 0.42fr 0.58fr;
    gap: 3rem;
    align-items: start;
  }

  .split__sticky {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }

  .split__visual {
    min-height: 480px;
  }
}

/* Ensayos: always stacked — long copy needs full width */
#ensayos .split {
  grid-template-columns: 1fr;
  gap: 2rem;
}

#ensayos .split__sticky {
  position: relative;
  top: auto;
}

#ensayos .split__visual {
  order: -1;
  min-height: 280px;
  max-width: 720px;
  width: 100%;
  justify-self: center;
}

/* ——— Tests list ——— */
.test-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--color-line);
}

.test-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.95rem;
}

.test-list .idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-signal);
  padding-top: 0.2rem;
}

/* ——— Data tags ——— */
.data-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.data-tags span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--color-line);
  padding: 0.55rem 0.75rem;
  color: rgba(241, 242, 238, 0.7);
}

/* ——— Process ——— */
.process {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
  margin-top: 3rem;
  position: relative;
}

.process__rail {
  display: none;
}

.process__step {
  background: var(--color-black);
  padding: 1.25rem 1rem;
  min-height: 120px;
  position: relative;
  overflow: hidden;
}

.process__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--color-signal);
  transition: height 0.4s var(--ease);
}

.process__step.is-on::before {
  height: 100%;
}

.process__step .n {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-signal);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.process__step h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.process__step p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-grey);
}

@media (min-width: 800px) {
  .process {
    grid-template-columns: repeat(4, 1fr);
  }

  .process__step {
    min-height: 180px;
  }

  .process__rail {
    display: block;
    position: absolute;
    top: 1.35rem;
    left: 8%;
    right: 8%;
    height: 1px;
    background: var(--color-line);
    z-index: 2;
    pointer-events: none;
  }

  .process__rail-fill {
    height: 100%;
    width: 0;
    background: var(--color-signal);
    box-shadow: 0 0 12px rgba(183, 255, 42, 0.45);
  }
}

/* ——— Systems ——— */
.systems {
  display: grid;
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
  margin-top: 3rem;
}

.system {
  background: var(--color-black);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  gap: 1.5rem;
  transition: background 0.35s var(--ease);
}

.system:hover {
  background: var(--color-black-soft);
}

.system__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  transition: transform 0.35s var(--ease);
}

.system:hover .system__title {
  transform: translateX(6px);
}

.system__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  columns: 1;
}

.system__items li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(241, 242, 238, 0.65);
  padding-left: 1rem;
  position: relative;
}

.system__items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 1px;
  background: var(--color-signal);
}

.system__note {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--color-grey);
  max-width: 40rem;
}

@media (min-width: 700px) {
  .system {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }

  .system__items {
    columns: 2;
    column-gap: 1.5rem;
  }
}

.combined {
  margin-top: 1px;
  background: var(--color-black-soft);
  border: 1px solid var(--color-line);
  border-top: 0;
  padding: clamp(2rem, 5vw, 3.5rem) var(--pad-x);
  text-align: center;
}

.combined h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.combined p {
  margin: 0 0 1.75rem;
  color: var(--color-grey);
}

.combined__chain {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.combined__chain .plus {
  color: var(--color-signal);
}

/* ——— Verification ——— */
.verify-panel {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
}

.verify-item {
  background: var(--color-black);
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.verify-item .status {
  color: var(--color-grey);
  transition: color 0.4s ease;
}

.verify-item.is-on .status {
  color: var(--color-signal);
}

.verify-item.is-on .status::before {
  content: "✓ ";
}

.verify-final {
  grid-column: 1 / -1;
  background: var(--color-black);
  padding: 1.75rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241, 242, 238, 0.35);
  transition: color 0.5s ease, background 0.5s ease, letter-spacing 0.5s ease;
}

.verify-final.is-on {
  color: var(--color-black);
  background: var(--color-signal);
  letter-spacing: 0.2em;
}

@media (min-width: 700px) {
  .verify-panel {
    grid-template-columns: repeat(3, 1fr);
  }
}

.verify-copy {
  display: grid;
  gap: 1.25rem;
  max-width: 42rem;
  margin-top: 2rem;
}

.verify-copy p {
  margin: 0;
  color: rgba(241, 242, 238, 0.78);
}

/* ——— Experience ——— */
.ticker {
  margin-top: 2.5rem;
  border-block: 1px solid var(--color-line);
  overflow: hidden;
  padding-block: 1.25rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: ticker 40s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__track span::after {
  content: " / ";
  color: var(--color-signal);
  margin-left: 2.5rem;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.partners {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

.partners h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  color: var(--color-grey);
}

.partners ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.partners li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(241, 242, 238, 0.7);
}

.principles {
  margin-top: 3.5rem;
  display: grid;
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
}

.principle {
  background: var(--color-black);
  padding: 1.75rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.principle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-signal);
}

.principle.is-on::after {
  width: 100%;
  transition: width 0.8s var(--ease);
}

.principle h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.principle p {
  margin: 0;
  max-width: 36rem;
  color: var(--color-grey);
  font-size: 0.95rem;
}

@media (min-width: 800px) {
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }

  .principle:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* ——— Footer / close ——— */
.close {
  padding: clamp(6rem, 16vh, 12rem) 0 clamp(3rem, 8vh, 5rem);
  border-top: 1px solid var(--color-line);
  text-align: center;
}

.close__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 12vw, 8rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

.close__logo .cmv {
  color: var(--color-signal);
}

.close__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 22ch;
  margin-inline: auto;
}

.close__unit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--color-signal);
  margin: 0 0 2.5rem;
}

.close__contact {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: rgba(241, 242, 238, 0.75);
  display: grid;
  gap: 0.5rem;
  margin-bottom: 4rem;
}

.close__contact a:hover,
.close__contact a:focus-visible {
  color: var(--color-signal);
}

.signature {
  border-top: 1px solid var(--color-line);
  padding-top: 2rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(241, 242, 238, 0.55);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.signature .sep {
  color: var(--color-signal);
}

/* ——— Site footer ——— */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 1.5rem 0 2rem;
  background: var(--color-black);
}

body:has(.theme-switch) .site-footer {
  padding-bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px));
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--color-grey);
}

.site-footer__meta {
  display: grid;
  gap: 0.35rem;
  max-width: 40rem;
}

.site-footer a {
  color: rgba(241, 242, 238, 0.7);
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-signal);
  border-bottom-color: var(--color-signal);
}

/* ——— Legal page ——— */
.legal-back {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(241, 242, 238, 0.7);
}

.legal-back:hover,
.legal-back:focus-visible {
  color: var(--color-signal);
}

.legal-page {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
}

.legal-page__inner {
  max-width: 820px;
}

.legal-intro {
  margin-bottom: 2rem;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-line);
}

.legal-toc a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--color-grey);
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--color-signal);
}

.legal-block {
  margin-bottom: 2.75rem;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.legal-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.legal-block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 1.5rem 0 0.75rem;
  color: var(--color-signal);
}

.legal-block p {
  margin: 0 0 1rem;
  color: rgba(241, 242, 238, 0.78);
  font-size: 0.98rem;
}

.legal-block a {
  color: var(--color-signal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-dl {
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.85rem;
  border-top: 1px solid var(--color-line);
  padding-top: 1rem;
}

.legal-dl dt {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-grey);
  margin: 0;
}

.legal-dl dd {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  color: var(--color-white);
}

.legal-updated {
  margin-top: 2rem !important;
  color: var(--color-grey) !important;
  font-size: 0.75rem !important;
}

/* ——— Focus ——— */
:focus-visible {
  outline: 1px solid var(--color-signal);
  outline-offset: 3px;
}

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

  .ticker__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    white-space: normal;
  }

  .ticker {
    mask-image: none;
  }
}

/* ——— Document content (Word order) ——— */
.doc-section {
  padding: clamp(4rem, 10vh, 7rem) 0;
  border-top: 1px solid var(--color-line);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.doc-section:first-of-type {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vh, 4rem));
  border-top: 0;
}

.doc {
  max-width: 820px;
}

.doc .doc-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.doc .doc-brand .cmv {
  color: var(--color-signal);
}

.doc h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.doc .subhead,
.subhead,
h1.subhead {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-grey);
  margin: 0 0 1.25rem;
  text-transform: none;
  line-height: 1.45;
}

.hero__verbs.verbs {
  display: block;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(241, 242, 238, 0.7);
  margin: 0;
}

.doc h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 2.75rem 0 1rem;
  color: var(--color-white);
}

.doc h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 1.75rem 0 0.75rem;
  color: var(--color-signal);
}

.doc p {
  margin: 0 0 1rem;
  color: rgba(241, 242, 238, 0.82);
  font-size: 1.02rem;
  max-width: 62ch;
}

.doc .verbs {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0.5rem 0 2rem;
}

.doc ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  border-top: 1px solid var(--color-line);
}

.doc li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-line);
  padding-left: 1rem;
  position: relative;
  color: rgba(241, 242, 238, 0.82);
  font-size: 0.98rem;
}

.doc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 6px;
  height: 1px;
  background: var(--color-signal);
}

/* ========== V3 — Fondo claro + negro + signal ========== */
body.theme-light {
  background: var(--color-paper);
  color: var(--color-ink);
}

.theme-light .lede,
.theme-light .hero__desc,
.theme-light .doc p,
.theme-light .doc li,
.theme-light .system__note,
.theme-light .verify-copy p,
.theme-light .process__step p,
.theme-light .principle p,
.theme-light .partners li,
.theme-light .test-list li {
  color: rgba(9, 11, 11, 0.78);
}

.theme-light .site-header.is-scrolled,
.theme-light .site-header.is-open,
.theme-light .site-header.is-scrolled.is-open {
  background: #f7f8f4;
  border-bottom-color: rgba(9, 11, 11, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.theme-light .nav-mobile {
  background: #f7f8f4;
}

.theme-light .logo__mark {
  color: #090b0b;
}

.theme-light .logo__sub {
  color: #5a615e;
}

.theme-light .nav a {
  color: rgba(9, 11, 11, 0.72);
}

.theme-light .nav a:hover,
.theme-light .nav a:focus-visible,
.theme-light .nav a.is-active {
  color: #090b0b;
}

.theme-light .nav__loc {
  color: #5a8f00 !important;
}

.theme-light .nav-toggle span {
  background: #090b0b;
}

.theme-light .nav-mobile a {
  color: #090b0b;
  border-bottom-color: rgba(9, 11, 11, 0.14);
}

.theme-light .nav-mobile a:hover,
.theme-light .nav-mobile a:focus-visible {
  color: #3d6b00;
}

.theme-light .scroll-rail__meta {
  color: #5a615e;
}

.theme-light .scroll-rail__track {
  background: rgba(9, 11, 11, 0.18);
}

.theme-light .hero {
  background:
    radial-gradient(ellipse 70% 55% at 75% 35%, rgba(183, 255, 42, 0.18), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7f8f4 100%);
}

.theme-light .hero__visual,
.theme-light .split__visual {
  color: var(--color-ink);
  background:
    linear-gradient(rgba(9, 11, 11, 0.05) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, rgba(9, 11, 11, 0.05) 1px, transparent 1px) 0 0 / 36px 36px,
    #fff;
  border-color: rgba(9, 11, 11, 0.18);
}

.theme-light .hero__brand .cmv,
.theme-light .logo__cmv,
.theme-light .close__logo .cmv,
.theme-light .eyebrow,
.theme-light .nav__loc,
.theme-light .scroll-rail__num,
.theme-light .instrument__item strong,
.theme-light .test-list .idx,
.theme-light .process__step .n,
.theme-light .combined__chain .plus,
.theme-light .signature .sep,
.theme-light .close__unit,
.theme-light .doc h3 {
  color: #5a8f00;
}

.theme-light .hero__brand .cmv,
.theme-light .logo__cmv,
.theme-light .close__logo .cmv,
.theme-light .hero__brand .cmv .char {
  color: #b7ff2a !important;
  -webkit-text-stroke: 0;
}

/* Signal as solid accent blocks */
.theme-light .cursor {
  background: var(--color-ink);
  mix-blend-mode: normal;
}

.theme-light .cursor.is-view {
  border-color: var(--color-ink);
  color: var(--color-ink);
  background: var(--color-signal);
  mix-blend-mode: normal;
}

.theme-light .nav a::after,
.theme-light .scroll-rail__thumb,
.theme-light .process__step::before,
.theme-light .process__rail-fill,
.theme-light .principle::after,
.theme-light .doc li::before,
.theme-light .system__items li::before {
  background: var(--color-signal);
  box-shadow: none;
}

.theme-light .process__rail-fill {
  box-shadow: 0 0 0 1px rgba(9, 11, 11, 0.08);
}

.theme-light .section,
.theme-light .close {
  border-top-color: rgba(9, 11, 11, 0.12);
  background: var(--color-paper);
}

.theme-light .section:nth-of-type(even) {
  background: var(--color-paper-soft);
}

.theme-light .process,
.theme-light .systems,
.theme-light .principles,
.theme-light .verify-panel {
  background: rgba(9, 11, 11, 0.12);
  border-color: rgba(9, 11, 11, 0.12);
}

.theme-light .process__step,
.theme-light .system,
.theme-light .principle,
.theme-light .verify-item,
.theme-light .verify-final {
  background: #fff;
  color: var(--color-ink);
}

.theme-light .system:hover {
  background: #f3f5ef;
}

.theme-light .verify-item.is-on {
  box-shadow: inset 0 0 0 1px rgba(183, 255, 42, 0.9);
  background: #f4ffe0;
}

.theme-light .verify-final {
  color: rgba(9, 11, 11, 0.35);
}

.theme-light .verify-final.is-on {
  background: var(--color-signal);
  color: var(--color-ink);
}

.theme-light .combined {
  background: var(--color-ink) !important;
  color: #fff !important;
  border-color: var(--color-ink) !important;
}

.theme-light .combined h3,
.theme-light .combined__chain {
  color: #fff;
}

.theme-light .combined p {
  color: rgba(255, 255, 255, 0.7);
}

.theme-light .combined__chain .plus {
  color: var(--color-signal);
}

.theme-light .ticker {
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
}

.theme-light .ticker__track span::after {
  color: var(--color-signal);
}

.theme-light .close {
  background:
    linear-gradient(180deg, #f7f8f4 0%, #ffffff 40%, rgba(183, 255, 42, 0.2) 100%);
}

.theme-light .site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.65);
  border-top: 0;
}

.theme-light .site-footer__inner {
  color: rgba(255, 255, 255, 0.55);
}

.theme-light .site-footer a {
  color: var(--color-signal);
}

.theme-light .site-footer a:hover,
.theme-light .site-footer a:focus-visible {
  color: #fff;
  border-bottom-color: var(--color-signal);
}

.theme-light .sim-tag,
.theme-light .data-tags span {
  border-color: rgba(9, 11, 11, 0.2);
  color: var(--color-grey);
}

.theme-light .instrument {
  border-top-color: rgba(9, 11, 11, 0.12);
}

.theme-light .hero__verbs.verbs {
  color: rgba(9, 11, 11, 0.55);
}

.theme-light .doc h2,
.theme-light .headline,
.theme-light .system__title,
.theme-light .close__title {
  color: var(--color-ink);
}

.theme-light ::selection {
  background: var(--color-signal);
  color: var(--color-ink);
}

.theme-light .bw-chip {
  position: fixed;
  left: var(--pad-x);
  bottom: 1rem;
  z-index: 95;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--color-ink);
  background: var(--color-signal);
  color: var(--color-ink);
  pointer-events: none;
}

/* Theme switcher V1 / V2 */
.theme-switch {
  position: fixed;
  left: var(--pad-x);
  bottom: 1rem;
  z-index: 1100;
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(9, 11, 11, 0.18);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.theme-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 0.7rem;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s var(--ease), opacity 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.theme-chip--dark {
  background: #090b0b;
  color: #b7ff2a;
  border-right: 1px solid rgba(9, 11, 11, 0.12);
}

.theme-chip--light {
  background: #f7f8f4;
  color: #090b0b;
}

.theme-chip:hover,
.theme-chip:focus-visible {
  outline: none;
  filter: brightness(1.06);
  z-index: 1;
}

.theme-chip--dark:hover,
.theme-chip--dark:focus-visible {
  box-shadow: inset 0 0 0 1px #b7ff2a;
}

.theme-chip--light:hover,
.theme-chip--light:focus-visible {
  box-shadow: inset 0 0 0 1px #090b0b;
}

.theme-chip.is-active {
  cursor: default;
  box-shadow: inset 0 -2px 0 #b7ff2a;
}

.theme-chip.is-active:hover,
.theme-chip.is-active:focus-visible {
  filter: none;
  box-shadow: inset 0 -2px 0 #b7ff2a;
}

.theme-transit {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.theme-transit.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.theme-transit__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

body.is-theme-transit {
  overflow: hidden;
}

@media (max-width: 980px) {
  .theme-switch {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 0.5rem;
    box-shadow: none;
    border-color: rgba(9, 11, 11, 0.14);
  }

  .theme-chip {
    font-size: 0.48rem;
    letter-spacing: 0.08em;
    padding: 0.22rem 0.4rem;
    line-height: 1.2;
  }
}
/* SVG ink on light */
.theme-light .hero-structure {
  stroke: #090b0b !important;
  stroke-opacity: 0.35;
}

.theme-light .hero-slab rect {
  fill: #e8ebe4;
  stroke: #090b0b;
  stroke-opacity: 0.35;
}

/* ——— V3 text contrast (force readable ink) ——— */
.theme-light,
.theme-light .headline,
.theme-light .hero__claim,
.theme-light .hero__brand,
.theme-light .system__title,
.theme-light .process__step h3,
.theme-light .principle h3,
.theme-light .partners h3,
.theme-light .close__title,
.theme-light .close__logo,
.theme-light .doc h1,
.theme-light .doc h2,
.theme-light .verify-item,
.theme-light .verify-final:not(.is-on) {
  color: #090b0b;
}

.theme-light .lede,
.theme-light .hero__desc,
.theme-light .subhead,
.theme-light .system__note,
.theme-light .system__items li,
.theme-light .test-list li,
.theme-light .process__step p,
.theme-light .principle p,
.theme-light .verify-copy p,
.theme-light .partners p,
.theme-light .partners li,
.theme-light .close__contact,
.theme-light .signature,
.theme-light .instrument__item span,
.theme-light .hero__visual-label,
.theme-light .doc p,
.theme-light .doc li {
  color: rgba(9, 11, 11, 0.82) !important;
}

.theme-light .eyebrow,
.theme-light .test-list .idx,
.theme-light .process__step .n,
.theme-light .instrument__item strong,
.theme-light .close__unit,
.theme-light .scroll-rail__num,
.theme-light .doc h3,
.theme-light .signature .sep {
  color: #4d7a00 !important;
}

.theme-light .logo__cmv,
.theme-light .hero__brand .cmv,
.theme-light .close__logo .cmv,
.theme-light .hero__brand .cmv .char,
.theme-light .logo__cmv .char {
  color: #b7ff2a !important;
}

.theme-light .hero__verbs,
.theme-light .hero__verbs.verbs {
  color: rgba(9, 11, 11, 0.65) !important;
}

.theme-light .verify-final:not(.is-on) {
  color: rgba(9, 11, 11, 0.45) !important;
}

.theme-light .verify-final.is-on {
  color: #090b0b !important;
  background: #b7ff2a !important;
}

/* Dark bands keep light text */
.theme-light .combined,
.theme-light .combined h3,
.theme-light .combined__chain,
.theme-light .ticker,
.theme-light .ticker__track,
.theme-light .site-footer,
.theme-light .site-footer__inner {
  color: #f1f2ee !important;
}

.theme-light .combined p {
  color: rgba(241, 242, 238, 0.75) !important;
}

.theme-light .combined__chain .plus,
.theme-light .ticker__track span::after,
.theme-light .site-footer a {
  color: #b7ff2a !important;
}
