/* Portfolio — edit build.js to change styles */
:root {
  --bg:          #080808;
  --surface:     #0f0f0f;
  --surface-2:   #161616;
  --surface-3:   #1e1e1e;
  --border:      #242424;
  --border-2:    #303030;
  --text:        #ebebeb;
  --text-2:      #b8b8b8;
  --muted:       #5c5c5c;
  --red:         #d42020;
  --red-bright:  #f03040;
  --red-dim:     rgba(212,32,32,0.12);
  --ember:       #e8703a;
  --ember-dim:   rgba(232,112,58,0.10);
  --mono: 'JetBrains Mono','Fira Code','Cascadia Code','Courier New',monospace;
  --sans: 'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --sidebar-w: 264px;
  --r: 4px;
  --transition: 0.15s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  position: relative;
}

/* Ambient background glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at -8% 108%, rgba(212,32,32,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 108% -8%, rgba(212,32,32,0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-bright); }
img { max-width: 100%; height: auto; display: block; }

/* ── Scroll progress bar ──────────────────────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--red) 0%, var(--ember) 100%);
  z-index: 9999;
  transition: width 0.06s linear;
  pointer-events: none;
}

/* ── Left sidebar ─────────────────────────────────────────────────────────── */
.sidebar-nav {
  width: var(--sidebar-w);
  min-height: 100vh;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  position: sticky;
  z-index: 10;
}

/* Scrollbar in sidebar */
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }

/* Brand */
.sidebar-brand {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand-name {
  font-family: var(--mono);
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--red);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3rem;
  transition: color var(--transition);
}
.sidebar-brand-name:hover { color: var(--red-bright); }
.sidebar-brand-sub {
  font-family: var(--mono);
  font-size: 0.60rem;
  color: #888888;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6rem;
}
.sidebar-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.57rem;
  color: #808080;
  letter-spacing: 0.06em;
}
.sidebar-status-dot::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 6px var(--ember);
  flex-shrink: 0;
}

/* Nav links */
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0.5rem;
}

/* Work section with expandable sub-list */
.work-section { margin-bottom: 0; }
.work-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}
.sidebar-link {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9a9a;
  padding: 0.5rem 0.75rem;
  margin-left: -0.75rem;
  border-left: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  flex: 1;
  display: block;
}
.sidebar-link:hover { color: var(--text); border-color: var(--border-2); }
.sidebar-link.active { color: var(--red); border-color: var(--red); }
.sidebar-link.active:hover { color: var(--red-bright); border-color: var(--red-bright); }

/* Work toggle chevron */
.work-toggle {
  background: none;
  border: none;
  color: #888888;
  cursor: pointer;
  padding: 0.4rem 0.35rem;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
  margin-right: -0.25rem;
}
.work-toggle:hover { color: var(--text-2); background: var(--surface-3); }
.work-toggle svg { transition: transform 0.20s ease; }
.work-toggle.open svg { transform: rotate(180deg); }

/* Sub-project list */
.work-projects {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.work-projects.open { max-height: 600px; }
.sidebar-project {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0 0.35rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #848484;
  letter-spacing: 0.02em;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
  border-left: 1px solid var(--border-2);
  margin-left: 0.35rem;
  transition: color var(--transition), border-color var(--transition);
}
.sidebar-project:hover { color: var(--text); border-color: #555; }
.sidebar-project.active { color: var(--ember); border-color: var(--ember); }
.sidebar-project-num {
  font-size: 0.58rem;
  color: #666;
  flex-shrink: 0;
}
.sidebar-project.active .sidebar-project-num { color: var(--ember); }

/* TOC */
.sidebar-toc {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  margin-top: 0.25rem;
}
.sidebar-toc::-webkit-scrollbar { width: 2px; }
.sidebar-toc::-webkit-scrollbar-thumb { background: var(--border); }
.sidebar-toc-label {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #777777;
  margin-bottom: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: block;
}
.sidebar-toc-list { list-style: none; display: flex; flex-direction: column; }
.sidebar-toc-list li a {
  font-family: var(--mono);
  font-size: 0.67rem;
  color: #818181;
  line-height: 1.35;
  padding: 0.28rem 0;
  display: block;
  white-space: normal;
  word-break: break-word;
  transition: color var(--transition);
}
.sidebar-toc-list li a:hover { color: var(--text); }
.sidebar-toc-list li a.toc-active { color: var(--ember); }
.sidebar-toc-list li.h3 a { padding-left: 0.75rem; font-size: 0.63rem; }

/* Sidebar footer */
.sidebar-footer {
  padding-top: 1.5rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border-top: 1px solid var(--border);
}
.sidebar-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}
.sidebar-social a {
  font-family: var(--mono);
  font-size: 0.60rem;
  letter-spacing: 0.06em;
  color: #888888;
  text-transform: uppercase;
  transition: color var(--transition);
}
.sidebar-social a:hover { color: var(--text); }

/* Command palette trigger */
.cmd-trigger {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: #b0b0b0;
  border: 1px solid #3a3a3a;
  background: var(--surface-2);
  padding: 0.50rem 0.75rem;
  border-radius: var(--r);
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color var(--transition), color var(--transition), background var(--transition), box-shadow var(--transition);
}
.cmd-trigger:hover {
  border-color: var(--red);
  color: var(--text);
  background: var(--red-dim);
  box-shadow: 0 0 0 1px var(--red-dim);
}
.cmd-trigger kbd {
  background: var(--surface-3);
  border: 1px solid #3a3a3a;
  border-radius: 3px;
  padding: 0.06rem 0.38rem;
  font-size: 0.58rem;
  color: #999999;
  font-family: var(--mono);
}

/* ── Main content ─────────────────────────────────────────────────────────── */
.main-wrap {
  flex: 1;
  min-width: 0;
  max-width: 860px;
  padding: 3.5rem 4rem 6rem;
  position: relative;
  z-index: 1;
}

/* ── Hero (index) ─────────────────────────────────────────────────────────── */
.hero {
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3.5rem;
}
.hero-rule {
  width: 2rem;
  height: 2px;
  background: var(--red);
  margin-bottom: 1.25rem;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.hero h1 .name-accent {
  color: var(--red);
}
.hero-sub {
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}
.hero-bio {
  font-size: 0.91rem;
  color: var(--text-2);
  line-height: 1.95;
  max-width: 520px;
}

/* ── Section label ────────────────────────────────────────────────────────── */
.section-label {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Project list (index) ─────────────────────────────────────────────────── */
.projects-list { display: flex; flex-direction: column; }

.project-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0.75rem;
  margin: 0 -0.75rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  position: relative;
  border-radius: var(--r);
  transition: background var(--transition);
}
.project-row:first-child { border-top: 1px solid var(--border); }
.project-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--red);
  border-radius: 2px;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-row:hover { background: var(--surface); }
.project-row:hover::before { opacity: 1; }
.project-row:hover .row-title { color: var(--red-bright); }
.project-row:hover .row-arrow { color: var(--ember); opacity: 1; transform: translateX(3px); }

.row-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  min-width: 1.75rem;
  flex-shrink: 0;
  align-self: flex-start;
  padding-top: 0.14rem;
  opacity: 0.8;
}
.row-body { flex: 1; min-width: 0; align-self: flex-start; }
.row-title {
  font-family: var(--mono);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
  transition: color var(--transition);
}
.row-tagline {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  transition: border-color var(--transition), color var(--transition);
}
.project-row:hover .tag { border-color: var(--border-2); }
.row-arrow {
  font-size: 1rem;
  color: var(--muted);
  opacity: 0.3;
  flex-shrink: 0;
  transition: color var(--transition), opacity var(--transition), transform var(--transition);
}

/* ── Project page ─────────────────────────────────────────────────────────── */
.project-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.project-header h1 {
  font-family: var(--mono);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 0.55rem;
}
.project-tagline {
  font-size: 0.91rem;
  color: var(--text-2);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}
.project-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  border-left: 3px solid var(--red);
}
.meta-item dt {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.meta-item dd {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text-2);
}
.status-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.63rem;
  padding: 0.12rem 0.5rem;
  border-radius: 100px;
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(212,32,32,0.4);
}

.project-hero {
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  border-radius: var(--r);
  margin-bottom: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
}
.project-hero img { width: 100%; height: 100%; object-fit: cover; }

/* ── Prose ────────────────────────────────────────────────────────────────── */
.prose h2 {
  font-family: var(--mono);
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--text);
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
  scroll-margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.prose h2::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}
.prose h3 {
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ember);
  margin: 2.25rem 0 0.75rem;
  scroll-margin-top: 2rem;
}
.prose p { margin-bottom: 1.1rem; color: var(--text-2); font-size: 0.91rem; line-height: 1.90; }
.prose ul, .prose ol { margin: 0 0 1.1rem 1.5rem; color: var(--text-2); font-size: 0.91rem; }
.prose li { margin-bottom: 0.4rem; line-height: 1.75; }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { color: var(--text-2); font-style: italic; }
.prose code {
  font-family: var(--mono);
  font-size: 0.80em;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  padding: 0.12em 0.38em;
  border-radius: 3px;
  color: var(--ember);
}
.prose pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-2);
  border-radius: var(--r);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}
.prose pre code { background: none; border: none; padding: 0; color: var(--text-2); font-size: 0.83em; }
.prose blockquote {
  border-left: 2px solid var(--ember);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.75rem 0;
  background: var(--ember-dim);
  border-radius: 0 var(--r) var(--r) 0;
}
.prose blockquote p { color: var(--text-2); font-style: italic; margin-bottom: 0; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2.25rem 0; }
.prose a { color: var(--red); }
.prose a:hover { color: var(--red-bright); }
.prose img { border-radius: var(--r); border: 1px solid var(--border); margin: 1.75rem 0; }

/* ── Prev/Next nav ────────────────────────────────────────────────────────── */
.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.project-nav a, .project-nav .nav-spacer {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.project-nav a:hover { border-color: var(--red); color: var(--text-2); background: var(--red-dim); }
.project-nav .nav-spacer { border-color: transparent; }
.nav-dir { font-size: 0.54rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.nav-title { color: var(--text); font-size: 0.80rem; }
.nav-next { text-align: right; }

/* ── Page header (about / statement) ─────────────────────────────────────── */
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}
.page-header .page-sub {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

/* ── Command palette ──────────────────────────────────────────────────────── */
.cmd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9998;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 13vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
  backdrop-filter: blur(4px);
}
.cmd-overlay.open { opacity: 1; pointer-events: all; }
.cmd-modal {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  width: 540px;
  max-width: calc(100vw - 2rem);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.9), 0 0 0 1px rgba(212,32,32,0.2), 0 0 60px rgba(212,32,32,0.06);
}
.cmd-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.86rem;
  padding: 1rem 1.25rem;
  outline: none;
}
.cmd-input::placeholder { color: var(--muted); }
.cmd-results { max-height: 310px; overflow-y: auto; }
.cmd-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.68rem 1.25rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.83rem;
  border-left: 2px solid transparent;
  transition: background 0.10s, color 0.10s, border-color 0.10s;
}
.cmd-item:hover, .cmd-item.selected {
  background: var(--surface-2);
  color: var(--text);
  border-left-color: var(--red);
}
.cmd-item-type {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-3);
  border: 1px solid var(--border);
  padding: 0.08rem 0.38rem;
  border-radius: 2px;
  flex-shrink: 0;
}
.cmd-hint {
  font-family: var(--mono);
  font-size: 0.56rem;
  color: var(--muted);
  padding: 0.55rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1.25rem;
}
.cmd-hint kbd {
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-radius: 3px;
  padding: 0.04rem 0.3rem;
  font-family: var(--mono);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  body { flex-direction: column; }
  body::before {
    background:
      radial-gradient(ellipse 100% 40% at 50% 0%, rgba(212,32,32,0.07) 0%, transparent 60%);
  }
  .sidebar-nav {
    width: 100%;
    min-height: auto;
    height: auto;
    position: sticky;
    top: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0.85rem 1.5rem;
    gap: 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    z-index: 100;
    overflow: visible;
  }
  .sidebar-brand { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
  .sidebar-brand-sub, .sidebar-status-dot { display: none; }
  .sidebar-links { flex-direction: row; gap: 0.75rem; flex: 1; flex-wrap: wrap; align-items: center; }
  .work-section { display: flex; align-items: center; }
  .work-header { flex-direction: row; }
  .work-toggle { display: none; }
  .work-projects { display: none; }
  .sidebar-link {
    padding: 0.35rem 0.8rem;
    margin-left: 0;
    border-left: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.3rem;
    padding-left: 0;
    flex: none;
  }
  .sidebar-link.active { border-left: none; border-bottom-color: var(--red); }
  .sidebar-link:hover { border-color: transparent; border-bottom-color: var(--border-2); }
  .sidebar-toc { display: none; }
  .sidebar-footer { display: none; }
  .main-wrap { padding: 2rem 1.75rem 4rem; }
}

@media (max-width: 540px) {
  .main-wrap { padding: 1.5rem 1.1rem 3rem; }
  .project-nav { flex-direction: column; }
  .project-meta-strip { gap: 1.25rem; }
  .hero h1 { font-size: 2.1rem; }
  .row-tagline { display: none; }
}

/* ── Status callout ────────────────────────────────────────────────────────── */
.status-callout {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  margin: 0.5rem 0 2rem;
}
.status-callout-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.status-callout p, .status-callout {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Placeholder boxes ─────────────────────────────────────────────────────── */
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px dashed var(--border-2);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.25rem 0 1.75rem;
}
.video-placeholder-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.video-placeholder-sub {
  font-size: 0.76rem;
  color: var(--muted);
  opacity: 0.5;
}
.diagram-box {
  width: 100%;
  min-height: 140px;
  background: var(--surface);
  border: 1px dashed var(--border-2);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 1.1rem 0 1.4rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.diagram-box-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.diagram-box-desc {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.5;
}
