/* Nitrode microsite — dark theme + brand assets + DeepSWE-style charts */

body[data-site="nitrode"] {
  --nd-bg: #141816;
  --nd-bg-deep: #0f1210;
  --nd-surface: #1a1f1c;
  --nd-surface-2: #222924;
  --nd-line: rgba(232, 238, 234, 0.12);
  --nd-line-strong: rgba(232, 238, 234, 0.2);
  --nd-text: #e8eeea;
  --nd-muted: #8f9a92;
  --nd-accent: #6faf86;
  --nd-accent-soft: #3d6b4f;
  --nd-accent-bright: #8bc49e;
  --nd-accent-pale: #a8d4c4;
  --nd-accent-glow: rgba(111, 175, 134, 0.28);
  --nd-mono: ui-monospace, "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --nd-radius: 0;
  --nd-content-top: 160px;
  --sticky-top: var(--nd-content-top);
  --white: var(--nd-bg);
  --black: var(--nd-text);
  --border: var(--nd-line);
  --text-muted: var(--nd-muted);
  --green: var(--nd-accent);
  --green-mid: var(--nd-accent-bright);
  --green-pale: #243028;
  --panel-bg: var(--nd-surface);
  --body-color: var(--nd-muted);
  --body-footer-radius: 0;
  background: var(--nd-bg-deep);
  color: var(--nd-text);
}

html:has(body[data-site="nitrode"]) {
  background: var(--nd-bg-deep);
}

html:has(body[data-site="nitrode"])::before {
  background: var(--nd-bg-deep);
}

body[data-site="nitrode"] ::selection {
  background: var(--nd-accent);
  color: var(--nd-bg-deep);
}

/* Rectangular tech shell + mixed typography */
body[data-site="nitrode"] .nl-btn {
  border-radius: 0;
  font-family: var(--nd-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-sizing: border-box;
  height: 38px;
  padding: 0 16px;
}

body[data-site="nitrode"] .nl-fixed-actions__link {
  font-family: var(--nd-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-site="nitrode"] .nl-section__eyebrow,
body[data-site="nitrode"] .nd-card__index,
body[data-site="nitrode"] .nd-stat__label,
body[data-site="nitrode"] .nd-backed__label,
body[data-site="nitrode"] .nl-site-footer__heading,
body[data-site="nitrode"] .nd-block__head .nl-section__eyebrow {
  font-family: var(--nd-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body[data-site="nitrode"] .nd-stat__value,
body[data-site="nitrode"] .nd-lb__rank,
body[data-site="nitrode"] .nd-lb__name,
body[data-site="nitrode"] .nd-lb__effort,
body[data-site="nitrode"] .nd-lb__metric,
body[data-site="nitrode"] .nd-catrow__meta,
body[data-site="nitrode"] .nd-lb__scale {
  font-family: var(--nd-mono);
  font-variant-numeric: tabular-nums;
}

body[data-site="nitrode"] .nd-chart-card__meta,
body[data-site="nitrode"] .nd-chart-card__note {
  font-family: var(--nd-mono);
}

body[data-site="nitrode"] .nl-btn,
body[data-site="nitrode"] .nd-card,
body[data-site="nitrode"] .nd-pillars,
body[data-site="nitrode"] .nd-cards,
body[data-site="nitrode"] .nd-stats,
body[data-site="nitrode"] .nd-methods,
body[data-site="nitrode"] .nd-fails,
body[data-site="nitrode"] .nd-chart-card,
body[data-site="nitrode"] .nd-chart,
body[data-site="nitrode"] .nd-media-tile,
body[data-site="nitrode"] .nd-cta-strip,
body[data-site="nitrode"] .nd-tag,
body[data-site="nitrode"] .nd-form .nd-field input,
body[data-site="nitrode"] .nd-form .nd-field textarea,
body[data-site="nitrode"] .nd-form .nd-field select,
body[data-site="nitrode"] .nd-lb__bar-wrap,
body[data-site="nitrode"] .nd-lb__bar,
body[data-site="nitrode"] .nd-catrow__track,
body[data-site="nitrode"] .nd-catrow__fill,
body[data-site="nitrode"] .nl-mobile-nav__toggle,
body[data-site="nitrode"] .nl-fixed-actions__menu,
body[data-site="nitrode"] .nl-mobile-nav__sheet {
  border-radius: 0;
}

body[data-site="nitrode"] .nl-body {
  background: var(--nd-bg);
  color: var(--nd-text);
  border-radius: 0;
  padding-top: var(--nd-content-top);
}

/* Full-bleed hero band sits under sidebar + main */
body[data-site="nitrode"] .nl-body--with-hero-bleed {
  position: relative;
  padding-top: 0;
  overflow: clip;
  background: var(--nd-bg);
}

body[data-site="nitrode"] .nl-body--with-hero-bleed .nl-body__grid {
  position: relative;
  z-index: 1;
  padding-top: var(--nd-content-top);
}

/* Top bar replaces the sidebar, so content spans the full width */
body[data-site="nitrode"] .nl-body__grid {
  grid-template-columns: minmax(0, 1fr);
}

.nd-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  height: 64px;
  padding: 0 var(--site-pad-x);
  background: rgba(15, 18, 16, 0.55);
  border-bottom: 1px solid rgba(232, 238, 234, 0.08);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.nd-topbar__brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  opacity: 0.9;
  transition: opacity 150ms ease;
}

.nd-topbar__brand:hover {
  opacity: 1;
}

.nd-topbar__brand img {
  display: block;
  width: 7.25rem;
  height: auto;
}

.nd-topbar__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nd-topbar__links a {
  font-size: 0.92rem;
  color: var(--nd-muted);
  text-decoration: none;
  transition: color 160ms ease;
}

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

body[data-site="nitrode"] .nd-topbar__cta.nl-btn {
  justify-self: end;
  height: 32px;
  padding: 0 14px;
  font-size: 10.5px;
}

.nd-topbar__toggle {
  display: none;
}

/* For labs: intro column beside a checkerboard of product tiles and art */
.nd-labs {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.nd-labs__intro {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
  padding: 8px 0;
}

.nd-labs__intro .nl-section__eyebrow {
  margin: 0;
}

.nd-labs__heading {
  margin: 0 0 4px;
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--nd-accent);
}

.nd-labs__intro p:not(.nl-section__eyebrow) {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--nd-muted);
}

.nd-labs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "coding     art-coding"
    "art-tools  tools"
    "art-tools  computer"
    "multimodal art-multimodal"
    "art-bench  bench";
  gap: 1px;
  background: var(--nd-line);
  border: 1px solid var(--nd-line);
}

.nd-labs__tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 340px;
  padding: 40px 36px;
  background: var(--nd-bg);
}

.nd-labs__tile--coding { grid-area: coding; }
.nd-labs__tile--tools { grid-area: tools; }
.nd-labs__tile--computer { grid-area: computer; }
.nd-labs__tile--multimodal { grid-area: multimodal; }
.nd-labs__tile--bench { grid-area: bench; }
.nd-labs__art--coding { grid-area: art-coding; }
.nd-labs__art--tools { grid-area: art-tools; }
.nd-labs__art--multimodal { grid-area: art-multimodal; }
.nd-labs__art--bench { grid-area: art-bench; }

.nd-labs__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  color: var(--nd-accent);
  background: var(--nd-surface);
  border: 1px solid var(--nd-line);
}

.nd-labs__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--nd-text);
}

.nd-labs__body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--nd-muted);
}

.nd-labs__link {
  align-self: flex-start;
  margin-top: 4px;
}

.nd-labs__art {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: var(--nd-bg-deep);
}

.nd-labs__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 960px) {
  .nd-labs {
    grid-template-columns: minmax(0, 1fr);
  }

  .nd-labs__intro {
    position: static;
  }

  .nd-labs__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
  }

  .nd-labs__grid > * {
    grid-area: auto;
  }

  /* Keep each illustration next to its product when stacked */
  .nd-labs__tile--coding { order: 1; }
  .nd-labs__art--coding { order: 2; }
  .nd-labs__tile--tools { order: 3; }
  .nd-labs__art--tools { order: 4; }
  .nd-labs__tile--computer { order: 5; }
  .nd-labs__tile--multimodal { order: 6; }
  .nd-labs__art--multimodal { order: 7; }
  .nd-labs__tile--bench { order: 8; }
  .nd-labs__art--bench { order: 9; }

  .nd-labs__tile {
    min-height: 0;
    padding: 32px 24px;
  }

  .nd-labs__art {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .nd-labs__art--tools {
    aspect-ratio: 4 / 3;
  }
}

/* Careers: short intro beside a plain list of roles */
.nd-careers {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.nd-careers__intro {
  display: grid;
  gap: 16px;
}

.nd-careers__intro .nl-section__eyebrow,
.nd-careers__intro .nl-section__title,
.nd-careers__intro p {
  margin: 0;
}

.nd-careers__intro p:not(.nl-section__eyebrow) {
  max-width: 36ch;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--nd-muted);
}

.nd-careers__intro .nd-careers__note {
  margin-top: 8px;
  font-size: 0.88rem;
}

.nd-careers__note a {
  color: var(--nd-text);
  text-underline-offset: 3px;
}

.nd-careers__roles {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--nd-line);
}

.nd-careers__roles > li {
  border-bottom: 1px solid var(--nd-line);
}

.nd-role {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 24px;
  padding: 24px 0;
  color: var(--nd-text);
  text-decoration: none;
}

.nd-role__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color 160ms ease;
}

.nd-role__new {
  font-family: var(--nd-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nd-accent);
}

.nd-role__meta {
  grid-column: 1;
  font-size: 0.88rem;
  color: var(--nd-muted);
}

.nd-role__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--nd-muted);
  transition: color 160ms ease, transform 160ms ease;
}

.nd-role:hover .nd-role__title,
.nd-role:focus-visible .nd-role__title {
  color: var(--nd-accent-bright);
}

.nd-role:hover .nd-role__arrow,
.nd-role:focus-visible .nd-role__arrow {
  color: var(--nd-accent-bright);
  transform: translate(2px, -2px);
}

@media (max-width: 960px) {
  .nd-careers {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Quiet secondary action beside a primary button */
.nd-textlink {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-family: var(--nd-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--nd-text);
  transition: color 180ms ease;
}

.nd-textlink:hover {
  color: var(--nd-accent-bright);
}

@media (max-width: 960px) {
  .nd-topbar {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    height: 56px;
  }

  .nd-topbar__brand img {
    width: 5.75rem;
  }

  /* Full-screen panel under the bar; fades and slides in */
  .nd-topbar__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - 56px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px var(--site-pad-x) 32px;
    background: var(--nd-bg-deep);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 220ms ease,
      transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1),
      visibility 0s linear 320ms;
  }

  .nd-topbar.is-open .nd-topbar__links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 220ms ease,
      transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1),
      visibility 0s;
  }

  .nd-topbar__links a {
    padding: 18px 0;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    color: var(--nd-text);
    border-bottom: 1px solid var(--nd-line);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 260ms ease, transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1), color 160ms ease;
  }

  .nd-topbar__links a[aria-current="page"] {
    color: var(--nd-accent-bright);
  }

  .nd-topbar.is-open .nd-topbar__links a {
    opacity: 1;
    transform: none;
  }

  .nd-topbar.is-open .nd-topbar__links a:nth-child(1) { transition-delay: 60ms; }
  .nd-topbar.is-open .nd-topbar__links a:nth-child(2) { transition-delay: 100ms; }
  .nd-topbar.is-open .nd-topbar__links a:nth-child(3) { transition-delay: 140ms; }
  .nd-topbar.is-open .nd-topbar__links a:nth-child(4) { transition-delay: 180ms; }

  .nd-topbar__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--nd-text);
    background: transparent;
    border: 1px solid var(--nd-line-strong);
    cursor: pointer;
  }

  /* Two bars that turn into an X */
  .nd-topbar__bars {
    position: relative;
    width: 14px;
    height: 8px;
  }

  .nd-topbar__bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transition: transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1), top 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .nd-topbar__bars span:first-child {
    top: 0;
  }

  .nd-topbar__bars span:last-child {
    top: calc(100% - 1.5px);
  }

  .nd-topbar.is-open .nd-topbar__bars span {
    top: calc(50% - 0.75px);
  }

  .nd-topbar.is-open .nd-topbar__bars span:first-child {
    transform: rotate(45deg);
  }

  .nd-topbar.is-open .nd-topbar__bars span:last-child {
    transform: rotate(-45deg);
  }

  .nd-topbar.is-open {
    background: var(--nd-bg-deep);
  }

  html.nd-menu-open,
  html.nd-menu-open body {
    overflow: hidden;
  }
}

@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
  .nd-topbar__links,
  .nd-topbar__links a,
  .nd-topbar__bars span {
    transition: none !important;
    transform: none !important;
  }
}

.nd-hero-bleed {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  height: clamp(520px, 78vh, 780px);
  overflow: hidden;
  pointer-events: none;
  background: var(--nd-bg-deep);
}

.nd-hero-bleed--subpage {
  height: clamp(420px, 58vh, 620px);
}

.nd-hero-bleed .nd-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
  transform: scale(1.02);
}

.nd-hero-bleed--subpage .nd-hero__bg {
  object-position: 72% 50%;
}

.nd-hero-bleed .nd-hero__constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;
  cursor: crosshair;
}

.nd-hero-bleed .nd-hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(13, 15, 18, 0.82) 0%,
    rgba(13, 15, 18, 0.48) 36%,
    rgba(13, 15, 18, 0.22) 62%,
    rgba(13, 15, 18, 0.32) 100%
  );
  opacity: 0.88;
}

.nd-hero-bleed .nd-hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(17, 19, 23, 0) 0%,
    rgba(17, 19, 23, 0.35) 40%,
    var(--nd-bg) 100%
  );
}

body[data-site="nitrode"] .nl-sidebar__brand,
body[data-site="nitrode"] .nl-sidebar__sub-link,
body[data-site="nitrode"] .nl-sidebar__link,
body[data-site="nitrode"] .nl-fixed-actions__link,
body[data-site="nitrode"] .nl-fixed-actions__sep,
body[data-site="nitrode"] .nl-section__title,
body[data-site="nitrode"] .nl-section__eyebrow,
body[data-site="nitrode"] .nl-careers-role-name,
body[data-site="nitrode"] .nl-careers-role-location,
body[data-site="nitrode"] .nl-careers-group-label {
  color: var(--nd-text);
}

body[data-site="nitrode"] .nl-section__eyebrow,
body[data-site="nitrode"] .nl-careers-role-location,
body[data-site="nitrode"] .nl-careers-group-label,
body[data-site="nitrode"] .nl-fixed-actions__sep {
  color: var(--nd-muted);
}

body[data-site="nitrode"] .nl-careers-role-link::after {
  background-color: var(--nd-muted);
}

body[data-site="nitrode"] .nl-careers-role-link:hover::after {
  background-color: var(--nd-text);
}

body[data-site="nitrode"] .nl-sidebar__sub-link:hover,
body[data-site="nitrode"] .nl-sidebar__brand:hover,
body[data-site="nitrode"] .nl-careers-role-link:hover .nl-careers-role-name {
  color: var(--nd-muted);
}

body[data-site="nitrode"] .nl-sidebar__divider,
body[data-site="nitrode"] .nl-careers-role-list li {
  border-color: var(--nd-line);
  background-color: transparent;
}

body[data-site="nitrode"] .nl-sidebar__divider {
  background: var(--nd-line);
}

body[data-site="nitrode"] .nl-sidebar__indicator-bar {
  background: var(--nd-accent);
}

body[data-site="nitrode"] .nl-btn--green {
  background: var(--nd-accent);
  color: var(--nd-bg-deep);
  border: 1px solid var(--nd-accent);
  box-shadow: none;
}

body[data-site="nitrode"] .nl-btn--green:hover {
  background: var(--nd-accent-bright);
  border-color: var(--nd-accent-bright);
}

body[data-site="nitrode"] .nl-btn--dark {
  background: transparent;
  color: var(--nd-text);
  border: 1px solid var(--nd-line-strong);
}

body[data-site="nitrode"] .nl-btn--dark:hover {
  background: rgba(232, 238, 234, 0.06);
  opacity: 1;
}

body[data-site="nitrode"] .nl-fixed-actions {
  gap: 14px;
}

body[data-site="nitrode"] .nl-fixed-actions__link.is-active {
  color: var(--nd-accent-bright);
}

body[data-site="nitrode"] .nl-fixed-actions__menu,
body[data-site="nitrode"] .nl-mobile-nav__sheet {
  background: rgba(20, 24, 22, 0.86);
  border-color: rgba(232, 238, 234, 0.14);
}

body[data-site="nitrode"] .nl-mobile-nav__toggle {
  color: var(--nd-text);
  border-color: var(--nd-line);
  background: rgba(20, 24, 22, 0.72);
}

@media (max-width: 1100px) {
  body[data-site="nitrode"] .nl-fixed-actions .nl-fixed-actions__link {
    display: none;
  }
}

body[data-site="nitrode"] .nl-fixed-actions__menu-link {
  color: var(--nd-text);
}

body[data-site="nitrode"] .nl-site-footer {
  margin-top: 0;
  background: #0f1210;
  color: #e8eeea;
}

body[data-site="nitrode"] .nl-site-footer::before {
  display: none;
}

body[data-site="nitrode"] .nl-site-footer::after {
  opacity: 0.22;
  mix-blend-mode: soft-light;
}

body[data-site="nitrode"] .nl-site-footer__logo {
  color: #e8eeea;
}

body[data-site="nitrode"] .nl-site-footer__logo img {
  width: auto;
  height: 22px;
  filter: none;
}

body[data-site="nitrode"] .nl-site-footer__heading {
  color: rgba(232, 238, 234, 0.42);
}

body[data-site="nitrode"] .nl-site-footer__col a {
  color: rgba(232, 238, 234, 0.68);
}

body[data-site="nitrode"] .nl-site-footer__col a:hover {
  color: #e8eeea;
}

body[data-site="nitrode"] .nl-site-footer__copy {
  color: rgba(232, 238, 234, 0.42);
}

body[data-site="nitrode"] .nd-footer-meta {
  color: rgba(232, 238, 234, 0.42);
}

body[data-site="nitrode"] .nd-footer-meta strong {
  color: rgba(232, 238, 234, 0.72);
}

body[data-site="nitrode"] .nl-careers-note a,
body[data-site="nitrode"] .nd-board__link {
  color: var(--nd-accent);
}

body[data-site="nitrode"] .nl-sidebar__icon--logo {
  width: var(--sidebar-icon-size);
  height: var(--sidebar-icon-size);
  object-fit: contain;
  filter: invert(1);
}

body[data-site="nitrode"] .nl-section__title--hero {
  max-width: 22ch;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
}

body[data-site="nitrode"] .nl-section__title--wide {
  max-width: 28ch;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

body[data-site="nitrode"] .nd-hero--page .nl-section__eyebrow {
  margin-top: 0;
  margin-bottom: clamp(16px, 2vw, 22px);
}

body[data-site="nitrode"] .nd-hero--page .nl-section__title {
  margin-bottom: clamp(20px, 2.4vw, 28px);
}

.nd-hero--over-bleed {
  position: relative;
  z-index: 1;
  border-bottom-color: rgba(232, 238, 234, 0.12);
  margin-top: 0;
  padding-top: 0;
}

/* Hero with asset */

.nd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: end;
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--nd-line);
  margin-bottom: clamp(48px, 7vw, 80px);
}

.nd-hero--solo,
.nd-hero--page {
  display: block;
  grid-template-columns: 1fr;
  max-width: none;
  padding-bottom: clamp(40px, 6vw, 72px);
  margin-bottom: clamp(48px, 7vw, 80px);
  border-bottom: 1px solid var(--nd-line);
}

.nd-hero--page .nl-section__title,
.nd-hero--solo .nl-section__title {
  margin-bottom: 0;
}

.nd-hero--page .nd-lead + .nd-lead,
.nd-hero--solo .nd-lead + .nd-lead {
  margin-top: clamp(16px, 2vw, 22px);
}

.nd-hero--page .nd-hero__actions,
.nd-hero--solo .nd-hero__actions {
  margin-top: clamp(24px, 3vw, 32px);
}

body[data-page="nitrode-enterprise"] .nd-hero-bleed--subpage {
  height: clamp(320px, 42vh, 480px);
}

.nd-hero--banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(460px, 66vh, 680px);
  margin: 0 0 clamp(80px, 11vw, 128px);
  padding: 0;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.nd-hero__stage {
  display: none;
}

.nd-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
  transform: scale(1.04);
}

.nd-hero__constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;
  cursor: crosshair;
}

.nd-hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(17, 19, 23, 0.88) 0%,
    rgba(17, 19, 23, 0.72) 34%,
    rgba(17, 19, 23, 0.28) 62%,
    rgba(17, 19, 23, 0.4) 100%
  );
}

.nd-hero__copy {
  position: relative;
  z-index: 1;
  max-width: min(36rem, 100%);
  padding-bottom: clamp(28px, 3.5vw, 48px);
  pointer-events: none;
}

.nd-hero--banner .nd-hero__copy {
  display: grid;
  gap: clamp(22px, 2.4vw, 32px);
  max-width: min(44rem, 100%);
  padding-bottom: clamp(32px, 4vw, 56px);
}

.nd-hero--banner .nd-hero__actions {
  align-items: center;
  gap: 12px 28px;
}

.nd-hero--banner .nl-section__title {
  margin-bottom: 0;
  color: var(--nd-text);
  text-shadow: 0 2px 28px rgba(17, 19, 23, 0.55);
}

.nd-hero__copy .nl-btn,
.nd-hero__copy a {
  pointer-events: auto;
}

.nd-hero--banner .nl-section__eyebrow,
.nd-hero--banner .nd-lead {
  color: rgba(232, 238, 234, 0.78);
}

.nd-hero--banner .nl-btn--dark {
  background: rgba(17, 19, 23, 0.38);
  border-color: rgba(232, 238, 234, 0.26);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(8px, 1.2vw, 16px);
}

.nd-hero__media {
  position: relative;
  min-height: 220px;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--nd-line);
  background: var(--nd-surface);
}

.nd-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nd-lead {
  margin: 0;
  max-width: 48ch;
  color: var(--nd-muted);
}

.nd-lead em,
.nd-lead strong {
  font-style: normal;
  font-weight: 500;
  color: var(--nd-text);
}

/* A wide statement across most of the content width; size keeps lines readable */
.nd-mission {
  display: grid;
  gap: clamp(24px, 2.8vw, 36px);
  margin-top: clamp(8px, 1.5vw, 16px);
  margin-bottom: clamp(56px, 8vw, 96px);
}

.nd-mission p {
  max-width: 68ch;
  margin: 0;
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: var(--nd-muted);
}

.nd-mission p strong {
  font-weight: 500;
  color: var(--nd-text);
}

/* Stats */

.nd-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 clamp(40px, 6vw, 64px);
  background: var(--nd-line);
  border: 1px solid var(--nd-line);
  border-radius: 0;
  overflow: hidden;
}

.nd-stat {
  padding: 22px 20px;
  background: var(--nd-surface);
}

.nd-stat__value {
  display: block;
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--nd-text);
}

.nd-stat__label {
  display: block;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nd-muted);
}

/* Media tiles */

.nd-media-tile {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid var(--nd-line);
  background: var(--nd-surface);
  min-height: 180px;
}

.nd-media-tile img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.nd-backed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin: 0 0 clamp(40px, 6vw, 64px);
}

.nd-backed__label {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nd-muted);
}

.nd-backed__logo {
  display: block;
  height: 28px;
  width: auto;
}

/* Pillars / product cards */

.nd-pillars,
.nd-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  background: transparent;
  border: 1px solid var(--nd-line);
  border-radius: 0;
  overflow: hidden;
}

.nd-cards--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nd-cards--products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nd-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  min-width: 0;
  padding: clamp(24px, 3vw, 32px);
  background: var(--nd-surface);
  color: inherit;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.nd-pillars .nd-card + .nd-card,
.nd-cards .nd-card + .nd-card {
  border-left: 1px solid var(--nd-line);
}

.nd-card--pillar {
  gap: 10px;
  padding: clamp(28px, 3.2vw, 36px) clamp(22px, 2.4vw, 28px);
}

.nd-card--pillar .nd-card__index {
  color: var(--nd-muted);
}

.nd-card--pillar .nd-card__title {
  margin: 0;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.2;
}

.nd-card--pillar .nd-card__body {
  margin: 0;
  max-width: 34ch;
  font-size: 0.95rem;
  line-height: 1.45;
}

a.nd-card:hover {
  background: var(--nd-surface-2);
}

.nd-card--media {
  padding: 0;
  overflow: hidden;
}

.nd-card--media .nd-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--nd-bg-deep);
}

.nd-card--media .nd-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nd-card--media .nd-card__copy {
  display: grid;
  gap: 10px;
  padding: clamp(20px, 2.5vw, 28px);
}

.nd-card__index {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nd-accent);
}

.nd-card__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--nd-text);
}

.nd-card__body {
  margin: 0;
  color: var(--nd-muted);
}

/* Research blocks */

.nd-block {
  margin: 0 0 clamp(48px, 7vw, 80px);
}

.nd-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.nd-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nd-takeaways {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.nd-takeaway {
  position: relative;
  margin: 0;
  padding: 0 0 0 28px;
  color: var(--nd-muted);
}

.nd-takeaway::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--nd-accent);
  font-weight: 500;
}

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

.nd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nd-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 0;
  border: 1px solid var(--nd-line);
  background: var(--nd-surface);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--nd-text);
}

.nd-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--nd-line);
  border: 1px solid var(--nd-line);
  border-radius: 0;
  overflow: hidden;
}

.nd-method,
.nd-fail {
  padding: clamp(22px, 3vw, 28px);
  background: var(--nd-surface);
}

.nd-method__index,
.nd-fail__label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nd-accent);
}

.nd-fail__label {
  color: var(--nd-muted);
}

.nd-method__title,
.nd-fail__title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--nd-text);
}

.nd-method__body,
.nd-fail__body {
  margin: 0;
  color: var(--nd-muted);
}

.nd-fails {
  display: grid;
  gap: 1px;
  background: var(--nd-line);
  border: 1px solid var(--nd-line);
  border-radius: 0;
  overflow: hidden;
}

/* DeepSWE-style charts */

.nd-chart-stack {
  display: grid;
  gap: 18px;
  margin: 0 0 clamp(48px, 7vw, 80px);
}

.nd-chart-card {
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--nd-line);
  border-radius: 0;
  background: var(--nd-surface);
}

.nd-chart-card__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-bottom: 16px;
}

.nd-chart-card__toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.nd-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid var(--nd-line);
  margin-left: -1px;
  font-family: var(--nd-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--nd-muted);
  background: transparent;
}

.nd-toggle:first-child {
  margin-left: 0;
}

.nd-toggle.is-active {
  background: var(--nd-text);
  border-color: var(--nd-text);
  color: var(--nd-bg-deep);
}

.nd-chart-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  font-family: var(--nd-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--nd-muted);
}

.nd-chart-card__note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--nd-muted);
}

.nd-chart {
  display: block;
  width: 100%;
  height: auto;
  background: #0a0c0b;
  border: 1px solid var(--nd-line);
  border-radius: 0;
  overflow: visible;
}

.nd-chart-card--scatter {
  max-width: none;
  width: 100%;
  overflow: visible;
}

.nd-chart-frame {
  overflow: visible;
}

.nd-chart--scatter {
  width: 100%;
  max-width: none;
  cursor: crosshair;
  overflow: visible;
}

.nd-chart__point {
  cursor: pointer;
}

.nd-chart__point .nd-chart__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--nd-mono);
}

.nd-chart__point .nd-chart__badge {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--nd-mono);
  opacity: 0.85;
}

.nd-chart__point.is-dimmed {
  opacity: 0.18;
}

.nd-chart__point.is-dimmed .nd-chart__label,
.nd-chart__point.is-dimmed .nd-chart__badge {
  opacity: 0;
}

.nd-chart__point.is-active {
  opacity: 1;
}

.nd-chart__point.is-active .nd-chart__label {
  font-weight: 600;
}

.nd-chart__guide {
  fill: none;
  stroke-width: 1;
  stroke-dasharray: 3 3;
  pointer-events: none;
}

.nd-chart__focus-square {
  stroke: #0a0c0b;
  stroke-width: 1.25;
  pointer-events: none;
}

.nd-chart__focus-y,
.nd-chart__focus-x {
  font-family: var(--nd-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.nd-chart__focus[hidden] {
  display: none;
}

.nd-chart__title {
  fill: var(--nd-text);
  font-size: 13px;
  font-weight: 500;
  font-family: "Aeonik", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.nd-chart__tick,
.nd-chart__axis {
  fill: var(--nd-muted);
  font-family: var(--nd-mono);
}

.nd-chart__tick {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nd-chart__axis {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nd-chart__grid {
  stroke: rgba(232, 238, 234, 0.08);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.nd-lb__head,
.nd-lb__row,
.nd-lb__scale {
  display: grid;
  grid-template-columns:
    220px
    minmax(140px, 1fr)
    96px
    78px
    64px
    52px;
  gap: 12px 20px;
  align-items: center;
}

.nd-lb__head {
  padding: 0 0 10px;
  border-bottom: 1px solid var(--nd-line);
  font-family: var(--nd-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nd-muted);
}

.nd-lb__head span:nth-child(n + 3) {
  text-align: right;
}

.nd-lb__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nd-lb__row {
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(232, 238, 234, 0.08);
  transition: background-color 160ms ease;
}

.nd-lb__row:last-child {
  border-bottom: none;
}

.nd-lb__row:hover {
  background: rgba(232, 238, 234, 0.04);
}

.nd-lb__model {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.nd-lb__logo {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.nd-lb__logo--invert {
  filter: invert(1);
}

.nd-lb__model-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  min-width: 0;
}

.nd-lb__name {
  font-family: var(--nd-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--nd-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nd-lb__effort {
  font-family: var(--nd-mono);
  font-size: 11px;
  color: var(--nd-muted);
  white-space: nowrap;
}

.nd-lb__bar-cell {
  min-width: 0;
}

.nd-lb__bar-wrap {
  position: relative;
  height: 10px;
  border-radius: 0;
  background: rgba(232, 238, 234, 0.05);
  border: none;
  overflow: visible;
}

.nd-lb__bar {
  display: block;
  height: 100%;
  border-radius: 0;
  background: var(--nd-accent);
  transform-origin: left center;
  transition: filter 160ms ease, opacity 160ms ease;
}

.nd-lb__row:hover .nd-lb__bar {
  filter: brightness(1.18);
}

.nd-lb__row:hover .nd-lb__whisker {
  background: rgba(252, 252, 252, 0.95);
}

.nd-lb__row:hover .nd-lb__whisker::before,
.nd-lb__row:hover .nd-lb__whisker::after {
  background: rgba(252, 252, 252, 0.95);
}

.nd-lb__whisker {
  position: absolute;
  top: 50%;
  height: 1px;
  background: rgba(232, 238, 234, 0.85);
  transform: translateY(-50%);
  pointer-events: none;
}

.nd-lb__whisker::before,
.nd-lb__whisker::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1px;
  height: 8px;
  background: rgba(232, 238, 234, 0.85);
  transform: translateY(-50%);
}

.nd-lb__whisker::before {
  left: 0;
}

.nd-lb__whisker::after {
  right: 0;
}

.nd-lb__metric {
  font-family: var(--nd-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--nd-text);
  white-space: nowrap;
}

.nd-lb__metric--score {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 4px;
}

.nd-lb__num {
  color: var(--nd-text);
}

.nd-lb__err {
  font-size: 10px;
  color: var(--nd-muted);
}

.nd-lb__scale {
  margin-top: 10px;
  font-family: var(--nd-mono);
  font-size: 10px;
  color: var(--nd-muted);
}

/* Tick labels sit at their exact positions; the end labels stay inside the track */
.nd-lb__scale-track {
  position: relative;
  display: block;
  height: 14px;
}

.nd-lb__scale-track span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}

.nd-lb__scale-track span:first-child {
  transform: none;
}

.nd-lb__scale-track span:last-child {
  transform: translateX(-100%);
}

.nd-catrow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.nd-catrow {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) auto;
  gap: 14px;
  align-items: center;
}

.nd-catrow__name {
  font-family: "Aeonik", system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--nd-text);
}

.nd-catrow__track {
  height: 6px;
  border-radius: 0;
  background: rgba(232, 238, 234, 0.06);
  border: 1px solid rgba(232, 238, 234, 0.1);
  overflow: hidden;
}

.nd-catrow__fill {
  display: block;
  height: 100%;
  border-radius: 0;
  background: var(--nd-accent);
}

.nd-catrow__fill.is-muted {
  background: rgba(111, 175, 134, 0.35);
}

.nd-catrow__meta {
  min-width: 3.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  color: var(--nd-muted);
}

.nd-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--nd-muted);
}

.nd-legend__swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 0;
  background: var(--nd-accent);
  vertical-align: -1px;
}

.nd-legend__swatch--muted {
  background: rgba(111, 175, 134, 0.35);
}

/* Contact form */

.nd-form {
  display: grid;
  gap: 18px;
  max-width: 520px;
}

.nd-field {
  display: grid;
  gap: 8px;
}

.nd-field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nd-muted);
}

.nd-field input,
.nd-field textarea,
.nd-field select,
.nd-select__trigger {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding: 12px 14px;
  border: 1px solid var(--nd-line);
  border-radius: 0;
  background: var(--nd-bg-deep);
  color: var(--nd-text);
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  outline: none;
  transition: border-color 180ms ease;
}

.nd-field input:focus,
.nd-field textarea:focus,
.nd-field select:focus,
.nd-select__trigger:focus-visible,
.nd-select.is-open .nd-select__trigger {
  border-color: rgba(111, 175, 134, 0.55);
}

.nd-field textarea {
  min-height: 140px;
  resize: vertical;
}

.nd-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.nd-form__hint {
  margin: 0;
  font-size: 12px;
  color: var(--nd-muted);
}

.nd-cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(24px, 3vw, 32px);
  border-radius: 0;
  border: 1px solid var(--nd-line);
  background: var(--nd-surface);
  color: var(--nd-text);
}

.nd-cta-strip__copy {
  margin: 0;
  max-width: 42ch;
  font-size: 1.05rem;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.nd-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 18px;
  font-family: ui-monospace, "IBM Plex Mono", monospace;
  font-size: 12px;
  color: rgba(232, 238, 234, 0.45);
}

.nd-footer-meta strong {
  font-weight: 500;
  color: rgba(232, 238, 234, 0.72);
}

.nd-home-board-preview {
  margin-bottom: clamp(48px, 7vw, 80px);
}

@media (max-width: 1100px) {
  .nd-lb__head,
  .nd-lb__row,
  .nd-lb__scale {
    grid-template-columns:
      200px
      minmax(120px, 1fr)
      92px
      72px;
  }

  .nd-lb__head span:nth-child(5),
  .nd-lb__head span:nth-child(6),
  .nd-lb__row > .nd-lb__metric:nth-child(5),
  .nd-lb__row > .nd-lb__metric:nth-child(6),
  .nd-lb__scale > :nth-child(5),
  .nd-lb__scale > :nth-child(6) {
    display: none;
  }
}

@media (max-width: 980px) {
  .nd-hero:not(.nd-hero--banner),
  .nd-stats,
  .nd-pillars,
  .nd-cards,
  .nd-cards--2,
  .nd-cards--products,
  .nd-methods {
    grid-template-columns: 1fr;
  }

  .nd-pillars .nd-card + .nd-card,
  .nd-cards .nd-card + .nd-card {
    border-left: none;
    border-top: 1px solid var(--nd-line);
  }

  .nd-hero--banner {
    min-height: clamp(380px, 60vh, 540px);
    margin-bottom: clamp(64px, 12vw, 96px);
  }

  .nd-hero-bleed {
    height: clamp(460px, 74vh, 660px);
  }

  .nd-hero-bleed--subpage {
    height: clamp(360px, 54vh, 520px);
  }

  .nd-hero--banner .nd-hero__copy {
    gap: 20px;
    padding-bottom: 28px;
  }

  .nd-hero__copy {
    max-width: 100%;
  }

  .nd-hero-bleed .nd-hero__bg {
    object-position: 78% 45%;
  }

  .nd-hero-bleed .nd-hero__veil {
    background: linear-gradient(
      180deg,
      rgba(13, 15, 18, 0.72) 0%,
      rgba(13, 15, 18, 0.35) 48%,
      rgba(13, 15, 18, 0.2) 70%
    );
  }

  .nd-lb__head,
  .nd-lb__row,
  .nd-lb__scale,
  .nd-catrow {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  .nd-lb__head span:nth-child(2),
  .nd-lb__bar-cell {
    grid-column: 1 / -1;
    order: 3;
  }

  .nd-lb__head span:nth-child(n + 4),
  .nd-lb__row > .nd-lb__metric:not(.nd-lb__metric--score) {
    display: none;
  }

  .nd-catrow__track {
    grid-column: 1 / -1;
    order: 3;
  }

  .nd-lb__scale {
    display: none;
  }

  .nd-chart-card__toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 960px) {
  body[data-site="nitrode"] {
    --nd-content-top: 104px;
    --sticky-top: var(--nd-content-top);
  }
}

/* Research page: one heading style, readable line lengths, compact card grids */
.nd-block__title {
  margin: 0 0 20px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--nd-text);
}

.nd-block__lead {
  max-width: 62ch;
  margin: -8px 0 24px;
  color: var(--nd-muted);
}

.nd-block .nl-prose,
.nd-takeaways {
  max-width: 68ch;
}

.nd-block .nl-prose p {
  color: var(--nd-muted);
}

.nd-methods {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nd-fails {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nd-method__body,
.nd-fail__body {
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .nd-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nd-fails {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .nd-methods {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Research hero figures: a light row instead of boxed cards */
.nd-stats--inline {
  grid-template-columns: repeat(4, max-content);
  gap: 0;
  margin: clamp(32px, 4vw, 48px) 0 0;
  background: none;
  border: none;
}

.nd-stats--inline .nd-stat {
  padding: 0 clamp(20px, 3vw, 40px);
  background: none;
  border-left: 1px solid var(--nd-line);
}

.nd-stats--inline .nd-stat:first-child {
  padding-left: 0;
  border-left: none;
}

.nd-stats--inline .nd-stat__value {
  margin-bottom: 4px;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
}

body[data-site="nitrode"] .nd-stats--inline .nd-stat__label {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* Text sections: heading in a side column, copy beside it */
.nd-block--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
  gap: 16px clamp(32px, 4vw, 64px);
  align-items: start;
}

.nd-block--split > .nd-block__title {
  margin: 0;
}

@media (max-width: 960px) {
  .nd-stats--inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 0;
  }

  .nd-stats--inline .nd-stat:nth-child(odd) {
    padding-left: 0;
    border-left: none;
  }

  .nd-block--split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Contact: routes under the intro, form in a quiet panel */
.nd-contact__routes {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--nd-line);
}

.nd-contact__routes > li {
  border-bottom: 1px solid var(--nd-line);
}

.nd-contact__routes .nd-role {
  padding: 18px 0;
}

.nd-contact__routes .nd-role__title {
  font-size: 1rem;
}

.nd-contact__panel {
  max-width: 680px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--nd-surface);
  border: 1px solid var(--nd-line);
}

.nd-contact__panel .nd-form {
  max-width: none;
}

.nd-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 640px) {
  .nd-form__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Contact form: styled dropdown, spam trap, status and thank-you state */
.nd-select {
  position: relative;
}

.nd-select__trigger {
  display: block;
  padding-right: 40px;
  text-align: left;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='%238f9a92' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 12px;
}

.nd-select__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  display: none;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--nd-bg-deep);
  border: 1px solid var(--nd-line-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  outline: none;
}

.nd-select.is-open .nd-select__list {
  display: block;
}

.nd-select__option {
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--nd-muted);
  cursor: pointer;
}

.nd-select__option.is-active {
  color: var(--nd-text);
  background: var(--nd-surface-2);
}

.nd-select__option[aria-selected="true"] {
  color: var(--nd-accent-bright);
}

.nd-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nd-form__status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--nd-muted);
}

.nd-form__status.is-error {
  color: #e59a8c;
}

.nd-form button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.nd-form__thanks h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--nd-text);
}

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

@media (max-width: 980px) {
  /* The bar column has no header label; don't let it take a row when stacked */
  .nd-lb__head span:empty {
    display: none;
  }
}

/* Charts: cards fill their column exactly; scatter drawn at real pixel size */
.nd-chart-card {
  box-sizing: border-box;
  width: 100%;
}

.nd-chart-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 14px;
}

.nd-chart-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--nd-text);
}

.nd-chart-card__head .nd-chart-card__meta {
  margin: 0;
}

.nd-scatter {
  position: relative;
  width: 100%;
}

.nd-chart--scatter {
  width: 100%;
  height: auto;
  background: none;
  border: none;
  cursor: default;
}

.nd-chart__link {
  stroke-width: 1.5;
  stroke-opacity: 0.45;
}

.nd-chart__dot {
  stroke: var(--nd-surface);
  stroke-width: 2;
  transition: r 140ms ease;
}

.nd-chart__point:focus {
  outline: none;
}

.nd-chart__point.is-active .nd-chart__dot,
.nd-chart__point:focus-visible .nd-chart__dot {
  r: 6.5;
  stroke: var(--nd-text);
}

.nd-chart--scatter:has(.is-active) .nd-chart__labels,
.nd-chart--scatter:has(.is-active) .nd-chart__links,
.nd-chart__point.is-dimmed {
  opacity: 0.3;
  transition: opacity 140ms ease;
}

.nd-chart__label {
  font-family: var(--nd-mono);
  font-size: 11px;
}

.nd-chart__label-effort {
  font-size: 10px;
  fill: var(--nd-muted);
}

.nd-chart__tip {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  font-family: var(--nd-mono);
  font-size: 11px;
  line-height: 1.45;
  white-space: nowrap;
  color: var(--nd-muted);
  background: var(--nd-bg-deep);
  border: 1px solid var(--nd-line-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-50%);
  pointer-events: none;
}

.nd-chart__tip.is-flipped {
  transform: translate(-100%, -50%);
}

.nd-chart__tip[hidden] {
  display: none;
}

.nd-chart__tip strong {
  font-weight: 500;
}

/* Leaderboard: cost, tokens, and steps move under the bar on narrow screens */
.nd-lb__details {
  display: none;
}

@media (max-width: 980px) {
  .nd-lb__details {
    display: block;
    grid-column: 1 / -1;
    order: 4;
    font-family: var(--nd-mono);
    font-size: 11px;
    color: var(--nd-muted);
  }

  .nd-lb__details b {
    font-weight: 400;
    color: var(--nd-text);
  }

  .nd-lb__row {
    padding: 12px 0;
  }
}

/* Phone-size page padding. The shared stylesheet scopes these to the old page
   names, so Nitrode pages kept the 56px desktop gutter on small screens. */
@media (max-width: 960px) {
  body[data-site="nitrode"] {
    --site-pad-x: clamp(20px, 4vw, 28px);
  }
}

@media (max-width: 720px) {
  body[data-site="nitrode"] {
    --site-pad-x: 20px;
  }
}

@media (max-width: 480px) {
  body[data-site="nitrode"] {
    --site-pad-x: 16px;
  }
}

/* Photo backgrounds on research, careers, and contact. Careers keeps text over
   the image, so it gets a heavier veil than the others. */
.nd-hero-bleed--careers .nd-hero__veil {
  opacity: 1;
  background: linear-gradient(
    100deg,
    rgba(13, 15, 18, 0.86) 0%,
    rgba(13, 15, 18, 0.66) 45%,
    rgba(13, 15, 18, 0.58) 100%
  );
}

/* Keep the page photos in the background */
.nd-hero-bleed--research .nd-hero__bg,
.nd-hero-bleed--careers .nd-hero__bg,
.nd-hero-bleed--contact .nd-hero__bg {
  opacity: 0.55;
}
