/* ══════════════════════════════════════════════════
   ESCAPE VELOCITY VENTURES — Blueprint Design System
   ══════════════════════════════════════════════════ */

:root {
  /* Core backgrounds */
  --bp-bg: #0a0a0a;
  --bp-bg-raised: #121212;
  --bp-bg-card: #161616;
  --bp-bg-input: #141414;

  /* Grid & line work */
  --bp-grid-subtle: #141414;
  --bp-grid-major: #1a1a1a;
  --bp-border: #1e1e1e;
  --bp-border-light: #282828;
  --bp-line: #2a2a2a;

  /* Text hierarchy */
  --bp-text: #d0d0d0;
  --bp-text-muted: #b0b0b0;
  --bp-text-dim: #777777;
  --bp-white: #f0f0f0;

  /* Accents */
  --bp-accent: #9B0D39;
  --bp-accent-hover: #b8124a;
  --bp-accent-dim: rgba(155, 13, 57, 0.12);
  --bp-cyan: #4a9ead;
  --bp-cyan-dim: rgba(74, 158, 173, 0.15);

  /* Typography */
  --bp-mono: 'JetBrains Mono', monospace;
  --bp-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing (8px base) */
  --bp-1: 4px;
  --bp-2: 8px;
  --bp-3: 16px;
  --bp-4: 24px;
  --bp-5: 32px;
  --bp-6: 48px;
  --bp-7: 64px;
  --bp-8: 96px;

  /* Frame */
  --bp-frame-margin: 24px;
  --bp-frame-color: #2a2a2a;

  /* Type scale */
  --bp-text-xs: 0.7rem;
  --bp-text-sm: 0.75rem;
  --bp-text-base: 0.85rem;
  --bp-text-md: 1rem;
  --bp-text-lg: 1.2rem;
  --bp-text-xl: 1.5rem;
  --bp-text-2xl: 2rem;
  --bp-text-3xl: clamp(1.8rem, 4vw, 2.8rem);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--bp-mono);
  font-size: var(--bp-text-base);
  font-weight: 400;
  color: var(--bp-text);
  background-color: var(--bp-bg);
  background-image:
    repeating-linear-gradient(0deg, var(--bp-grid-subtle) 0, var(--bp-grid-subtle) 1px, transparent 1px, transparent 20px),
    repeating-linear-gradient(90deg, var(--bp-grid-subtle) 0, var(--bp-grid-subtle) 1px, transparent 1px, transparent 20px),
    repeating-linear-gradient(0deg, var(--bp-grid-major) 0, var(--bp-grid-major) 1px, transparent 1px, transparent 100px),
    repeating-linear-gradient(90deg, var(--bp-grid-major) 0, var(--bp-grid-major) 1px, transparent 1px, transparent 100px);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--bp-accent); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
table { border-collapse: collapse; }

/* ── Drawing Frame ── */
body::before {
  content: '';
  position: fixed;
  top: 80px;
  left: var(--bp-frame-margin);
  right: var(--bp-frame-margin);
  bottom: var(--bp-frame-margin);
  border: 2px solid var(--bp-frame-color);
  pointer-events: none;
  z-index: 999;
}

.bp-corner-marks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

.bp-corner-marks .corner {
  position: absolute;
  width: 12px;
  height: 12px;
}
.bp-corner-marks .tl { top: 68px; left: 12px; border-top: 1px solid var(--bp-line); border-left: 1px solid var(--bp-line); }
.bp-corner-marks .tr { top: 68px; right: 12px; border-top: 1px solid var(--bp-line); border-right: 1px solid var(--bp-line); }
.bp-corner-marks .bl { bottom: 12px; left: 12px; border-bottom: 1px solid var(--bp-line); border-left: 1px solid var(--bp-line); }
.bp-corner-marks .br { bottom: 12px; right: 12px; border-bottom: 1px solid var(--bp-line); border-right: 1px solid var(--bp-line); }

/* ── Layout Container ── */
.bp-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 calc(var(--bp-frame-margin) + 24px);
}

/* ── Header ── */
.bp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bp-border);
}

.bp-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 calc(var(--bp-frame-margin) + 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.bp-logo {
  display: flex;
  align-items: center;
  gap: var(--bp-3);
}

.bp-logo-icon {
  height: 51px;
  width: auto;
  filter: brightness(0) invert(1);
}

.bp-logo-text {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.bp-nav ul {
  display: flex;
  list-style: none;
  gap: var(--bp-4);
  align-items: center;
}

.bp-nav a {
  font-size: var(--bp-text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bp-text-muted);
  transition: color 0.2s;
  padding: var(--bp-2) 0;
  white-space: nowrap;
}

.bp-nav a::before {
  content: attr(data-zone);
  color: var(--bp-text-dim);
  margin-right: var(--bp-2);
  font-size: var(--bp-text-xs);
}

.bp-nav a:hover,
.bp-nav a.active {
  color: var(--bp-white);
}

.bp-nav-cta {
  border: 1px solid var(--bp-accent) !important;
  padding: var(--bp-1) var(--bp-3) !important;
  color: var(--bp-accent) !important;
  transition: all 0.2s !important;
}

.bp-nav-cta:hover {
  background: var(--bp-accent) !important;
  color: var(--bp-white) !important;
}

/* Hamburger */
.bp-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--bp-2);
}

.bp-hamburger span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--bp-text);
  transition: all 0.3s;
}

.bp-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.bp-hamburger.active span:nth-child(2) { opacity: 0; }
.bp-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ── Section Headers ── */
.bp-section-header {
  display: flex;
  align-items: center;
  gap: var(--bp-3);
  margin-bottom: var(--bp-6);
}

.bp-zone-ref {
  font-size: var(--bp-text-sm);
  color: var(--bp-cyan);
  letter-spacing: 0.15em;
  border: 1px solid var(--bp-cyan);
  padding: 2px var(--bp-2);
  flex-shrink: 0;
  font-weight: 500;
}

.bp-section-title {
  font-size: var(--bp-text-base);
  color: var(--bp-white);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bp-section-line {
  flex: 1;
  height: 1px;
  background: var(--bp-border);
}

/* ── Title Block Section ── */
.bp-title-block {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--bp-8) 0 var(--bp-7);
  position: relative;
}

.bp-title-block-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 calc(var(--bp-frame-margin) + 24px);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--bp-7);
  align-items: end;
}

.bp-tagline h1 {
  font-size: var(--bp-text-3xl);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--bp-white);
  margin-bottom: var(--bp-3);
  line-height: 1.2;
}

.bp-subtitle {
  font-family: var(--bp-sans);
  font-size: var(--bp-text-md);
  color: var(--bp-text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: var(--bp-5);
}

/* CTA Button */
.bp-cta {
  display: inline-block;
  font-family: var(--bp-mono);
  font-size: var(--bp-text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bp-white);
  background: var(--bp-accent);
  border: 1px solid var(--bp-accent);
  padding: var(--bp-2) var(--bp-4);
  transition: all 0.2s;
  cursor: pointer;
}

.bp-cta:hover {
  background: var(--bp-accent-hover);
  border-color: var(--bp-accent-hover);
}

.bp-cta-secondary {
  display: inline-block;
  font-family: var(--bp-mono);
  font-size: var(--bp-text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bp-accent);
  background: transparent;
  border: 1px solid var(--bp-accent);
  padding: var(--bp-2) var(--bp-4);
  transition: all 0.2s;
}

.bp-cta-secondary:hover {
  background: var(--bp-accent);
  color: var(--bp-white);
}

/* Title Table */
.bp-title-table {
  font-size: var(--bp-text-xs);
  border: 1px solid var(--bp-border-light);
  min-width: 280px;
}

.bp-title-table td {
  padding: 6px 12px;
  border: 1px solid var(--bp-border);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bp-text);
}

.bp-title-table .bp-td-label {
  color: var(--bp-text-dim);
  white-space: nowrap;
  width: 80px;
}

.bp-title-table .bp-td-firm {
  text-align: center;
  color: var(--bp-white);
  font-weight: 500;
  font-size: var(--bp-text-sm);
  letter-spacing: 0.12em;
  padding: 10px 12px;
}

/* Scroll Indicator */
.bp-scroll-indicator {
  position: absolute;
  bottom: var(--bp-6);
  left: 50%;
  transform: translateX(-50%);
}

.bp-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--bp-line);
  animation: bp-pulse 2s ease-in-out infinite;
}

@keyframes bp-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ── General Notes / Capabilities ── */
.bp-general-notes {
  padding: var(--bp-8) 0;
}

.bp-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--bp-6) var(--bp-7);
}

.bp-note {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.bp-note-number {
  width: 28px;
  height: 28px;
  border: 1px solid var(--bp-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--bp-text-sm);
  color: var(--bp-cyan);
  flex-shrink: 0;
}

.bp-note-leader {
  width: 24px;
  height: 1px;
  background: var(--bp-cyan);
  margin-top: 14px;
  flex-shrink: 0;
}

.bp-note-content {
  padding-top: 4px;
}

.bp-note-content h3 {
  font-size: var(--bp-text-base);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--bp-cyan);
  margin-bottom: var(--bp-2);
  text-transform: uppercase;
}

.bp-note-content p {
  font-family: var(--bp-sans);
  font-size: var(--bp-text-base);
  color: var(--bp-text-muted);
  line-height: 1.7;
}

/* ── Detail Views / Portfolio ── */
.bp-detail-views {
  padding: var(--bp-8) 0;
}

.bp-details-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--bp-6);
}

/* Detail Index (sidebar) */
.bp-detail-index {
  position: sticky;
  top: 80px;
  align-self: start;
}

.bp-detail-group-label {
  font-size: var(--bp-text-xs);
  color: var(--bp-white);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--bp-2);
  margin-top: var(--bp-4);
  border-left: 2px solid var(--bp-accent);
  padding-left: var(--bp-2);
}

.bp-detail-group-label:first-child {
  margin-top: 0;
}

.bp-detail-ref {
  display: flex;
  align-items: center;
  gap: var(--bp-2);
  width: 100%;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  padding: var(--bp-2) var(--bp-3);
  font-family: var(--bp-mono);
  font-size: var(--bp-text-sm);
  color: var(--bp-text-muted);
  text-align: left;
  transition: all 0.15s;
}

.bp-detail-ref:hover {
  color: var(--bp-text);
  background: var(--bp-bg-raised);
}

.bp-detail-ref.active {
  color: var(--bp-white);
  border-left-color: var(--bp-accent);
  background: var(--bp-bg-raised);
}

.bp-ref-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--bp-border-light);
  font-size: var(--bp-text-xs);
  color: var(--bp-text-muted);
  flex-shrink: 0;
}

.bp-detail-ref.active .bp-ref-letter {
  border-color: var(--bp-accent);
  color: var(--bp-accent);
}

/* Detail Panes */
.bp-detail-pane {
  display: none;
  animation: bp-fadeIn 0.3s ease-out;
}

.bp-detail-pane.active {
  display: block;
}

@keyframes bp-fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.bp-detail-label {
  display: flex;
  align-items: center;
  gap: var(--bp-3);
  margin-bottom: var(--bp-4);
}

.bp-detail-circle {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--bp-accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--bp-text-lg);
  font-weight: 700;
  color: var(--bp-accent);
  flex-shrink: 0;
}

.bp-detail-title {
  font-size: var(--bp-text-lg);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--bp-white);
  text-transform: uppercase;
}

.bp-detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bp-4);
}

.bp-detail-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border: 1px solid var(--bp-border);
}

@media (hover: hover) {
  .bp-detail-image { cursor: crosshair; }
}

.bp-detail-abstract {
  font-family: var(--bp-sans);
  font-size: var(--bp-text-base);
  color: var(--bp-text-muted);
  line-height: 1.7;
  margin-bottom: var(--bp-3);
}

/* Spec Table */
.bp-spec-table {
  width: 100%;
  font-size: var(--bp-text-sm);
}

.bp-spec-table th {
  text-align: left;
  color: var(--bp-text-muted);
  font-weight: 400;
  padding: var(--bp-2) var(--bp-3) var(--bp-2) 0;
  border-bottom: 1px solid var(--bp-border-light);
  letter-spacing: 0.12em;
  font-size: var(--bp-text-xs);
  text-transform: uppercase;
}

.bp-spec-table td {
  padding: var(--bp-2) var(--bp-3) var(--bp-2) 0;
  border-bottom: 1px solid var(--bp-border);
  color: var(--bp-text);
}

.bp-spec-table td:first-child {
  color: var(--bp-cyan);
  white-space: nowrap;
  width: 120px;
  font-size: var(--bp-text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bp-detail-tools {
  margin-top: var(--bp-3);
  font-size: var(--bp-text-xs);
  color: var(--bp-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bp-detail-tools span {
  color: var(--bp-text-muted);
}

/* ── Revision History ── */
.bp-revision-history {
  padding: var(--bp-8) 0;
}

.bp-revision-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto auto;
  gap: var(--bp-5) var(--bp-6);
}

.bp-engineer-profile {
  grid-row: 1 / 3;
}

.bp-profile-image {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--bp-border);
  margin-bottom: var(--bp-3);
}

.bp-profile-meta {
  font-size: var(--bp-text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bp-profile-name {
  color: var(--bp-white);
  font-weight: 500;
  font-size: var(--bp-text-sm);
  margin-bottom: var(--bp-1);
}

.bp-profile-title-text {
  color: var(--bp-text-muted);
  margin-bottom: var(--bp-1);
}

.bp-profile-location {
  color: var(--bp-text-muted);
}

/* Revision Table */
.bp-revision-table {
  width: 100%;
  font-size: var(--bp-text-sm);
  border: 1px solid var(--bp-border);
}

.bp-revision-table th {
  text-align: left;
  padding: var(--bp-2) var(--bp-3);
  border-bottom: 2px solid var(--bp-border-light);
  color: var(--bp-text-muted);
  font-weight: 400;
  font-size: var(--bp-text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--bp-bg-raised);
}

.bp-revision-table td {
  padding: var(--bp-2) var(--bp-3);
  border-bottom: 1px solid var(--bp-border);
  color: var(--bp-text);
  vertical-align: top;
}

.bp-revision-table td:first-child {
  color: var(--bp-accent);
  font-weight: 700;
  font-size: var(--bp-text-md);
  width: 40px;
}

.bp-revision-table td:nth-child(2) {
  white-space: nowrap;
  width: 120px;
  color: var(--bp-text-muted);
}

.bp-revision-table td:last-child {
  color: var(--bp-text-dim);
  width: 40px;
  text-align: center;
}

.bp-engineer-bio {
  font-family: var(--bp-sans);
  font-size: var(--bp-text-base);
  color: var(--bp-text-muted);
  line-height: 1.7;
}

.bp-engineer-bio p + p {
  margin-top: var(--bp-3);
}

/* ── Transmittal / Contact ── */
.bp-transmittal {
  padding: var(--bp-8) 0;
}

.bp-transmittal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bp-7);
}

.bp-transmittal-table {
  width: 100%;
  font-size: var(--bp-text-sm);
  border: 1px solid var(--bp-border);
  margin-bottom: var(--bp-5);
}

.bp-transmittal-table td {
  padding: var(--bp-2) var(--bp-3);
  border: 1px solid var(--bp-border);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bp-transmittal-table .bp-td-label {
  color: var(--bp-text-muted);
  width: 60px;
}

.bp-transmittal-contacts {
  display: flex;
  flex-direction: column;
  gap: var(--bp-4);
}

.bp-contact-line {
  display: flex;
  flex-direction: column;
  gap: var(--bp-1);
}

.bp-contact-label {
  font-size: var(--bp-text-xs);
  color: var(--bp-cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.bp-contact-line a,
.bp-contact-line span:not(.bp-contact-label) {
  font-size: var(--bp-text-base);
  color: var(--bp-text);
  transition: color 0.2s;
}

.bp-contact-line a:hover {
  color: var(--bp-cyan);
}

/* Form */
.bp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bp-3);
}

.bp-form-field {
  margin-bottom: var(--bp-3);
}

.bp-form-field.bp-full {
  grid-column: 1 / -1;
}

.bp-form-field label {
  display: block;
  font-size: var(--bp-text-xs);
  color: var(--bp-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--bp-2);
}

.bp-form-field input,
.bp-form-field textarea {
  width: 100%;
  font-family: var(--bp-mono);
  font-size: var(--bp-text-sm);
  color: var(--bp-text);
  background: var(--bp-bg-input);
  border: 1px solid var(--bp-border);
  padding: var(--bp-2) var(--bp-3);
  transition: border-color 0.2s;
  outline: none;
}

.bp-form-field input:focus,
.bp-form-field textarea:focus {
  border-color: var(--bp-accent);
}

.bp-form-field textarea {
  resize: vertical;
  min-height: 120px;
}

/* ── Footer ── */
.bp-footer {
  border-top: 1px solid var(--bp-border);
  padding: var(--bp-4) 0;
  margin-bottom: 40px;
}

.bp-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 calc(var(--bp-frame-margin) + 24px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--bp-text-xs);
  color: var(--bp-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bp-footer-inner a {
  color: var(--bp-text-muted);
  transition: color 0.2s;
}

.bp-footer-inner a:hover {
  color: var(--bp-text);
}

/* ── Policy Page ── */
.bp-policy {
  padding: var(--bp-8) 0;
}

.bp-policy-updated {
  font-size: var(--bp-text-xs);
  color: var(--bp-text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--bp-6);
}

.bp-policy-content h2 {
  font-size: var(--bp-text-lg);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--bp-cyan);
  text-transform: uppercase;
  margin-bottom: var(--bp-4);
  margin-top: var(--bp-5);
}

.bp-policy-content h2:first-child {
  margin-top: 0;
}

.bp-policy-content h3 {
  font-size: var(--bp-text-base);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bp-white);
  margin-bottom: var(--bp-2);
  margin-top: var(--bp-4);
}

.bp-policy-content p {
  font-family: var(--bp-sans);
  font-size: var(--bp-text-base);
  color: var(--bp-text-muted);
  line-height: 1.7;
  margin-bottom: var(--bp-3);
}

.bp-policy-divider {
  border: none;
  height: 1px;
  background: var(--bp-border);
  margin: var(--bp-6) 0;
}

/* ── BOM Table (tools.html) ── */
.bp-bom-header {
  padding: var(--bp-8) 0 var(--bp-6);
  text-align: center;
}

.bp-bom-header .bp-section-header {
  justify-content: center;
}

.bp-bom-notice {
  font-family: var(--bp-sans);
  font-size: var(--bp-text-base);
  color: var(--bp-text-muted);
  margin-bottom: var(--bp-3);
}

.bp-bom-section {
  padding: 0 0 var(--bp-8);
}

.bp-bom-filters {
  display: flex;
  gap: var(--bp-2);
  margin-bottom: var(--bp-5);
  justify-content: center;
}

.bp-filter-btn {
  font-family: var(--bp-mono);
  font-size: var(--bp-text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bp-text-muted);
  background: transparent;
  border: 1px solid var(--bp-border);
  padding: var(--bp-1) var(--bp-3);
  transition: all 0.2s;
}

.bp-filter-btn:hover {
  border-color: var(--bp-border-light);
  color: var(--bp-text);
}

.bp-filter-btn.active {
  border-color: var(--bp-accent);
  color: var(--bp-accent);
}

.bp-bom-table {
  width: 100%;
  font-size: var(--bp-text-sm);
  border: 1px solid var(--bp-border);
}

.bp-bom-table th {
  text-align: left;
  padding: var(--bp-3);
  border-bottom: 2px solid var(--bp-border-light);
  color: var(--bp-text-muted);
  font-weight: 400;
  font-size: var(--bp-text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--bp-bg-raised);
}

.bp-bom-table td {
  padding: var(--bp-3);
  border-bottom: 1px solid var(--bp-border);
  color: var(--bp-text);
  vertical-align: top;
}

.bp-bom-table td:first-child {
  color: var(--bp-text-dim);
  width: 48px;
  text-align: center;
}

.bp-bom-table tr {
  transition: background 0.15s;
}

.bp-bom-table tbody tr:nth-child(even) {
  background: var(--bp-bg-card);
}

.bp-bom-table tbody tr:hover {
  background: var(--bp-bg-card);
  outline: 1px solid var(--bp-cyan-dim);
  outline-offset: -1px;
}

.bp-download-btn {
  font-family: var(--bp-mono);
  font-size: var(--bp-text-md);
  font-weight: 700;
  padding: var(--bp-1) var(--bp-3);
  border: 1px solid var(--bp-accent);
  background: transparent;
  color: var(--bp-accent);
  letter-spacing: 0.1em;
  transition: all 0.15s;
}

.bp-download-btn:hover {
  background: var(--bp-accent);
  color: var(--bp-white);
}

/* ── Password Modal ── */
.bp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.bp-modal-overlay.active {
  display: flex;
}

.bp-modal {
  background: var(--bp-bg-card);
  border: 1px solid var(--bp-border-light);
  padding: var(--bp-5);
  width: 100%;
  max-width: 400px;
  position: relative;
}

.bp-modal h3 {
  font-size: var(--bp-text-md);
  color: var(--bp-white);
  letter-spacing: 0.06em;
  margin-bottom: var(--bp-2);
  text-transform: uppercase;
}

.bp-modal p {
  font-family: var(--bp-sans);
  font-size: var(--bp-text-sm);
  color: var(--bp-text-muted);
  margin-bottom: var(--bp-4);
}

.bp-modal-close {
  position: absolute;
  top: var(--bp-3);
  right: var(--bp-3);
  background: none;
  border: none;
  color: var(--bp-text-dim);
  font-size: var(--bp-text-lg);
  transition: color 0.2s;
}

.bp-modal-close:hover {
  color: var(--bp-text);
}

.bp-password-error {
  display: none;
  font-size: var(--bp-text-xs);
  color: var(--bp-accent);
  margin-top: var(--bp-2);
}

.bp-password-error.visible {
  display: block;
}

/* ── Scroll Reveal ── */
.bp-reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.bp-reveal.bp-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── CAD Hover Effects ── */
.bp-note:hover {
  outline: 1px solid var(--bp-cyan-dim);
  outline-offset: var(--bp-2);
}

/* ── Mobile Nav Overlay ── */
.bp-nav-wrapper {
  display: contents;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 992px) {
  :root {
    --bp-frame-margin: 12px;
  }

  .bp-hamburger { display: flex; }

  .bp-nav-wrapper {
    display: block;
    position: fixed;
    inset: 72px 0 0 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(8px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .bp-nav-wrapper.active {
    opacity: 1;
    visibility: visible;
  }

  .bp-nav ul {
    flex-direction: column;
    padding: var(--bp-5);
    gap: var(--bp-4);
  }

  .bp-nav a {
    font-size: var(--bp-text-sm);
  }

  .bp-logo-icon {
    height: 36px;
  }

  .bp-logo-text {
    height: 24px;
  }

  .bp-title-block-content {
    grid-template-columns: 1fr;
    gap: var(--bp-5);
    align-items: start;
  }

  .bp-title-table {
    min-width: auto;
    width: 100%;
    max-width: 360px;
  }

  .bp-notes-grid {
    grid-template-columns: 1fr;
  }

  .bp-details-container {
    grid-template-columns: 1fr;
  }

  .bp-detail-index {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: var(--bp-1);
    padding-bottom: var(--bp-4);
    border-bottom: 1px solid var(--bp-border);
    margin-bottom: var(--bp-4);
  }

  .bp-detail-group-label {
    width: 100%;
    margin-top: var(--bp-3);
  }

  .bp-detail-group-label:first-child {
    margin-top: 0;
  }

  .bp-detail-ref {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: var(--bp-1) var(--bp-2);
    width: auto;
  }

  .bp-detail-ref.active {
    border-left-color: transparent;
    border-bottom-color: var(--bp-accent);
  }

  .bp-detail-body {
    grid-template-columns: 1fr;
  }

  .bp-revision-layout {
    grid-template-columns: 1fr;
  }

  .bp-engineer-profile {
    display: flex;
    gap: var(--bp-4);
    align-items: center;
  }

  .bp-profile-image {
    width: 120px;
    height: 150px;
  }

  .bp-transmittal-layout {
    grid-template-columns: 1fr;
    gap: var(--bp-5);
  }
}

@media (max-width: 768px) {
  body::before { display: none; }
  .bp-corner-marks { display: none; }

  .bp-container,
  .bp-title-block-content,
  .bp-header-inner,
  .bp-footer-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .bp-logo-icon {
    height: 30px;
  }

  .bp-logo-text {
    height: 20px;
  }

  .bp-logo {
    gap: var(--bp-2);
  }

  .bp-header-inner {
    height: 56px;
  }

  .bp-nav-wrapper {
    inset: 56px 0 0 0;
  }

  .bp-title-block {
    min-height: auto;
    padding: 120px 0 var(--bp-7);
  }

  .bp-detail-image {
    height: 200px;
  }

  .bp-form-row {
    grid-template-columns: 1fr;
  }

  .bp-footer-inner {
    flex-direction: column;
    gap: var(--bp-2);
    text-align: center;
  }

  /* BOM table stacked on mobile */
  .bp-bom-table thead { display: none; }

  .bp-bom-table tbody tr {
    display: block;
    border: 1px solid var(--bp-border);
    margin-bottom: var(--bp-2);
    padding: var(--bp-3);
  }

  .bp-bom-table td {
    display: block;
    border-bottom: none;
    padding: var(--bp-1) 0;
    text-align: right;
  }

  .bp-bom-table td::before {
    content: attr(data-label);
    color: var(--bp-text-dim);
    font-size: var(--bp-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    float: left;
    margin-right: var(--bp-3);
  }

  .bp-bom-table td[data-label="Description"] {
    text-align: left;
  }

  .bp-bom-table td:first-child { display: none; }

  .bp-bom-filters {
    flex-wrap: wrap;
  }
}
