/* ================================================================
   SMART BRIDGE — Corporate Digital Intelligence
   Editorial dark · Instrument Serif + Inter + IBM Plex Mono
================================================================ */

:root {
  --bg: #050508;
  --bg-soft: #0a0a10;
  --panel: rgba(255, 255, 255, 0.025);
  --panel-deep: rgba(8, 10, 22, 0.55);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #f2f1ec;
  --text-dim: rgba(242, 241, 236, 0.58);
  --text-faint: rgba(242, 241, 236, 0.38);
  --blue: #2b4cff;
  --blue-soft: #4f7cff;
  --blue-pale: #9fb4ff;
  --radius: 18px;
  --radius-lg: 26px;
  --font-display: "Sentient", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.4, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--blue); color: #fff; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }

h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

em {
  font-style: italic;
  color: var(--blue-pale);
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: transform 0.4s var(--ease-spring), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.btn--primary {
  background: var(--text);
  color: #0a0a0c;
}
.btn--primary:hover {
  background: #fff;
  box-shadow: 0 10px 44px rgba(255, 255, 255, 0.16);
}

.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }

.btn--light { background: var(--text); color: #0a0a0c; }
.btn--light:hover { background: #fff; }

.btn--small { padding: 10px 22px; font-size: 0.88rem; }
.btn--lg { padding: 19px 42px; font-size: 1rem; }

/* ---------------- Eyebrow / section heads ---------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--blue-soft);
  flex-shrink: 0;
}

.section-head {
  margin: 0 auto 72px;
  max-width: 760px;
  text-align: center;
}
.section-head__sub {
  color: var(--text-dim);
  margin-top: 24px;
  font-size: 1.06rem;
  max-width: 560px;
  margin-inline: auto;
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}
.section-head--left .section-head__sub { margin-inline: 0; }

/* ---------------- Reveal animations ---------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--rd, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

[data-parallax] { will-change: transform; }

/* ================================================================
   NAV
================================================================ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 20px 0;
  transition: padding 0.4s var(--ease-out), background 0.4s ease, box-shadow 0.4s ease;
}
.nav.is-scrolled {
  padding: 12px 0;
  background: rgba(5, 5, 8, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line-soft);
}

.nav__inner {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0;
  color: var(--text);
  text-decoration: none;
}
.nav__logo-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.nav__logo-mark svg { width: 17px; height: 17px; }

.nav__links {
  display: flex;
  gap: 36px;
}
.nav__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 450;
  transition: color 0.25s ease;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__burger span {
  width: 24px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 5, 8, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 300;
}
.mobile-menu a.btn { font-family: var(--font-body); font-size: 1rem; }

/* ================================================================
   HERO
================================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 280px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 170px 0 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 44px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-soft);
  position: relative;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--blue-soft);
  animation: pulse-ring 2.2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero__title {
  font-size: 62px;
  font-weight: 300;
  max-width: 26ch;
  margin-bottom: 34px;
}

.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line {
  display: block;
  transform: translateY(110%);
  animation: line-up 1.2s var(--ease-out) forwards;
}
.line-mask:nth-child(2) .line { animation-delay: 0.14s; }
@keyframes line-up { to { transform: translateY(0); } }

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 46px;
  --rd: 0.45s;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  --rd: 0.6s;
}

.hero__scrollhint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 23px;
  height: 37px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 13px;
  z-index: 2;
  --rd: 1.2s;
}
.hero__scrollhint span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 2.5px;
  height: 7px;
  margin-left: -1.25px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.55);
  animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(11px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ================================================================
   LOGOS MARQUEE
================================================================ */

.logos {
  background: var(--bg);
  padding: 8px 0 96px;
}

.logos__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 44px;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.marquee__track span:hover { color: var(--text); }

.marquee__track i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

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

/* ================================================================
   WHAT WE DO
================================================================ */

.what {
  position: relative;
  padding: 140px 0;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.orb--blue {
  width: 520px;
  height: 520px;
  right: -180px;
  top: -140px;
  background: radial-gradient(circle, rgba(43, 76, 255, 0.12), transparent 65%);
}
.orb--soft {
  width: 600px;
  height: 600px;
  left: -240px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(43, 76, 255, 0.08), transparent 65%);
}

.what__bento {
  display: grid;
  grid-template-columns: 5fr 7fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}

.wcard {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.4s ease;
}
.wcard:hover { border-color: rgba(159, 180, 255, 0.28); }

.wcard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(440px circle at var(--mx) var(--my), rgba(79, 124, 255, 0.1), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}
.wcard:hover::before { opacity: 1; }
.wcard > * { position: relative; z-index: 1; }

.wcard--feed { grid-column: 1; grid-row: 1; }
.wcard--ledger { grid-column: 1; grid-row: 2; --rd: 0.1s; }
.wcard--chart { grid-column: 2; grid-row: 1 / span 2; --rd: 0.2s; }

.wcard__head h3 {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.wcard__head p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 44ch;
}

/* ---- feed (audience intelligence) ---- */

.feed {
  list-style: none;
  position: relative;
  margin-top: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}
.feed::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--line-soft);
}

.feed__item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 18px;
  align-items: start;
  opacity: 0.42;
  animation: feed-cycle 12s ease-in-out infinite;
}
.feed__item:nth-child(1) { animation-delay: 0s; }
.feed__item:nth-child(2) { animation-delay: 3s; }
.feed__item:nth-child(3) { animation-delay: 6s; }
.feed__item:nth-child(4) { animation-delay: 9s; }

@keyframes feed-cycle {
  0%, 100% { opacity: 0.42; }
  6%, 22% { opacity: 1; }
  30% { opacity: 0.42; }
}

.feed__node {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--blue-pale);
}
.feed__node svg { width: 15px; height: 15px; }

.feed__body { display: flex; flex-direction: column; gap: 2px; }
.feed__time {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.feed__body strong {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.feed__body em {
  font-style: normal;
  color: var(--text-faint);
  font-size: 0.84rem;
}

/* ---- ledger (behavioural insight) ---- */

.ledger {
  margin-top: 28px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  padding: 16px 20px;
}

.ledger__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}
.ledger__badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
}

.ledger__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}

.ledger__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.ledger__name i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-pale);
  opacity: 0.7;
}
.ledger__name--live i {
  background: var(--blue-soft);
  opacity: 1;
  box-shadow: 0 0 8px rgba(79, 124, 255, 0.8);
}

.ledger__row code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 3px 8px;
}

.ledger__status {
  font-size: 0.78rem;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 96px;
  justify-content: flex-end;
}
.ledger__status--live { color: var(--blue-pale); }
.ledger__status--live svg {
  width: 11px;
  height: 11px;
  animation: ledger-spin 3.5s linear infinite;
}
@keyframes ledger-spin { to { transform: rotate(360deg); } }

.wcard__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}
.wcard__chips li {
  font-size: 0.82rem;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
}

/* ---- chart (strategic visibility) ---- */

.wcard__scape {
  position: absolute;
  inset: -50px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 75% 12%, rgba(43, 76, 255, 0.16), transparent 70%),
    radial-gradient(50% 40% at 20% 50%, rgba(79, 124, 255, 0.07), transparent 70%);
}

.wcard__head--split {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}
.wcard__head--split p {
  justify-self: end;
  text-align: right;
  max-width: 36ch;
}

.chartpane {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 30px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(8, 10, 22, 0.5);
  backdrop-filter: blur(8px);
  padding: 20px 22px 18px;
  min-height: 0;
}

.chartpane__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.chartpane__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-bottom: 18px;
}
.lg-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  letter-spacing: -0.01em;
  color: var(--text-dim);
}
.lg-item i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
}
.lg-item--lead { color: var(--text); font-weight: 500; }
.lg-item--lead i { height: 4px; }

.lg-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
  color: var(--blue-pale);
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.66rem;
}
.lg-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-soft);
  animation: live-pulse 2.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(79, 124, 255, 0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 0 4px rgba(79, 124, 255, 0); }
}

.chartpane__plot {
  position: relative;
  flex: 1;
  min-height: 230px;
}
.chartpane__plot svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-grid line {
  stroke: rgba(242, 241, 236, 0.05);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.chart-bars line {
  stroke: rgba(242, 241, 236, 0.12);
  stroke-width: 4px;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.25s ease;
}
.chart-bars .is-hot { stroke: rgba(79, 124, 255, 0.55); }
.chart-bars line.is-lit { stroke: rgba(242, 241, 236, 0.85); }

.chart-threshold {
  stroke: rgba(159, 180, 255, 0.32);
  stroke-width: 1px;
  stroke-dasharray: 5 6;
  vector-effect: non-scaling-stroke;
}

/* ---- multi-series lines ---- */

.chart-area__fill {
  opacity: 0;
  transition: opacity 1.4s ease 1.2s;
}
.wcard.is-visible .chart-area__fill { opacity: 1; }

.chart-line {
  fill: none;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0.92;
  transition: stroke-dashoffset 1.5s var(--ease-out);
}
.chart-line--lead { stroke-width: 2.8px; opacity: 1; }
.wcard.is-visible .chart-line { stroke-dashoffset: 0; }

.chart-dot {
  opacity: 0;
  transform: scale(0.3);
  transform-box: fill-box;
  transform-origin: center;
  stroke: rgba(6, 7, 13, 0.9);
  stroke-width: 2px;
  paint-order: stroke;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-spring);
}
.wcard.is-visible .chart-dot {
  opacity: 0.42;
  transform: scale(1);
  transition-delay: 1.1s;
}
.wcard.is-visible .chart-dot.is-active {
  opacity: 1;
  transform: scale(1.7);
  transition-delay: 0s;
  filter: drop-shadow(0 0 6px rgba(159, 180, 255, 0.45));
}

.plot__ylab {
  position: absolute;
  left: 2px;
  transform: translateY(-130%);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  pointer-events: none;
}

.plot__threshold {
  position: absolute;
  left: 26px;
  top: 30.7%;
  transform: translateY(-130%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(159, 180, 255, 0.55);
  pointer-events: none;
}

/* ---- hover interaction layer ---- */

.plot__cursor {
  position: absolute;
  top: 3%;
  height: 90%;
  width: 0;
  border-left: 1px dashed rgba(159, 180, 255, 0.4);
  opacity: 0;
  transition: left 0.18s var(--ease-out), opacity 0.3s ease;
  pointer-events: none;
}

.plot__hover {
  position: absolute;
  top: 52px;
  min-width: 172px;
  background: rgba(9, 11, 20, 0.92);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px 9px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateX(0);
  transition: left 0.18s var(--ease-out), opacity 0.25s ease;
  pointer-events: none;
  z-index: 4;
}
.plot__hover.is-left { transform: translateX(-100%); }

.tip__head {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-bottom: 9px;
}
.tip__row {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 3px 0;
}
.tip__row i { width: 8px; height: 8px; border-radius: 50%; }
.tip__name { font-size: 0.76rem; color: var(--text-dim); letter-spacing: -0.01em; }
.tip__val {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.tip__row--lead .tip__name { color: var(--text); font-weight: 500; }
.tip__row--lead .tip__val { color: var(--blue-pale); }

.chartpane__plot.is-live .plot__cursor,
.chartpane__plot.is-live .plot__hover { opacity: 1; }

.plot__callout {
  position: absolute;
  right: 0;
  top: 7%;
  text-align: right;
  opacity: 0;
  transition: opacity 0.6s ease 2.1s;
}
.wcard.is-visible .plot__callout { opacity: 1; }
.plot__callout strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.plot__callout span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.chartpane__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

/* ================================================================
   IMPACT — editorial stat rows
================================================================ */

.impact {
  padding: 140px 0;
  background: var(--bg-soft);
  border-block: 1px solid var(--line-soft);
}

.impact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  transition: border-color 0.4s ease;
}
.stat:hover { border-color: rgba(255, 255, 255, 0.35); }
.stat:nth-child(2) { --rd: 0.1s; }
.stat:nth-child(3) { --rd: 0.2s; }
.stat:nth-child(4) { --rd: 0.3s; }

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 300;
  line-height: 1;
  color: var(--text);
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.stat p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 22ch;
}

/* ================================================================
   SERVICES — BENTO
================================================================ */

.services {
  position: relative;
  padding: 140px 0 150px;
  /* pastel-blue corner falling into near-black — separates this section from the last */
  background: linear-gradient(150deg, #111a3a 0%, #090b16 46%, var(--bg) 100%);
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}

/* drifting gradient field behind the grid (scroll parallax) */
.services__bg {
  position: absolute;
  inset: -160px 0;
  background:
    radial-gradient(900px 620px at 10% 4%, rgba(125, 162, 255, 0.18), transparent 65%),
    radial-gradient(760px 540px at 92% 24%, rgba(139, 124, 248, 0.1), transparent 70%),
    radial-gradient(640px 480px at 28% 98%, rgba(79, 124, 255, 0.07), transparent 70%);
  pointer-events: none;
}

.bento {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.bento-card {
  --mx: 50%;
  --my: 50%;
  /* accent rgb triplets — re-themed per card */
  --ac: 159, 180, 255;
  --ac2: 79, 124, 255;
  grid-column: span 3;
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: rgba(8, 9, 16, 0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease;
}

/* reference palette: amber, violet, electric blue, amber+violet dual */
.bento-card--amber  { --ac: 255, 158, 87;  --ac2: 255, 199, 138; }
.bento-card--violet { --ac: 154, 140, 255; --ac2: 110, 140, 255; }
.bento-card--blue   { --ac: 110, 140, 255; --ac2: 154, 140, 255; }
.bento-card--dual   { --ac: 255, 158, 87;  --ac2: 154, 140, 255; }

@media (min-width: 901px) {
  .bento-card--wide { grid-column: span 4; }
  .bento-card:not(.bento-card--wide) { grid-column: span 2; }
  .bento-card:last-child { grid-column: span 6; }
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--ac), 0.38);
}

/* cursor-follow glow */
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--ac), 0.09), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}
.bento-card:hover::before { opacity: 1; }

.bento-card__visual {
  position: relative;
  height: 215px;
  margin: 14px 14px 0;
  border-radius: calc(var(--radius-lg) - 10px);
  background: var(--panel-deep);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  z-index: 1;
}

/* diffuse light shaft + corner bloom, themed per card */
.bento-card__visual::before {
  content: "";
  position: absolute;
  inset: -26px;
  background:
    radial-gradient(36% 62% at 50% -10%, rgba(var(--ac), 0.32), transparent 72%),
    radial-gradient(46% 58% at 106% 112%, rgba(var(--ac2), 0.13), transparent 72%);
  filter: blur(14px);
  opacity: 0.85;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.bento-card:hover .bento-card__visual::before { opacity: 1; }

.bento-card--dual .bento-card__visual::before {
  background:
    radial-gradient(24% 90% at 15% -8%, rgba(255, 158, 87, 0.30), transparent 70%),
    radial-gradient(28% 95% at 85% 115%, rgba(154, 140, 255, 0.28), transparent 72%);
}

/* WebGL hover light (injected by webgl.js) */
.bento-card__gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  pointer-events: none;
}

.bento-card__body {
  position: relative;
  z-index: 1;
  padding: 26px 28px 30px;
}
.bento-card__body h3 { margin-bottom: 10px; color: var(--text); }
.bento-card__body p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; }

.bento-card:nth-child(2) { --rd: 0.08s; }
.bento-card:nth-child(3) { --rd: 0.16s; }
.bento-card:nth-child(4) { --rd: 0.08s; }
.bento-card:nth-child(5) { --rd: 0.16s; }
.bento-card:nth-child(6) { --rd: 0.24s; }

/* ----- viz: halo — concentric rings, symmetric ----- */
.viz-halo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.viz-halo__ring {
  position: absolute;
  left: 50%;
  top: 16%;
  width: calc(150px + var(--i) * 96px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(var(--ac), calc(0.28 - var(--i) * 0.055));
  background: radial-gradient(circle, transparent 56%, rgba(var(--ac), calc(0.05 - var(--i) * 0.009)) 100%);
  animation: halo-breathe 10s ease-in-out infinite;
  animation-delay: calc(var(--i) * -2.2s);
}

/* satellites riding the rings */
.viz-halo__sat {
  position: absolute;
  left: 50%;
  top: 16%;
  width: var(--orb);
  aspect-ratio: 1;
  margin-left: calc(var(--orb) / -2);
  margin-top: calc(var(--orb) / -2);
  border-radius: 50%;
  animation: halo-spin var(--t) linear infinite;
  pointer-events: none;
}
.viz-halo__sat::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: rgb(var(--ac));
  box-shadow: 0 0 12px rgba(var(--ac), 0.9);
}
@keyframes halo-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.04); opacity: 0.7; }
}

.viz-halo__core {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(5, 5, 8, 0.75);
  border: 1px solid rgba(var(--ac), 0.3);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.viz-halo__core svg { width: 26px; height: 26px; }
.viz-halo__core::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(var(--ac), 0.95) 80deg, transparent 160deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: halo-spin 8s linear infinite;
}
@keyframes halo-spin { to { transform: rotate(360deg); } }

/* ----- viz: ui — glass dashboard mockups ----- */
.viz-ui {
  position: absolute;
  inset: 0;
  font-family: var(--font-body);
  pointer-events: none;
}

.ui-panel {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 68%;
  max-width: 360px;
  padding: 13px 15px 10px;
  border-radius: 13px;
  background: rgba(16, 18, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.ui-panel__head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ui-panel__title {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
.ui-info {
  width: 11px;
  height: 11px;
  color: rgba(242, 241, 236, 0.4);
  flex: none;
}
.ui-btn {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  padding: 3px 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ui-kpi {
  margin: 9px 0 2px;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(242, 241, 236, 0.85);
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.ui-kpi em {
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 600;
  color: #46d484;
}
.ui-kpi span {
  font-size: 0.64rem;
  color: rgba(242, 241, 236, 0.45);
}

.ui-th {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.7fr;
  gap: 8px;
  margin-top: 9px;
  padding-bottom: 5px;
  font-size: 0.58rem;
  color: rgba(242, 241, 236, 0.32);
}
.ui-tr {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.7fr;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.64rem;
  color: rgba(242, 241, 236, 0.55);
}
.ui-tr + .ui-tr { opacity: 0.6; }
.ui-tr__name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
}
.ui-tr__name svg { width: 11px; height: 11px; flex: none; opacity: 0.7; }
.ui-tr__metric { font-variant-numeric: tabular-nums; }
.ui-tr__delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  font-size: 0.62rem;
  justify-self: start;
}
.ui-tr__delta svg { width: 8px; height: 8px; }
.ui-up { color: #46d484; }
.ui-down { color: #ef6a6a; }

/* avatar pill */
.ui-avatars {
  position: absolute;
  top: 18px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  background: rgba(20, 22, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  animation: ui-drift 8s ease-in-out infinite reverse;
}
.ui-avatar {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--av);
  border: 1.5px solid rgba(10, 11, 18, 0.9);
  margin-right: -6px;
  position: relative;
}
.ui-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.55) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.45) 0 30%, transparent 31%);
  opacity: 0.5;
}
.ui-avatars__count {
  margin-left: 12px;
  font-size: 0.6rem;
  color: rgba(242, 241, 236, 0.5);
}

/* small stat chip */
.ui-chip {
  position: absolute;
  top: 18px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(20, 22, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  font-size: 0.6rem;
  color: rgba(242, 241, 236, 0.6);
  animation: ui-drift 8s ease-in-out infinite reverse;
}
.ui-chip svg { width: 11px; height: 11px; opacity: 0.7; }

/* floating light-glass rating card */
.ui-float {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 47%;
  max-width: 230px;
  padding: 11px 13px 12px;
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(196, 202, 240, 0.16), rgba(150, 155, 195, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  animation: ui-drift 7s ease-in-out infinite;
}
.ui-float__head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  white-space: nowrap;
}
.ui-float__head svg { width: 13px; height: 13px; flex: none; }
.ui-float__label {
  margin-top: 8px;
  font-size: 0.54rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(242, 241, 236, 0.75);
}
.ui-float__score {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}
.ui-float__score svg { width: 11px; height: 11px; }
.ui-float__score strong {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}
.ui-float__score em {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.62rem;
  font-weight: 600;
}
.ui-float__score em svg { width: 8px; height: 8px; }
.ui-float__score span {
  font-size: 0.6rem;
  color: rgba(242, 241, 236, 0.55);
}

@keyframes ui-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ----- viz: kanban — tilted task card linked to a dashed slot ----- */
.viz-kanban {
  position: absolute;
  inset: 0;
  font-family: var(--font-body);
  pointer-events: none;
}

.kb-card {
  position: absolute;
  left: 16px;
  top: 20px;
  width: 64%;
  max-width: 250px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(34, 29, 52, 0.95), rgba(17, 15, 28, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.55);
  transform: rotate(-6deg);
  transform-origin: left top;
  animation: ui-drift 8s ease-in-out infinite;
}
.kb-tag {
  display: inline-block;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #efe9ff;
  background: linear-gradient(135deg, rgba(var(--ac), 0.85), rgba(var(--ac2), 0.6));
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}
.kb-card strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 4px;
}
.kb-card p {
  font-size: 0.6rem;
  line-height: 1.5;
  color: rgba(242, 241, 236, 0.5);
  margin-bottom: 11px;
}
.kb-foot { display: flex; align-items: center; }
.kb-avas { display: inline-flex; margin-right: auto; padding-right: 8px; }
.kb-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  color: rgba(242, 241, 236, 0.55);
  margin-left: 11px;
}
.kb-meta svg { width: 10px; height: 10px; opacity: 0.75; }

.kb-link {
  position: absolute;
  top: 45%;
  left: 66%;
  right: 22%;
  height: 0;
  border-top: 2px dotted rgba(var(--ac), 0.4);
}
.kb-link::after {
  content: "";
  position: absolute;
  top: -3.5px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(var(--ac), 0.95);
  animation: kb-dot 4.5s ease-in-out infinite;
}
@keyframes kb-dot {
  0% { left: 2%; opacity: 0; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { left: 94%; opacity: 0; }
}

.kb-target {
  position: absolute;
  right: -36px;
  top: 22px;
  width: 154px;
  height: 154px;
  border-radius: 28px;
  border: 2px dashed rgba(var(--ac), 0.45);
  background-image: radial-gradient(rgba(var(--ac), 0.45) 1px, transparent 1.3px);
  background-size: 11px 11px;
  background-position: center;
  -webkit-mask: radial-gradient(85% 85% at 50% 50%, #000 40%, rgba(0, 0, 0, 0.25) 100%);
  mask: radial-gradient(85% 85% at 50% 50%, #000 40%, rgba(0, 0, 0, 0.25) 100%);
}

/* ----- viz: inbox — notification feed under a corner beam ----- */
.viz-inbox {
  position: absolute;
  inset: 0;
  font-family: var(--font-body);
  pointer-events: none;
  overflow: hidden;
}

.ib-beam {
  position: absolute;
  left: -36px;
  top: -50px;
  width: 260px;
  height: 200px;
  background:
    radial-gradient(95px 64px at 18% 30%, rgba(232, 240, 255, 0.5), transparent 70%),
    linear-gradient(115deg, rgba(176, 200, 255, 0.24), transparent 55%);
  filter: blur(4px);
}

.ib-panel {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 22px;
  bottom: -10px;
  border-radius: 15px 15px 0 0;
  background: rgba(13, 15, 25, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  backdrop-filter: blur(10px);
  padding: 12px 16px 0;
}

.ib-head {
  display: flex;
  align-items: center;
}
.ib-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.ib-title svg { width: 10px; height: 10px; color: rgba(242, 241, 236, 0.45); }
.ib-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(242, 241, 236, 0.4);
}
.ib-actions svg { width: 13px; height: 13px; }

.ib-tabs {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.66rem;
  color: rgba(242, 241, 236, 0.45);
}
.ib-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 8px;
}
.ib-tab.is-active { color: var(--text); font-weight: 500; }
.ib-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}
.ib-tab i {
  font-style: normal;
  font-size: 0.54rem;
  font-weight: 600;
  color: #14120c;
  background: linear-gradient(135deg, #e9d195, #c7a75d);
  border-radius: 999px;
  padding: 1px 6px;
}

.ib-row {
  display: grid;
  grid-template-columns: 6px 24px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0 8px;
}
.ib-row--dim { opacity: 0.55; }
.ib-row--faint { opacity: 0.26; }
.ib-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7da2ff;
  box-shadow: 0 0 8px rgba(125, 162, 255, 0.8);
  animation: dot-pulse 3.2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.ib-ava {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #3c445a, #252a3a);
  color: #a9b6d2;
}
.ib-ava svg { width: 13px; height: 13px; }
.ib-txt { min-width: 0; }
.ib-txt strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(242, 241, 236, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ib-txt i {
  display: block;
  height: 4px;
  width: var(--w, 55%);
  margin-top: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(125, 162, 255, 0.5), rgba(125, 162, 255, 0.1));
}
.ib-time {
  font-size: 0.6rem;
  color: rgba(242, 241, 236, 0.35);
}

/* ----- viz: deploy — url bar, check node, terminal ----- */
.viz-deploy {
  position: absolute;
  inset: 0;
  font-family: var(--font-body);
  pointer-events: none;
}
.viz-deploy::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(110, 140, 255, 0.16) 1px, transparent 1.3px);
  background-size: 12px 12px;
  -webkit-mask: radial-gradient(75% 70% at 50% 55%, #000 25%, transparent 100%);
  mask: radial-gradient(75% 70% at 50% 55%, #000 25%, transparent 100%);
}

.dp-browser {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  width: 80%;
  max-width: 350px;
  padding: 8px 12px 10px;
  border-radius: 12px;
  background: rgba(13, 16, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}
.dp-dots { display: flex; gap: 4px; margin-bottom: 7px; }
.dp-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.dp-url {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(218, 227, 248, 0.8);
  white-space: nowrap;
  overflow: hidden;
}
.dp-url svg { width: 9px; height: 9px; flex: none; opacity: 0.6; }

.dp-link {
  position: absolute;
  left: 50%;
  top: 86px;
  height: 58px;
  width: 0;
  border-left: 1px solid rgba(140, 162, 220, 0.35);
}
.dp-link::before,
.dp-link::after {
  content: "";
  position: absolute;
  left: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0a0c16;
  border: 1px solid rgba(170, 188, 235, 0.7);
}
.dp-link::before { top: -3px; }
.dp-link::after { bottom: -3px; }
.dp-check {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(9, 11, 20, 0.95);
  border: 1.4px solid rgba(195, 209, 245, 0.85);
  color: #e8eefc;
  animation: dp-pulse 3.6s ease-in-out infinite;
}
.dp-check svg { width: 12px; height: 12px; }
@keyframes dp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(110, 140, 255, 0.3); }
  50% { box-shadow: 0 0 0 7px rgba(110, 140, 255, 0); }
}

.dp-term {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 10px;
  background: rgba(11, 13, 23, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}
.dp-ic {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 1px solid rgba(121, 167, 255, 0.55);
  display: grid;
  place-items: center;
  color: #79a7ff;
  flex: none;
}
.dp-ic svg { width: 10px; height: 10px; }
.dp-term code {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: #79a7ff;
}
.dp-caret {
  width: 5px;
  height: 11px;
  background: rgba(121, 167, 255, 0.85);
  animation: dp-caret 1.1s steps(1) infinite;
}
@keyframes dp-caret { 50% { opacity: 0; } }

/* ----- viz: beam — glowing diagonal lines ----- */
.viz-beam {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.viz-beam__line {
  position: absolute;
  left: -25%;
  right: -25%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(var(--ac), 0.55) 30%, rgba(var(--ac2), 0.55) 70%, transparent);
  transform: rotate(-14deg);
}
.viz-beam__line--1 { top: 58%; }
.viz-beam__line--2 { top: 36%; opacity: 0.45; }
.viz-beam__line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -12%;
  height: 5px;
  width: 140px;
  margin-top: -2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ffe7c2 30%, #fff4e0 50%, #ffe7c2 70%, transparent);
  filter: blur(0.5px);
  box-shadow: 0 0 26px 7px rgba(255, 214, 150, 0.28);
  opacity: 0;
  animation: beam-travel 9s ease-in-out infinite;
}
.viz-beam__line--2::after { animation-delay: -4.5s; }
@keyframes beam-travel {
  0% { left: -12%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 104%; opacity: 0; }
}

/* ================================================================
   APPROACH — sticky stacked layers
================================================================ */

.approach {
  position: relative;
  padding: 140px 0;
  background: var(--bg-soft);
  border-block: 1px solid var(--line-soft);
  overflow: clip;
}

.approach__stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.layer-card {
  position: sticky;
  top: 110px;
  display: grid;
  grid-template-columns: 80px 1fr 180px;
  gap: 36px;
  align-items: center;
  padding: 50px 52px;
  border-radius: var(--radius-lg);
  background: #0c0c13;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  will-change: transform;
}
.layer-card:nth-child(2) { top: 130px; }
.layer-card:nth-child(3) { top: 150px; }

.layer-card__index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue-pale);
  padding: 10px 0;
  border-top: 1px solid var(--blue-soft);
  align-self: start;
}

.layer-card__content h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.7rem;
  margin-bottom: 14px;
}
.layer-card__content p { color: var(--text-dim); max-width: 58ch; font-size: 0.97rem; }

.layer-card__visual { justify-self: end; }
.layer-card__visual svg { width: 130px; height: 130px; }

.lv-bar {
  fill: rgba(159, 180, 255, 0.22);
  transform: scaleY(0);
  transform-origin: bottom;
  transform-box: fill-box;
  transition: transform 0.9s var(--ease-out) var(--ld, 0s);
}
.lv-bar--hot { fill: var(--blue); }
.layer-card.is-visible .lv-bar { transform: scaleY(1); }

.lv-ring {
  stroke: rgba(159, 180, 255, 0.35);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  transition: stroke-dashoffset 1.6s var(--ease-out) var(--ld, 0s);
}
.layer-card.is-visible .lv-ring { stroke-dashoffset: 0; }

.lv-core { fill: var(--blue-soft); }

.lv-path {
  stroke: var(--blue-soft);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  transition: stroke-dashoffset 1.6s var(--ease-out) 0.2s;
}
.layer-card.is-visible .lv-path { stroke-dashoffset: 0; }

.approach__closer {
  margin: 100px auto 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.35;
  max-width: 32ch;
  text-align: center;
}
.approach__closer em { font-style: italic; color: var(--blue-pale); }

/* ================================================================
   WHY
================================================================ */

.why {
  padding: 140px 0;
  background: var(--bg);
  overflow: hidden;
}

.why__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: center;
}

.why__visual { display: grid; place-items: center; }

.why__orb {
  position: relative;
  width: min(340px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.why__orb-core {
  width: 56%;
  height: 56%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #46556e 0%, #16203c 55%, #05060c 100%);
  box-shadow: 0 0 90px rgba(63, 96, 255, 0.3), inset 0 0 60px rgba(0, 0, 0, 0.5);
  animation: orb-breathe 6s ease-in-out infinite;
}
@keyframes orb-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 90px rgba(63, 96, 255, 0.3), inset 0 0 60px rgba(0,0,0,0.5); }
  50% { transform: scale(1.05); box-shadow: 0 0 130px rgba(63, 96, 255, 0.5), inset 0 0 60px rgba(0,0,0,0.5); }
}
.why__orb-ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px solid rgba(159, 180, 255, 0.28);
  border-left-color: transparent;
  border-right-color: transparent;
  animation: orb-spin 14s linear infinite;
}
.why__orb-ring--2 {
  inset: -4%;
  border-color: rgba(159, 180, 255, 0.13);
  border-top-color: transparent;
  border-bottom-color: transparent;
  animation: orb-spin 22s linear infinite reverse;
}
@keyframes orb-spin { to { transform: rotate(360deg); } }

.why__text h2 { margin-bottom: 26px; }
.why__text > p { color: var(--text-dim); margin-bottom: 36px; font-size: 1.04rem; }

.why__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
}
.why__list li {
  position: relative;
  padding-left: 26px;
  font-weight: 450;
  font-size: 0.96rem;
  color: var(--text);
}
.why__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 1.5px solid var(--blue-pale);
  border-bottom: 1.5px solid var(--blue-pale);
  transform: rotate(-45deg) translateY(-2px);
}
.why__list li:nth-child(2) { --rd: 0.1s; }
.why__list li:nth-child(3) { --rd: 0.2s; }
.why__list li:nth-child(4) { --rd: 0.3s; }

/* ================================================================
   WHO
================================================================ */

.who {
  padding: 140px 0;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}

.who__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  max-width: 880px;
  margin-inline: auto;
  justify-content: center;
}
.who__chips span {
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 450;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text-dim);
  transition: all 0.35s var(--ease-out);
  cursor: default;
}
.who__chips span:hover {
  background: var(--text);
  color: #0a0a0c;
  border-color: var(--text);
  transform: translateY(-3px);
}

/* ================================================================
   ENGAGEMENT
================================================================ */

.engage {
  padding: 140px 0;
  background: var(--bg-soft);
  border-block: 1px solid var(--line-soft);
}

.engage__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.engage-card {
  position: relative;
  padding: 44px 40px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease, background 0.4s ease;
}
.engage-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(43, 76, 255, 0.07), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.engage-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}
.engage-card:hover::after { opacity: 1; }
.engage-card:nth-child(2) { --rd: 0.1s; }
.engage-card:nth-child(3) { --rd: 0.2s; }
.engage-card:nth-child(4) { --rd: 0.3s; }

.engage-card__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--blue-pale);
  border: 1px solid rgba(159, 180, 255, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 28px;
}

.engage-card h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.45rem;
  margin-bottom: 12px;
}
.engage-card p { color: var(--text-dim); font-size: 0.95rem; max-width: 46ch; }

.engage-card__arrow {
  position: absolute;
  right: 34px;
  top: 40px;
  font-size: 1.3rem;
  color: var(--blue-pale);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}
.engage-card:hover .engage-card__arrow { opacity: 1; transform: translateX(0); }

/* ================================================================
   CTA
================================================================ */

.cta {
  position: relative;
  padding: 180px 0;
  background: var(--bg);
  overflow: hidden;
  text-align: center;
}

.cta__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--bg), transparent 30%, transparent 70%, var(--bg));
  pointer-events: none;
}

.cta__inner { position: relative; z-index: 2; }
.cta .eyebrow { justify-content: center; }
.cta h2 { margin-bottom: 26px; }
.cta__sub {
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto 48px;
  font-size: 1.06rem;
}

/* ================================================================
   FAQ
================================================================ */

.faq {
  padding-block: 120px;
  background: var(--bg);
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.faq__item {
  padding: 28px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--panel);
}

.faq__item dt {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.25rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.faq__item dd {
  color: var(--text-dim);
  font-size: 0.98rem;
  margin: 0;
}

.logos__experience {
  margin-top: 28px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 720px;
  margin-inline: auto;
}

/* ================================================================
   NEUROANALYSIS PAGE
================================================================ */

.neuro-modality-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.neuro-modality-grid .bento-card {
  grid-column: auto;
}

.neuro-modality-grid .bento-card:last-child {
  grid-column: auto;
}

.neuro-modality__visual {
  min-height: 140px;
  display: grid;
  place-items: center;
}

.neuro-modality__visual svg {
  width: 72px;
  height: 72px;
}

.neuro-formats {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.neuro-resources {
  padding: 120px 0;
  border-top: 1px solid var(--line-soft);
}

.neuro-resources__list {
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.neuro-resources__list a {
  display: grid;
  gap: 4px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--panel);
  text-decoration: none;
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out);
}

.neuro-resources__list a:hover {
  border-color: rgba(79, 124, 255, 0.35);
  transform: translateY(-2px);
}

.neuro-resources__label {
  font-weight: 500;
  color: var(--text);
}

.neuro-resources__desc {
  font-size: 0.92rem;
  color: var(--text-dim);
}

.neuro-explore {
  position: relative;
  padding: 140px 0;
  background: linear-gradient(150deg, #111a3a 0%, #090b16 46%, var(--bg) 100%);
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}

.neuro-explore__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.neuro-tab {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.neuro-tab:hover {
  color: var(--text);
  border-color: rgba(159, 180, 255, 0.4);
}

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

.neuro-explore__stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.neuro-pane {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: rgba(8, 9, 16, 0.55);
  overflow: hidden;
}

.neuro-pane__label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line-soft);
}

.neuro-pane__tag {
  color: var(--blue-pale);
}

.neuro-pane__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(43, 76, 255, 0.08), transparent 60%),
    #04060c;
}

.neuro-pane__media {
  width: 100%;
  height: 100%;
  display: block;
}

img.neuro-pane__media {
  object-fit: contain;
}

video.neuro-pane__media {
  object-fit: cover;
}

.neuro-pane__media--iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: transparent;
}

.neuro-pulse {
  position: absolute;
  transform: translate(-50%, -50%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(circle,
    rgba(255, 244, 214, 0.85) 0%,
    rgba(255, 176, 70, 0.55) 32%,
    rgba(220, 40, 70, 0.25) 58%,
    rgba(220, 40, 70, 0) 76%);
  animation: neuroPulse 2.6s var(--ease-out) infinite;
}

@keyframes neuroPulse {
  0%, 100% { opacity: 0.35; transform: translate(-50%, -50%) scale(0.9); }
  50% { opacity: 0.85; transform: translate(-50%, -50%) scale(1.16); }
}

@media (prefers-reduced-motion: reduce) {
  .neuro-pulse { animation: none; opacity: 0.6; }
}

/* Predicted brain activity — solid black across the entire card */
.neuro-pane.neuro-pane--brain {
  background: #000;
  border-color: rgba(255, 255, 255, 0.08);
}

.neuro-pane.neuro-pane--brain .neuro-pane__label {
  background: #000;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.neuro-pane.neuro-pane--brain .neuro-pane__frame {
  display: block;
  background: #000;
}

.neuro-pane.neuro-pane--brain .neuro-pane__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 0;
}

.neuro-pane.neuro-pane--brain img.neuro-pane__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
}

.neuro-pane.neuro-pane--brain .neuro-pulse {
  z-index: 2;
}

.neuro-explore__caption {
  max-width: 760px;
  margin-top: 24px;
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.65;
}

.neuro-explore__note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.neuro-explore__note a {
  color: var(--blue-pale);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .neuro-explore { padding: 96px 0; }
  .neuro-explore__stage { grid-template-columns: 1fr; }
}

.neuro-license {
  padding: 48px 0 80px;
  border-top: 1px solid var(--line-soft);
}

.neuro-license__text {
  max-width: 720px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-faint);
}

.neuro-license__text a {
  color: var(--blue-pale);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Production-only neuroanalysis tweaks (www.smrtbridge.com) */
.is-live .neuro-explore__note {
  display: none;
}

.is-live .neuro-license__text {
  font-size: 0.72rem;
  line-height: 1.65;
}

.is-live .neuro-license__text a {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
  cursor: text;
}

@media (max-width: 900px) {
  .neuro-modality-grid { grid-template-columns: 1fr; }
  .neuro-resources { padding-block: 96px; }
}

/* ================================================================
   LEGAL / PRIVACY PAGE
================================================================ */

.legal {
  padding: 160px 0 120px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.legal__meta {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.legal__content {
  max-width: 680px;
}

.legal__content h2 {
  font-size: 1.35rem;
  margin: 36px 0 12px;
}

.legal__content p,
.legal__content li {
  color: var(--text-dim);
  margin-bottom: 14px;
}

.legal__content ul {
  padding-left: 1.2rem;
  margin-bottom: 18px;
}

.legal__back {
  display: inline-flex;
  margin-top: 48px;
  color: var(--blue-pale);
  text-decoration: none;
  font-size: 0.95rem;
}

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

/* ================================================================
   RESEARCH PAGE
================================================================ */

.research {
  padding: 160px 0 120px;
}

.research h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.research__meta {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.research__content {
  max-width: 760px;
}

.research__content h2 {
  font-size: 1.35rem;
  margin: 36px 0 12px;
}

.research__content h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 28px 0 10px;
}

.research__content p,
.research__content li {
  color: var(--text-dim);
  margin-bottom: 14px;
}

.research__content ul {
  padding-left: 1.2rem;
  margin-bottom: 18px;
}

.research__cites {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  margin-bottom: 22px;
}

.research__content td .research__cites {
  margin-top: 0;
}

.cite {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  border: 1px solid rgba(242, 241, 236, 0.12);
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

a.cite:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  transform: scale(0.96);
  box-shadow: 0 2px 10px rgba(43, 76, 255, 0.35);
  cursor: pointer;
}

a.cite:active {
  transform: scale(0.91) translateY(1px);
  box-shadow: 0 1px 4px rgba(43, 76, 255, 0.2);
  transition-duration: 0.06s;
}

.research__table-wrap {
  overflow-x: auto;
  margin: 20px 0 8px;
  -webkit-overflow-scrolling: touch;
}

.research__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.research__table th,
.research__table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(242, 241, 236, 0.1);
}

.research__table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.research__table td {
  color: var(--text-dim);
}

.research__table tbody tr:last-child td {
  border-bottom: none;
}

.research__back {
  display: inline-flex;
  margin-top: 48px;
  color: var(--blue-pale);
  text-decoration: none;
  font-size: 0.95rem;
}

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

/* ---- read-mode toggle bar ---- */

.research-mode-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
}

.research-mode-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-right: 4px;
}

.research-mode-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(242, 241, 236, 0.18);
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.research-mode-btn.is-active {
  background: rgba(242, 241, 236, 0.1);
  color: var(--text);
  border-color: rgba(242, 241, 236, 0.35);
}

.research-mode-btn:hover:not(.is-active) {
  color: var(--text-dim);
  border-color: rgba(242, 241, 236, 0.28);
}

/* ---- topic navigation pills ---- */

.research-topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.topic-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  opacity: 0.72;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.topic-pill.is-active {
  opacity: 1;
}

.topic-pill:hover:not(.is-active) {
  opacity: 0.9;
  transform: scale(0.97);
}

.topic-pill:active {
  transform: scale(0.92) translateY(1px);
  transition-duration: 0.06s;
}

/* Blue — Consumer Neuroscience */
.topic-pill--blue {
  background: rgba(43, 76, 255, 0.14);
  color: #9fb4ff;
  border-color: rgba(43, 76, 255, 0.3);
}
.topic-pill--blue.is-active {
  background: rgba(43, 76, 255, 0.26);
  border-color: rgba(100, 140, 255, 0.55);
  box-shadow: 0 0 16px rgba(43, 76, 255, 0.18);
}
.topic-pill--blue:hover:not(.is-active) {
  background: rgba(43, 76, 255, 0.2);
  border-color: rgba(43, 76, 255, 0.44);
}

/* Green */
.topic-pill--green {
  background: rgba(56, 200, 120, 0.12);
  color: #72d9a0;
  border-color: rgba(56, 200, 120, 0.28);
}
.topic-pill--green.is-active {
  background: rgba(56, 200, 120, 0.24);
  border-color: rgba(56, 200, 120, 0.52);
  box-shadow: 0 0 16px rgba(56, 200, 120, 0.14);
}
.topic-pill--green:hover:not(.is-active) {
  background: rgba(56, 200, 120, 0.18);
  border-color: rgba(56, 200, 120, 0.4);
}

/* Amber */
.topic-pill--amber {
  background: rgba(240, 185, 40, 0.12);
  color: #f5c842;
  border-color: rgba(240, 185, 40, 0.28);
}
.topic-pill--amber.is-active {
  background: rgba(240, 185, 40, 0.24);
  border-color: rgba(240, 185, 40, 0.52);
  box-shadow: 0 0 16px rgba(240, 185, 40, 0.14);
}
.topic-pill--amber:hover:not(.is-active) {
  background: rgba(240, 185, 40, 0.18);
  border-color: rgba(240, 185, 40, 0.4);
}

/* Teal */
.topic-pill--teal {
  background: rgba(40, 200, 200, 0.12);
  color: #64d8d8;
  border-color: rgba(40, 200, 200, 0.28);
}
.topic-pill--teal.is-active {
  background: rgba(40, 200, 200, 0.24);
  border-color: rgba(40, 200, 200, 0.52);
  box-shadow: 0 0 16px rgba(40, 200, 200, 0.14);
}
.topic-pill--teal:hover:not(.is-active) {
  background: rgba(40, 200, 200, 0.18);
  border-color: rgba(40, 200, 200, 0.4);
}

/* Purple */
.topic-pill--purple {
  background: rgba(160, 100, 255, 0.12);
  color: #c49dff;
  border-color: rgba(160, 100, 255, 0.28);
}
.topic-pill--purple.is-active {
  background: rgba(160, 100, 255, 0.24);
  border-color: rgba(160, 100, 255, 0.52);
  box-shadow: 0 0 16px rgba(160, 100, 255, 0.14);
}
.topic-pill--purple:hover:not(.is-active) {
  background: rgba(160, 100, 255, 0.18);
  border-color: rgba(160, 100, 255, 0.4);
}

/* placeholder panel */
.research__placeholder {
  padding: 64px 0 32px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* attribution line */
.research__attribution {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(242, 241, 236, 0.1);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-faint);
}

.research__attribution a {
  color: var(--blue-pale);
  text-decoration: none;
}

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

/* cites inside list items — tighter bottom gap */
.research__content li .research__cites {
  margin-bottom: 8px;
}

/* topic panel visibility */
.research-topic[hidden] { display: none; }

/* ---- light mode overrides ---- */

body.research-light {
  --bg: #f0f0f5;
  --bg-soft: #e6e6ed;
  --text: #111111;
  --text-dim: #3a3a3a;
  --text-faint: #888888;
  --line-soft: rgba(0, 0, 0, 0.1);
  background: #f0f0f5;
}

body.research-light .nav.is-scrolled {
  background: rgba(240, 240, 245, 0.82);
}

body.research-light .nav__logo,
body.research-light .nav__links a,
body.research-light .nav__links a:hover {
  color: #111111;
}

body.research-light .btn--light {
  background: #111111;
  color: #f2f1ec;
  border-color: #111111;
}

body.research-light .research-mode-btn {
  border-color: rgba(0, 0, 0, 0.18);
  color: #888888;
}

body.research-light .research-mode-btn.is-active {
  background: rgba(0, 0, 0, 0.07);
  color: #111111;
  border-color: rgba(0, 0, 0, 0.3);
}

body.research-light .research-mode-btn:hover:not(.is-active) {
  color: #3a3a3a;
  border-color: rgba(0, 0, 0, 0.25);
}

body.research-light .cite {
  border-color: rgba(0, 0, 0, 0.15);
  color: #888888;
}

body.research-light .research__table th,
body.research-light .research__table td {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.research-light .footer__links a,
body.research-light .footer__tag,
body.research-light .footer__bottom span,
body.research-light .nav__logo--footer {
  color: #888888;
}

body.research-light .footer__links a:hover {
  color: #111111;
}

body.research-light .research__back {
  color: #2b4cff;
}

body.research-light .research__back:hover {
  color: #111111;
}

body.research-light .research__attribution {
  border-top-color: rgba(0, 0, 0, 0.08);
}

body.research-light .research__attribution a {
  color: #2b4cff;
}

body.research-light .research__attribution a:hover {
  color: #111111;
}

/* light mode — topic pills */

body.research-light .topic-pill--blue {
  background: #d0dcff;
  color: #1a3a99;
  border-color: rgba(43, 76, 255, 0.28);
}
body.research-light .topic-pill--blue.is-active {
  background: #b8ccff;
  border-color: rgba(43, 76, 255, 0.55);
  box-shadow: 0 2px 14px rgba(43, 76, 255, 0.14);
}
body.research-light .topic-pill--blue:hover:not(.is-active) {
  background: #c4d4ff;
  border-color: rgba(43, 76, 255, 0.4);
}

body.research-light .topic-pill--green {
  background: #c8f0d8;
  color: #0d5c28;
  border-color: rgba(30, 160, 80, 0.28);
}
body.research-light .topic-pill--green.is-active {
  background: #a8e8c0;
  border-color: rgba(30, 160, 80, 0.52);
  box-shadow: 0 2px 14px rgba(30, 160, 80, 0.12);
}
body.research-light .topic-pill--green:hover:not(.is-active) {
  background: #b8ecc8;
  border-color: rgba(30, 160, 80, 0.4);
}

body.research-light .topic-pill--amber {
  background: #fff0b0;
  color: #7a5500;
  border-color: rgba(200, 150, 0, 0.28);
}
body.research-light .topic-pill--amber.is-active {
  background: #ffe880;
  border-color: rgba(200, 150, 0, 0.52);
  box-shadow: 0 2px 14px rgba(200, 150, 0, 0.12);
}
body.research-light .topic-pill--amber:hover:not(.is-active) {
  background: #ffec98;
  border-color: rgba(200, 150, 0, 0.4);
}

body.research-light .topic-pill--teal {
  background: #b8f0f0;
  color: #004a4a;
  border-color: rgba(0, 160, 160, 0.28);
}
body.research-light .topic-pill--teal.is-active {
  background: #90e4e4;
  border-color: rgba(0, 160, 160, 0.52);
  box-shadow: 0 2px 14px rgba(0, 160, 160, 0.12);
}
body.research-light .topic-pill--teal:hover:not(.is-active) {
  background: #a4eaea;
  border-color: rgba(0, 160, 160, 0.4);
}

body.research-light .topic-pill--purple {
  background: #e8d4ff;
  color: #4d1a99;
  border-color: rgba(130, 70, 220, 0.28);
}
body.research-light .topic-pill--purple.is-active {
  background: #d4b4ff;
  border-color: rgba(130, 70, 220, 0.52);
  box-shadow: 0 2px 14px rgba(130, 70, 220, 0.12);
}
body.research-light .topic-pill--purple:hover:not(.is-active) {
  background: #dcc4ff;
  border-color: rgba(130, 70, 220, 0.4);
}

/* ================================================================
   FOOTER
================================================================ */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  padding: 64px 0 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}

.footer__tag { color: var(--text-dim); font-size: 0.92rem; }

.footer__links { display: flex; gap: 28px; }
.footer__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.25s ease;
}
.footer__links a:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--line-soft);
  padding: 24px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* ================================================================
   RESPONSIVE
================================================================ */

@media (max-width: 1024px) {
  .impact__grid { grid-template-columns: repeat(2, 1fr); }
  .why__inner { grid-template-columns: 1fr; gap: 50px; }
  .why__visual { order: -1; }
  .layer-card { grid-template-columns: 60px 1fr; }
  .layer-card__visual { display: none; }
}

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento-card, .bento-card--wide { grid-column: span 1; }
  .what__bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .wcard--feed, .wcard--ledger, .wcard--chart { grid-column: 1; grid-row: auto; }
  .wcard__head--split { grid-template-columns: 1fr; gap: 10px; }
  .wcard__head--split p { justify-self: start; text-align: left; }
  .engage__grid { grid-template-columns: 1fr; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 36px); }
  .hero__content { padding: 140px 0 110px; }
  .hero__title { font-size: clamp(2.4rem, 10.5vw, 3.2rem); }
  .wcard { padding: 26px 22px; }
  .ledger__row { grid-template-columns: 1fr auto; }
  .ledger__row code { display: none; }
  .chartpane { padding: 16px; }
  .chartpane__plot { min-height: 200px; }
  .plot__hover { min-width: 150px; padding: 9px 11px; }
  .tip__name { font-size: 0.72rem; }
  .impact__grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .layer-card { padding: 34px 28px; grid-template-columns: 1fr; gap: 18px; }
  .layer-card__index { border-top: 0; border-left: 1px solid var(--blue-soft); padding: 0 0 0 12px; }
  .layer-card__content h3 { font-size: 1.6rem; }
  .section-head { margin-bottom: 48px; }
  .what, .impact, .services, .approach, .why, .who, .engage { padding-block: 96px; }
  .cta { padding: 130px 0; }
  .marquee__track span { font-size: 1.2rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ================================================================
   REDUCED MOTION
================================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .line { transform: none; animation: none; }
  .feed__item { opacity: 1; animation: none; }
  .chart-line { stroke-dashoffset: 0; }
  .chart-area__fill, .plot__callout { opacity: 1; }
  .chart-dot { opacity: 0.42; transform: scale(1); }
  html { scroll-behavior: auto; }
}
