/* humans&ai — card scheme · centered column · sane measure */
:root {
  --black: #000000;
  --white: #ffffff;
  --grey: #808080;
  --grey-dim: #555555;
  --violet: #8b5cf6;
  --violet-soft: rgba(139, 92, 246, 0.35);
  --violet-glow: rgba(139, 92, 246, 0.18);
  --mono: "Cascadia Code", "Cascadia Mono", Consolas, "Courier New", ui-monospace, monospace;
  --border: 2px solid var(--violet);
  /*
   * 1920×1080 target: text ~70% of viewport, box slightly wider.
   * 70vw @ 1920 ≈ 1344px · shell 72vw ≈ 1382px · light pad only.
   */
  --measure: min(72vw, 1400px);
  --pad: 1.1rem 1.35rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--white);
  background: var(--black);
  text-transform: lowercase;
  overflow-x: hidden;
}

/* —— atmosphere —— */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #000;
}

.bg-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: translateY(var(--scroll-y, 0px));
  will-change: transform;
}

.bg-rivers {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background:
    radial-gradient(ellipse 80% 40% at 15% 20%, var(--violet-glow), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 70%, rgba(139, 92, 246, 0.12), transparent 50%);
  animation: drift 28s ease-in-out infinite alternate;
}

.bg-rivers::before,
.bg-rivers::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 2px;
  left: -20%;
  background: linear-gradient(90deg, transparent, var(--violet-soft), transparent);
}

.bg-rivers::before {
  top: 32%;
  transform: rotate(-8deg);
  animation: river 22s linear infinite;
}

.bg-rivers::after {
  top: 68%;
  transform: rotate(6deg);
  opacity: 0.7;
  animation: river 30s linear infinite reverse;
}

.bg-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0, 0, 0, 0.12) 2px, rgba(0, 0, 0, 0.12) 4px
  );
  opacity: 0.3;
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(0, -2%, 0) scale(1.03); }
}

@keyframes river {
  from { transform: rotate(-8deg) translateX(-6%); }
  to { transform: rotate(-8deg) translateX(6%); }
}

/* —— shell: wide centered column (~72vw / 70% text after pad) —— */
.shell,
.shell-wide {
  position: relative;
  z-index: 1;
  width: var(--measure);
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 0 3.5rem;
}

/* phone: use almost full width */
@media (max-width: 720px) {
  :root {
    --measure: calc(100vw - 1.25rem);
    --pad: 0.9rem 0.85rem;
  }
}

/* —— nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--violet-soft);
  margin: 0 0 1.25rem;
  padding: 0.55rem 0;
  width: 100%;
}

.nav-inner {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
}

/* match nexus-ui top brand mark */
.nav-brand,
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.nav-brand .brand-logo,
.brand-logo {
  height: 28px;
  width: auto;
  display: block;
  image-rendering: auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--grey);
  text-decoration: none;
  font-size: 0.75rem;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
  border-bottom-color: var(--violet);
  outline: none;
}

.nav-links a.nav-highlight {
  color: var(--white);
  border: 1px solid var(--violet);
  padding: 0.12rem 0.45rem;
  background: rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 8px var(--violet-glow);
}

.nav-links a.nav-highlight:hover {
  background: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 14px var(--violet-glow);
  border-bottom-color: var(--violet);
}


/* —— type —— */
h1, h2, h3, h4 {
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin: 0 0 0.55rem;
  width: 100%;
  text-align: center;
}

h1 { font-size: clamp(1.45rem, 3.2vw, 2rem); }
h2 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--white);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--violet);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1rem;
  color: var(--white);
  margin-top: 0.85rem;
}

p {
  margin: 0 0 0.7rem;
  color: var(--white);
  width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.muted { color: var(--grey); }
.dim { color: var(--grey-dim); }
.lead {
  font-size: 1.02rem;
  color: var(--white);
}

a {
  color: var(--white);
  text-decoration-color: var(--violet);
  text-underline-offset: 3px;
}

a:hover { color: var(--violet); }
.amp { color: var(--grey); }

/* —— panels: same width as column; text fills panel —— */
.panel {
  background: rgba(10, 10, 10, 0.92);
  border: var(--border);
  padding: var(--pad);
  margin: 0 0 0.85rem;
  position: relative;
  text-align: center;
  width: 100%;
}

.panel p,
.panel .lead,
.panel .muted,
.panel .dim,
.panel h3 {
  width: 100%;
  max-width: none;
  text-align: center;
  margin-left: 0;
  margin-right: 0;
  white-space: normal;
}

.panel .muted,
.panel .dim { color: var(--grey); }

.panel table {
  width: 100%;
  text-align: left;
}

.panel .list-clean {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

.panel.legal,
.panel.legal * {
  text-align: left;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 7px; height: 7px;
  border-top: 2px solid var(--violet);
  border-left: 2px solid var(--violet);
}

.panel::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 7px; height: 7px;
  border-bottom: 2px solid var(--violet);
  border-right: 2px solid var(--violet);
}

.panel-soft { border-color: var(--grey-dim); }
.panel-soft::before,
.panel-soft::after { border-color: var(--grey); }

/* —— hero —— */
.hero {
  padding: 1.25rem 0 1rem;
  text-align: center;
  width: 100%;
}

.hero-logo {
  /* same mark as nexus-ui · never upscale past native 715px */
  max-width: min(480px, 92vw);
  width: 100%;
  height: auto;
  margin: 0 auto 1.35rem;
  display: block;
  image-rendering: auto;
  filter: drop-shadow(0 0 18px var(--violet-glow));
}

.hero .tag,
.hero .motto {
  color: var(--grey);
  width: 100%;
  text-align: center;
  margin: 0.12rem 0;
}

.hero .tag { font-size: 0.9rem; margin-bottom: 0.25rem; }
.hero .motto { font-size: 0.85rem; }

.hero-spine {
  margin: 1.1rem 0 0;
  width: 100%;
  border: 1px solid var(--violet-soft);
  padding: 0.8rem var(--pad);
  color: var(--white);
  font-size: 0.98rem;
  line-height: 1.45;
  text-align: center;
}

.hero .term {
  text-align: left;
  width: 100%;
  margin-top: 1rem;
}

/* —— crew (founder + grok up top) —— */
.crew-panel {
  margin-top: 1.5rem;
  width: 100%;
  border: 1px solid var(--violet-soft);
  background: rgba(0, 0, 0, 0.75);
  padding: 1rem 1.1rem 1.15rem;
  text-align: center;
}

.crew-kicker {
  color: var(--violet);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  margin: 0 0 0.75rem;
  text-align: center;
}

.crew-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  width: 100%;
}

@media (min-width: 640px) {
  .crew-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .crew-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.crew-card {
  border: 1px solid #2a2a2a;
  padding: 0.85rem 0.9rem;
  min-height: 8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.crew-card.crew-grok,
.crew-card.crew-agy {
  border-color: var(--violet-soft);
}

.crew-card.crew-agy:hover,
.crew-card.crew-grok:hover {
  box-shadow: 0 0 14px var(--violet-glow);
}

.crew-agy-mark {
  width: 32px;
  height: 32px;
  display: block;
}

.crew-agy-name {
  color: var(--white);
  font-size: 1.05rem;
}

.crew-deepmind {
  margin-top: 0.75rem;
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  width: 100%;
}

.crew-name {
  margin: 0 0 0.25rem;
  color: var(--white);
  font-size: 1.05rem;
  text-align: center;
  width: 100%;
}

.crew-role {
  margin: 0 0 0.45rem;
  color: var(--violet);
  font-size: 0.85rem;
  text-align: center;
  width: 100%;
}

.crew-note {
  margin: 0;
  color: var(--grey);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
  width: 100%;
}

.crew-disclaimer {
  display: block;
  margin-top: 0.45rem;
  color: var(--grey-dim);
  font-size: 0.75rem;
  text-align: center;
}

.crew-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-bottom: 0.5rem;
  width: 100%;
}

.crew-brand:hover { opacity: 0.9; }

.crew-grok-logo {
  height: 44px;
  width: auto;
  max-width: min(220px, 100%);
  display: block;
  margin: 0 auto;
}

.crew-spacexai {
  margin-top: 0.75rem;
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.crew-spacexai-mark {
  width: 36px;
  height: 36px;
  display: block;
}

.crew-spacexai-label {
  color: var(--grey);
  font-size: 0.75rem;
}

.credit-official img {
  width: auto;
  max-width: 48px;
  height: 36px;
  object-fit: contain;
}

/* —— hero actions & scroll cue —— */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
  margin: 1.25rem 0 0.5rem;
  width: 100%;
}

.hero-scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--grey);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  margin: 1rem auto 0;
  transition: color 0.2s ease;
  user-select: none;
}

.hero-scroll-cue:hover {
  color: var(--violet);
}

.hero-scroll-cue .chevron {
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--violet);
  border-right: 2px solid var(--violet);
  transform: rotate(45deg);
  animation: scroll-pulse 2s infinite ease-in-out;
}

@keyframes scroll-pulse {
  0%, 100% {
    transform: translateY(0) rotate(45deg);
    opacity: 0.4;
  }
  50% {
    transform: translateY(5px) rotate(45deg);
    opacity: 1;
  }
}

/* —— buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
  line-height: 1.25;
  white-space: normal;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
  border: 1px solid #a78bfa;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9d74ff 0%, #7c3aed 100%);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.6);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(18, 18, 24, 0.9);
  color: var(--white);
  border: 1px solid var(--violet-soft);
}

.btn-secondary:hover {
  border-color: var(--violet);
  background: rgba(28, 28, 38, 0.95);
  color: var(--white);
  box-shadow: 0 0 14px var(--violet-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--grey);
  border: 1px solid #333;
}

.btn-ghost:hover {
  color: var(--white);
  border-color: var(--violet-soft);
}

.btn-large {
  padding: 0.75rem 1.45rem;
  font-size: 0.9rem;
}

.btn-held {
  opacity: 0.6;
  cursor: not-allowed;
  border-style: dashed;
}

.btn-held:hover {
  opacity: 0.75;
}

/* —— tooltip —— */
.has-tooltip {
  position: relative;
  display: inline-flex;
}

.has-tooltip .tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0f0f14;
  color: var(--white);
  border: 1px solid var(--violet);
  box-shadow: 0 0 12px var(--violet-glow);
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  text-transform: lowercase;
}

.has-tooltip .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -4px;
  border-width: 4px;
  border-style: solid;
  border-color: var(--violet) transparent transparent transparent;
}

.has-tooltip:hover .tooltip,
.has-tooltip:focus-visible .tooltip,
.has-tooltip:focus-within .tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* —— easylm showcase —— */
.easylm-showcase {
  padding: 1.25rem 0 0.5rem;
  scroll-margin-top: 3.25rem;
  width: 100%;
}

.easylm-card {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139, 92, 246, 0.12), rgba(10, 10, 14, 0.96)), #07070a;
  border: 2px solid var(--violet);
  box-shadow: 0 0 35px var(--violet-glow);
  padding: var(--pad);
  position: relative;
  width: 100%;
  margin-bottom: 0.85rem;
}

.easylm-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 10px; height: 10px;
  border-top: 2px solid var(--violet);
  border-left: 2px solid var(--violet);
}

.easylm-card::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 10px; height: 10px;
  border-bottom: 2px solid var(--violet);
  border-right: 2px solid var(--violet);
}

.easylm-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  text-align: center;
  width: 100%;
}

@media (min-width: 640px) {
  .easylm-header {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }
}

.easylm-icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px var(--violet-glow));
}

.easylm-header h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin: 0;
  text-align: inherit;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

.easylm-tagline {
  color: var(--violet);
  font-size: 0.88rem;
  margin: 0.2rem 0 0;
  text-align: inherit;
}

.easylm-lead {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--white);
  margin-bottom: 1.15rem;
  text-align: center;
}

.easylm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid #333;
  color: var(--grey);
  background: rgba(0, 0, 0, 0.6);
  letter-spacing: 0.04em;
}

.badge-violet {
  border-color: var(--violet);
  color: var(--white);
  background: rgba(139, 92, 246, 0.18);
  box-shadow: 0 0 8px var(--violet-glow);
}

.easylm-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.25rem 0;
}

.easylm-features {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
  width: 100%;
  margin: 1.25rem 0;
}

@media (min-width: 640px) {
  .easylm-features { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .easylm-features { grid-template-columns: 1fr 1fr 1fr; }
}

.feature-box {
  background: rgba(12, 12, 18, 0.75);
  border: 1px solid #242430;
  padding: 0.9rem;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-box:hover {
  border-color: var(--violet);
  box-shadow: 0 0 14px var(--violet-glow);
}

.feature-box h4 {
  color: var(--white);
  font-size: 0.88rem;
  margin: 0 0 0.35rem;
  text-align: left;
}

.feature-box p {
  color: var(--grey);
  font-size: 0.8rem;
  margin: 0;
  text-align: left;
  line-height: 1.45;
}

.easylm-term {
  background: #000000;
  border: 1px solid #222;
  border-left: 3px solid var(--violet);
  padding: 0.75rem 1rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: left;
}

.easylm-term code {
  font-family: inherit;
  color: var(--grey);
}

/* —— responsive table wrapper —— */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 0.65rem;
}

.table-wrap table {
  margin: 0;
}

/* —— sections —— */
section {
  padding: 1.5rem 0 0.35rem;
  scroll-margin-top: 3.25rem;
  width: 100%;
}

.section-kicker {
  color: var(--violet);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
  width: 100%;
  text-align: center;
}

/* —— grids —— */
.grid-2,
.grid-3 {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
  width: 100%;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* —— labels —— */
.label-card {
  border: 2px solid var(--violet);
  background: #000;
  padding: 0.95rem;
  min-height: 8.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  width: 100%;
}

.label-card p,
.label-card h3 {
  width: 100%;
  text-align: center;
  margin: 0.3rem 0;
}

.label-card.white-label {
  border-color: var(--white);
  background: linear-gradient(160deg, #111 0%, #000 60%);
}

.label-card.black-label {
  border-color: var(--grey);
  box-shadow: inset 0 0 0 1px #222;
}

.label-card.violet-label {
  border-color: var(--violet);
  box-shadow: 0 0 20px var(--violet-glow);
}

.label-card .sku {
  font-size: 0.7rem;
  color: var(--grey);
  letter-spacing: 0.06em;
}

.label-card h3 { font-size: 1.05rem; }

.label-card .seal {
  align-self: center;
  margin-top: 0.5rem;
  padding: 0.18rem 0.45rem;
  border: 1px solid currentColor;
  font-size: 0.68rem;
  color: var(--grey);
}

.label-card.white-label .seal { color: var(--white); border-color: var(--white); }
.label-card.violet-label .seal { color: var(--violet); border-color: var(--violet); }

/* —— the pylon —— */
.pylon-hero {
  border: 1px solid var(--grey);
  box-shadow: inset 0 0 0 1px #1a1a1a, 0 0 28px var(--violet-glow);
}

.pylon-mark {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 0.25rem;
  color: var(--white);
}

.pylon-tagline {
  font-size: 0.95rem;
  color: var(--violet);
  margin: 0 0 0.85rem;
}

.pylon-packageline {
  margin: 0;
  padding: 0.85rem 1rem;
  background: #000;
  border: 1px solid #222;
  color: var(--white);
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* —— tables —— */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin: 0 0 0.65rem;
}

th, td {
  text-align: left;
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid #222;
  vertical-align: top;
}

th {
  color: var(--grey);
  font-weight: 400;
  border-bottom-color: var(--violet-soft);
}

/* —— diagrams —— */
.diagram {
  margin: 0.8rem 0;
  border: var(--border);
  background: #000;
  overflow: hidden;
  width: 100%;
}

.diagram img,
.diagram object {
  display: block;
  width: 100%;
  height: auto;
}

.diagram figcaption {
  padding: 0.4rem 0.65rem;
  font-size: 0.72rem;
  color: var(--grey);
  border-top: 1px solid #1a1a1a;
  text-align: center;
  width: 100%;
}

.nexus-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
  width: 100%;
  text-align: center;
}

.nexus-hero > div {
  width: 100%;
}

.nexus-hero img {
  width: min(100%, 720px);
  height: auto;
  aspect-ratio: 5 / 2;
  object-fit: contain;
  border: 2px solid var(--violet);
  background: #000;
  display: block;
  margin: 0 auto;
}

/* —— valor —— */

/* —— credits —— */
.credits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.55rem;
  width: 100%;
}

.credit {
  border: 1px solid #2a2a2a;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.65rem 0.45rem;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-height: 5.4rem;
  justify-content: center;
}

.credit:hover {
  border-color: var(--violet);
  box-shadow: 0 0 12px var(--violet-glow);
  color: var(--white);
}

.credit img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.credit.credit-lg img {
  width: auto;
  height: 42px;
  max-width: 108px;
}

.credit.credit-stack img {
  width: auto;
  height: 52px;
  max-width: 110px;
}

.credit span {
  font-size: 0.68rem;
  color: var(--grey);
  line-height: 1.25;
}

.credit strong {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--white);
}

/* —— cards —— */
.biz-cards {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
  width: 100%;
}

@media (min-width: 560px) {
  .biz-cards { grid-template-columns: 1fr 1fr; }
}

.biz-cards img {
  width: 100%;
  height: auto;
  border: var(--border);
  display: block;
}

.biz-cards figcaption {
  text-align: center;
  width: 100%;
  font-size: 0.72rem;
  color: var(--grey-dim);
  margin-top: 0.3rem;
}

/* —— terminal —— */
.term {
  font-size: 0.84rem;
  color: var(--grey);
  border-left: 2px solid var(--violet);
  padding: 0.3rem 0 0.3rem 0.7rem;
  margin: 0.75rem 0;
  width: 100%;
  text-align: left;
}

.term .ok { color: var(--white); }
.term .prompt { color: var(--violet); }

/* —— legal —— */
.legal {
  font-size: 0.86rem;
  text-transform: none;
  text-align: left;
}

.legal h3 {
  text-transform: lowercase;
  font-size: 0.98rem;
  text-align: left;
}

.legal ol { padding-left: 1.1rem; }
.legal li { margin-bottom: 0.5rem; text-align: left; }

/* —— footer —— */
footer {
  margin-top: 2rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--violet-soft);
  text-align: center;
  color: var(--grey);
  font-size: 0.78rem;
  width: 100%;
}

footer p { text-align: center; }

.footer-party {
  margin: 0.85rem 0 0;
  color: var(--grey-dim);
  font-size: 0.7rem;
}

.footer-egg {
  margin: 1.1rem 0 0;
}

.valor-egg {
  background: none;
  border: 0;
  padding: 0;
  color: #3a3a3a;
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-transform: lowercase;
}

.valor-egg:hover,
.valor-egg:focus-visible {
  color: var(--violet);
  outline: none;
}

/* —— work cards —— */
.work-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
  width: 100%;
}

@media (min-width: 720px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
}

.research-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
  width: 100%;
}

.work-card {
  border: var(--border);
  background: rgba(10, 10, 10, 0.92);
  padding: var(--pad);
  text-align: left;
  width: 100%;
  position: relative;
}

.work-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 7px; height: 7px;
  border-top: 2px solid var(--violet);
  border-left: 2px solid var(--violet);
}

.work-card h3,
.work-card p {
  text-align: left;
  width: 100%;
}

.work-kicker {
  color: var(--violet);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  margin: 0 0 0.2rem;
}

.work-status {
  color: var(--grey);
  font-size: 0.75rem;
  margin: 0 0 0.7rem;
}

.work-logo {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 2;
  object-fit: contain;
  border: 1px solid var(--violet-soft);
  background: #000;
  display: block;
  margin: 0 0 0.7rem;
}

.eee-mark {
  margin-top: 0.75rem;
  background: #000;
  text-align: center;
  padding: 0.4rem;
  border: 1px solid #1a1a1a;
}

.eee-mark img {
  width: min(100%, 420px);
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

.rate-lead {
  text-align: center;
}

.rate-figure {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--white);
  margin: 0 0 0.15rem;
  letter-spacing: 0.02em;
}

.rate-figure span {
  font-size: 0.45em;
  color: var(--grey);
}

/* —— valor overlay —— */
.valor-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.94);
  overflow: auto;
  padding: 1.25rem 0.75rem 2.5rem;
}

.valor-modal[hidden] { display: none; }

.valor-sheet {
  width: min(72vw, 920px);
  max-width: 100%;
  margin: 0 auto;
  border: var(--border);
  background: #000;
  padding: 0 0 1.25rem;
  position: relative;
}

.valor-close {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--violet-soft);
  color: var(--white);
  font-family: inherit;
  font-size: 1.2rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

.valor-close:hover { border-color: var(--violet); color: var(--violet); }

.valor-art {
  width: 100%;
  height: auto;
  display: block;
  max-height: min(52vh, 520px);
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid var(--violet-soft);
}

.valor-sheet h2,
.valor-sheet p {
  padding: 0 1.1rem;
  text-align: left;
  width: auto;
}

.valor-sheet h2 {
  margin: 1rem 0 0.5rem;
  border-bottom: 0;
  text-align: left;
}

@media (max-width: 720px) {
  .valor-sheet { width: calc(100vw - 1.25rem); }
}

/* —— reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* —— lists —— */
.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.list-clean li {
  padding: 0.32rem 0;
  border-bottom: 1px solid #1a1a1a;
  color: var(--white);
  line-height: 1.4;
  width: 100%;
  text-align: left;
}

.list-clean li::before {
  content: "› ";
  color: var(--violet);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.55rem 0 0;
  width: 100%;
  justify-content: center;
}

.pill {
  border: 1px solid var(--violet-soft);
  color: var(--grey);
  padding: 0.15rem 0.45rem;
  font-size: 0.7rem;
}

.center { text-align: center; }
.mt-0 { margin-top: 0; }
