:root {
  --bg: #1a1917;
  --bg-alt: #141311;
  --surface: #262522;
  --surface-raised: #2f2d2a;
  --border: #3d3a36;
  --border-bright: #524e49;
  --text: #eceae6;
  --text-soft: #c8c4bc;
  --muted: #9a9690;
  --accent: #da7756;
  --accent-dim: #c4684a;
  --accent-soft: rgba(218, 119, 86, 0.14);
  --amber: #c9a45c;
  --cyan: #8ab4f8;
  --red: #e57373;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "SF Mono", Consolas, monospace;
  --max: 1060px;
  --radius: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --avatar-width: 168px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 0.96rem;
  min-height: 100vh;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 10000;
  font-family: var(--font);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ── Terminal chrome ── */

.term-window,
.site-terminal,
.boot-splash-inner {
  font-family: var(--mono);
}

.term-window {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.term-titlebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
}

.term-controls {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.term-controls span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
  opacity: 0.85;
}

.term-controls span:nth-child(1) { background: #5c5a57; }
.term-controls span:nth-child(2) { background: #6f6c68; }
.term-controls span:nth-child(3) { background: #da7756; }

.term-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term-body {
  padding: 1.25rem 1.5rem;
}

.term-cmd {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--mono);
}

.prompt-user { color: var(--accent); }
.prompt-path { color: var(--muted); }
.prompt-char { color: var(--text); }

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 25, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.logo {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.logo::before {
  content: "› ";
  color: var(--accent);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.8rem;
  transition: color 0.15s;
}

nav a .cmd-prefix {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
}

nav a:hover {
  color: var(--accent);
}

nav a:hover .cmd-prefix {
  color: var(--accent);
}

/* ── Hero / boot sequence ── */

.hero {
  padding: 2rem 0 3rem;
}

.hero .term-body {
  padding: 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-grid .hero-photo {
  align-self: center;
}

.hero-content {
  min-width: 0;
}

.bridge-bullets {
  margin: 1rem 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.bridge-bullets li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.45rem;
  line-height: 1.45;
}

.bridge-bullets li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.hiring-strip {
  padding-top: 0;
}

.hiring-panel {
  border-color: rgba(218, 119, 86, 0.4);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(218, 119, 86, 0.06) 100%);
}

.hiring-list {
  margin: 1rem 0;
}

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

.hiring-cta a {
  color: var(--accent);
}

.arch-caption {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--mono);
}

.capstone-demo-note {
  margin-top: 0.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 0.65rem 0.85rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "? ";
  color: var(--accent);
  font-family: var(--mono);
}

.faq-item[open] summary::before {
  content: "› ";
}

.faq-item p {
  margin: 0.65rem 0 0.15rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.boot-line {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.boot-line {
  font-family: var(--mono);
}

.boot-line .prompt {
  color: var(--accent);
  margin-right: 0.4rem;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.65rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: var(--text);
  font-weight: 650;
  padding-left: 0;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.3rem;
  margin: 0 0 1rem;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.02rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
  font-weight: 600;
}

h4 {
  font-size: 0.92rem;
  margin: 1rem 0 0.4rem;
  color: var(--accent);
  font-weight: 600;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
  font-family: var(--mono);
}

.hero-tagline {
  font-size: 1.02rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
  min-height: 1.7em;
  font-weight: 500;
}

.hero-lead {
  max-width: 62ch;
  margin: 0 0 1.5rem;
  color: #c8c5c0;
  font-size: 0.92rem;
}

.lead {
  font-size: 0.95rem;
  color: #c8c5c0;
}

.hero-photo {
  margin: 0;
  justify-self: center;
  width: fit-content;
  max-width: 100%;
  text-align: center;
}

.avatar-label {
  margin: 0 0 0.45rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.avatar-label .ok {
  color: var(--accent);
}

.avatar-frame {
  width: var(--avatar-width);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  line-height: 0;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.availability {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--accent);
}

.availability::before {
  content: "STATUS: ";
  color: var(--muted);
}

.cursor-blink {
  animation: blink 1.1s step-end infinite;
  color: var(--accent);
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-blink {
    animation: none;
  }
}

/* ── Sections ── */

.section {
  padding: 2.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--surface);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.subtitle {
  color: var(--muted);
  margin-top: -0.25rem;
  font-size: 0.88rem;
}

/* ── Buttons ── */

.hero-actions,
.contact-links,
.ai-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #1a1917;
  border-color: var(--accent);
  font-weight: 600;
}

.btn-primary:hover {
  background: #e38666;
  border-color: #e38666;
  color: #1a1917;
}

.btn-secondary {
  background: var(--surface-raised);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-bright);
  color: var(--text);
}

.status-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(218, 119, 86, 0.35);
  font-family: var(--mono);
}

/* ── Cards & grids ── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.card-grid-tight {
  margin-top: 1.25rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  transition: border-color 0.15s;
}

.card:hover {
  border-color: var(--border-bright);
}

.card-compact h4 {
  margin-top: 0;
}

.card p:last-child {
  margin-bottom: 0;
  font-size: 0.88rem;
  color: #b8b4ae;
}

/* ── Lists ── */

.timeline,
.check-list,
.edu-list {
  padding: 0;
  list-style: none;
}

.timeline li,
.edu-list li {
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--border);
}

.timeline li:last-child,
.edu-list li:last-child {
  border-bottom: none;
}

.timeline span,
.edu-org {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.skills-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.skills-block-3 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

/* ── Experience log entries ── */

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

.experience-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.experience-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.experience-item h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.experience-company {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
}

.experience-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  font-family: var(--mono);
}

.experience-highlights {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
  color: #b8b4ae;
  font-size: 0.88rem;
}

.experience-highlights li {
  margin-bottom: 0.35rem;
}

/* ── Tags ── */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  list-style: none;
}

.tag-list li {
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
}

/* ── Architecture flow ── */

.arch-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  margin: 0.85rem 0 1.25rem;
}

.arch-flow span:not(.arrow) {
  padding: 0.25rem 0.55rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--mono);
}

.arch-flow .arrow {
  color: var(--accent);
  font-weight: 700;
}

.arch-flow .arch-gate {
  border-color: rgba(218, 119, 86, 0.55);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.arch-flow .arch-send {
  border-style: dashed;
}

.arch-flow-sub {
  margin-top: 0.45rem;
  justify-content: center;
}

.arch-hint {
  color: var(--accent);
}

.arch-interactive {
  margin: 0.85rem 0 1.25rem;
}

.arch-flow-interactive {
  align-items: flex-start;
}

.arch-step {
  position: relative;
  min-width: 0;
}

.arch-step summary {
  list-style: none;
  cursor: pointer;
  padding: 0.25rem 0.55rem;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.3;
  white-space: nowrap;
  user-select: none;
  transition: border-color 0.15s, background 0.15s;
}

.arch-step summary::-webkit-details-marker {
  display: none;
}

.arch-step summary::after {
  content: " +";
  color: var(--muted);
  font-size: 0.7rem;
}

.arch-step[open] summary {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.arch-step[open] summary::after {
  content: " −";
  color: var(--accent);
}

.arch-step-gate summary {
  border-color: rgba(218, 119, 86, 0.55);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.arch-step-send summary {
  border-style: dashed;
}

.arch-step-panel {
  position: absolute;
  z-index: 20;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 0.45rem);
  width: min(280px, 85vw);
  padding: 0.75rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.arch-step-panel strong {
  display: block;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.arch-step-panel p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.45;
  white-space: normal;
}

.arch-flow-sub .arch-step-panel {
  left: 50%;
}

@media (max-width: 720px) {
  .arch-step-panel {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 0.45rem;
  }

  .arch-flow-interactive {
    flex-direction: column;
    align-items: stretch;
  }

  .arch-flow-interactive .arrow {
    align-self: center;
  }
}

/* ── Checklist ── */

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.85rem;
}

.edu-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.edu-status {
  font-size: 0.72rem;
  color: var(--amber);
  text-transform: uppercase;
}

.edu-status {
  font-family: var(--mono);
}

/* ── Ask AI ── */

.ask-ai .section-panel {
  border-color: rgba(218, 119, 86, 0.35);
}

.ai-btn {
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface-raised);
  transition: border-color 0.15s, background 0.15s;
}

.ai-btn:hover {
  border-color: var(--border-bright);
  color: var(--text);
}

.ask-ai .ai-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 1rem 1.35rem;
  margin-top: 0.35rem;
}

.ask-ai .ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  text-align: center;
}

.ai-btn-chatgpt:hover { border-color: #10a37f; }
.ai-btn-claude:hover { border-color: #d97757; }
.ai-btn-gemini:hover { border-color: #4285f4; }
.ai-btn-grok:hover { border-color: #e8e8e8; }
.ai-btn-copilot:hover { border-color: #0078d4; }

.copy-prompt-btn {
  margin-top: 0.85rem;
}

.hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.85rem;
}

.prompt-preview {
  margin-top: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
}

.prompt-preview summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.82rem;
}

.prompt-preview pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: #a8a49e;
  max-height: 300px;
  overflow: auto;
  margin: 0.85rem 0 0;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner nav a {
  margin-left: 1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-family: var(--mono);
}

.footer-inner nav a:hover {
  color: var(--accent);
}

.shell-status {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.shell-status .ok { color: var(--accent); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
}

.footer-legal a:hover,
.footer-legal a[aria-current="page"] {
  color: var(--accent);
}

.footer-privacy-note {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-privacy-note a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-privacy-note a:hover {
  color: var(--accent);
}

.error-page {
  padding-bottom: 2rem;
}

.error-main {
  padding: 3rem 0 4rem;
}

.error-panel {
  max-width: 760px;
  margin: 0 auto;
}

.error-body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.error-body h1 {
  margin: 0 0 0.65rem;
  font-size: 1.75rem;
}

.error-lead {
  margin: 0 0 1rem;
  color: #c8c5c0;
  line-height: 1.6;
}

.error-output {
  margin: 0 0 1.25rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.legal-page {
  padding-bottom: 2rem;
}

.legal-main {
  padding: 2.5rem 0 3rem;
}

.legal-panel h1 {
  margin-bottom: 0.35rem;
}

.legal-updated {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-family: var(--mono);
}

.legal-section {
  margin-bottom: 1.35rem;
}

.legal-section h2 {
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
}

.legal-section p {
  margin: 0;
  color: #c8c5c0;
  font-size: 0.92rem;
}

.legal-contact {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}

.site-header nav a[aria-current="page"] {
  color: var(--accent);
}

/* ── Responsive ── */

@media (max-width: 720px) {
  nav a {
    margin-left: 0.65rem;
    font-size: 0.75rem;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-photo {
    order: -1;
  }

  .hero-photo {
    margin-inline: auto;
  }

  :root {
    --avatar-width: 142px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .term-body {
    padding: 1rem;
  }

  .site-terminal {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    width: auto;
    transform: none;
  }

  .term-output {
    max-height: 100px;
  }

  .term-hint {
    display: none;
  }
}

/* ── Boot splash ── */

body.boot-active {
  overflow: hidden;
  padding-bottom: 0;
}

body:not(.boot-active) {
  padding-bottom: 13rem;
}

.boot-splash {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 19, 17, 0.88);
  backdrop-filter: blur(8px);
  padding: 1rem;
  cursor: pointer;
}

.boot-splash-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.boot-splash-inner {
  width: min(100%, 640px);
  cursor: default;
}

.boot-lines {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  min-height: 10rem;
}

.boot-skip {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.boot-skip kbd {
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--bg);
  color: var(--cyan);
  font-family: inherit;
  font-size: 0.75rem;
}

.term-invite strong {
  color: var(--cyan);
  font-weight: 600;
}

.term-invite kbd {
  padding: 0.1rem 0.3rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--amber);
  font-size: 0.78rem;
}

/* ── Interactive terminal dock ── */

.site-terminal {
  position: fixed;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 1.5rem), var(--max));
  z-index: 9000;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.site-terminal-bar {
  cursor: default;
}

.site-terminal-bar .term-title {
  flex: 1;
}

.term-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  cursor: pointer;
}

.term-toggle:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

.term-output {
  max-height: 150px;
  overflow-y: auto;
  padding: 0.65rem 0.85rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
}

.term-line {
  margin: 0 0 0.35rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: #c8c5c0;
}

.term-line-cmd {
  color: var(--muted);
}

.term-line-cmd::before {
  content: "";
}

.term-line-err {
  color: var(--red);
}

.term-line-man {
  color: #b8b4ae;
  border-left: 2px solid var(--accent);
  padding-left: 0.5rem;
}

.term-line-dim {
  color: var(--muted);
}

.term-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.term-prompt-label {
  font-size: 0.76rem;
  white-space: nowrap;
  flex-shrink: 0;
}

#term-input {
  flex: 1;
  min-width: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  outline: none;
  padding: 0.45rem 0.65rem;
}

#term-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

#term-input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.term-hint {
  margin: 0;
  padding: 0.2rem 0.65rem 0.35rem;
  font-size: 0.68rem;
  color: var(--muted);
  border-top: 1px dashed var(--border);
  background: var(--surface-raised);
}

.site-terminal-collapsed .term-output,
.site-terminal-collapsed .term-hint {
  display: none;
}

section[id] {
  scroll-margin-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  .boot-splash-hidden {
    transition: none;
  }
}