/* InvaQuant — site stylesheet. No external resources; fonts are self-hosted (OFL).
   Palette: carbon neutrals plus exactly one accent (cyan). Gradients appear only as light
   effects inside that palette. Motion is opt-in: everything animated sits behind
   `prefers-reduced-motion: no-preference`, and everything scripted behind the `.js` class that
   site.js sets, so the page is complete and calm without either. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
}

:root {
  --carbon-0: #0a0c0e; /* page */
  --carbon-1: #111417; /* raised surface */
  --line: #232a2f; /* hairlines */
  --strand: #4a555d; /* figure strokes */
  --text: #e7ebed;
  --muted: #9aa4ab;
  --cyan: #46cfe0; /* the only accent */

  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 38rem;
  --section-gap: clamp(6rem, 13vw, 11rem);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html {
  color-scheme: dark;
  background: var(--carbon-0);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--carbon-0);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Film grain over everything: one small self-hosted tile, never intercepts input. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: url("../noise.png") repeat;
  opacity: 0.04;
}

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

ol,
ul {
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration-color: var(--strand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover {
  color: var(--cyan);
  text-decoration-color: var(--cyan);
}

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

::selection {
  background: var(--cyan);
  color: var(--carbon-0);
}

.wrap {
  width: 100%;
  max-width: 82rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 60;
  padding: 0.6rem 0.9rem;
  background: var(--cyan);
  color: var(--carbon-0);
  font-family: var(--mono);
  font-size: 0.8125rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
  color: var(--carbon-0);
}

.mono {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* ---------- Header ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.75rem;
}

/* On the start page the header floats over the hero field. */
.masthead--over {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand svg {
  width: 1.625rem;
  height: 1.625rem;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2.25rem);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.4rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a:hover::after,
.nav .nav__contact::after {
  transform: scaleX(1);
}

.nav .nav__contact {
  color: var(--text);
}

@media (max-width: 47.99rem) {
  .nav .nav__section {
    display: none;
  }
}

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

.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(6.5rem, 13vh, 9rem);
  overflow: hidden;
}

/* Faint measurement grid behind the field; fades out toward the top so the title sits on black. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(to bottom, transparent 20%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 20%, #000 100%);
}

.hero__canvas {
  display: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.js .hero {
  min-height: max(100svh, 44rem);
  padding-bottom: clamp(18rem, 38svh, 24rem); /* room for the live field */
}

.js .hero__canvas {
  display: block;
}

.js .hero__fallback {
  display: none;
}

.hero__title {
  font-size: clamp(2.75rem, 7.2vw, 7.25rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.hero__title .line > span {
  display: block;
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-top: clamp(1.75rem, 3.2vw, 2.75rem);
}

.hero__sub {
  max-width: 31rem;
  font-size: clamp(1.125rem, 1.7vw, 1.4375rem);
  line-height: 1.4;
  color: var(--muted);
}

.cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.5rem;
  border: 1px solid var(--strand);
  background: var(--carbon-0);
  font-family: var(--mono);
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 200ms ease, color 200ms ease;
}

/* fill sweeps in from the left on hover/focus */
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}

.cta::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cyan);
  transition: background-color 200ms ease;
}

.cta:hover,
.cta:focus-visible {
  border-color: var(--cyan);
  color: var(--carbon-0);
}

.cta:hover::after,
.cta:focus-visible::after {
  transform: scaleX(1);
}

.cta:hover::before,
.cta:focus-visible::before {
  background: var(--carbon-0);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__title .line > span {
    animation: rise 1s var(--ease) both;
  }

  .hero__title .line:nth-child(2) > span {
    animation-delay: 0.09s;
  }

  .hero__title .line:nth-child(3) > span {
    animation-delay: 0.18s;
  }

  .hero__foot {
    animation: appear 0.9s ease 0.55s both;
  }

  .js .hero__canvas {
    animation: appear 1.4s ease 0.3s both;
  }
}

@keyframes rise {
  from {
    transform: translateY(105%);
  }
  to {
    transform: none;
  }
}

@keyframes appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Static convergence figure: shown when scripts are unavailable. */

.converge {
  position: relative;
  height: clamp(15rem, 28vw, 20rem);
  margin-block: clamp(2.5rem, 4.5vw, 3.5rem);
}

.converge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.converge path {
  fill: none;
  stroke: var(--strand);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.converge .s-lead {
  stroke: #7d8a93;
}

.converge .s-out {
  stroke: var(--cyan);
  stroke-width: 1.5;
}

.converge__label,
.converge__out {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}

.converge__label {
  left: 0;
}

.converge__label--1 {
  top: calc(10.5% - 1.5em);
}
.converge__label--2 {
  top: calc(33.5% - 1.5em);
}
.converge__label--3 {
  top: calc(56.5% - 1.5em);
}
.converge__label--4 {
  top: calc(79.5% - 1.5em);
}

.converge__out {
  right: 0;
  top: calc(50% - 1.9em);
  color: var(--cyan);
}

.converge__node {
  position: absolute;
  left: 74%;
  top: 50%;
  width: 0.6875rem;
  height: 0.6875rem;
  margin: -0.34375rem 0 0 -0.34375rem;
  border-radius: 50%;
  background: var(--carbon-0);
  border: 1.5px solid var(--cyan);
}

/* ---------- Facts strip ---------- */

.tally {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tally li {
  display: flex;
  align-items: baseline;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
  padding: clamp(1.25rem, 2.6vw, 2.25rem) clamp(0.75rem, 2vw, 2rem);
  border-left: 1px solid var(--line);
}

.tally li:first-child {
  border-left: 0;
  padding-left: 0;
}

.tally__n {
  font-family: var(--mono);
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.tally__t {
  max-width: 12em;
  font-size: clamp(0.875rem, 1.25vw, 1.0625rem);
  line-height: 1.35;
  color: var(--muted);
}

@media (max-width: 47.99rem) {
  .tally {
    grid-template-columns: minmax(0, 1fr);
  }

  .tally li {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-inline: 0;
    align-items: center;
  }

  .tally li:first-child {
    border-top: 0;
  }

  .tally__n {
    min-width: 1.2em;
  }
}

/* ---------- Blocks (start page sections) ---------- */

.block {
  padding-top: var(--section-gap);
}

.block__head {
  position: relative;
  padding-top: 1.1rem;
}

/* the rule above each block draws itself in */
.block__head::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line);
  transform-origin: left;
}

.block__name {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.block__lead {
  max-width: 15em;
  margin-top: clamp(2rem, 5vw, 4.5rem);
  font-size: clamp(2.125rem, 5.6vw, 5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.block__note {
  max-width: var(--measure);
  margin-top: clamp(1.25rem, 2.4vw, 2rem);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
}

.caption {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Scroll reveals. Only when scripts run and motion is welcome; otherwise content is simply there. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.9s ease, transform 1.1s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }

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

  .js .block__head::before {
    transform: scaleX(0);
    transition: transform 1.4s var(--ease);
  }

  .js .block__head.in::before {
    transform: scaleX(1);
  }
}

/* ---------- Approach ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 5rem);
  margin-top: clamp(3rem, 7vw, 6rem);
}

.pillar {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.pillar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease);
}

.pillar:hover::before {
  transform: scaleX(1);
}

.pillar h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 1.1rem;
  transition: color 300ms ease;
}

.pillar:hover h3 {
  color: var(--cyan);
}

.pillar p {
  max-width: 31rem;
  color: var(--muted);
}

.pillar p + p {
  margin-top: 0.75rem;
}

@media (max-width: 39.99rem) {
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Breadth: correlation network ---------- */

.breadth {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: center;
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

.breadth__text p {
  max-width: 30rem;
  color: var(--muted);
}

.breadth__text p + p {
  margin-top: 1rem;
}

.net {
  display: none;
  width: 100%;
  max-width: 34rem;
  justify-self: center;
}

.js .net {
  display: block;
}

.net svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.net__edge {
  stroke: var(--muted);
  stroke-linecap: round;
  transition: stroke 200ms ease;
}

.net__edge.is-hot {
  stroke: var(--cyan);
}

.net__node {
  cursor: pointer;
  outline: none;
}

.net__node circle {
  fill: var(--carbon-0);
  stroke: var(--muted);
  stroke-width: 1.5;
  transition: fill 200ms ease, stroke 200ms ease;
}

.net__node .net__hit {
  fill: transparent;
  stroke: none;
}

.net__node .net__ring {
  fill: none;
  stroke: transparent;
  stroke-width: 1.5;
}

.net__node text {
  font-family: var(--mono);
  font-size: 12px;
  fill: var(--muted);
  transition: fill 200ms ease;
}

.net__node:hover .net__dot,
.net__node:focus-visible .net__dot,
.net__node.is-on .net__dot {
  fill: var(--cyan);
  stroke: var(--cyan);
}

.net__node:hover text,
.net__node:focus-visible text,
.net__node.is-on text {
  fill: var(--text);
}

.net__node:focus-visible .net__ring {
  stroke: var(--cyan);
}

.net__halo {
  fill: none;
  stroke: var(--line);
  stroke-dasharray: 2 6;
}

@media (max-width: 55.99rem) {
  .breadth {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Method: the pipeline ---------- */

.flow {
  position: relative;
  height: clamp(11rem, 20vw, 15rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.flow svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flow path,
.flow line {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.flow .tick {
  stroke: var(--line);
  stroke-width: 1;
}

.flow .file {
  stroke: var(--strand);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}

.flow .lane {
  stroke: #6a767e;
  stroke-width: 1.25;
}

.flow .lane--out {
  stroke: var(--strand);
}

.flow .mark {
  stroke: var(--muted);
  stroke-width: 1.5;
}

.flow .lane--kept {
  stroke: var(--cyan);
  stroke-width: 2;
}

.flow .scan {
  display: none;
  stroke: var(--cyan);
  stroke-width: 1;
}

.js .flow .scan {
  display: block;
}

.flow__dot {
  position: absolute;
  width: 0.4375rem;
  height: 0.4375rem;
  margin: -0.21875rem 0 0 -0.21875rem;
  border-radius: 50%;
  background: var(--text);
  transition: opacity 200ms ease;
}

.flow__dot.is-kept {
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(70, 207, 224, 0.14), 0 0 16px rgba(70, 207, 224, 0.7);
}

.flow__tag {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}

.flow__tag--file {
  left: 0;
  top: calc(90.9% - 1.5em);
}

.flow__tag--kept {
  right: 0;
  top: calc(26.4% - 2em);
  color: var(--cyan);
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.75rem clamp(0.75rem, 1.6vw, 1.5rem) 0 0;
  counter-increment: step;
  border-top: 1px solid var(--line);
}

.step::before {
  content: "";
  position: absolute;
  left: -0.34375rem;
  top: -0.375rem;
  width: 0.6875rem;
  height: 0.6875rem;
  border-radius: 50%;
  background: var(--carbon-0);
  border: 1.5px solid var(--cyan);
  transition: background-color 400ms ease, box-shadow 400ms ease, border-color 400ms ease;
}

.step__n {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.step__n::before {
  content: "0" counter(step);
}

.step h3 {
  margin-top: 0.5rem;
  font-size: clamp(1.125rem, 1.7vw, 1.4375rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.step p {
  max-width: 16rem;
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Scroll-driven state: a step is dim until the signal reaches it. */
.js .steps--live .step {
  transition: opacity 500ms ease;
}

.js .steps--live .step:not(.is-active) {
  opacity: 0.32;
}

.js .steps--live .step:not(.is-active)::before {
  border-color: var(--strand);
}

.js .steps--live .step.is-active::before {
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(70, 207, 224, 0.14), 0 0 18px rgba(70, 207, 224, 0.5);
}

.outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.outcomes li {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--strand);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text);
}

.outcomes li:first-child {
  border-color: var(--cyan);
  color: var(--cyan);
}

@media (max-width: 61.99rem) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 2.5rem;
    margin-left: 0.34375rem;
    border-left: 1px solid var(--line);
  }

  .step {
    border-top: 0;
    padding: 0 0 2.25rem 2rem;
  }

  .step:last-child {
    padding-bottom: 0;
  }

  .step::before {
    top: 0.3rem;
    left: -0.375rem;
  }

  .step p {
    max-width: 30rem;
  }
}

/* ---------- The Brain ---------- */

.brain__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

.brain__stage {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 1.5rem;
}

.brain__text {
  grid-column: 1;
  grid-row: 1;
}

.brain__view {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: calc(100svh - 9rem);
  margin-inline: auto;
}

/* a low pool of light behind the network */
.brain__view::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 207, 224, 0.1), rgba(70, 207, 224, 0) 100%);
  pointer-events: none;
}

.brain__view canvas {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: grab;
}

.brain__view.is-dragging canvas {
  cursor: grabbing;
}

.brain__view.is-live canvas {
  display: block;
}

.brain__view.is-live .brain__static {
  display: none;
}

.brain__static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.brain__static line {
  stroke: var(--muted);
  stroke-width: 1;
}

.brain__static circle {
  fill: var(--text);
}

.brain__static .ring {
  fill: none;
  stroke: var(--line);
  stroke-dasharray: 2 7;
}

.brain__static .p {
  fill: var(--cyan);
}

.brain__static .core {
  fill: var(--carbon-0);
  stroke: var(--cyan);
  stroke-width: 2;
}

.brain__static text {
  font-family: var(--mono);
  font-size: 13px;
  fill: var(--text);
  text-anchor: middle;
}

.tenet {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.tenet h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
}

.tenet p {
  max-width: 30rem;
  color: var(--muted);
}

/* Intake: three stations on a line, with one signal passing through them. */
.intake {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 26rem;
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text);
}

.intake::before {
  content: "";
  position: absolute;
  left: 0;
  right: 33.333%;
  top: 0.25rem;
  height: 1px;
  background: var(--strand);
}

.intake::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0.5625rem;
  height: 0.5625rem;
  margin-left: -0.28125rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(70, 207, 224, 0.8);
  opacity: 0;
}

.intake li {
  position: relative;
}

.intake li::before {
  content: "";
  position: absolute;
  left: -0.21875rem;
  top: -1.0625rem;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--carbon-0);
  border: 1px solid var(--muted);
}

.intake li:last-child {
  color: var(--cyan);
}

.intake li:last-child::before {
  border-color: var(--cyan);
  background: var(--cyan);
}

@media (prefers-reduced-motion: no-preference) {
  .intake::after {
    animation: intake 3.6s cubic-bezier(0.6, 0, 0.3, 1) infinite;
  }
}

/* pauses at Verify before it is let through */
@keyframes intake {
  0% {
    left: 0;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  38%,
  58% {
    left: 33.333%;
  }
  88% {
    left: 66.666%;
    opacity: 1;
  }
  100% {
    left: 66.666%;
    opacity: 0;
  }
}

/* Trace: the path of a question, top-down. */
.trace {
  margin: 1.5rem 0 0 0.21875rem;
  border-left: 1px solid var(--strand);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text);
}

.trace li {
  position: relative;
  padding: 0 0 0.9rem 1.25rem;
  line-height: 1;
}

.trace li:last-child {
  padding-bottom: 0;
}

.trace li::before {
  content: "";
  position: absolute;
  left: -0.25rem;
  top: 0.15rem;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--carbon-0);
  border: 1px solid var(--muted);
}

.trace li:first-child::before {
  background: var(--cyan);
  border-color: var(--cyan);
}

/* Chain: reading -> portfolio, the four links in order. */
.chain {
  margin-top: clamp(3rem, 7vw, 6rem);
}

.chain ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.chain li {
  position: relative;
  padding: clamp(1.25rem, 2.4vw, 2rem) clamp(1rem, 2vw, 2rem);
  border-left: 1px solid var(--line);
  font-size: clamp(1.125rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.chain li:first-child {
  border-left: 0;
  padding-left: 0;
}

/* the hand-over between two links */
.chain li + li::before {
  content: "";
  position: absolute;
  left: -0.3125rem;
  top: 50%;
  width: 0.5625rem;
  height: 0.5625rem;
  margin-top: -0.28125rem;
  border-top: 1px solid var(--cyan);
  border-right: 1px solid var(--cyan);
  background: var(--carbon-0);
  transform: rotate(45deg);
}

.chain li:last-child {
  color: var(--cyan);
}

@media (max-width: 55.99rem) {
  .brain__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .brain__stage,
  .brain__text {
    grid-column: 1;
    grid-row: auto;
  }

  .brain__stage {
    position: static;
  }

  .brain__view {
    max-width: 34rem;
  }

  .chain ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .chain li {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }

  .chain li:first-child {
    border-top: 0;
  }

  .chain li + li::before {
    left: 1.5rem;
    top: -0.3125rem;
    margin-top: 0;
    transform: rotate(135deg);
  }
}

/* ---------- Principles: the one light band ---------- */

.band {
  margin-top: var(--section-gap);
  padding-block: clamp(4rem, 9vw, 8rem) clamp(4.5rem, 10vw, 9rem);
  background: var(--text);
  color: var(--carbon-0);
}

.band .block__head::before {
  background: #b7c0c5;
}

.band .block__name {
  color: #47525a;
}

.principles {
  margin-top: clamp(2rem, 5vw, 4rem);
}

.principles li {
  padding-block: clamp(0.5rem, 1.2vw, 1rem);
  font-size: clamp(2rem, 6.4vw, 6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

@media (prefers-reduced-motion: no-preference) {
  .js .principles li {
    opacity: 0.16;
    transition: opacity 700ms ease;
  }

  .js .principles li.lit {
    opacity: 1;
  }
}

/* ---------- About ---------- */

.about .block__note + .block__note {
  margin-top: 1rem;
}

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: start;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.contact__line {
  max-width: 20em;
  font-size: clamp(1.5rem, 2.8vw, 2.375rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.card {
  display: grid;
  gap: 0.3rem;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  border: 1px solid var(--line);
  border-left: 1px solid var(--cyan);
  background: var(--carbon-1);
  font-style: normal;
}

.card__name {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.card__role {
  color: var(--muted);
}

.card__mail {
  justify-self: start;
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.9375rem;
  text-decoration-color: var(--cyan);
}

@media (max-width: 47.99rem) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.footer {
  margin-top: var(--section-gap);
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem);
  row-gap: 2rem;
}

.footer__id {
  grid-column: 1 / span 3;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer__id p + p {
  margin-top: 0.35rem;
}

.footer__disclaimer {
  grid-column: 4 / span 6;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.footer__links {
  grid-column: 11 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.footer__links a {
  color: var(--muted);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--cyan);
}

@media (min-width: 56rem) {
  .footer__id p:first-child {
    white-space: nowrap;
  }
}

@media (max-width: 55.99rem) {
  .footer__id,
  .footer__disclaimer,
  .footer__links {
    grid-column: 1 / -1;
  }

  .footer__links {
    flex-direction: row;
    gap: 1.5rem;
  }
}

/* ---------- Document pages (legal notice, privacy, 404) ---------- */

.section {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem);
  row-gap: 1.25rem;
}

.section__name {
  grid-column: 1 / span 3;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.section__body {
  grid-column: 4 / -1;
  min-width: 0;
}

@media (max-width: 55.99rem) {
  .section__name,
  .section__body {
    grid-column: 1 / -1;
  }
}

.doc {
  padding-top: clamp(2.5rem, 7vw, 5.5rem);
}

.doc__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.doc__meta {
  margin-top: 1rem;
}

.prose {
  max-width: var(--measure);
  color: var(--muted);
}

.prose p + p {
  margin-top: 1rem;
}

.prose strong {
  color: var(--text);
  font-weight: 500;
}

.facts {
  max-width: var(--measure);
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.facts dt,
.facts dd {
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
  padding-top: 0.95rem;
}

.facts dd {
  color: var(--text);
}

.facts__note {
  margin-top: 1.25rem;
}

@media (max-width: 29.99rem) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts dt {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .facts dd {
    padding-top: 0.25rem;
  }
}

.notfound {
  min-height: 46vh;
}

.notfound p {
  max-width: var(--measure);
  margin-top: 1.5rem;
  color: var(--muted);
}

.notfound .cta {
  margin-top: 2rem;
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  body::after {
    display: none;
  }
}
