/* knowledgespaces */

:root {
  --bg: #080808;
  --text: #d8d4cc;
  --text-2: #8a8680;
  --text-3: #555250;
  --accent: #a0a0a0;
  --accent-soft: rgba(160, 160, 160, 0.06);
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, sans-serif;
  --max-w: 860px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --prose-w: 30em;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-width: 320px;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999; opacity: 0.2;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E") repeat;
  background-size: 256px;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  line-height: 1.15;
}

::selection { background: var(--accent); color: var(--bg); }

.wrap { width: min(var(--max-w), calc(100% - 3rem)); margin-inline: auto; position: relative; z-index: 2; }
.section { padding: clamp(5rem, 12vw, 10rem) 0; }

.label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.label--accent { color: var(--accent); opacity: 0.7; }

.separator { height: 1px; background: rgba(255,255,255,0.05); margin: 0 auto; max-width: var(--max-w); }

/* ---- NAV ---- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8,8,8,0.8);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255,255,255,0.04);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 500; color: var(--text-2); letter-spacing: 0.02em; }
.brand-logo { display: inline-block; width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 0; }
.nav-link { padding: 0.35rem 0.6rem; font-size: 0.78rem; color: var(--text-3); transition: color 0.2s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }
.nav-gh { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: 0.15rem; color: var(--text-3); transition: color 0.2s; }
.nav-gh:hover { color: var(--text); }
.nav-gh svg { width: 16px; height: 16px; fill: currentColor; }
.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; background: transparent; color: var(--text); }
.nav-toggle span { display: block; width: 14px; height: 2px; border-radius: 1px; background: currentColor; transition: transform 0.2s, opacity 0.15s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- BUTTONS ---- */

.btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 1rem; font-size: 0.78rem; font-weight: 450; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); background: transparent; color: var(--text-2); transition: all 0.2s; white-space: nowrap; }
.btn:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { background: #fff; }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---- HERO ---- */

.hero {
  padding-top: calc(56px + clamp(6rem, 14vw, 12rem));
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }

.hero .label { margin-bottom: 0.75rem; }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #f0ede8;
  margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--accent); }

.hero-lead { color: var(--text-2); font-size: 0.95rem; max-width: 28em; line-height: 1.65; margin-bottom: 1.75rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; align-items: center; }

.install-bar {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 38px; padding: 0 0.7rem; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02);
  cursor: pointer; width: fit-content; transition: border-color 0.2s;
}
.install-bar:hover { border-color: rgba(255,255,255,0.14); }
.install-bar:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.install-bar .dollar { color: var(--text-3); font-family: var(--mono); user-select: none; }
.install-bar code { font-family: var(--mono); font-size: 0.8rem; color: var(--text-2); }
.install-bar .copy-icon { color: var(--text-3); transition: color 0.2s; flex-shrink: 0; display: inline-block; }
.install-bar .copy-hint { font-size: 0.6rem; color: var(--text-3); transition: color 0.2s; }
.install-bar.is-copied .copy-icon { color: var(--accent); }
.install-bar.is-copied .copy-hint { color: var(--accent); }

/* ---- CAPABILITIES ---- */

.capabilities { padding: clamp(3rem, 7vw, 5rem) 0; }

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

.cap h3 { font-family: var(--serif); font-size: 0.9rem; color: #f0ede8; margin-bottom: 0.35rem; }
.cap p { font-size: 0.8rem; color: var(--text-2); line-height: 1.55; }

/* ---- SECTION HEADERS ---- */

.section-header { margin-bottom: 3rem; }
.section-header .label { display: block; margin-bottom: 0.55rem; }
.section-header h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); color: #f0ede8; margin-bottom: 0.55rem; text-wrap: balance; }
.section-header p { color: var(--text-2); font-size: 0.88rem; max-width: var(--prose-w); line-height: 1.6; }

/* ---- CODE ---- */

.code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.code-block { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; overflow: hidden; }
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.55rem 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
.code-bar-title { font-family: var(--mono); font-size: 0.66rem; color: var(--text-3); }
.code-block pre { margin: 0; padding: 1.1rem; overflow-x: auto; font-family: var(--mono); font-size: 0.74rem; line-height: 1.9; color: var(--text); }
.code-output { display: flex; flex-direction: column; gap: 0.8rem; }
.out-card { padding: 1.15rem 0; border-top: 1px solid rgba(255,255,255,0.04); }
.out-card:first-child { border-top: none; padding-top: 0; }
.out-card h3 { font-family: var(--serif); font-size: 0.88rem; color: #f0ede8; margin-bottom: 0.25rem; }
.out-card p { font-size: 0.78rem; color: var(--text-2); line-height: 1.5; }
.out-result { margin-top: 0.4rem; padding: 0.4rem 0.6rem; border-radius: 4px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); font-family: var(--mono); font-size: 0.7rem; color: var(--text-2); line-height: 1.6; }

.t-kw { color: #c0a0b8; }
.t-fn { color: #90b8c8; }
.t-str { color: #a8c090; }
.t-op { color: #7898a8; }
.t-cm { color: #484440; }
.t-var { color: #c8c4be; }
.t-bool { color: #c8a080; }

/* ---- MCP ---- */

.mcp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.mcp-grid .section-header { margin-bottom: 1.5rem; }
.mcp-tagline { font-size: 0.78rem; color: var(--text-3); letter-spacing: 0.02em; }

.chat-window { border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.015); overflow: hidden; }
.chat-chrome { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.chat-dots { display: flex; gap: 5px; }
.chat-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.chat-title { font-size: 0.68rem; color: var(--text-3); font-weight: 500; }
.chat-body { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.9rem; }
.chat-msg { padding: 0.7rem 0.9rem; border-radius: 10px; font-size: 0.82rem; line-height: 1.55; }
.chat-msg.is-user { background: rgba(255,255,255,0.04); color: var(--text); align-self: flex-end; max-width: 88%; border-bottom-right-radius: 3px; }
.chat-msg.is-ai { align-self: flex-start; max-width: 92%; color: var(--text-2); padding: 0.2rem 0; }
.chat-msg.is-ai p { line-height: 1.6; }
.chat-msg.is-ai strong { color: var(--text); font-weight: 500; }
.chat-tool { display: inline-flex; align-items: center; gap: 0.25rem; font-family: var(--mono); font-size: 0.62rem; color: var(--accent); opacity: 0.7; margin-bottom: 0.3rem; }
.chat-tool-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.chat-meta { display: flex; gap: 1rem; margin-top: 0.5rem; font-family: var(--mono); font-size: 0.64rem; color: var(--text-3); }
.chat-input { padding: 0.65rem 0.9rem; border-top: 1px solid rgba(255,255,255,0.04); font-size: 0.76rem; color: var(--text-3); opacity: 0.5; }

/* ---- CTA ---- */

.cta-section { text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.cta-inner h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); color: #f0ede8; text-wrap: balance; }

/* ---- FOOTER ---- */

.footer { padding: 2rem 0; border-top: 1px solid rgba(255,255,255,0.04); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; }
.footer-left { display: flex; flex-direction: column; gap: 0.12rem; }
.footer-brand { font-size: 0.78rem; color: var(--text-2); }
.footer-note { font-size: 0.7rem; color: var(--text-3); }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { font-size: 0.72rem; color: var(--text-3); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ---- PAGES (team, cite) ---- */

.page-hero { padding-top: calc(56px + clamp(4rem, 10vw, 8rem)); padding-bottom: clamp(2rem, 5vw, 4rem); }
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); color: #f0ede8; margin-bottom: 0.5rem; text-wrap: balance; }
.page-hero .subhead { color: var(--text-2); font-size: 0.88rem; max-width: var(--prose-w); }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.card-header { margin-bottom: 0.8rem; display: flex; align-items: center; justify-content: space-between; }
.card-body { display: flex; flex-direction: column; gap: 0.45rem; }
.card-body p { font-size: 0.82rem; color: var(--text-2); line-height: 1.6; }
.card-actions { display: flex; gap: 0.5rem; margin-top: 0.3rem; }
.card-rows { display: flex; flex-direction: column; }
.card-row { display: flex; flex-direction: column; gap: 0.06rem; padding: 0.6rem 0; border-top: 1px solid rgba(255,255,255,0.04); }
.card-row:first-child { border-top: 0; }
.card-row-label { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.card-row-value { font-size: 0.82rem; color: var(--text); }
.cite-pre { margin: 0; font-family: var(--mono); font-size: 0.72rem; line-height: 1.7; white-space: pre-wrap; word-break: break-word; color: var(--text-2); }
.copy-btn { height: 26px; padding: 0 0.55rem; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; background: transparent; color: var(--text-3); transition: all 0.2s; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.is-copied { border-color: var(--accent); color: var(--accent); }
.ref-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.ref-list li { font-size: 0.78rem; color: var(--text-2); line-height: 1.5; padding-left: 0.7rem; border-left: 1px solid rgba(255,255,255,0.06); }
.ref-list li em { color: var(--text); font-family: var(--serif); }
.band-link-section { padding: 2rem 0 3rem; }
.band-link-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.04); }
.band-link-inner h2 { font-size: 1rem; font-family: var(--serif); color: #f0ede8; }

/* ---- CARD CONTENT HELPERS ---- */

.card-name { font-family: var(--serif); font-size: 1.2rem; color: #f0ede8; }
.card-role { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.card-title { font-family: var(--serif); color: #f0ede8; }

/* ---- THEME TOGGLE ---- */

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0;
  border: none; border-radius: 6px; background: transparent;
  color: var(--text-3); transition: color 0.2s; cursor: pointer;
}
.theme-toggle:hover { color: var(--text); }
.theme-toggle svg { display: block; }
.theme-toggle .icon-moon { display: none; }

html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---- LIGHT MODE ---- */

html[data-theme="light"] {
  --bg: #f5f5f3;
  --text: #222;
  --text-2: #666;
  --text-3: #999;
  --accent: #555;
  --accent-soft: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] body { background: var(--bg); }
html[data-theme="light"] body::after { opacity: 0.06; }
html[data-theme="light"] ::selection { background: #333; color: #fff; }

html[data-theme="light"] .nav.is-scrolled { background: rgba(245,245,243,0.85); }
html[data-theme="light"] .hero h1,
html[data-theme="light"] .section-header h2,
html[data-theme="light"] .cta-inner h2,
html[data-theme="light"] .page-hero h1,
html[data-theme="light"] .out-card h3,
html[data-theme="light"] .cap h3,
html[data-theme="light"] .card-name,
html[data-theme="light"] .card-title,
html[data-theme="light"] .band-link-inner h2 { color: #111; }

html[data-theme="light"] .btn { border-color: rgba(0,0,0,0.12); color: var(--text-2); }
html[data-theme="light"] .btn:hover { border-color: rgba(0,0,0,0.25); color: var(--text); }
html[data-theme="light"] .btn-primary { background: #222; color: #f5f5f3; border-color: #222; }
html[data-theme="light"] .btn-primary:hover { background: #000; }

html[data-theme="light"] .separator { background: rgba(0,0,0,0.06); }
html[data-theme="light"] .nav { border-bottom-color: transparent; }
html[data-theme="light"] .nav.is-scrolled { border-color: rgba(0,0,0,0.06); }

html[data-theme="light"] .install-bar { border-color: rgba(0,0,0,0.1); background: rgba(0,0,0,0.02); }
html[data-theme="light"] .install-bar:hover { border-color: rgba(0,0,0,0.18); }

html[data-theme="light"] .code-block { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
html[data-theme="light"] .code-bar { border-bottom-color: rgba(0,0,0,0.05); }
html[data-theme="light"] .out-result { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }

html[data-theme="light"] .chat-window { border-color: rgba(0,0,0,0.1); background: rgba(0,0,0,0.015); }
html[data-theme="light"] .chat-chrome { border-bottom-color: rgba(0,0,0,0.06); }
html[data-theme="light"] .chat-dots span { background: rgba(0,0,0,0.08); }
html[data-theme="light"] .chat-msg.is-user { background: rgba(0,0,0,0.04); }
html[data-theme="light"] .chat-input { border-top-color: rgba(0,0,0,0.05); }

html[data-theme="light"] .card-row { border-top-color: rgba(0,0,0,0.06); }
html[data-theme="light"] .out-card { border-top-color: rgba(0,0,0,0.06); }
html[data-theme="light"] .ref-list li { border-left-color: rgba(0,0,0,0.08); }
html[data-theme="light"] .band-link-inner { border-top-color: rgba(0,0,0,0.06); }
html[data-theme="light"] .footer { border-top-color: rgba(0,0,0,0.06); }

html[data-theme="light"] .t-kw { color: #8b3e8b; }
html[data-theme="light"] .t-fn { color: #2a6496; }
html[data-theme="light"] .t-str { color: #4a7a32; }
html[data-theme="light"] .t-op { color: #555; }
html[data-theme="light"] .t-var { color: #333; }
html[data-theme="light"] .t-bool { color: #986832; }
html[data-theme="light"] .chat-tool { color: var(--accent); }

/* ---- REVEAL ---- */

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- RESPONSIVE ---- */

@media (max-width: 768px) {
  .hero { padding-top: calc(56px + clamp(4rem, 10vw, 7rem)); padding-bottom: clamp(3rem, 6vw, 5rem); }
  .hero h1 { font-size: clamp(2.2rem, 7vw, 3rem); }
  .hero-lead { font-size: 0.88rem; }
  .hero-actions { gap: 0.5rem; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .code-grid { grid-template-columns: 1fr; }
  .code-block pre { font-size: 0.68rem; line-height: 1.8; padding: 0.9rem; }
  .mcp-grid { grid-template-columns: 1fr; gap: 2rem; }
  .content-grid { grid-template-columns: 1fr; gap: 2rem; }
  .chat-msg.is-user { max-width: 94%; }
  .chat-msg.is-ai { max-width: 100%; }
  .chat-meta { flex-wrap: wrap; gap: 0.5rem 1rem; }
  .out-result { font-size: 0.65rem; overflow-x: auto; }
  .page-hero { padding-top: calc(56px + clamp(3rem, 8vw, 5rem)); }

  /* reduce reveal delays — content appears faster on mobile */
  .reveal-d1 { transition-delay: 0.06s; }
  .reveal-d2 { transition-delay: 0.12s; }
  .reveal-d3 { transition-delay: 0.18s; }
  .reveal-d4 { transition-delay: 0.24s; }
}

@media (max-width: 560px) {
  .wrap { width: min(var(--max-w), calc(100% - 2rem)); }
  .section { padding: clamp(3rem, 8vw, 5rem) 0; }

  /* ── mobile nav ── */
  .nav-toggle { display: flex; }
  .nav-right {
    display: none; position: absolute; top: calc(100% + 0.35rem);
    left: 1rem; right: 1rem;
    flex-direction: column; gap: 0;
    padding: 0.35rem 0; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(12,12,12,0.96);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }
  .nav-right.is-open { display: flex; }
  .nav-right .nav-link {
    display: block; width: auto;
    padding: 0.65rem 1rem;
    font-size: 0.82rem; color: var(--text-2);
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .nav-right .nav-link:last-of-type { border-bottom: none; }
  .nav-right .nav-link:active { background: rgba(255,255,255,0.03); }
  .nav-right .nav-gh {
    display: flex; align-items: center; gap: 0.5rem;
    width: auto; margin: 0;
    padding: 0.65rem 1rem;
    font-size: 0.82rem; color: var(--text-2);
    border-top: 1px solid rgba(255,255,255,0.04);
  }
  .nav-right .nav-gh::after { content: "GitHub"; font-family: var(--sans); font-size: 0.82rem; }
  .nav-right .nav-gh svg { width: 14px; height: 14px; }

  /* ── hero ── */
  .hero { padding-top: calc(56px + 3rem); padding-bottom: 2rem; }
  .hero .wrap { text-align: left; align-items: flex-start; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .hero-lead { font-size: 0.84rem; }
  .hero-actions { justify-content: flex-start; flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .install-bar { width: 100%; justify-content: center; height: 40px; }

  /* ── capabilities ── */
  .capabilities { padding: clamp(2rem, 5vw, 3rem) 0; }
  .cap-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* ── code ── */
  .code-block pre { font-size: 0.62rem; padding: 0.7rem; }

  /* ── chat ── */
  .chat-body { padding: 0.8rem; gap: 0.7rem; }
  .chat-msg { font-size: 0.78rem; padding: 0.6rem 0.75rem; }

  /* ── buttons: only hero goes full-width ── */
  .cta-inner { text-align: left; align-items: flex-start; }
  .cta-inner .btn-group { flex-direction: row; flex-wrap: wrap; }
  .band-link-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .band-link-inner .btn-group { flex-direction: row; flex-wrap: wrap; }

  /* ── page hero ── */
  .page-hero { padding-top: calc(56px + 2.5rem); padding-bottom: 2rem; }
  .page-hero h1 { font-size: clamp(1.5rem, 6vw, 1.8rem); }

  /* ── cards ── */
  .card-name { font-size: 1.05rem; }

  /* ── footer ── */
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .wrap { width: min(var(--max-w), calc(100% - 1.5rem)); }
  .nav-right { left: 0.75rem; right: 0.75rem; }
  .hero h1 { font-size: 1.6rem; }
  .cap-grid { grid-template-columns: 1fr; gap: 1rem; }
  .code-block pre { font-size: 0.58rem; }
  .cite-pre { font-size: 0.64rem; }
  .chat-msg { font-size: 0.74rem; }
  .page-hero h1 { font-size: 1.4rem; }
}
