/* xtendedsystems.com — layout + design tokens
 * Visual sibling to xsilodestone.ai. Daytime editorial parent.
 * Type: IBM Plex Serif (display) + IBM Plex Sans (body/UI) + DM Mono (code/spec)
 * Palette: cream + carbon + restrained crimson + metal-dark
 * Spec: claude/drafts/2026-06-04-xtendedsystems-site-design.md §3
 *
 * Fluid sizing: clamp(min, viewport-rule, max) lets every typographic + spatial
 * dimension scale with the viewport — small enough to be legible on a 375px
 * phone, large enough to use a 2560px display.
 */

:root {
  --cream:       #f2ede6;
  --cream-rule:  #d4cdc0;
  --cream-soft:  #ecdfd0;
  --carbon:      #1a1614;
  --carbon-soft: #5a5450;
  --crimson:     #8a1521;
  --crimson-hi:  #6f1019;
  --metal-dark:  #6e7a84;
  --shadow-soft: rgba(138, 21, 33, 0.08);

  --serif: 'IBM Plex Serif', Georgia, serif;
  --sans:  'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'DM Mono', 'Courier New', monospace;

  /* Content column grows on wide screens so we're not leaving 700px of dead
     margin on a 4K display. The 92vw cap means we still get edge breathing
     room before clamp() hands the floor to --pad-x. */
  --maxw: clamp(960px, 88vw, 1480px);
  --pad-x: clamp(20px, 3.5vw, 56px);
  --pad-x-mobile: 20px;
}

/* Content-aligning helper — used by nav so the wordmark sits at the same
   left edge as section content (which is centered inside a max-width column). */
.aligned {
  padding-inline: max(var(--pad-x), calc((100vw - var(--maxw)) / 2 + var(--pad-x)));
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: clamp(64px, 7vw, 84px); }
::selection { background: var(--crimson); color: var(--cream); }
::-moz-selection { background: var(--crimson); color: var(--cream); }
body {
  background: var(--cream);
  color: var(--carbon);
  font-family: var(--sans);
  font-size: clamp(15px, 0.95vw, 17px);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-top: 16px; padding-bottom: 16px;
  padding-inline: max(var(--pad-x), calc((100vw - var(--maxw)) / 2));
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--cream-rule);
  background: rgba(242, 237, 230, 0.92);
  backdrop-filter: blur(20px);
}
.logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; flex-shrink: 0; }
.logo img { display: block; height: clamp(30px, 2.6vw, 42px); width: auto; }
.footer-brand .logo img { height: clamp(44px, 4vw, 64px); }
.nav-links {
  display: flex; gap: clamp(14px, 1.6vw, 30px);
  list-style: none; align-items: center;
  flex-wrap: nowrap;
}
.nav-links a {
  color: var(--carbon-soft); text-decoration: none;
  font-size: clamp(10px, 0.75vw, 12px); letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--carbon); }
.nav-cta {
  background: var(--crimson) !important; color: var(--cream) !important;
  padding: 8px 18px; font-weight: 500;
}
.nav-cta:hover { background: var(--crimson-hi) !important; }

/* ── HERO ── */
.hero {
  min-height: clamp(440px, 58vh, 720px);
  padding: clamp(110px, 11vw, 160px) var(--pad-x) clamp(48px, 6vw, 84px);
  position: relative; overflow: hidden;
  isolation: isolate;
}
/* Atmospheric backdrop — two soft crimson glows that drift just inside the
   viewport, adding depth without distracting from the type. */
.hero::before, .hero::after {
  content: ""; position: absolute; pointer-events: none; z-index: -1;
  border-radius: 50%; filter: blur(60px); opacity: 0.55;
}
.hero::before {
  width: 50vw; height: 50vw; max-width: 720px; max-height: 720px;
  top: -20%; left: -10%;
  background: radial-gradient(circle, rgba(138, 21, 33, 0.10) 0%, transparent 60%);
}
.hero::after {
  width: 40vw; height: 40vw; max-width: 600px; max-height: 600px;
  bottom: -15%; right: -8%;
  background: radial-gradient(circle, rgba(110, 122, 132, 0.08) 0%, transparent 60%);
}
.hero > .section-inner { width: 100%; position: relative; z-index: 1; }
/* Home-hero split: copy on the left, AIMS mark on the right as a visual anchor.
   Collapses to single-column at narrow widths so the mark slides under the copy. */
.hero.hero-home .hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 4vw, 80px);
  align-items: center;
}
.hero.hero-home .hero-copy { min-width: 0; }
.hero-mark-aside {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  opacity: 0.9;
}
.hero-mark-aside img {
  width: clamp(160px, 18vw, 280px);
  height: auto; display: block;
}
.hero-mark-caption {
  font-family: var(--mono);
  font-size: clamp(10px, 0.75vw, 12px);
  color: var(--carbon-soft); letter-spacing: 0.06em;
}
@media (max-width: 880px) {
  .hero.hero-home .hero-split { grid-template-columns: 1fr; }
  .hero-mark-aside { order: -1; align-self: flex-start; }
  .hero-mark-aside img { width: clamp(120px, 28vw, 180px); }
}
/* Spec-page hero — section reference cards on the right side. */
.hero-spec-stack {
  display: flex; flex-direction: column;
  gap: clamp(8px, 0.9vw, 14px);
  align-self: stretch;
  justify-content: center;
}
.spec-stack-card {
  display: grid;
  grid-template-columns: clamp(48px, 4vw, 64px) 1fr;
  align-items: center;
  gap: clamp(10px, 1.2vw, 18px);
  padding: clamp(10px, 1.1vw, 16px) clamp(14px, 1.4vw, 22px);
  background: rgba(255, 255, 255, 0.35);
  border-left: 2px solid var(--crimson);
  border-radius: 0 2px 2px 0;
  transition: background 0.2s, transform 0.2s;
}
.spec-stack-card:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(2px);
}
.spec-stack-label {
  font-family: var(--mono);
  font-size: clamp(12px, 1vw, 16px);
  color: var(--crimson); font-weight: 500;
}
.spec-stack-body {
  font-family: var(--sans);
  font-size: clamp(12px, 0.95vw, 15px); font-weight: 400;
  color: var(--carbon); line-height: 1.4;
}
.hero.hero-compact .hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
@media (max-width: 880px) {
  .hero.hero-compact .hero-split { grid-template-columns: 1fr; }
  .hero-spec-stack { padding: 0; }
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: clamp(10px, 0.78vw, 13px); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--carbon-soft);
  font-weight: 500; margin-bottom: clamp(20px, 2vw, 32px);
}
.hero-eyebrow span { color: var(--crimson); }
h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(38px, 6.4vw, 108px); line-height: 1.06;
  letter-spacing: -0.018em; color: var(--carbon);
  max-width: min(96%, 1320px);
}
h1 em { font-style: italic; color: var(--crimson); font-weight: 400; }
.hero-sub {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(18px, 2.4vw, 38px); line-height: 1.35;
  color: var(--carbon-soft);
  max-width: min(96%, 1280px);
  margin-top: clamp(18px, 1.8vw, 28px);
}
.hero-sub strong { color: var(--crimson); font-style: normal; font-weight: 500; }
.hero-body {
  font-family: var(--sans);
  font-size: clamp(15px, 1.1vw, 20px); font-weight: 300;
  line-height: 1.7; color: var(--carbon-soft);
  max-width: min(94%, 1020px);
  margin-top: clamp(20px, 1.9vw, 30px);
}
.hero-btns {
  display: flex; gap: clamp(10px, 1vw, 16px);
  margin-top: clamp(28px, 3.2vw, 48px); flex-wrap: wrap;
}
.hero-meta {
  display: flex; gap: clamp(18px, 2.4vw, 40px); flex-wrap: wrap;
  margin-top: clamp(36px, 4vw, 60px);
  padding-top: clamp(18px, 2vw, 30px);
  border-top: 1px solid var(--cream-rule);
}
.hero-meta-item {
  font-size: clamp(10px, 0.78vw, 12px); color: var(--carbon-soft);
  letter-spacing: 0.04em;
}
.hero-meta-item strong {
  display: block;
  font-size: clamp(12px, 0.95vw, 14px); color: var(--carbon); font-weight: 500;
  margin-bottom: 2px; letter-spacing: -0.01em;
}
/* Hero mark — used for AIMS / XSI / partner logo marks placed above the
   eyebrow on hub pages. Was inline style="height:120px" on 3 pages. */
.hero-mark {
  height: clamp(72px, 9vw, 140px);
  width: auto; display: block;
  margin-bottom: clamp(20px, 2.4vw, 36px);
}

/* ── SECTIONS ── */
section {
  padding: clamp(56px, 6.5vw, 104px) var(--pad-x);
  position: relative;
}
.section-inner { max-width: var(--maxw); margin: 0 auto; }
/* Subtle accent ornament — a thin crimson tick above the s-label of every
   non-hero section. Visual rhythm without weight. */
section:not(.hero):not(.featured) > .section-inner > .s-label::before {
  content: ""; display: block; width: 32px; height: 1px;
  background: var(--crimson); margin-bottom: 14px;
}
.s-label {
  font-family: var(--sans);
  font-size: clamp(10px, 0.78vw, 12px); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--crimson);
  font-weight: 600; margin-bottom: clamp(12px, 1.1vw, 18px);
}
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 4.6vw, 76px); line-height: 1.1;
  letter-spacing: -0.015em; color: var(--carbon);
  max-width: min(96%, 1240px);
}
h2 em { font-style: italic; color: var(--crimson); font-weight: 400; }
h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(20px, 1.6vw, 28px); line-height: 1.25; color: var(--carbon);
}
h4 {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(13px, 1vw, 16px); letter-spacing: 0.02em;
  color: var(--carbon);
}
.s-intro {
  font-family: var(--sans);
  font-size: clamp(15px, 1.22vw, 22px); font-weight: 300;
  color: var(--carbon-soft); line-height: 1.75;
  max-width: min(94%, 960px);
  margin-top: clamp(14px, 1.4vw, 22px);
}

/* ── PILLAR GRID (three-pillar positioning) ── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 0; margin-top: clamp(36px, 4vw, 64px);
  border-top: 1px solid var(--cream-rule);
  border-bottom: 1px solid var(--cream-rule);
}
/* 4-column variant — used by the AIMS altitude-layer grid; falls back to
   2-up at narrower widths so each card stays readable. */
.pillar-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}
.pillar {
  padding: clamp(24px, 2.6vw, 44px) clamp(20px, 2.4vw, 40px);
  border-right: 1px solid var(--cream-rule);
  position: relative;
  counter-increment: pillar-counter;
}
.pillar:last-child { border-right: none; }
/* Numeric counter, top-right of each pillar — adds editorial rhythm. */
.pillar-grid { counter-reset: pillar-counter; }
.pillar::before {
  content: counter(pillar-counter, decimal-leading-zero);
  position: absolute; top: clamp(16px, 1.6vw, 24px); right: clamp(18px, 1.8vw, 28px);
  font-family: var(--mono);
  font-size: clamp(10px, 0.8vw, 12px);
  color: var(--crimson); opacity: 0.5;
  letter-spacing: 0.04em;
}
.pillar-label {
  font-family: var(--sans);
  font-size: clamp(9px, 0.7vw, 11px); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--crimson);
  font-weight: 600; margin-bottom: 12px;
}
.pillar h3 { margin-bottom: 12px; }
.pillar p {
  font-family: var(--sans);
  font-size: clamp(13px, 0.95vw, 16px); font-weight: 300;
  color: var(--carbon-soft); line-height: 1.7;
}
.pillar-link {
  display: inline-block; margin-top: 18px;
  font-family: var(--sans);
  font-size: clamp(10px, 0.78vw, 12px); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--crimson);
  text-decoration: none; font-weight: 500;
}
.pillar-link:hover { color: var(--crimson-hi); }

/* ── FEATURED BAND (AIMS) ── */
.featured {
  background: var(--cream-soft);
  border-top: 1px solid var(--cream-rule);
  border-bottom: 1px solid var(--cream-rule);
}
.featured h2 { margin-bottom: clamp(18px, 1.8vw, 28px); }
.featured-cta {
  margin-top: clamp(24px, 2.8vw, 44px);
  display: flex; gap: clamp(10px, 1vw, 16px); flex-wrap: wrap;
}
.featured-foot {
  margin-top: clamp(20px, 2.2vw, 32px);
  font-family: var(--sans);
  font-size: clamp(12px, 0.9vw, 14px);
  color: var(--carbon-soft); max-width: min(92%, 760px); line-height: 1.65;
}

/* ── PORTFOLIO TILES ── */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(16px, 1.6vw, 28px);
  margin-top: clamp(32px, 3.6vw, 56px);
}
.tile {
  padding: clamp(22px, 2.4vw, 40px);
  border: 1px solid var(--cream-rule);
  background: rgba(255, 255, 255, 0.4);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.3s, transform 0.3s, background 0.25s;
}
.tile:hover {
  border-color: var(--crimson);
  box-shadow: 0 8px 32px var(--shadow-soft);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.7);
}
.tile { position: relative; }
.tile-sigil {
  position: absolute; top: clamp(18px, 1.8vw, 28px); right: clamp(18px, 1.8vw, 28px);
  width: clamp(40px, 4vw, 56px); height: auto;
  opacity: 0.78; pointer-events: none;
  transition: opacity 0.25s, transform 0.3s;
}
.tile:hover .tile-sigil { opacity: 1; transform: scale(1.06); }
.tile-status {
  display: inline-block; padding: 3px 10px; border-radius: 10px;
  font-family: var(--sans);
  font-size: clamp(8px, 0.6vw, 10px); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--cream-soft); color: var(--carbon-soft);
  align-self: flex-start; margin-bottom: 18px;
}
.tile-status.live { background: rgba(138, 21, 33, 0.12); color: var(--crimson); }
.tile-status.soon { background: var(--cream-rule); color: var(--carbon-soft); }
.tile h3 {
  font-size: clamp(20px, 1.7vw, 28px);
  margin-bottom: 10px;
}
.tile p {
  font-family: var(--sans);
  font-size: clamp(13px, 0.95vw, 16px); font-weight: 300;
  color: var(--carbon-soft); line-height: 1.7; flex: 1;
}
.tile-chips { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono);
  font-size: clamp(9px, 0.65vw, 11px); padding: 3px 8px;
  background: var(--cream-soft); color: var(--carbon-soft);
  letter-spacing: 0.02em;
}
.tile-link {
  display: block; margin-top: 18px;
  font-family: var(--sans);
  font-size: clamp(10px, 0.78vw, 12px); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--crimson); font-weight: 500;
}

/* ── PARTNER CARDS ── */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(16px, 1.6vw, 28px);
  margin-top: clamp(32px, 3.6vw, 56px);
}
.partner-card {
  padding: clamp(26px, 2.8vw, 44px) clamp(22px, 2.4vw, 40px);
  border: 1px solid var(--cream-rule);
  background: rgba(255, 255, 255, 0.4);
}
.partner-card h3 { margin-bottom: 16px; }
.partner-card p {
  font-family: var(--sans);
  font-size: clamp(13px, 0.95vw, 16px); font-weight: 300;
  color: var(--carbon-soft); line-height: 1.7; margin-bottom: 14px;
}
.partner-meta {
  font-family: var(--mono);
  font-size: clamp(10px, 0.78vw, 12px);
  color: var(--carbon-soft); margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--cream-rule);
}
.partner-meta strong { color: var(--carbon); font-weight: 500; }

/* ── NEWSROOM CARDS ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(16px, 1.6vw, 28px);
  margin-top: clamp(32px, 3.6vw, 56px);
}
.news-card {
  padding: clamp(22px, 2.2vw, 36px);
  border: 1px solid var(--cream-rule);
  text-decoration: none; color: inherit;
  transition: border-color 0.2s;
}
.news-card:hover { border-color: var(--crimson); }
.news-type {
  font-family: var(--sans);
  font-size: clamp(9px, 0.7vw, 11px); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--crimson);
  font-weight: 600; margin-bottom: 8px;
}
.news-date {
  font-family: var(--mono);
  font-size: clamp(10px, 0.78vw, 12px);
  color: var(--carbon-soft); margin-bottom: 14px;
}
.news-card h3 {
  font-size: clamp(16px, 1.3vw, 22px);
  margin-bottom: 10px;
}
.news-excerpt {
  font-family: var(--sans);
  font-size: clamp(12px, 0.9vw, 15px); font-weight: 300;
  color: var(--carbon-soft); line-height: 1.65;
}
.news-source {
  font-family: var(--mono);
  font-size: clamp(9px, 0.7vw, 11px);
  color: var(--carbon-soft); margin-top: 18px;
  padding-top: 14px; border-top: 1px solid var(--cream-rule);
  font-style: italic;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: clamp(11px, 0.9vw, 14px) clamp(20px, 2.2vw, 32px);
  font-family: var(--sans);
  font-size: clamp(11px, 0.85vw, 13px);
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; font-weight: 500;
  border-radius: 0; transition: all 0.2s;
  cursor: pointer; border: 1px solid transparent;
}
.btn-primary {
  background: var(--crimson); color: var(--cream);
  border-color: var(--crimson);
}
.btn-primary:hover { background: var(--crimson-hi); border-color: var(--crimson-hi); }
.btn-ghost {
  background: transparent; color: var(--carbon);
  border-color: var(--carbon);
}
.btn-ghost:hover { border-color: var(--crimson); color: var(--crimson); }

/* ── FORMS ── */
.form { max-width: min(100%, 600px); }
.form-row { margin-bottom: 16px; }
.form label {
  display: block; font-family: var(--sans);
  font-size: clamp(10px, 0.78vw, 12px);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--carbon-soft); font-weight: 500; margin-bottom: 6px;
}
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px;
  font-family: var(--sans);
  font-size: clamp(14px, 1vw, 16px); font-weight: 300;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--cream-rule); color: var(--carbon);
  border-radius: 0;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--crimson);
}
.form-feedback {
  font-family: var(--sans);
  font-size: clamp(11px, 0.85vw, 13px);
  color: var(--carbon-soft); margin-top: 12px;
}

/* ── CODE BLOCKS ── */
/* Inline code: subtle crimson mono so it stands out as a literal value
   without a box that fragments awkwardly when the line wraps mid-snippet. */
code {
  font-family: var(--mono); font-size: 0.92em;
  color: var(--crimson);
  background: transparent; padding: 0;
  white-space: nowrap;
}
/* Block code: boxed treatment for multi-line snippets. */
pre {
  font-family: var(--mono);
  font-size: clamp(12px, 0.9vw, 14px); color: var(--carbon);
  background: var(--cream-soft);
  border: 1px solid var(--cream-rule);
  padding: 16px 18px; margin: 18px 0;
  overflow-x: auto; line-height: 1.6;
}
pre code {
  color: var(--carbon); background: transparent; padding: 0;
  font-size: inherit; white-space: pre;
}

/* ── HERO COMPACT (utility / form / legal pages) ── */
/* Drops the 58vh minimum + tightens padding so single-form / single-purpose
   pages don't leave a giant gap before the content. */
.hero.hero-compact {
  min-height: auto;
  padding: clamp(96px, 9.5vw, 140px) var(--pad-x) clamp(28px, 3vw, 48px);
}
.hero.hero-compact + section { padding-top: clamp(14px, 1.6vw, 28px); }

/* ── FOOTER ── */
footer {
  padding-top: clamp(40px, 4.4vw, 72px); padding-bottom: clamp(24px, 2.4vw, 40px);
  padding-inline: max(var(--pad-x), calc((100vw - var(--maxw)) / 2));
  border-top: 1px solid var(--cream-rule);
  background: #ffffff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(28px, 3vw, 56px);
  max-width: var(--maxw); margin: 0 auto;
}
.footer-brand p {
  font-family: var(--sans);
  font-size: clamp(12px, 0.88vw, 14px); font-weight: 300;
  color: var(--carbon-soft); line-height: 1.75; max-width: 320px;
  margin-top: 10px;
}
.footer-col h5 {
  font-family: var(--sans);
  font-size: clamp(10px, 0.78vw, 12px); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--crimson);
  font-weight: 600; margin-bottom: 16px;
}
.footer-col a {
  display: block; font-family: var(--sans);
  font-size: clamp(12px, 0.88vw, 14px);
  font-weight: 300; color: var(--carbon-soft);
  text-decoration: none; margin-bottom: 8px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--carbon); }
.footer-bottom {
  max-width: var(--maxw); margin: clamp(24px, 2.6vw, 40px) auto 0;
  padding-top: clamp(18px, 2vw, 32px);
  border-top: 1px solid var(--cream-rule);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans);
  font-size: clamp(10px, 0.78vw, 12px); color: var(--carbon-soft);
  flex-wrap: wrap; gap: 16px;
}
.footer-nvidia-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; padding: 10px 14px; border-radius: 6px;
  line-height: 0; flex-shrink: 0;
}
.footer-nvidia-badge img {
  display: block;
  height: clamp(36px, 3.2vw, 52px); width: auto;
}

/* ── RESPONSIVE BREAKPOINTS ── */

/* Mid-narrow (1100px and below) — trim the secondary nav links so the visible
   row stays one line even as available width shrinks. Newsroom + About get
   reached via the footer sitemap; the primary five remain. */
@media (max-width: 1100px) {
  .nav-links li:nth-child(4),  /* Newsroom */
  .nav-links li:nth-child(5) { /* About */
    display: none;
  }
}

/* Tablet (820px and below) — drop more secondary links and let the row pack
   tighter. Partners moves to the footer too. */
@media (max-width: 820px) {
  .nav-links li:nth-child(3) { /* Partners */
    display: none;
  }
}

/* Mobile (640px and below) — stack the nav vertically with the brand on its
   own row and the links on a second compact row. CTA stays visible. */
@media (max-width: 640px) {
  nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 12px; padding-bottom: 12px;
    gap: 10px;
  }
  .nav-links {
    width: 100%;
    gap: 14px;
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px solid var(--cream-rule);
    margin-top: 4px;
    padding-top: 10px;
  }
  .nav-cta {
    padding: 6px 12px !important;
    font-size: 10px !important;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Very narrow (420px and below) — hide all secondary links, keep AIMS + CTA. */
@media (max-width: 420px) {
  .nav-links li:nth-child(2) { /* Products */
    display: none;
  }
}

/* ── AIMS modes + gateway viz ── */
.aims-modes-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
@media (max-width: 880px) {
  .aims-modes-stage { grid-template-columns: 1fr; }
}
.modes-copy { min-width: 0; }
.mode-list {
  margin-top: clamp(20px, 2.2vw, 36px);
  display: flex; flex-direction: column;
  gap: clamp(16px, 1.6vw, 24px);
}
.mode-item {
  padding-left: clamp(14px, 1.4vw, 22px);
  border-left: 2px solid var(--crimson);
}
.mode-item p {
  font-family: var(--sans);
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 300; line-height: 1.7; color: var(--carbon-soft);
  margin-top: 8px;
}
.mode-item p strong { color: var(--carbon); font-weight: 500; }
.mode-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(11px, 0.85vw, 13px);
  letter-spacing: 0.08em; text-transform: none;
  color: var(--crimson); font-weight: 500;
}
.aims-gateway {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px;
  padding: clamp(16px, 1.6vw, 28px);
}
.aims-gateway svg,
.aims-gateway img {
  width: 100%; height: auto;
  max-width: clamp(280px, 38vw, 520px);
  display: block;
}
.aims-gateway figcaption {
  font-family: var(--mono);
  font-size: clamp(10px, 0.78vw, 12px);
  color: var(--carbon-soft); letter-spacing: 0.06em;
  text-align: center;
}

/* Focus-visible outlines for keyboard navigation */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
}
