/* ── Design tokens ── */
:root {
  --bg: #060810;
  --bg-panel: rgba(14, 18, 28, 0.88);
  --bg-muted: rgba(10, 14, 22, 0.75);
  --border: rgba(255, 255, 255, 0.08);
  --rust: #c45c2a;
  --rust-light: #e87a3f;
  --mars: #b84a28;
  --nvidia: #76b900;
  --quantum: #9b7ed9;
  --quantum-dim: rgba(100, 80, 160, 0.15);
  --text: #f0ebe3;
  --muted: #9aa3b0;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --space: clamp(1rem, 4vw, 1.5rem);
  --container: 1080px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

a { color: var(--rust-light); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(var(--space), env(safe-area-inset-left));
  padding-right: max(var(--space), env(safe-area-inset-right));
}

.container-narrow { max-width: 720px; }

/* ── Background ── */
.cosmos-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #04060c url("../images/mars-earth-solar-hero.jpg") center 30% / cover no-repeat;
}

.cosmos-sun {
  position: absolute;
  top: 6%;
  right: 10%;
  width: min(220px, 38vw);
  height: min(220px, 38vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 140, 0.7) 0%, transparent 70%);
  filter: blur(3px);
  opacity: 0.85;
}

.cosmos-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(4, 6, 12, 0.5) 0%,
    rgba(6, 8, 16, 0.82) 35%,
    rgba(6, 8, 16, 0.94) 100%);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(6, 8, 16, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand span { color: var(--rust-light); }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-social { display: none; }

/* ── Typography & sections ── */
.label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust-light);
  margin: 0 0 0.35rem;
}

.label-warm { color: #f0a878; }
.label-quantum { color: var(--quantum); }

.section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section-feature {
  background: linear-gradient(180deg, rgba(20, 14, 12, 0.55) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.section-muted {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-quantum {
  background: linear-gradient(180deg, transparent 0%, var(--quantum-dim) 40%, rgba(6, 8, 16, 0.95) 100%);
  border-top: 1px solid rgba(155, 126, 217, 0.2);
}

.section-about {
  border-top: 1px solid var(--border);
  background: rgba(6, 8, 16, 0.85);
}

.section-mission {
  border-top: 1px solid var(--border);
  background: rgba(6, 8, 16, 0.6);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.about-short {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

.about-short strong { color: var(--text); }

.x-highlight {
  padding: 1.1rem 1.2rem;
  border-color: rgba(196, 92, 42, 0.2);
  transition: opacity 0.4s ease;
}

.x-highlight-label {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust-light);
  text-align: center;
}

.x-rotate-hint {
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.x-highlight-quote {
  margin: 0 0 0.65rem;
  padding: 0;
  border: none;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  font-style: italic;
}

.x-highlight-meta {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.x-highlight-link {
  font-size: 0.85rem;
}

.section-head {
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
}

.section-lead {
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  max-width: 36rem;
}

.section-head-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.section-head-split > div {
  width: 100%;
}

/* ── Hero ── */
.hero {
  padding: clamp(3rem, 12vw, 6rem) 0 clamp(2rem, 6vw, 3rem);
}

.hero-inner {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 1.08;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero-text {
  margin: 0 auto 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 28rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rust-light), var(--mars));
  color: #1a0800;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover { border-color: var(--rust-light); }

.btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.82rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.text-link {
  color: var(--rust-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}

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

/* ── Panels ── */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

/* ── Aria ── */
.aria-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(24, 16, 14, 0.75) 0%, rgba(14, 18, 28, 0.88) 55%, rgba(20, 14, 32, 0.7) 100%);
  backdrop-filter: blur(12px);
}

.aria-logo {
  width: min(160px, 42vw);
  height: auto;
  display: block;
}

.aria-logo-tag {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.aria-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.panel-aria-info {
  padding: 1.25rem;
}

.check-list {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.check-list li { margin: 0.4rem 0; }

.fine-print {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.fine-print a { color: var(--rust-light); }

.panel-chat {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.chat-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rust-light);
}

.chat-messages {
  flex: 1;
  min-height: 100px;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
}

.chat-msg {
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.chat-msg.bot {
  padding: 0.65rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--rust-light);
}

.chat-msg.user {
  text-align: right;
  color: var(--muted);
  font-size: 0.85rem;
}

.chat-form {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 16px;
}

.chat-mic, .chat-send {
  min-width: 44px;
  min-height: 44px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
}

.chat-mic {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.chat-mic.listening { background: var(--rust); }

.chat-send {
  background: var(--rust-light);
  color: #1a0800;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0 0.85rem;
}

.chat-opt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Stack ── */
.strip-slideshow {
  aspect-ratio: 24 / 5;
  min-height: 72px;
  max-height: 120px;
  margin-bottom: 1.25rem;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stack-card {
  padding: 1.1rem 1.2rem;
  text-align: center;
}

.stack-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--rust-light);
}

.stack-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.stack-card-accent {
  border-color: rgba(118, 185, 0, 0.35);
  background: linear-gradient(145deg, var(--bg-panel), rgba(118, 185, 0, 0.06));
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.infra-tile, .model-tile {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.infra-tile {
  background-size: cover;
  background-position: center;
  position: relative;
  isolation: isolate;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-end;
}

.infra-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
}

.edge-ui::after {
  background: linear-gradient(160deg, rgba(6, 14, 28, 0.92), rgba(10, 24, 42, 0.75));
}

.dgx-ui::after {
  background: linear-gradient(160deg, rgba(4, 12, 2, 0.92), rgba(14, 36, 6, 0.72));
}

.edge-ui {
  background-image: url("../images/art/space/space-42.jpg");
}

.dgx-ui {
  background-image: url("../images/art/ai/ai-14.png");
}

.infra-tile > * { position: relative; z-index: 1; }

.infra-tile h3, .model-tile h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}

.infra-tile p, .model-tile p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.infra-tile h3, .infra-tile p { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }

.model-tile {
  background: var(--bg-panel);
  text-align: center;
}

.model-tile .text-link { display: inline-block; margin-top: 0.5rem; }

.worker-teaser {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  text-align: center;
  border-color: rgba(118, 185, 0, 0.25);
  background: linear-gradient(145deg, var(--bg-panel), rgba(118, 185, 0, 0.06));
}

.worker-teaser h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: var(--nvidia);
}

.worker-teaser-text {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 32rem;
  margin-inline: auto;
}

.chip {
  align-self: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: var(--rust);
  color: #1a0800;
  margin-bottom: 0.4rem;
}

.chip-nvidia { background: var(--nvidia); }

/* ── Slideshows ── */
.slideshow {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
}

.art-slideshow {
  aspect-ratio: 16 / 9;
  min-height: 200px;
}

.slideshow-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slideshow-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slideshow-stage img.active { opacity: 1; }

.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(6, 8, 16, 0.7);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

.slideshow-prev { left: 0.5rem; }
.slideshow-next { right: 0.5rem; }

.slideshow-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1.5rem 0.75rem 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  z-index: 2;
}

.art-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.art-tab {
  flex: 1;
  min-height: 40px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.art-tab.active {
  background: linear-gradient(135deg, var(--rust-light), var(--mars));
  color: #1a0800;
  border-color: transparent;
}

/* ── Visual archive (static pair) ── */
.visual-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.visual-frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-panel);
}

.visual-frame img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}

.visual-frame figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ── Mission log ── */
.log-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.log-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.log-list li:last-child { border-bottom: none; }

.log-list strong { display: block; margin-top: 0.25rem; }

.log-list p {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.tag-live { color: var(--rust-light); }

/* ── Science topics ── */
.science-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  max-width: 42rem;
  margin-inline: auto;
}

.science-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - 0.425rem);
  justify-self: center;
}

.science-card {
  background: var(--bg-panel);
  border: 1px solid rgba(155, 126, 217, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.science-banner {
  position: relative;
  height: 72px;
  overflow: hidden;
}

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

.science-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(8, 10, 18, 0.75) 100%);
}

.science-label {
  position: absolute;
  left: 0.65rem;
  bottom: 0.45rem;
  z-index: 1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #fff;
  font-size: 0.68rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.science-card p {
  margin: 0;
  padding: 0.75rem 0.85rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
}

/* ── Audio player ── */
.audio-player {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(14, 18, 28, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.audio-player[hidden] { display: none !important; }

.audio-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rust-light), var(--mars));
  color: #1a0800;
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
}

.audio-btn-sm {
  width: 30px;
  height: 30px;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.audio-title {
  font-size: 0.72rem;
  color: var(--muted);
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-vol {
  width: 56px;
  height: 4px;
  accent-color: var(--rust-light);
  cursor: pointer;
}

@media (max-width: 480px) {
  .audio-vol { display: none; }
  .audio-title { max-width: 5rem; }
}

/* ── Footer ── */
.site-footer {
  padding: 1.75rem 0 calc(1.75rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--border);
  background: rgba(6, 8, 16, 0.9);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner a {
  color: var(--rust-light);
  text-decoration: none;
}

.footer-server-btn {
  margin-bottom: 0.35rem;
}

/* ── Mobile — same layouts as desktop, scaled for narrow screens ── */
@media (max-width: 768px) {
  .menu-btn { display: flex; align-items: center; justify-content: center; }

  .nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    background: rgba(6, 8, 16, 0.98);
    padding: env(safe-area-inset-top) 1.5rem env(safe-area-inset-bottom);
  }

  .nav.open { display: flex; }

  .nav a {
    font-size: 1.1rem;
    padding: 0.65rem 1.25rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .nav-social {
    display: inline-flex;
    margin-top: 0.75rem;
    color: var(--rust-light);
    border: 1px solid var(--border);
    border-radius: 999px;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 7.5vw, 2.4rem);
  }

  .hero-cta {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .hero-cta .btn {
    flex: 1 1 auto;
    min-height: 42px;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
  }

  .aria-layout {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .aria-logo { width: min(120px, 28vw); }

  .panel-aria-info { padding: 0.85rem; }

  .check-list {
    font-size: 0.72rem;
    padding-left: 0.9rem;
    margin-bottom: 0.85rem;
  }

  .check-list li { margin: 0.25rem 0; }

  .btn-row {
    flex-direction: column;
    gap: 0.45rem;
  }

  .btn-row .btn {
    width: 100%;
    min-height: 40px;
    font-size: 0.78rem;
    padding: 0.45rem 0.65rem;
  }

  .fine-print { font-size: 0.68rem; }

  .panel-chat {
    min-height: 240px;
    padding: 0.75rem;
  }

  .chat-head { font-size: 0.78rem; }

  .chat-messages {
    max-height: 120px;
    font-size: 0.78rem;
  }

  .chat-msg { font-size: 0.75rem; }

  .chat-form { gap: 0.35rem; }

  .chat-form input {
    font-size: 16px;
    padding: 0.5rem 0.55rem;
    min-height: 40px;
  }

  .chat-mic,
  .chat-send {
    min-width: 40px;
    min-height: 40px;
  }

  .chat-send {
    font-size: 0.72rem;
    padding: 0 0.55rem;
  }

  .chat-opt { font-size: 0.68rem; }

  .stack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .stack-card {
    padding: 0.7rem 0.45rem;
  }

  .stack-card h3 {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .stack-card p {
    font-size: 0.62rem;
    line-height: 1.35;
  }

  .infra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .infra-tile {
    min-height: 96px;
    padding: 0.75rem 0.55rem;
  }

  .infra-tile h3,
  .model-tile h3 {
    font-size: 0.78rem;
  }

  .infra-tile p,
  .model-tile p {
    font-size: 0.68rem;
  }

  .model-tile {
    padding: 0.75rem 0.55rem;
  }

  .science-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    max-width: 100%;
  }

  .science-card:last-child:nth-child(odd) {
    max-width: calc(50% - 0.3rem);
  }

  .science-banner { height: 56px; }

  .science-card p {
    padding: 0.55rem 0.6rem 0.65rem;
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .visual-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .visual-frame figcaption {
    font-size: 0.68rem;
    padding: 0.4rem 0.5rem;
  }

  .section-head-split {
    flex-direction: column;
    align-items: center;
  }

  .section-head-split .btn {
    width: auto;
    align-self: center;
  }

  .worker-teaser {
    padding: 0.9rem 0.85rem;
  }

  .worker-teaser h3 { font-size: 0.9rem; }

  .worker-teaser-text { font-size: 0.78rem; }
}

@media (min-width: 769px) {
  .btn-row .btn { flex: 0 1 auto; }
}