/* ==========================================================================
   Zain Hamdia — Engineering Portfolio
   Custom Design System • Distinct Per-Page Theming • Technical Clarity
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-subtle: #cbd5e1;

  /* Default Theme Variables (Home: Deep Indigo & Electric Blue) */
  --theme-primary: #3b82f6;
  --theme-secondary: #6366f1;
  --theme-hero-bg: linear-gradient(145deg, #090d16 0%, #0f172a 60%, #1e1b4b 100%);
  --theme-hero-border: rgba(99, 102, 241, 0.25);
  --theme-tint: #f1f5f9;
  --theme-border-accent: #cbd5e1;
  --theme-band-bg: #090d16;
  --band-accent: var(--theme-primary);

  --max-width: 1160px;
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* ==========================================================================
   Per-Page Distinct Color Themes (Preserved & Elevated)
   ========================================================================== */

/* 1. HOME: Deep Indigo & Midnight Slate */
body.theme-home {
  --theme-primary: #3b82f6;
  --theme-secondary: #8b5cf6;
  --theme-hero-bg: linear-gradient(145deg, #080c16 0%, #0f172a 60%, #1b1945 100%);
  --theme-hero-border: rgba(99, 102, 241, 0.28);
  --theme-tint: #f1f5f9;
  --theme-border-accent: #cbd5e1;
  --theme-band-bg: #090d16;
}

/* 2. ROBOTICS: Deep Cobalt / Technical Blueprint Navy */
body.theme-robotics {
  --theme-primary: #2563eb;
  --theme-secondary: #38bdf8;
  --theme-hero-bg: linear-gradient(145deg, #070e1c 0%, #0c1c38 55%, #172554 100%);
  --theme-hero-border: rgba(56, 189, 248, 0.28);
  --theme-tint: #eff6ff;
  --theme-border-accent: #bfdbfe;
  --theme-band-bg: #0a1120;
  --band-accent: #60a5fa;
}

/* 3. FIRE SERVICE: Firehouse Crimson & Turnout Charcoal */
body.theme-firefighting {
  --theme-primary: #dc2626;
  --theme-secondary: #f59e0b;
  --theme-hero-bg: linear-gradient(145deg, #140505 0%, #2e0909 55%, #450a0a 100%);
  --theme-hero-border: rgba(239, 68, 68, 0.3);
  --theme-tint: #fef2f2;
  --theme-border-accent: #fecaca;
  --theme-band-bg: #160808;
  --band-accent: #f87171;
}

/* 4. AVIATION: Aerospace Cockpit Navy & Horizon Azure */
body.theme-aviation {
  --theme-primary: #0284c7;
  --theme-secondary: #38bdf8;
  --theme-hero-bg: linear-gradient(145deg, #041220 0%, #07253d 55%, #0c4a6e 100%);
  --theme-hero-border: rgba(56, 189, 248, 0.28);
  --theme-tint: #f0f9ff;
  --theme-border-accent: #bae6fd;
  --theme-band-bg: #061524;
  --band-accent: #38bdf8;
}

/* 5. PRINCETON RESEARCH: Official Princeton Orange (#E77500) & Obsidian Black */
body.theme-research {
  --theme-primary: #e77500;
  --theme-secondary: #f59e0b;
  --theme-hero-bg: linear-gradient(145deg, #070707 0%, #15110d 55%, #2a1403 100%);
  --theme-hero-border: rgba(231, 117, 0, 0.4);
  --theme-tint: #fff7ed;
  --theme-border-accent: #fed7aa;
  --theme-band-bg: #0d0a06;
  --band-accent: #fb923c;
}

/* 6. PUBLICATIONS: Editorial Deep Violet & Midnight Ink */
body.theme-publications {
  --theme-primary: #7c3aed;
  --theme-secondary: #a855f7;
  --theme-hero-bg: linear-gradient(145deg, #0a0715 0%, #160e29 55%, #261145 100%);
  --theme-hero-border: rgba(168, 85, 247, 0.28);
  --theme-tint: #faf5ff;
  --theme-border-accent: #e9d5ff;
  --theme-band-bg: #0f091c;
  --band-accent: #c084fc;
}

/* 7. GLOBAL TRAVEL: Cartographic Deep Slate & Atlantic Cyan */
body.theme-travel {
  --theme-primary: #0284c7;
  --theme-secondary: #0ea5e9;
  --theme-hero-bg: linear-gradient(145deg, #05101a 0%, #091e30 55%, #075985 100%);
  --theme-hero-border: rgba(14, 165, 233, 0.3);
  --theme-tint: #f0f9ff;
  --theme-border-accent: #bae6fd;
  --theme-band-bg: #06111e;
  --band-accent: #38bdf8;
}

/* 8. ABOUT: Workshop Deep Slate & Forest Teal */
body.theme-about {
  --theme-primary: #0d9488;
  --theme-secondary: #14b8a6;
  --theme-hero-bg: linear-gradient(145deg, #051413 0%, #0a2926 55%, #115e59 100%);
  --theme-hero-border: rgba(20, 184, 166, 0.3);
  --theme-tint: #f0fdfa;
  --theme-border-accent: #99f6e4;
  --theme-band-bg: #061715;
  --band-accent: #2dd4bf;
}

/* 9. CONTACT: Studio Slate & Indigo */
body.theme-contact {
  --theme-primary: #4f46e5;
  --theme-secondary: #6366f1;
  --theme-hero-bg: linear-gradient(145deg, #080a1c 0%, #111538 55%, #1e1b4b 100%);
  --theme-hero-border: rgba(99, 102, 241, 0.3);
  --theme-tint: #eef2ff;
  --theme-border-accent: #c7d2fe;
  --theme-band-bg: #0a0c20;
  --band-accent: #818cf8;
}

/* ==========================================================================
   Base Reset & Typography
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

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

strong {
  font-weight: 600;
}

::selection {
  background: var(--theme-primary);
  color: #ffffff;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(9, 13, 22, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--theme-primary);
}

.brand-text-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.brand-text-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  margin-left: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
}

.nav-link {
  padding: 7px 12px;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 600;
  border-bottom: 2px solid var(--theme-primary);
}

.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xs);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  color: #ffffff;
}

/* ==========================================================================
   Hero Sections (Rich, Themed & Authentic)
   ========================================================================== */
.page-hero,
.home-hero {
  background: var(--theme-hero-bg);
  color: #ffffff;
  padding: 68px 0 60px;
  position: relative;
  border-bottom: 1px solid var(--theme-hero-border);
}

/* Subtle architectural grid pattern on heroes */
.page-hero::before,
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  opacity: 0.7;
}

.page-hero > .container,
.home-hero > .container {
  position: relative;
  z-index: 1;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.07);
  border-left: 2px solid var(--theme-primary);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.home-hero-title,
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 18px;
}

.home-hero-bio,
.page-subtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  max-width: 620px;
  margin-bottom: 26px;
}

.page-subtitle {
  margin-bottom: 0;
}

.page-subtitle a,
.home-hero-bio a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Fire Service Hero Insignia Crest */
.fire-hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.fire-hero-content {
  flex: 1;
  min-width: 0;
}

.fire-hero-emblem-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fire-hero-emblem-link {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  outline: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s ease;
}

.fire-hero-emblem {
  width: 170px;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.6)) drop-shadow(0 2px 14px rgba(220, 38, 38, 0.4));
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s ease;
  user-select: none;
}

.fire-hero-emblem-link:hover .fire-hero-emblem,
.fire-hero-emblem:hover {
  transform: translateY(-4px) scale(1.03);
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.75)) drop-shadow(0 4px 20px rgba(239, 68, 68, 0.6));
}

.fire-hero-emblem-link:focus-visible {
  outline: 2px solid var(--theme-secondary);
  outline-offset: 6px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  cursor: pointer;
  line-height: 1.3;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--theme-primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  filter: brightness(1.12);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Home Hero Right Column: Technical Stage Preview Tiles */
.hero-visual-stage {
  background: rgba(9, 13, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 20px;
  backdrop-filter: blur(8px);
}

.stage-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stage-tile {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xs);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.stage-tile:hover {
  background: rgba(30, 41, 59, 0.85);
}

.stage-tile.tile-robotics:hover { border-color: #60a5fa; }
.stage-tile.tile-fire:hover     { border-color: #f87171; }
.stage-tile.tile-aviation:hover { border-color: #38bdf8; }
.stage-tile.tile-lab:hover      { border-color: #fb923c; }

.stage-tile-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-block;
}

.stage-tile-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.stage-tile-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
  line-height: 1.4;
}

/* ==========================================================================
   Section Headers & Portal Cards (Themed Project Cards)
   ========================================================================== */
.portal-section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-primary);
  margin-bottom: 4px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

/* Distinctly Themed Portal Cards */
.portal-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  color: #ffffff;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s ease;
}

.portal-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.portal-card.portal-robotics {
  background: linear-gradient(150deg, #070e1c 0%, #11224d 55%, #1e3a8a 100%);
}

.portal-card.portal-fire {
  background: linear-gradient(150deg, #180909 0%, #450a0a 60%, #7f1d1d 100%);
}

.portal-card.portal-aviation {
  background: linear-gradient(150deg, #041220 0%, #072a48 60%, #0284c7 100%);
}

.portal-card.portal-research {
  background: linear-gradient(150deg, #070707 0%, #17120d 55%, #c25e00 95%, #e77500 100%);
}

.portal-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
}

.portal-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.portal-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.portal-highlights {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portal-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.portal-cta {
  margin-top: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.15s ease;
}

.portal-card:hover .portal-cta {
  gap: 10px;
}

/* ==========================================================================
   Interactive Showcase Stage (Robotics, Aviation, Fire, Research)
   ========================================================================== */
.interactive-showcase {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 36px 0;
}

.showcase-top-bar {
  background: var(--theme-band-bg);
  color: #ffffff;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.showcase-sub {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

.showcase-body {
  padding: 28px;
}

/* Generation Tabs */
.lineage-tab-bar {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: var(--radius-sm);
  gap: 4px;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lineage-tab-btn {
  padding: 7px 14px;
  border-radius: var(--radius-xs);
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lineage-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.lineage-tab-btn.active {
  background: var(--theme-primary);
  color: #ffffff;
}

.lineage-panel {
  display: none;
}

.lineage-panel.active {
  display: block;
}

/* Interactive Control Bar */
.control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--theme-tint);
  border: 1px solid var(--theme-border-accent);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 20px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.control-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.control-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

.control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--theme-primary);
  background: var(--theme-primary);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 160px;
  text-align: center;
  user-select: none;
}

.control-btn:hover {
  filter: brightness(1.1);
}

.control-btn.active {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.servo-readout-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  background: #ffffff;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

#z19-readout {
  min-width: 275px;
  text-align: center;
}

#z21-readout {
  min-width: 285px;
  text-align: center;
}

#z25-readout {
  min-width: 325px;
  text-align: center;
}

.control-slider {
  accent-color: var(--theme-primary);
  cursor: pointer;
  width: 120px;
}

/* ==========================================================================
   Aviation Cockpit Flight Control Deck (Dual-Axis Yoke & 4-Section Quadrant)
   ========================================================================== */
.flight-deck {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.03);
}

.flight-deck-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--bg-subtle);
}

.flight-deck-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.flight-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.75; }
}

.flight-status-title {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.flight-status-badge {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: #0369a1;
  background: #f0f9ff;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid #e0f2fe;
}

.flight-deck-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.flight-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
  user-select: none;
}

.flight-action-btn:hover {
  background: var(--bg-page);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.flight-action-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.3);
}

.flight-btn-svg {
  flex-shrink: 0;
}

.flight-animate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #0284c7;
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.25);
  cursor: pointer;
  transition: all 0.15s ease;
}

.flight-animate-btn:hover {
  background: #0369a1;
  border-color: #0369a1;
}

.flight-animate-btn.active {
  background: #475569;
  border-color: #475569;
}

.flight-deck-bays {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 16px;
}

.flight-bay {
  background: #fafbfc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: border-color 0.15s ease;
}

.flight-bay:hover {
  border-color: var(--border-subtle);
}

.flight-bay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.flight-bay-title-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
}

.flight-bay-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flight-bay-title {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.flight-bay-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

.flight-sensor-chip {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: #0369a1;
  background: #ffffff;
  border: 1px solid #bae6fd;
  padding: 3px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}

.flight-presets-group {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  padding: 2px;
  border-radius: 7px;
  border: 1px solid var(--border);
  gap: 2px;
}

.throttle-preset-btn {
  font-family: var(--font-sans);
  font-size: 0.69rem;
  font-weight: 600;
  padding: 3px 8px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.throttle-preset-btn:hover {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.flight-bay-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flight-control-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flight-control-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.flight-control-label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.flight-val-pill {
  font-family: var(--font-sans);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-size: 0.74rem;
  font-weight: 600;
  color: #0284c7;
  background: #ffffff;
  padding: 2px 9px;
  border-radius: 9999px;
  border: 1px solid #bae6fd;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.05);
}

.flight-val-pill.mini {
  font-size: 0.7rem;
  padding: 1px 7px;
}

.flight-slider-wrap {
  position: relative;
  width: 100%;
}

.flight-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  outline: none;
  cursor: ew-resize;
  transition: background 0.15s ease;
  margin: 6px 0 4px;
}

.flight-slider:hover {
  background: #cbd5e1;
}

.flight-slider:focus-visible {
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
}

.flight-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0284c7;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
  cursor: grab;
  transition: transform 0.1s ease, background 0.15s ease;
}

.flight-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  background: #0369a1;
}

.flight-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0284c7;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
  cursor: grab;
}

.flight-scale-ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  user-select: none;
}

/* 4-Section Throttle Lever Rack */
.throttle-rack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.throttle-channel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.throttle-channel:hover {
  background: #ffffff;
  border-color: var(--border-subtle);
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.05);
}

.throttle-channel-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
}

.throttle-eng-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.throttle-fader-slot {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border-radius: 6px;
  padding: 4px 2px;
  width: 100%;
  border: 1px solid var(--border);
}

.throttle-fader {
  -webkit-appearance: slider-vertical;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 28px;
  height: 104px;
  padding: 0;
  margin: 0;
  cursor: ns-resize;
  accent-color: #0284c7;
  outline: none;
}

.throttle-fader:focus-visible {
  filter: drop-shadow(0 0 3px rgba(2, 132, 199, 0.6));
}

.throttle-pot-label {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .flight-deck-bays {
    grid-template-columns: 1fr;
  }
}


/* Diagram Canvas */
.diagram-stage {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 22px;
  align-items: stretch;
}

.sketch-frame {
  background-color: #ffffff;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sketch-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Spec Stack */
.spec-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

.spec-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-left: 3px solid var(--theme-primary);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
}

.spec-card-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.spec-card-val {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
}

.spec-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.4;
}

/* ==========================================================================
   Dark Feature Bands (Themed per Page)
   ========================================================================== */
.feature-band {
  background: var(--theme-band-bg);
  color: #ffffff;
  padding: 56px 0;
  margin: 44px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-band .section-label {
  color: var(--band-accent, var(--theme-primary));
}

.feature-band .section-heading {
  color: #ffffff;
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.band-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.band-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
}

.band-card.featured-span {
  grid-column: span 2;
  border-color: rgba(255, 255, 255, 0.18);
}

.band-card-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
}

.band-card-text {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
}

.band-card-img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: block;
}

.band-card-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.band-card-img-pair .band-card-img {
  margin-bottom: 0;
  height: 180px;
}

/* ==========================================================================
   Visual Cards & Photo Grids
   ========================================================================== */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 24px 0;
}

.visual-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.visual-card-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--theme-primary);
  margin-bottom: 6px;
}

.visual-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.photo-frame {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.photo-frame img {
  border-radius: var(--radius-xs);
  width: 100%;
}

.photo-caption {
  margin-top: 10px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.photo-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.photo-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.photo-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.photo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.photo-card:hover {
  border-color: var(--border-subtle);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.photo-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  image-orientation: none;
  display: block;
  background: #0f172a;
}

.photo-card-img.tall {
  height: 280px;
}

.photo-card-img.article-thumb {
  height: 180px;
}

.photo-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.photo-card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--theme-primary);
  margin-bottom: 4px;
}

.photo-card-title {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.photo-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   Experience Timelines (About & Experience)
   ========================================================================== */
.timeline-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.timeline-node {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--theme-primary);
  border-radius: var(--radius-sm);
  padding: 22px;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--theme-primary);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.timeline-org {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Technical Skills
   ========================================================================== */
.skills-container-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.skill-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--theme-primary);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.skill-box-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.skill-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.skill-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--theme-primary);
  flex-shrink: 0;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-pill {
  font-family: var(--font-mono);
  padding: 4px 9px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ==========================================================================
   Contact Tiles
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 620px;
  gap: 20px;
  margin: 36px 0;
}

.contact-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.15s ease;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #090d16;
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 0 36px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.88rem;
}

.footer-col-links a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-col-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   Station 46 Live CAD Modal & Display
   ========================================================================== */
@keyframes stationTickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-380px); }
}

.station-ticker-text {
  animation: stationTickerScroll 22s linear infinite;
  display: inline-block;
}

.station-screen-interactive {
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.station-screen-interactive:hover {
  filter: brightness(1.06);
}

.station-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.station-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 22, 0.88);
  backdrop-filter: blur(8px);
}

.station-modal-dialog {
  position: relative;
  z-index: 10;
  background: #0d131f;
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  border-radius: var(--radius-md);
  max-width: 980px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  color: #f8fafc;
}

.station-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 19, 31, 0.98);
  position: sticky;
  top: 0;
  z-index: 2;
}

.station-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.station-modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
}

.station-modal-body {
  padding: 20px;
}

/* ==========================================================================
   Publications & Article Reader (Cohesive Portfolio Design System)
   ========================================================================== */

/* Hero Telemetry & Metrics Strip */
.pub-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.pub-stat-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xs);
  padding: 16px 18px;
  backdrop-filter: blur(8px);
  transition: all 0.15s ease;
}

.pub-stat-tile:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.pub-stat-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 4px;
}

.pub-stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--band-accent, #c084fc);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pub-stat-sub {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 3px;
}

/* Category Filter & Quick Navigation Bar */
.pub-toolbar-wrap {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin-bottom: 28px;
}

.pub-toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pub-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.pub-toolbar-inner .lineage-tab-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.pub-toolbar-inner .lineage-tab-btn {
  color: var(--text-secondary);
}

.pub-toolbar-inner .lineage-tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.pub-toolbar-inner .lineage-tab-btn.active {
  background: var(--theme-primary);
  color: #ffffff;
}

.pub-quick-jumps {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pub-jump-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-right: 4px;
}

.pub-quick-jumps .skill-pill {
  text-decoration: none;
  transition: all 0.15s ease;
}

.pub-quick-jumps .skill-pill:hover {
  background: var(--bg-surface);
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

/* Publication Article Cards */
.pub-article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 28px;
  transition: border-color 0.15s ease;
}

.pub-article-card:hover {
  border-color: var(--border-subtle);
}

.pub-article-card.card-princeton {
  border-left: 3px solid #e77500;
}

.pub-article-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.pub-article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.pub-article-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.pub-article-author {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pub-article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pub-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.pub-btn-primary {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #ffffff;
}

.pub-btn-primary:hover {
  filter: brightness(1.12);
}

.pub-btn-primary[aria-expanded="true"] {
  background: #4c1d95;
  border-color: #4c1d95;
}

.pub-btn-princeton {
  background: #e77500;
  border-color: #c2410c;
  color: #ffffff;
}

.pub-btn-princeton:hover {
  filter: brightness(1.1);
}

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

.pub-btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

.card-princeton .pub-btn-outline:hover {
  border-color: #e77500;
  color: #e77500;
}

/* Publication Card Media Layout & Figure Display */
.pub-card-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 20px;
}

.pub-card-grid .pub-takeaways {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pub-card-figure {
  display: flex;
  flex-direction: column;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pub-card-figure:hover {
  border-color: var(--theme-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.pub-card-figure-img-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  background: #111116;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.pub-card-figure-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.pub-card-figure-img-wrap:hover .pub-card-figure-img {
  transform: scale(1.04);
}

.pub-card-figure-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.pub-card-figure-caption {
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.pub-card-figure-caption strong {
  color: var(--text-secondary);
  margin-right: 4px;
}

.pub-takeaways {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-left: 3px solid var(--theme-primary);
  border-radius: var(--radius-xs);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.card-princeton .pub-takeaways {
  background: #fff7ed;
  border-color: #fed7aa;
  border-left-color: #e77500;
}

.pub-takeaways-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--theme-primary);
  margin-bottom: 4px;
}

.card-princeton .pub-takeaways-title {
  color: #c2410c;
}

.pub-takeaways p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.pub-takeaways strong {
  color: var(--text-primary);
}

/* Reader View — Collapsed by Default */
.pub-full-text-container {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 32px 36px;
  margin-top: 18px;
}

.pub-reader-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.pub-reading-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #1e293b;
  max-width: 760px;
  margin: 0 auto;
}

.pub-reading-body p {
  margin-bottom: 1.3em;
}

.pub-reading-body p.pub-lead {
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.7;
  color: #0f172a;
}

.pub-reading-body h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: #0f172a;
  margin: 1.8em 0 0.8em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.pub-reading-body blockquote {
  border-left: 3px solid var(--theme-primary);
  padding: 10px 18px;
  margin: 1.4em 0;
  background: var(--bg-subtle);
  font-style: italic;
  color: #334155;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

.pub-reading-body .stat-callout {
  display: block;
  background: var(--theme-tint);
  border: 1px solid var(--theme-border-accent);
  border-radius: var(--radius-xs);
  padding: 10px 16px;
  font-weight: 600;
  color: var(--theme-primary);
  margin: 1.2em 0;
}

.pub-reading-body .article-image-box {
  margin: 1.8em 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f172a;
}

.pub-reading-body .article-image-box img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.pub-reading-body .article-image-caption {
  padding: 8px 14px;
  background: var(--bg-subtle);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.pub-reading-body .article-closing {
  font-weight: 600;
  color: #334155;
  margin-top: 1.4em;
}

.pub-reader-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.pub-reader-footer-note {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Inline PDF Embed Wrapper */
.pub-pdf-embed-wrapper {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0a0a0a;
}

.pub-pdf-embed-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 16px;
  background: #111827;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pub-pdf-embed-bar a {
  color: var(--theme-primary);
  text-decoration: underline;
}

.pub-pdf-embed-bar a:hover {
  color: #ffffff;
}

@media (max-width: 900px) {
  .pub-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pub-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pub-card-figure-img-wrap {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .pub-stats-grid {
    grid-template-columns: 1fr;
  }
  .pub-card-figure-img-wrap {
    height: 180px;
  }
  .pub-reading-body {
    padding: 20px 14px;
  }
  .pub-article-card {
    padding: 20px 16px;
  }
  .pub-full-text-container {
    padding: 20px 16px;
  }
  .pub-article-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .pub-btn {
    justify-content: center;
  }
}

/* ==========================================================================
   Global Travel Page & Leaflet Dark Map Styles
   ========================================================================== */
.travel-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.travel-stat-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--theme-primary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

.travel-stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.travel-stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: 4px;
}

.travel-layout-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 32px;
}

@media (max-width: 980px) {
  .travel-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* Visited Locations Card */
.visited-locations-card {
  background: #111726;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  height: 680px;
  color: #f8fafc;
}

.visited-card-header {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 14px;
}

.visited-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.visited-card-title-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.visited-search-box {
  position: relative;
  margin-bottom: 12px;
}

.visited-search-input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xs);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  outline: none;
  transition: all 0.2s ease;
}

.visited-search-input:focus {
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.1);
}

.visited-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.85rem;
  pointer-events: none;
}

.visited-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.visited-filter-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.visited-filter-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.visited-filter-btn.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  font-weight: 600;
}

.visited-locations-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 4px;
}

.visited-locations-list::-webkit-scrollbar {
  width: 5px;
}

.visited-locations-list::-webkit-scrollbar-track {
  background: transparent;
}

.visited-locations-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.visited-location-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.18s ease;
  color: #cbd5e1;
  font-size: 0.92rem;
  border-left: 3px solid transparent;
  text-decoration: none;
}

.visited-location-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.visited-location-item.active {
  background: rgba(14, 165, 233, 0.18);
  border-left-color: #38bdf8;
  color: #ffffff;
  font-weight: 600;
}

.location-pin-icon {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  max-width: 17px !important;
  max-height: 17px !important;
  color: #38bdf8;
  flex-shrink: 0;
}

.map-container-wrapper {
  position: relative;
  background: #0d131f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 680px;
}

#travel-map {
  width: 100%;
  height: 100%;
  background: #0d131f;
}

.map-floating-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1000;
  display: flex;
  gap: 8px;
}

.map-control-btn {
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xs);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 7px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.map-control-btn:hover {
  background: #0284c7;
  border-color: #38bdf8;
}

.map-control-btn.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}

.map-style-toggles {
  display: inline-flex;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.map-style-toggles .map-control-btn {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.map-style-toggles .map-control-btn:last-child {
  border-right: none;
}

.map-style-toggles .map-control-btn.active {
  background: #0284c7;
  color: #ffffff;
  font-weight: 600;
}

/* Custom Leaflet Map Pin */
.custom-map-pin {
  position: relative;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pin-pulse {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.45);
  animation: pin-pulse-ring 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pin-pulse-ring {
  0% { transform: scale(0.6); opacity: 1; }
  80%, 100% { transform: scale(2.4); opacity: 0; }
}

.pin-svg-icon {
  position: relative;
  z-index: 2;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  color: #38bdf8;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.7));
  transition: transform 0.2s ease;
}

.custom-map-pin:hover .pin-svg-icon,
.custom-map-pin.active .pin-svg-icon {
  transform: scale(1.3);
  color: #00e5ff;
}

/* Custom Leaflet Dark Popup */
.leaflet-popup-content-wrapper {
  background: #111726 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 10px !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65) !important;
  padding: 2px !important;
}

.leaflet-popup-tip {
  background: #111726 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.leaflet-container a.leaflet-popup-close-button {
  color: #94a3b8 !important;
  padding: 8px 8px 0 0 !important;
}

.travel-popup {
  padding: 10px 12px;
  max-width: 260px;
}

.travel-popup-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #38bdf8;
  margin-bottom: 4px;
}

.travel-popup-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.25;
}

.travel-popup-desc {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0 0 8px;
}

.travel-popup-meta {
  font-size: 0.74rem;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.travel-sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 680px;
  overflow: hidden;
}

.travel-sidebar-header {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.travel-sidebar-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.travel-sidebar-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.travel-destinations-scroll {
  overflow-y: auto;
  flex: 1;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.destination-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg-subtle);
  cursor: pointer;
  transition: all 0.15s ease;
}

.destination-item:hover,
.destination-item.active {
  border-color: var(--theme-primary);
  background: var(--theme-tint);
}

.destination-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.destination-city {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.destination-country {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--theme-primary);
}

.destination-purpose {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Custom Leaflet Map Pin */
.custom-map-pin {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pin-pulse {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.45);
  animation: pin-pulse-ring 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pin-pulse-ring {
  0% { transform: scale(0.6); opacity: 1; }
  80%, 100% { transform: scale(2.2); opacity: 0; }
}

.pin-svg-icon {
  position: relative;
  z-index: 2;
  width: 20px;
  height: 20px;
  color: #38bdf8;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
  transition: transform 0.2s ease;
}

.custom-map-pin:hover .pin-svg-icon,
.custom-map-pin.active .pin-svg-icon {
  transform: scale(1.25);
  color: #00e5ff;
}

.leaflet-popup-content-wrapper {
  background: #111726 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65) !important;
  padding: 2px !important;
}

.leaflet-popup-tip {
  background: #111726 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.leaflet-container a.leaflet-popup-close-button {
  color: #94a3b8 !important;
  padding: 8px 8px 0 0 !important;
}

.travel-popup {
  padding: 10px 12px;
  max-width: 260px;
}

.travel-popup-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #38bdf8;
  margin-bottom: 4px;
}

.travel-popup-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 1.25;
}

.travel-popup-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0 0 6px;
}

.travel-popup-meta {
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .home-hero-grid,
  .portal-grid,
  .diagram-stage,
  .split-grid,
  .timeline-track,
  .skills-container-grid,
  .band-grid,
  .contact-grid,
  .photo-grid-2,
  .photo-grid-3,
  .band-card-img-pair,
  .travel-stats-bar,
  .travel-map-stage-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .band-card.featured-span {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .fire-hero-grid {
    gap: 32px;
  }

  .fire-hero-emblem {
    width: 145px;
  }
}

@media (max-width: 720px) {
  .fire-hero-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .fire-hero-emblem-wrap {
    order: -1;
    margin-bottom: 6px;
  }

  .fire-hero-emblem {
    width: 110px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #090d16;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    flex-direction: column;
    padding: 16px 24px;
    align-items: stretch;
  }

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

  .stage-tiles,
  .photo-grid-4 {
    grid-template-columns: 1fr;
  }

  .leadership-grid {
    grid-template-columns: 1fr !important;
  }

  .page-hero,
  .home-hero {
    padding: 44px 0 36px;
  }

  .showcase-body,
  .showcase-top-bar {
    padding: 18px;
  }

  .control-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .control-actions {
    width: 100%;
    margin-left: 0;
  }

  .control-actions .control-btn {
    width: 100%;
  }

  .servo-readout-pill {
    min-width: 0 !important;
    width: 100%;
  }
}
