:root,
:root[data-theme="dark"] {
  --bg: #070a10;
  --bg-alt: rgba(11, 16, 25, 0.72);
  --section-bg: rgba(7, 10, 16, 0.36);
  --header-bg: rgba(7, 10, 16, 0.9);
  --nav-mobile-bg: rgba(9, 13, 21, 0.98);
  --surface: #0f1623;
  --surface-sub: #0a101b;
  --topbar-bg: #0a0f18;
  --input-bg: #080c14;
  --footer-bg: #05080d;
  --portrait-bg: #090e17;
  --viewport-bg: #05070c;
  --border: rgba(148, 163, 184, 0.16);
  --border-subtle: rgba(148, 163, 184, 0.09);
  --border-strong: rgba(56, 189, 248, 0.35);
  --text: #e2e8f0;
  --text-strong: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary: #38bdf8;
  --primary-fg: #06101d;
  --primary-hover: #7dd3fc;
  --primary-soft: rgba(56, 189, 248, 0.1);
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.1);
  --success: #10b981;
  --success-text: #6ee7b7;
  --success-soft: rgba(16, 185, 129, 0.09);
  --danger: #ef4444;
  --card-shadow: none;
  --hero-radial-1: rgba(56, 189, 248, 0.14);
  --hero-radial-2: rgba(16, 185, 129, 0.07);
  --hero-grid-line: rgba(56, 189, 248, 0.05);
  --radius: 4px;
  --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

:root[data-theme="light"] {
  --bg: #f3f6fb;
  --bg-alt: rgba(235, 241, 249, 0.78);
  --section-bg: rgba(243, 246, 251, 0.56);
  --header-bg: rgba(255, 255, 255, 0.92);
  --nav-mobile-bg: rgba(255, 255, 255, 0.98);
  --surface: #ffffff;
  --surface-sub: #f1f5f9;
  --topbar-bg: #f8fafc;
  --input-bg: #f8fafc;
  --footer-bg: #e8eef6;
  --portrait-bg: #0b111e;
  --viewport-bg: #0f172a;
  --border: rgba(15, 23, 42, 0.13);
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(2, 132, 199, 0.42);
  --text: #1e293b;
  --text-strong: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --primary: #0284c7;
  --primary-fg: #ffffff;
  --primary-hover: #0369a1;
  --primary-soft: rgba(2, 132, 199, 0.09);
  --gold: #b45309;
  --gold-soft: rgba(180, 83, 9, 0.09);
  --success: #059669;
  --success-text: #047857;
  --success-soft: rgba(5, 150, 105, 0.1);
  --danger: #dc2626;
  --card-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  --hero-radial-1: rgba(2, 132, 199, 0.12);
  --hero-radial-2: rgba(5, 150, 105, 0.07);
  --hero-grid-line: rgba(2, 132, 199, 0.06);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.text-info { color: var(--primary); }
.text-gold { color: var(--gold); }
.text-success { color: var(--success); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-strong);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.18s ease;
}

.main-nav a:hover {
  color: var(--text-strong);
}

.mobile-nav-cta,
.mobile-controls {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Language & Theme Controls */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 9px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-btn + .lang-btn {
  border-left: 1px solid var(--border);
}

.lang-btn.active {
  background: var(--primary);
  color: var(--primary-fg);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--primary);
}

.theme-icon {
  font-size: 13px;
  line-height: 1;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.status-dot.offline {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 12.5px;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--text-strong);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 84px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-grid-bg {
  position: absolute;
  inset: -44px;
  background-image:
    radial-gradient(circle at 75% 25%, var(--hero-radial-1), transparent 50%),
    radial-gradient(circle at 20% 80%, var(--hero-radial-2), transparent 45%),
    linear-gradient(to right, var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hero-grid-line) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  animation: gridDrift 22s linear infinite;
  pointer-events: none;
}

.hero-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.35) 50%, transparent 100%);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
  opacity: 0.55;
  animation: scanSweep 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gridDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(44px, 44px, 0); }
}

@keyframes scanSweep {
  0% { top: -4%; opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { top: 104%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-grid-bg,
  .hero-scan-line {
    animation: none;
  }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.18fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 16px;
}

.eyebrow-tag {
  display: inline-block;
  padding: 5px 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 58ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
  box-shadow: var(--card-shadow);
}

.metric-val {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-strong);
}

.metric-lbl {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
}

/* Hero Right Panel */
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-showcase-box,
.telemetry-panel,
.contact-form-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.box-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.brand-showcase-body {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 50%, var(--primary-soft), transparent 70%);
}

.hero-logo-svg {
  width: 100%;
  max-width: 390px;
  height: auto;
}

.telemetry-rows {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: var(--surface-sub);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-size: 11.5px;
}

.t-key {
  color: var(--text-muted);
}

.t-val {
  font-weight: 600;
  text-align: right;
}

/* Sections */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  background: var(--section-bg);
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 42px;
}

.section-head-row .section-desc {
  margin-bottom: 0;
  max-width: 620px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 15.5px;
}

/* Principles */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.principle-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--card-shadow);
}

.principle-idx {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  padding: 3px 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.principle-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--text-strong);
}

.principle-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.service-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.service-code {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--primary);
  padding: 3px 8px;
  background: var(--primary-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.service-corner {
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--text-dim);
  border-right: 2px solid var(--text-dim);
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--text-strong);
}

.service-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.service-list {
  list-style: none;
  margin: auto 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
}

/* Portfolio */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-soft);
  color: var(--text-strong);
  border-color: var(--primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
}

.project-card.is-hidden {
  display: none;
}

.project-frame {
  border-bottom: 1px solid var(--border);
  background: var(--viewport-bg);
}

.frame-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  font-size: 11px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--topbar-bg);
}

.zoom-trigger {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}

.zoom-trigger:hover {
  text-decoration: underline;
}

.frame-viewport {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--viewport-bg);
}

.frame-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}

.frame-viewport:hover img {
  transform: scale(1.02);
}

.project-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-meta {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-body h3 {
  margin: 0;
  font-size: 19px;
  color: var(--text-strong);
}

.project-body p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.project-metrics,
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: var(--radius);
}

.chip-metric {
  background: var(--success-soft);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--success-text);
}

.chip-stack {
  background: var(--surface-sub);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Leadership — Strictly Rectangular Frames */
.board-block + .board-block {
  margin-top: 48px;
}

.board-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.board-badge {
  padding: 6px 12px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  font-weight: 600;
  flex-shrink: 0;
}

.board-badge-gold {
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.38);
}

.board-badge-blue {
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--border-strong);
}

.board-line {
  height: 1px;
  background: var(--border);
  flex: 1;
}

.leadership-grid {
  display: grid;
  gap: 24px;
}

.leadership-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 780px;
}

.leadership-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.leader-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
}

.leader-portrait-frame {
  width: 100%;
  padding: 20px 20px 16px;
  background: var(--surface-sub);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
}

.leader-portrait-frame img {
  width: 170px;
  height: 204px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--portrait-bg);
}

.leader-info {
  padding: 20px;
}

.leader-role {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.leader-info h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--text-strong);
}

.leader-info p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: start;
}

.contact-cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--card-shadow);
}

.c-label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.contact-item strong {
  font-size: 13.5px;
  color: var(--text-strong);
  word-break: break-word;
}

.contact-form {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--text-strong);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-feedback {
  font-size: 12.5px;
  min-height: 18px;
}

.form-feedback.ok { color: var(--success); }
.form-feedback.err { color: var(--danger); }

/* Footer */
.site-footer {
  background: var(--footer-bg);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  width: 240px;
  height: auto;
}

.footer-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 44ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-strong);
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  color: var(--text-dim);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 11, 0.86);
  backdrop-filter: blur(4px);
}

.lightbox-dialog {
  position: relative;
  width: 100%;
  max-width: 1120px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 1;
}

.lightbox-close {
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 11px;
}

.lightbox-img-wrap {
  max-height: 74vh;
  overflow: auto;
  background: #04060a;
}

.lightbox-img-wrap img {
  width: 100%;
  height: auto;
}

.lightbox-caption {
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 1100px) {
  .status-badge {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .leadership-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .header-inner {
    height: 64px;
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-title {
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 215px;
  }

  .brand-sub {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .header-actions .btn-sm,
  .desktop-only {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 20px;
    gap: 6px;
    display: none;
    z-index: 60;
  }

  .main-nav a {
    padding: 10px 4px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 15px;
  }

  .mobile-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0 4px;
  }

  .main-nav .mobile-nav-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 8px;
    padding: 11px 16px;
    border-bottom: none;
    background: var(--primary);
    color: var(--primary-fg);
    font-weight: 700;
    border-radius: var(--radius);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 40px 0 52px;
  }

  .section {
    padding: 52px 0;
  }

  .section-head,
  .section-head-row {
    margin-bottom: 28px;
  }

  .principles-grid,
  .services-grid,
  .projects-grid,
  .leadership-grid-2,
  .leadership-grid-3,
  .contact-cards,
  .form-row {
    grid-template-columns: 1fr;
  }

  .box-topbar,
  .frame-bar {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 10px;
  }

  .leader-portrait-frame {
    padding: 16px;
  }

  .leader-portrait-frame img {
    width: 150px;
    height: 180px;
  }

  .footer-logo {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .brand-title {
    max-width: 195px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .hero-lead {
    font-size: 14.5px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .metric-val {
    font-size: 18px;
  }

  .telemetry-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .t-val {
    text-align: left;
  }

  .filter-bar {
    width: 100%;
  }

  .filter-btn {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
    padding: 8px 10px;
    font-size: 12px;
  }

  .contact-form {
    padding: 16px;
  }

  .lightbox {
    padding: 10px;
  }

  .lightbox-img-wrap {
    max-height: 62vh;
  }
}
