/* BHA — launch page */

:root {
  --bg: #f6f7fb;
  --bg-soft: #eef1f8;
  --card: #ffffff;
  --ink: #0b1020;
  --ink-2: #2a3050;
  --muted: #5f6684;
  --faint: #9aa0b8;
  --line: rgba(11, 16, 32, 0.08);
  --line-2: rgba(11, 16, 32, 0.14);
  --g1: #2b5cff;
  --g2: #7c3aed;
  --g3: #ff3d81;
  --g4: #06c7f1;
  --grad: linear-gradient(95deg, var(--g4) 0%, var(--g1) 30%, var(--g2) 65%, var(--g3) 100%);
  --shadow: 0 24px 70px rgba(11, 16, 32, 0.12);
  --shadow-sm: 0 8px 24px rgba(11, 16, 32, 0.08);
  --r: 24px;
  --head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

b,
strong {
  font-weight: 700;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: gradShift 8s ease-in-out infinite alternate;
}

@keyframes gradShift {
  to {
    background-position: 100% 0;
  }
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
  white-space: nowrap;
}

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

.btn--grad {
  color: #fff;
  background: var(--grad);
  background-size: 200% 100%;
  box-shadow: 0 10px 30px rgba(43, 92, 255, 0.35);
}

.btn--grad:hover {
  background-position: 100% 0;
  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.4);
}

.btn--glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn--sm {
  font-size: 0.86rem;
  padding: 0.6rem 1.1rem;
}

.btn__play {
  width: 0;
  height: 0;
  border-left: 10px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem 1.6rem;
  color: #fff;
  transition: background 0.3s, color 0.3s, padding 0.3s, box-shadow 0.3s;
}

.nav.is-scrolled {
  background: rgba(246, 247, 251, 0.8);
  backdrop-filter: blur(16px);
  color: var(--ink);
  padding: 0.7rem 1.6rem;
  box-shadow: 0 1px 0 var(--line);
}

.nav__brand {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.nav__logo {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--grad);
  transform: rotate(45deg);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.6);
}

.nav__links {
  display: flex;
  gap: 1.6rem;
  margin: 0 auto;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav__links a {
  opacity: 0.8;
  transition: opacity 0.2s;
  white-space: nowrap;
}

/* below this width the eight section links no longer fit beside the language switch and the button */
@media (max-width: 1080px) {
  .nav__links {
    display: none;
  }
  .nav__right {
    margin-left: auto;
  }
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  opacity: 1;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lang {
  display: inline-flex;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px;
  opacity: 0.85;
}

.lang__btn {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.65rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.lang__btn.is-active {
  background: #fff;
  color: #0b1020;
}

.nav.is-scrolled .lang__btn.is-active {
  background: var(--ink);
  color: #fff;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0b1020;
  color: #fff;
  isolation: isolate;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  filter: saturate(1.1);
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(11, 16, 32, 0.92) 0%, rgba(11, 16, 32, 0.84) 52%, rgba(11, 16, 32, 0.6) 76%, rgba(11, 16, 32, 0.34) 100%),
    linear-gradient(180deg, rgba(11, 16, 32, 0.3) 0%, rgba(11, 16, 32, 0) 50%, var(--bg) 100%);
}

.hero__aurora {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(40% 35% at 20% 30%, rgba(43, 92, 255, 0.45), transparent 70%),
    radial-gradient(35% 35% at 75% 25%, rgba(124, 58, 237, 0.35), transparent 70%),
    radial-gradient(30% 30% at 55% 80%, rgba(255, 61, 129, 0.3), transparent 70%);
  filter: blur(40px);
  animation: aurora 14s ease-in-out infinite alternate;
  mix-blend-mode: screen;
  opacity: 0.8;
}

@keyframes aurora {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    transform: translate(4%, -3%) rotate(6deg) scale(1.08);
  }
}

.hero__content {
  position: relative;
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
  padding: clamp(5.5rem, 13vh, 8rem) 1.5rem clamp(3.5rem, 9vh, 7rem);
}

.hero__kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 1.4rem;
}

.hero__title {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(3.2rem, min(6.6vw, 11vh), 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

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

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

/* paper identity: full title, authors, affiliations */
.hero__paper {
  max-width: 58rem;
  margin-top: 1.5rem;
}

.hero__ptitle {
  margin: 0 0 0.7rem;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.authors span {
  white-space: nowrap;
}

.authors sup,
.affil sup {
  font-family: var(--mono);
  font-size: 0.62em;
  margin-left: 0.12em;
  opacity: 0.75;
}

.affil {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1rem;
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.affil > span {
  white-space: nowrap;
}

.affil sup {
  margin: 0 0.25em 0 0;
}

.authors--ink {
  color: var(--ink-2);
}

.affil--ink {
  color: var(--muted);
}

.hero__sub {
  max-width: 46rem;
  margin: 1.3rem 0 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.hero__cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.hero__chips {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.chip {
  display: flex;
  flex-direction: column;
  padding: 0.8rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  min-width: 150px;
}

.chip b {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.1;
  background: linear-gradient(90deg, #fff, #c7d2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.chip span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.15rem;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  transform: translateX(-50%);
}

.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
  transform: translateX(-50%);
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 16px);
    opacity: 0;
  }
}

/* load-in */
.reveal-h {
  opacity: 0;
  transform: translateY(26px);
  animation: riseIn 1s var(--ease) forwards;
}

.hero__content > .reveal-h:nth-child(1) {
  animation-delay: 0.15s;
}
.hero__content > .reveal-h:nth-child(2) {
  animation-delay: 0.25s;
}
.hero__content > .reveal-h:nth-child(3) {
  animation-delay: 0.45s;
}
.hero__content > .reveal-h:nth-child(4) {
  animation-delay: 0.6s;
}
.hero__content > .reveal-h:nth-child(5) {
  animation-delay: 0.75s;
}
.hero__content > .reveal-h:nth-child(6) {
  animation-delay: 0.9s;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- sections ---------- */
.sec {
  padding: 7rem 0;
  position: relative;
}

.sec--soft {
  background: var(--bg-soft);
}

.sec--film {
  padding-top: 2rem;
}

.sec__head {
  max-width: 46rem;
  margin-bottom: 3rem;
}

.sec__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}

.h2 {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 1.2rem;
  text-wrap: balance;
}

/* Chinese headings break at punctuation, not in the middle of a word */
html[lang^="zh"] .h2,
html[lang^="zh"] .hero__title {
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}

/* slightly smaller on phones so a ten-character phrase stays on one line */
html[lang^="zh"] .h2 {
  font-size: clamp(2rem, 5.2vw, 4.2rem);
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0;
}

.sec--dark {
  background: #0b1020;
  color: #fff;
  overflow: hidden;
}

.sec__aurora {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(35% 35% at 30% 40%, rgba(43, 92, 255, 0.35), transparent 70%),
    radial-gradient(30% 30% at 70% 30%, rgba(124, 58, 237, 0.3), transparent 70%),
    radial-gradient(25% 25% at 55% 75%, rgba(255, 61, 129, 0.22), transparent 70%);
  filter: blur(60px);
  animation: aurora 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.h2--light {
  color: #fff;
}

.lede--light {
  color: rgba(255, 255, 255, 0.72);
}

.kicker--light {
  background: linear-gradient(90deg, #9fd0ff, #d9b8ff);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- player ---------- */
.player {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: #0b1020;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  padding: 2px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}

.player__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b1020;
}

.player__btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease), opacity 0.3s;
  z-index: 2;
}

.player__btn:hover {
  transform: scale(1.06);
}

.player__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  animation: ring 2.2s ease-out infinite;
}

@keyframes ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.player__tri {
  width: 0;
  height: 0;
  border-left: 30px solid #fff;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  margin-left: 8px;
}

.player.is-playing .player__btn,
.player.is-playing .player__meta {
  opacity: 0;
  pointer-events: none;
}

.player.has-started .player__meta {
  opacity: 0;
}

.player__meta {
  position: absolute;
  left: 1.4rem;
  bottom: 1.2rem;
  display: flex;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.85);
  z-index: 2;
  transition: opacity 0.3s;
}

.player__tag,
.player__dur {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

/* ---------- demo ---------- */
.sec--decoder .sec__head {
  max-width: 52rem;
  margin-bottom: 2.2rem;
}

.demo {
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1.4rem 2rem 1.5rem;
  border: 1px solid var(--line);
}

/* which recording: EEG, MEG, fMRI or MUA */
.demo__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  margin-bottom: 1.3rem;
}

.demo__mods {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: var(--bg-soft);
}

.mod {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.5rem 1.05rem;
  border: 0;
  border-radius: 999px;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s, box-shadow 0.25s;
}

.mod b {
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.25s;
}

.mod span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  color: var(--faint);
}

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

.mod.is-active {
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.mod.is-active b {
  color: var(--ink);
}

.mod.is-active span {
  color: var(--muted);
}

.mod:focus-visible,
.demo__frame--sig:focus-visible {
  outline: 2px solid var(--g1);
  outline-offset: 2px;
}

.demo__fact {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
}

/* seen → brain → decoded: two squares and, between them, the recording at the same height */
.demo__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.5rem minmax(0, 1.5fr) 2.5rem minmax(0, 1fr);
  grid-template-areas: "seen a1 eeg a2 out";
  align-items: start;
  container-type: inline-size;
}

.demo__col {
  display: grid;
  grid-template-rows: auto auto 3rem;
  gap: 0.7rem;
  min-width: 0;
}

.demo__col--seen {
  grid-area: seen;
}

.demo__col--mid {
  grid-area: eeg;
}

.demo__col--out {
  grid-area: out;
}

.demo__lbl {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo__lbl--out {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.demo__frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
}

.demo__frame img,
.demo__frame canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo__frame--sig {
  aspect-ratio: 3 / 2;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  cursor: zoom-in;
}

/* the recording at full size, over the page */
.sigzoom {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  background: rgba(11, 16, 32, 0.72);
  cursor: zoom-out;
}

.sigzoom.is-open {
  display: grid;
}

.sigzoom canvas {
  width: min(94vw, 138vh);
  height: auto;
  max-width: none;
  aspect-ratio: 3 / 2;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.demo__frame--out::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* the arrows sit in the gutters, centred on the square panels */
.demo__arrow {
  align-self: start;
  justify-self: center;
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  /* label line + gap, then half of a panel: a square is 1 of the 3.5 parts the gutters leave */
  margin-top: calc(1.15rem + 0.7rem + (100cqw - 5rem) / 7 - 0.75rem);
  color: var(--g2);
  animation: nudge 1.6s ease-in-out infinite;
}

.demo__arrow:nth-of-type(1) {
  grid-area: a1;
}

.demo__arrow:nth-of-type(2) {
  grid-area: a2;
}

.demo__arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12h15M13 6l6 6-6 6'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12h15M13 6l6 6-6 6'/></svg>") center / contain no-repeat;
}

@keyframes nudge {
  50% {
    transform: translateX(4px);
  }
}

/* caption row under each panel: same height in all three columns */
.demo__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--faint);
}

.demo__name {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  min-width: 0;
  line-height: 1.35;
}

.demo__name b {
  font-weight: 500;
  color: var(--ink);
}

.demo__name span:not(:empty)::before {
  content: "· ";
}

.demo__track {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}

.demo__track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad);
}

.demo__ms {
  flex: 0 0 4.2rem;
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

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

.demo__lo:empty {
  display: none;
}

/* flat map: the track is the colour scale of the response */
.demo__cap.is-ramp .demo__track {
  height: 6px;
  background: linear-gradient(90deg, #440154, #482878, #3e4a89, #31688e, #26828e, #1f9e89, #35b779, #6ece58, #b5de2b, #fde725);
}

.demo__cap.is-ramp .demo__track i {
  display: none;
}

.demo__cap.is-ramp .demo__ms {
  flex: 0 0 auto;
}

.demo__capl {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo__draws {
  display: flex;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.draw {
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.3s var(--ease);
}

.draw img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.draw:hover {
  transform: translateY(-2px);
}

.draw.is-active {
  border-color: var(--g2);
}

.demo__pick {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.demo__pickhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.demo__pickhead b {
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.demo__foot {
  color: var(--faint);
}

/* link to the full demo, under the decoder */
.demo__more {
  margin: 0.9rem 0.3rem 0;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.76rem;
}

.demo__more a {
  color: var(--g1);
}

.demo__more a:hover {
  text-decoration: underline;
}

.demo__picker {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.75rem 0 0.2rem;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 94%, transparent);
}

.demo__picker::-webkit-scrollbar {
  display: none;
}

.pick {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.3s var(--ease), border-color 0.2s;
}

.pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pick:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.pick.is-active {
  opacity: 1;
  border-color: var(--g1);
}

@media (max-width: 1080px) {
  .demo__capl {
    display: none;
  }
  .demo__col--out .demo__cap {
    justify-content: flex-end;
  }
}

@media (max-width: 860px) {
  /* the two pictures side by side, the signal that links them as a strip underneath */
  .demo__stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "seen out" "eeg eeg";
    gap: 1.1rem 0.9rem;
  }
  .demo__arrow {
    display: none;
  }
  .demo__top {
    margin-bottom: 1rem;
  }
  .demo__col--mid {
    grid-template-rows: auto auto 1.5rem;
  }
  .demo__capl {
    display: none;
  }
  .demo__col--out .demo__cap {
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .demo {
    padding: 1.1rem;
    border-radius: 22px;
  }
  .demo__mods {
    display: flex;
    width: 100%;
  }
  .mod {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 0.4rem;
  }
  .mod span {
    display: none;
  }
  .demo__fact {
    flex-basis: 100%;
    text-align: left;
    font-size: 0.66rem;
  }
  .demo__frame {
    border-radius: 14px;
  }
  .demo__frame--out::after {
    border-radius: 14px;
  }
  .demo__col {
    grid-template-rows: auto auto 2.6rem;
    gap: 0.55rem;
  }
  .demo__lbl {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }
  .demo__cap {
    font-size: 0.68rem;
  }
  .demo__name {
    flex-direction: column;
  }
  .demo__name span:not(:empty)::before {
    content: none;
  }
  .draw {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 8px;
  }
  .pick {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
    border-radius: 11px;
  }
}

/* ---------- wall ---------- */
.wall {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.8rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.wall__row {
  display: flex;
  gap: 0.8rem;
  width: max-content;
  animation: slide 90s linear infinite;
}

.wall__row--rev {
  animation-direction: reverse;
}

.wall:hover .wall__row {
  animation-play-state: paused;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* one pair = two equal squares, seen on the left and decoded on the right, as in the decoder above */
.pair {
  --tile: 132px;
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: var(--tile) var(--tile);
  gap: 2px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.pair img {
  width: var(--tile);
  height: var(--tile);
  object-fit: cover;
}

.pair i {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgba(11, 16, 32, 0.7);
  color: #fff;
}

.pair i:last-of-type {
  left: calc(var(--tile) + 2px + 0.45rem);
  background: var(--grad);
}

@media (max-width: 720px) {
  .pair {
    --tile: 104px;
    border-radius: 12px;
  }
  .wall {
    margin-top: 1.6rem;
    gap: 0.6rem;
  }
  .wall__row {
    gap: 0.6rem;
  }
}

/* ---------- steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr auto;
  gap: 0 2.4rem;
}

/* each card borrows the four rows (art, title, text, in/out) so they line up across the cards */
.step {
  position: relative;
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  background: var(--card);
  border-radius: var(--r);
  padding: 1.1rem 1.1rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

/* connector between consecutive steps: it shares the artwork's grid cell, so it sits at the
   artwork's mid-height, and is pulled left into the middle of the gap between the cards */
.step + .step::before {
  content: "";
  grid-row: 1;
  grid-column: 1;
  align-self: center;
  justify-self: start;
  z-index: 1;
  width: 1.7rem;
  height: 1.7rem;
  margin: 0 0 1.3rem calc(-1.1rem - 1.2rem - 0.85rem);
  border-radius: 50%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12h11M12.5 7.5L17 12l-4.5 4.5'/></svg>") center / 62% no-repeat,
    var(--grad);
  box-shadow: 0 6px 16px rgba(43, 92, 255, 0.3);
}

.step__art {
  grid-row: 1;
  grid-column: 1;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.3rem;
  background: #0b1020;
  display: grid;
  place-items: center;
  position: relative;
}

.step__art canvas {
  width: 100%;
  height: 100%;
}

.step__tag {
  position: absolute;
  left: 0.75rem;
  bottom: 0.7rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.38rem 0.6rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(11, 16, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.step > :not(.step__art) {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.step__head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.step__n {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* what goes in and what comes out */
.step__io {
  margin-top: 1.2rem;
  margin-bottom: 0;
}

.step__io > div {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--ink-2);
}

.step__io dt {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.step__io dd {
  margin: 0;
}

/* orbit art */
.step__art--learn {
  background: radial-gradient(60% 70% at 50% 50%, #1a1f4a, #0b1020);
}

.orbit {
  position: relative;
  height: 86%;
  aspect-ratio: 1;
}

.orbit__core {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-family: var(--head);
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.7);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.9);
  }
}

.orbit__ring {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  animation: spin 24s linear infinite;
}

/* the four teachers start a quarter turn apart, so the layout is right even with motion off */
.orbit__sat {
  --a: calc(var(--i) * 90deg + 45deg);
  position: absolute;
  inset: 9%;
  transform: rotate(var(--a));
  animation: orbit 16s linear infinite;
  pointer-events: none;
}

.orbit__sat span {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--a)));
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(22, 27, 62, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
  animation: orbitBack 16s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit {
  from {
    transform: rotate(var(--a));
  }
  to {
    transform: rotate(calc(var(--a) + 360deg));
  }
}

@keyframes orbitBack {
  from {
    transform: translate(-50%, -50%) rotate(calc(-1 * var(--a)));
  }
  to {
    transform: translate(-50%, -50%) rotate(calc(-1 * var(--a) - 360deg));
  }
}

/* gen art */
.gen {
  position: relative;
  height: 84%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 12px 40px rgba(43, 92, 255, 0.35);
}

.gen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: unblur 5s ease-in-out infinite;
}

.gen__noise {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
  animation: noiseFade 5s ease-in-out infinite;
}

@keyframes unblur {
  0%,
  10% {
    filter: blur(18px) saturate(0.4);
    transform: scale(1.12);
  }
  55%,
  85% {
    filter: blur(0) saturate(1);
    transform: scale(1);
  }
  100% {
    filter: blur(18px) saturate(0.4);
    transform: scale(1.12);
  }
}

@keyframes noiseFade {
  0%,
  10% {
    opacity: 0.9;
  }
  55%,
  85% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 1000px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 2.2rem;
    max-width: 34rem;
    margin: 0 auto;
  }
  .step {
    grid-row: auto;
    grid-template-rows: none;
  }
  .step + .step::before {
    position: absolute;
    left: 50%;
    top: -1.1rem;
    margin: -0.85rem 0 0 -0.85rem;
    transform: rotate(90deg);
  }
}

/* ---------- more ---------- */
.more {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line-2);
}

.more summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1.1rem 0;
  color: var(--muted);
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.more summary::-webkit-details-marker {
  display: none;
}

.more summary::before {
  content: "+";
  font-size: 1.1rem;
  color: var(--g2);
  transition: transform 0.3s var(--ease);
}

.more[open] summary::before {
  transform: rotate(45deg);
}

/* ---------- results ---------- */
/* one tile per kind of recording */
.big4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.big {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--r);
  padding: 1.3rem 1.4rem 1.2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.big__k {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.big__go {
  margin-top: auto;
  padding-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--g1);
}

.big__go:hover {
  text-decoration: underline;
}

.big__same {
  max-width: 62rem;
  margin: 1.1rem 0 2.2rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.big__v {
  font-family: var(--head);
  font-weight: 800;
  font-size: 3.1rem;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.big__l {
  margin-top: 0.6rem;
  font-weight: 600;
}

.big__n {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--faint);
  margin-top: 0.15rem;
}

/* phones: two tiles per row, so the figures are set smaller */
@media (max-width: 720px) {
  .big4 {
    gap: 0.7rem;
  }
  .big {
    padding: 1rem 0.9rem 0.9rem;
  }
  .big__k {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.7rem;
  }
  .big__v {
    font-size: 2.1rem;
  }
  .big__l {
    font-size: 0.92rem;
  }
  .big__n {
    font-size: 0.66rem;
  }
}

.bars {
  background: var(--card);
  border-radius: var(--r);
  padding: 1.6rem 1.8rem 1.4rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.bars__tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.3rem;
}

.tab {
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tab.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.bar {
  display: grid;
  grid-template-columns: 120px 1fr 64px;
  gap: 1rem;
  align-items: center;
  padding: 0.38rem 0;
  font-size: 0.9rem;
}

.bar__name {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar--ours .bar__name {
  color: var(--ink);
  font-weight: 700;
}

.bar__track {
  position: relative;
  height: 16px;
  background: var(--bg-soft);
  border-radius: 6px;
  overflow: hidden;
}

.bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #c9cfe3;
  border-radius: 6px;
  transition: width 1.3s var(--ease);
}

.bar--ours .bar__fill {
  background: var(--grad);
}

.bar__ext {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 6px;
  background: repeating-linear-gradient(135deg, rgba(124, 58, 237, 0.7) 0 3px, transparent 3px 6px);
  transition: width 1.3s var(--ease) 0.25s;
}

.bar__v {
  text-align: right;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink);
}

.bar--ours .bar__v {
  color: var(--g2);
  font-weight: 600;
}

.bars__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
  white-space: nowrap;
}

.bars__note {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.bars__legend i {
  display: inline-block;
  width: 18px;
  height: 8px;
  border-radius: 3px;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.recon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  gap: 2.4rem;
  align-items: center;
  margin-top: 2.4rem;
}

.recon__text .recon__note {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--faint);
}

.recon__text h3 {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}

.recon__text p {
  color: var(--muted);
  margin: 0;
}

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

.mini {
  background: var(--card);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.mini__t {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.mini .bar {
  grid-template-columns: 72px minmax(0, 1fr) 44px;
  gap: 0.5rem;
  padding: 0.16rem 0;
  font-size: 0.78rem;
}

.mini .bar__track {
  height: 12px;
}

.mini .bar .bar__v {
  font-weight: 400;
}

.mini .bar--best .bar__v {
  font-weight: 700;
}

.mini__g + .mini__g {
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.mini__k {
  display: block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0.6rem 0 1.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.tbl {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.tbl caption {
  caption-side: top;
  text-align: left;
  padding: 0.9rem 1rem 0.7rem;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.86rem;
}

.tbl caption strong {
  color: var(--ink);
}

.tbl th,
.tbl td {
  padding: 0.5rem 0.7rem;
  text-align: center;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}

.tbl th {
  color: var(--muted);
  font-weight: 500;
  background: var(--bg-soft);
}

.tbl td:first-child,
.tbl th:first-child {
  text-align: left;
  padding-left: 1rem;
}

.tbl .ours td {
  background: rgba(124, 58, 237, 0.08);
}

.tbl b {
  color: var(--g2);
}

/* ---------- vision ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  position: relative;
}

.pillar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r);
  padding: 1.8rem 1.6rem;
  backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease), background 0.3s;
}

.pillar:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
}

.pillar__ic {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 1.2rem;
}

.pillar h3 {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.pillar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
}

.road {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  position: relative;
}

.road::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 7px;
  height: 2px;
  background: linear-gradient(90deg, var(--g4), var(--g2), rgba(255, 255, 255, 0.15));
}

.road__item {
  position: relative;
  padding-top: 1.6rem;
}

.road__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0b1020;
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.road__item.is-now .road__dot {
  background: var(--g4);
  border-color: #fff;
  box-shadow: 0 0 0 6px rgba(6, 199, 241, 0.25);
}

.road__item b {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9fd0ff;
}

.road__item p {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
}

/* ---------- footer ---------- */
/* ---------- paper, citation, acknowledgements ---------- */
.sec--paper {
  padding: 6rem 0 4.5rem;
}

.paper {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.paper__title {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 1.2rem;
  text-wrap: balance;
}

.paper__status {
  margin: 1.1rem 0 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.paper__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.btn--ink {
  color: #fff;
  background: var(--ink);
}

.btn--ink:hover {
  background: #1a2140;
}

.btn--line {
  color: var(--ink);
  border: 1px solid var(--line-2);
  background: var(--card);
}

.btn--line:hover {
  border-color: var(--ink);
}

.paper__cite {
  background: #0b1020;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.cite__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem 0.8rem 1.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.cite__copy {
  font: inherit;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.cite__copy:hover,
.cite__copy.is-done {
  background: rgba(255, 255, 255, 0.2);
}

.cite__pre {
  margin: 0;
  padding: 1.2rem 1.3rem 1.4rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.65;
  color: #dfe6ff;
}

.ack {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0.6rem 2rem;
  align-items: baseline;
}

.ack__t {
  grid-row: span 2;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ack__b {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.ack__list a {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.74rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink-2);
  transition: border-color 0.2s, color 0.2s;
}

.ack__list a:hover {
  border-color: var(--g1);
  color: var(--g1);
}

@media (max-width: 1000px) {
  /* four stats in one even row instead of three plus one */
  .hero__chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 46rem;
  }
  .chip {
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .paper {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .ack {
    grid-template-columns: minmax(0, 1fr);
  }
  .ack__t {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .sec--paper {
    padding: 4rem 0 3rem;
  }
  .cite__pre {
    font-size: 0.68rem;
    padding: 1rem;
  }
  /* the film button on its own row, the two secondary ones side by side */
  .hero__cta {
    gap: 0.6rem;
  }
  .hero__cta .btn {
    font-size: 0.92rem;
    padding: 0.8rem 1.1rem;
  }
  .hero__cta .btn--grad {
    flex: 1 0 100%;
    justify-content: center;
  }
  .hero__cta .btn--glass {
    flex: 1 1 0;
    justify-content: center;
  }
  /* four stats as a 2 x 2 block */
  .hero__chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .chip {
    min-width: 0;
    padding: 0.7rem 0.85rem;
  }
  .hero__ptitle {
    font-size: 1rem;
  }
  .authors {
    font-size: 0.86rem;
    gap: 0.1rem 0.8rem;
  }
  .affil {
    font-size: 0.74rem;
  }
}

.foot {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
}

.foot__in {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .big4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pillars,
  .road,
  .minis {
    grid-template-columns: 1fr;
  }
  .recon {
    grid-template-columns: 1fr;
  }
  .road::before {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav__links,
  .nav .btn {
    display: none;
  }
  .nav__right {
    margin-left: auto;
  }
  .hero {
    align-items: flex-start;
  }
  .hero__content {
    padding: 6.5rem 1.25rem 5rem;
  }
  .hero__title {
    font-size: clamp(3rem, 17vw, 4.6rem);
  }
  /* three lines on a phone: the last word drops to its own line */
  .hero__title .grad {
    display: block;
  }
  .sec {
    padding: 4.5rem 0;
  }
  .bar {
    grid-template-columns: 6.4rem 1fr 3.2rem;
    gap: 0.6rem;
    font-size: 0.84rem;
  }
  .hero__kicker {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }
  .player__btn {
    width: 80px;
    height: 80px;
  }
  .player__tri {
    border-left-width: 22px;
    border-top-width: 13px;
    border-bottom-width: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal-h {
    opacity: 1;
    transform: none;
  }
}

/* ---------- insights ---------- */
.sec--ins {
  background: #0b1020;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.sec--ins::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(30% 30% at 20% 20%, rgba(43, 92, 255, 0.25), transparent 70%),
    radial-gradient(28% 28% at 80% 60%, rgba(124, 58, 237, 0.22), transparent 70%),
    radial-gradient(22% 22% at 45% 95%, rgba(255, 61, 129, 0.16), transparent 70%);
  filter: blur(70px);
  pointer-events: none;
}

.sec--ins .wrap {
  position: relative;
}

.sec--ins .h2 {
  color: #fff;
}

.sec--ins .lede {
  color: rgba(255, 255, 255, 0.72);
}

.sec--ins .kicker {
  background: linear-gradient(90deg, #9fd0ff, #d9b8ff);
  -webkit-background-clip: text;
  background-clip: text;
}

.lesson {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
  padding: 3.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lesson--rev .lesson__text {
  order: 2;
}

.lesson__n {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: #9fd0ff;
}

.lesson__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lesson__meta .lesson__n {
  margin-right: 0.35rem;
}

/* which recordings a lesson was measured on */
.lesson__rec {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.78);
}

.lesson__text h3 {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.6rem 0 0.9rem;
}

.lesson__text p {
  color: rgba(255, 255, 255, 0.74);
  margin: 0 0 0.9rem;
  font-size: 1rem;
}

.lesson__take {
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--g4);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 12px 12px 0;
  color: #fff !important;
  font-weight: 500;
}

.card-ins {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 1.4rem 1.5rem 1.2rem;
  backdrop-filter: blur(10px);
}

.card-ins--tight {
  padding: 1rem;
}

.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1.1rem;
}

.seg__btn {
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.seg__btn.is-active {
  background: #fff;
  color: var(--ink);
}

.viz__note {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0.9rem 0 0;
  line-height: 1.5;
}

.hbars .bar {
  grid-template-columns: 110px 1fr 64px;
}

.hbars .bar__name {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.hbars .bar__track {
  background: rgba(255, 255, 255, 0.08);
}

.hbars .bar__fill {
  background: linear-gradient(90deg, #06c7f1, #2b5cff, #7c3aed);
  transition: width 0.9s var(--ease);
}

.hbars .bar--shared .bar__fill {
  background: linear-gradient(90deg, #ff3d81, #ff9a7a);
}

.hbars .bar__v {
  color: #fff;
}

.hbars--mini .bar {
  grid-template-columns: 90px 1fr 48px;
  padding: 0.2rem 0;
}

.hbars--mini .bar__track {
  height: 10px;
}

.heat {
  display: grid;
  grid-template-columns: 110px repeat(5, 1fr);
  gap: 5px;
  align-items: center;
}

.heat__lab {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
  padding-right: 0.5rem;
}

.heat__top {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding-bottom: 0.2rem;
}

.heat__cell {
  aspect-ratio: 1.55;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #0b1020;
  transition: background 0.8s var(--ease), transform 0.2s;
  cursor: default;
}

.heat__cell:hover {
  transform: scale(1.06);
  outline: 2px solid #fff;
}

.attr__picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.attr__pick {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
}

.attr__pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attr__pick.is-active {
  opacity: 1;
  border-color: #fff;
}

.attr__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

.attr__tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
}

.attr__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.attr__tile:hover img {
  transform: scale(1.06);
}

.attr__tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.25rem 0.4rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(11, 16, 32, 0.78);
  color: #fff;
  text-align: center;
}

.attr__legend {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
}

.attr__legend i {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2166ac, #f7f7f7, #b2182b);
}

.neurons {
  display: grid;
  gap: 0.5rem;
}

.neurons figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.neurons img {
  width: 100%;
  display: block;
}

.temporal {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.temporal img {
  width: 100%;
  display: block;
}

.trap__row {
  display: grid;
  grid-template-columns: 1fr auto 24px;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.trap__row:first-child {
  border-top: 0;
}

.trap__row b {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: #fff;
}

.trap__row i {
  font-style: normal;
  text-align: center;
}

.trap__row .up {
  color: #4ade80;
}

.trap__row .down {
  color: #ff3d81;
}

.diff {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.diff h3 {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 1.4rem;
}

.diff__grid {
  display: grid;
  grid-template-columns: 150px 1fr 1.2fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.diff__grid > div {
  background: #0f1426;
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.diff__grid > div:nth-child(3n + 1) {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.diff__head {
  font-family: var(--head) !important;
  font-weight: 700;
  font-size: 0.9rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

.diff__head--ours,
.diff__ours {
  background: rgba(124, 58, 237, 0.18) !important;
  color: #fff !important;
}

@media (max-width: 1000px) {
  .lesson {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .lesson--rev .lesson__text {
    order: 0;
  }
  .diff__grid {
    grid-template-columns: 1fr;
  }
  .diff__grid > div:nth-child(3n + 1) {
    padding-bottom: 0.2rem;
  }
  .diff__head:first-child {
    display: none;
  }
}

@media (max-width: 720px) {
  /* equal columns; the column names stand upright so none of them wraps */
  .heat {
    grid-template-columns: 4.6rem repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .heat__top {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    justify-self: center;
    white-space: nowrap;
    font-size: 0.62rem;
    padding: 0.3rem 0 0;
  }
  .heat__lab {
    white-space: nowrap;
    font-size: 0.62rem;
    padding-right: 0.3rem;
  }
  .heat__cell {
    font-size: 0.6rem;
    aspect-ratio: 1.3;
    border-radius: 6px;
  }
  .attr__row {
    grid-template-columns: repeat(3, 1fr);
  }
  .attr__pick {
    width: calc((100% - 1.5rem) / 4);
    height: auto;
    aspect-ratio: 1;
    border-radius: 10px;
  }
}

/* native insight visuals */
.attr__tile canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: auto;
}

.units {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.unit {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.unit__tag {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.unit__id {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.unit__concept {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.unit__sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.45);
}

.unit__imgs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}

.unit__img {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
}

.unit__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.unit__img b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.2rem 0.35rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.58rem;
  background: rgba(11, 16, 32, 0.75);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .unit__img b {
    font-size: 0.5rem;
    padding: 0.15rem 0.2rem;
    text-align: center;
  }
  /* five tiles per row leave room for the name only */
  .unit__img b span {
    display: none;
  }
}

.unit__img i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--g4);
}

.tchart {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.tchart svg {
  width: 100%;
  height: auto;
  display: block;
  font-family: var(--mono);
}

.tchart .ax {
  stroke: rgba(255, 255, 255, 0.14);
}

.tchart .tick {
  fill: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.tchart .ttl {
  fill: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tchart .ln {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.tchart .band {
  opacity: 0.18;
}

.tchart .mark {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-dasharray: 3 4;
}

.tchart .mlab {
  fill: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.tlegend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
}

.tlegend i {
  display: inline-block;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

@media (max-width: 720px) {
  .tchart {
    grid-template-columns: 1fr;
  }
  .unit {
    grid-template-columns: 1fr;
  }
}

/* ---------- what each expert keeps without one part of cortex ---------- */
.heat.heat--left {
  grid-template-columns: 9rem repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.heat--left .heat__corner {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding-bottom: 0.2rem;
}

.heat--left .heat__lab {
  text-align: left;
  padding-right: 0;
  font-size: 0.8rem;
  line-height: 1.25;
  white-space: normal;
  color: rgba(255, 255, 255, 0.9);
}

.heat--left .heat__lab small {
  display: block;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.5);
}

.heat--left .heat__cell {
  aspect-ratio: auto;
  height: 2.5rem;
  font-size: 0.86rem;
  font-weight: 500;
}

@media (max-width: 720px) {
  .heat.heat--left {
    grid-template-columns: 6.2rem repeat(3, minmax(0, 1fr));
  }
  .heat--left .heat__lab {
    font-size: 0.72rem;
  }
  .heat--left .heat__cell {
    height: 2.3rem;
    font-size: 0.78rem;
    border-radius: 8px;
  }
}

/* ---------- which part of cortex the model reads ---------- */
.occ {
  display: grid;
  gap: 0.5rem;
}

.occ__head,
.occ__row {
  display: grid;
  grid-template-columns: 6.4rem minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
}

.occ__head {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.occ__group {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.7rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.92rem;
}

.occ__head + .occ__group {
  margin-top: 0.1rem;
}

.occ__group em {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 400;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
}

.occ__name {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.25;
}

.occ__name small {
  display: block;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.5);
}

.occ__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.6rem;
  gap: 0.5rem;
  align-items: center;
}

.occ__track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.occ__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #06c7f1, #2b5cff, #7c3aed);
}

.occ__bar--del .occ__fill {
  background: linear-gradient(90deg, #ff3d81, #ff9a7a);
}

.occ__bar b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.78rem;
  text-align: right;
  color: #fff;
}

/* accuracy with a random set of voxels of the same size */
.occ__rand {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background: #fff;
}

.occ__key {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.6);
}

.occ__key .occ__rand {
  position: static;
  height: 14px;
  margin: 0;
}

@media (max-width: 720px) {
  .occ__head,
  .occ__row {
    grid-template-columns: 4.6rem minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.6rem;
  }
  .occ__head {
    font-size: 0.56rem;
    letter-spacing: 0.02em;
  }
  .occ__bar {
    grid-template-columns: minmax(0, 1fr) 2.2rem;
    gap: 0.3rem;
  }
  .occ__bar b {
    font-size: 0.68rem;
  }
  .occ__name {
    font-size: 0.72rem;
  }
}

/* ---------- explainer row ---------- */
.explainer {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.explainer__text h3 {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
}

.explainer__text p:last-child {
  color: var(--muted);
  margin: 0;
}

.player--sm .player__btn {
  width: 80px;
  height: 80px;
}

.player--sm .player__tri {
  border-left-width: 22px;
  border-top-width: 13px;
  border-bottom-width: 13px;
}

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

.report-cta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
